/* Base styles */
:root {
  --bg: #0b0c10;
  --panel: #111217;
  --text: #eaf0f6;
  --muted: #a9b1bb;
  --brand: #39c3ff;
  --brand-2: #6ee7b7;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1000px 600px at 10% -10%, rgba(57,195,255,.15), transparent 60%),
              radial-gradient(900px 500px at 110% -10%, rgba(110,231,183,.12), transparent 60%),
              var(--bg);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 1rem;
}

/* Enhanced text styles */
.text-light { font-weight: 300; }
.text-regular { font-weight: 400; }
.text-medium { font-weight: 500; }
.text-semibold { font-weight: 600; }
.text-bold { font-weight: 700; }
.text-extrabold { font-weight: 800; }

/* Improved readability */
.lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Blog Post Styles */
.blog-post {
  padding: 2rem 0 4rem;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.post-content h2 {
  margin: 2.5rem 0 1rem;
  color: var(--brand);
  font-weight: 600;
}

.post-content h3 {
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.post-content h4 {
  margin: 1.5rem 0 0.5rem;
  font-weight: 500;
  color: var(--brand-2);
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Specialized Lists */
.challenge-list li,
.advantages-list li,
.limitations-list li,
.excels-list li,
.alternatives-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.advantages-list {
  background: rgba(110,231,183,.05);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-left: 3px solid var(--brand-2);
}

.limitations-list {
  background: rgba(255,193,7,.05);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-left: 3px solid #ffc107;
}

/* Architecture Grid */
.architecture-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.arch-component {
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.05);
}

.arch-component h3 {
  color: var(--brand);
  margin-bottom: 1rem;
}

/* Dual Approach Layout */
.dual-approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.approach-column {
  background: rgba(57,195,255,.05);
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(57,195,255,.2);
}

.approach-column h4 {
  color: var(--brand);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* Impact Grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.impact-card {
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.05);
  text-align: center;
}

.impact-card h3 {
  color: var(--brand-2);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.impact-card ul {
  text-align: left;
  margin: 0;
  padding-left: 1.25rem;
}

.impact-card li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Use Cases Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.use-case-card {
  background: var(--panel);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.05);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.use-case-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.use-case-card h3 {
  color: var(--brand);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.use-case-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Technology Stack */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tech-item {
  background: rgba(57,195,255,.05);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--brand);
  font-size: 0.95rem;
}

/* Evolution Path */
.evolution-path {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.evolution-step {
  background: var(--panel);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.05);
  text-align: center;
  position: relative;
}

.evolution-step h4 {
  color: var(--brand-2);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.evolution-step p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Key Insight Callout */
.key-insight {
  background: linear-gradient(135deg, rgba(57,195,255,.1), rgba(110,231,183,.1));
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(57,195,255,.2);
  margin: 2.5rem 0;
  text-align: center;
}

.key-insight h3 {
  color: var(--brand);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.key-insight p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

.conclusion-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 2rem;
}

/* Code blocks */
pre {
  background: rgba(17, 18, 23, 0.8);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.875rem;
  background: rgba(57,195,255,.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  color: var(--brand);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

/* Performance table */
.performance-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.performance-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 0.75rem;
  overflow: hidden;
}

.performance-table th,
.performance-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.performance-table th {
  background: rgba(57,195,255,.1);
  font-weight: 600;
  color: var(--brand);
}

.performance-table tr:last-child td {
  border-bottom: none;
}

.table-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Storage metrics */
.storage-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.metric-card {
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.05);
  text-align: center;
}

.metric-card h4 {
  color: var(--brand);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.metric-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Challenge section */
.challenge-section {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.challenge-card {
  background: var(--panel);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.05);
}

.challenge-card h4 {
  color: var(--brand-2);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.challenge-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Deployment sections */
.deployment-sections {
  display: grid;
  gap: 2.5rem;
  margin: 2rem 0;
}

.deployment-section {
  background: var(--panel);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.05);
}

.deployment-section h4 {
  color: var(--brand);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Future directions */
.future-directions {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.future-card {
  background: var(--panel);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.05);
}

.future-card h4 {
  color: var(--brand-2);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Achievement list */
.achievement-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.achievement-item {
  background: rgba(110,231,183,.05);
  padding: 1.25rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--brand-2);
  text-align: center;
}

.achievement-item h4 {
  color: var(--brand-2);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.achievement-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Final statement */
.final-statement {
  background: linear-gradient(135deg, rgba(57,195,255,.1), rgba(110,231,183,.1));
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(57,195,255,.2);
  margin: 2.5rem 0;
  text-align: center;
}

.final-statement p {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

/* Resources section */
.resources-section {
  background: rgba(17, 18, 23, 0.5);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.1);
  margin: 2.5rem 0;
}

.resources-section h3 {
  color: var(--brand);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.resources-section p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.resources-section p:last-child {
  margin-bottom: 0;
}

/* Final insight */
.final-insight {
  background: linear-gradient(135deg, rgba(57,195,255,.08), rgba(110,231,183,.08));
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(57,195,255,.15);
  margin: 2.5rem 0;
}

.final-insight h3 {
  color: var(--brand-2);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.final-insight p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.final-insight p:last-child {
  margin-bottom: 0;
}

/* Knowledge Graph Graphic */
.insight-graphic {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SVG Knowledge Graph (hub-and-spoke) */
.insight-graphic .kg-svg {
  width: 240px;
  max-width: 100%;
  height: auto;
  shape-rendering: geometricPrecision;
}

.kg-link {
  stroke: rgba(57,195,255,.7);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.kg-node-center {
  fill: rgba(255,193,7,.22);
  stroke: #ffc107;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: kgCenterPulse 2.8s ease-in-out infinite;
}

.kg-node-loan {
  fill: rgba(57,195,255,.18);
  stroke: var(--brand);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: kgNodePulse 3.6s ease-in-out infinite;
}

.kg-label-center {
  fill: #ffc107;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
  text-anchor: middle;
}

@keyframes kgCenterPulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes kgNodePulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.knowledge-graph {
  position: relative;
  width: 200px;
  height: 120px;
  background: rgba(17, 18, 23, 0.8);
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,.1);
  padding: 1rem;
}

.central-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255,193,7,.2);
  border: 3px solid #ffc107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: #ffc107;
  text-align: center;
  line-height: 1.1;
}

.loan-node {
  position: absolute;
  width: 16px;
  height: 16px;
}

.node-dot {
  width: 100%;
  height: 100%;
  background: var(--brand);
  border-radius: 50%;
  border: 2px solid var(--brand);
}

.loan-1 {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.loan-2 {
  top: 25px;
  right: 15px;
}

.loan-3 {
  bottom: 25px;
  right: 15px;
}

.loan-4 {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.loan-5 {
  top: 25px;
  left: 15px;
}

.graph-connections {
  position: absolute;
  inset: 0;
}

.connection {
  position: absolute;
  background: rgba(57,195,255,.6);
  height: 2px;
  border-radius: 1px;
  transform-origin: center center;
}

.conn-1 {
  top: 60px;
  left: 100px;
  width: 50px;
  transform: rotate(-90deg);
}

.conn-2 {
  top: 60px;
  left: 100px;
  width: 70px;
  transform: rotate(0deg);
}

.conn-3 {
  top: 60px;
  left: 100px;
  width: 70px;
  transform: rotate(45deg);
}

.conn-4 {
  top: 60px;
  left: 100px;
  width: 50px;
  transform: rotate(90deg);
}

.conn-5 {
  top: 60px;
  left: 100px;
  width: 70px;
  transform: rotate(135deg);
}

/* Animate the graph */
@keyframes nodePulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes centralPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.central-node {
  animation: centralPulse 2s ease-in-out infinite;
}

.node-dot {
  animation: nodePulse 3s ease-in-out infinite;
}

.loan-1 .node-dot { animation-delay: 0.2s; }
.loan-2 .node-dot { animation-delay: 0.4s; }
.loan-3 .node-dot { animation-delay: 0.6s; }
.loan-4 .node-dot { animation-delay: 0.8s; }
.loan-5 .node-dot { animation-delay: 1s; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .dual-approach {
    grid-template-columns: 1fr;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .impact-grid,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .evolution-path {
    grid-template-columns: 1fr;
  }
  
  .performance-table {
    font-size: 0.8rem;
  }
  
  .performance-table th,
  .performance-table td {
    padding: 0.5rem;
  }
  
  pre {
    font-size: 0.8rem;
    padding: 1rem;
  }
  
  .storage-metrics,
  .achievement-list {
    grid-template-columns: 1fr;
  }
  
  .challenge-section,
  .deployment-sections,
  .future-directions {
    gap: 1.5rem;
  }
  
  .knowledge-graph {
    width: 160px;
    height: 100px;
    padding: 0.75rem;
  }
  
  .central-node {
    width: 40px;
    height: 40px;
    font-size: 0.5rem;
  }
  
  .loan-node {
    width: 12px;
    height: 12px;
  }
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.site-header { position: sticky; top: 0; backdrop-filter: blur(6px); background: rgba(11,12,16,.55); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; }
.logo { margin: 0; font-size: 1.25rem; letter-spacing: .2px; }
.logo a { color: var(--text); text-decoration: none; font-weight: 800; }
.logo span { color: var(--brand); }

.nav a { color: var(--text); text-decoration: none; margin-left: 1rem; opacity: .85; }
.nav a:hover { opacity: 1; }

.hero { padding: 10vh 0; text-align: center; }
.hero h2 { 
  font-size: clamp(1.8rem, 4vw, 3rem); 
  font-weight: 700; 
  margin: 0 0 .5rem; 
  letter-spacing: -0.02em;
}
.hero p { 
  color: var(--muted); 
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0 0 1.25rem; 
}
.cta { 
  display: inline-block; 
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: #0b0c10; 
  padding: .7rem 1rem; 
  border-radius: .5rem; 
  font-weight: 600; 
  font-size: 0.95rem;
  text-decoration: none; 
  letter-spacing: 0.01em;
}

.section { padding: 3rem 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1rem; }
.card { background: var(--panel); padding: 1rem; border: 1px solid rgba(255,255,255,.05); border-radius: .75rem; }
.card h4 { 
  margin: .2rem 0 .5rem; 
  font-weight: 600;
  font-size: 1.125rem;
}
.card p { 
  color: var(--muted); 
  font-weight: 400;
  line-height: 1.6;
}
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Hero layout */
.hero-content { display: flex; align-items: center; gap: 3rem; }
.hero-text { flex: 1; text-align: left; }
.hero-graphic { flex: 0 0 300px; }

/* Security animation */
.security-animation { 
  position: relative; 
  width: 300px; 
  height: 300px; 
  margin: 0 auto;
}

.data-nodes { position: absolute; inset: 0; }
.node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.node-1 { top: 20%; left: 10%; animation-delay: 0s; }
.node-2 { top: 30%; right: 15%; animation-delay: 0.5s; }
.node-3 { bottom: 25%; left: 20%; animation-delay: 1s; }
.node-4 { bottom: 35%; right: 10%; animation-delay: 1.5s; }

.lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.lock-body {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 6px;
  position: relative;
}
.lock-shackle {
  width: 24px;
  height: 20px;
  border: 4px solid var(--brand);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  position: absolute;
  top: -16px;
  left: 4px;
  animation: lockGlow 3s ease-in-out infinite;
}

.data-streams { position: absolute; inset: 0; }
.stream {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  height: 2px;
  animation: streamFlow 3s linear infinite;
}
.stream-1 { 
  top: 25%; 
  left: 0; 
  right: 0; 
  animation-delay: 0s; 
}
.stream-2 { 
  top: 50%; 
  left: 0; 
  right: 0; 
  animation-delay: 1s; 
}
.stream-3 { 
  top: 75%; 
  left: 0; 
  right: 0; 
  animation-delay: 2s; 
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes lockGlow {
  0%, 100% { box-shadow: 0 0 5px var(--brand); }
  50% { box-shadow: 0 0 20px var(--brand), 0 0 30px var(--brand-2); }
}

@keyframes streamFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* High-Tech Home Page Styles */
.hero-tech { 
  padding: 8vh 0 12vh; 
  background: linear-gradient(135deg, rgba(57,195,255,0.03) 0%, rgba(110,231,183,0.02) 100%);
  position: relative;
  overflow: hidden;
}

.hero-tech::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(57,195,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(110,231,183,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-secondary {
  display: inline-block;
  border: 2px solid var(--brand);
  color: var(--brand);
  padding: .6rem 1rem;
  border-radius: .5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: var(--brand);
  color: var(--bg);
}

.hero-visual {
  flex: 0 0 400px;
  height: 400px;
  position: relative;
}

.tech-grid {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(57,195,255,0.05) 0%, rgba(110,231,183,0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(57,195,255,0.2);
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(90deg, rgba(57,195,255,0.1) 1px, transparent 1px),
    linear-gradient(rgba(57,195,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridShift 20s linear infinite;
}

.data-flow {
  position: absolute;
  inset: 20px;
}

.flow-node {
  position: absolute;
  padding: 8px 12px;
  background: rgba(57,195,255,0.1);
  border: 1px solid var(--brand);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  animation: nodeFloat 4s ease-in-out infinite;
}

.node-ai { top: 10%; left: 10%; animation-delay: 0s; }
.node-data { top: 20%; right: 15%; animation-delay: 1s; }
.node-cloud { bottom: 25%; left: 20%; animation-delay: 2s; }
.node-security { bottom: 15%; right: 10%; animation-delay: 3s; }

.neural-network {
  position: absolute;
  inset: 0;
}

.neuron {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--brand-2);
  border-radius: 50%;
  animation: neuronPulse 3s ease-in-out infinite;
}

.n1 { top: 30%; left: 40%; animation-delay: 0s; }
.n2 { top: 50%; left: 60%; animation-delay: 0.5s; }
.n3 { top: 70%; left: 35%; animation-delay: 1s; }
.n4 { top: 45%; left: 25%; animation-delay: 1.5s; }

.connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  animation: connectionFlow 4s linear infinite;
}

.c1 { top: 32%; left: 40%; width: 120px; transform: rotate(15deg); animation-delay: 0s; }
.c2 { top: 52%; left: 25%; width: 200px; transform: rotate(-20deg); animation-delay: 1s; }
.c3 { top: 47%; left: 35%; width: 150px; transform: rotate(45deg); animation-delay: 2s; }
.c4 { top: 65%; left: 30%; width: 100px; transform: rotate(-10deg); animation-delay: 3s; }

/* Focus Areas */
.tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-card {
  background: linear-gradient(135deg, rgba(57,195,255,0.05), rgba(110,231,183,0.03));
  border: 1px solid rgba(57,195,255,0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(57,195,255,0.1);
}

.tech-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ai-icon { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.data-icon { background: linear-gradient(135deg, #ff6b6b, #feca57); }
.cloud-icon { background: linear-gradient(135deg, #a8e6cf, #88d8c0); }

.tech-icon::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg);
  border-radius: 8px;
}

/* AI Animation */
.ai-animation {
  position: absolute;
  inset: 8px;
  z-index: 2;
}

.ai-brain {
  position: relative;
  width: 100%;
  height: 100%;
}

.brain-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  animation: brainPulse 2s ease-in-out infinite;
}

.bn1 { top: 30%; left: 25%; animation-delay: 0s; }
.bn2 { top: 50%; right: 30%; animation-delay: 0.7s; }
.bn3 { bottom: 35%; left: 45%; animation-delay: 1.4s; }

.brain-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: brainFlow 3s linear infinite;
}

.bc1 { 
  top: 32%; 
  left: 25%; 
  width: 60px; 
  transform: rotate(25deg); 
  animation-delay: 0s; 
}

.bc2 { 
  top: 52%; 
  left: 30%; 
  width: 40px; 
  transform: rotate(-35deg); 
  animation-delay: 1.5s; 
}

/* Data Governance Animation */
.governance-animation {
  position: absolute;
  inset: 8px;
  z-index: 2;
}

.data-shield {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.shield-core {
  width: 12px;
  height: 12px;
  background: var(--brand-2);
  border-radius: 50%;
  animation: shieldPulse 2s ease-in-out infinite;
}

.shield-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 107, 107, 0.6);
  border-radius: 50%;
  animation: shieldExpand 3s ease-in-out infinite;
}

.ring1 { 
  width: 20px; 
  height: 20px; 
  animation-delay: 0s; 
}

.ring2 { 
  width: 30px; 
  height: 30px; 
  animation-delay: 1s; 
}

.data-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ff6b6b;
  border-radius: 50%;
  animation: particleOrbit 4s linear infinite;
}

.p1 { animation-delay: 0s; }
.p2 { animation-delay: 1.3s; }
.p3 { animation-delay: 2.6s; }

/* Multi-Cloud Animation */
.cloud-animation {
  position: absolute;
  inset: 8px;
  z-index: 2;
}

.cloud-layers {
  position: relative;
  width: 100%;
  height: 100%;
}

.cloud-layer {
  position: absolute;
  background: rgba(168, 230, 207, 0.3);
  border-radius: 50%;
  animation: cloudFloat 4s ease-in-out infinite;
}

.cl1 { 
  top: 20%; 
  left: 15%; 
  width: 16px; 
  height: 8px; 
  animation-delay: 0s; 
}

.cl2 { 
  top: 45%; 
  right: 20%; 
  width: 12px; 
  height: 6px; 
  animation-delay: 1.3s; 
}

.cl3 { 
  bottom: 25%; 
  left: 35%; 
  width: 14px; 
  height: 7px; 
  animation-delay: 2.6s; 
}

.cloud-connections {
  position: absolute;
  inset: 0;
}

.cloud-link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, #88d8c0, transparent);
  animation: cloudSync 3s linear infinite;
}

.link1 { 
  top: 35%; 
  left: 20%; 
  width: 50px; 
  transform: rotate(15deg); 
  animation-delay: 0s; 
}

.link2 { 
  bottom: 40%; 
  left: 25%; 
  width: 40px; 
  transform: rotate(-25deg); 
  animation-delay: 1.5s; 
}

/* Animation Keyframes */
@keyframes brainPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes brainFlow {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes shieldPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes shieldExpand {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes particleOrbit {
  0% { 
    transform: rotate(0deg) translateX(18px) rotate(0deg); 
    opacity: 0.8; 
  }
  100% { 
    transform: rotate(360deg) translateX(18px) rotate(-360deg); 
    opacity: 0.8; 
  }
}

@keyframes cloudFloat {
  0%, 100% { transform: translateY(0px); opacity: 0.6; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes cloudSync {
  0% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); }
}

/* Insights Section */
.insight-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.insight-card {
  background: linear-gradient(135deg, rgba(57,195,255,0.05), rgba(110,231,183,0.03));
  border: 1px solid rgba(57,195,255,0.2);
  border-radius: 12px;
  padding: 2rem;
}

.insight-meta {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.insight-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

.stats-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  background: rgba(57,195,255,0.05);
  border: 1px solid rgba(57,195,255,0.2);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
  font-variation-settings: "wght" 600;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Optional quote line under each stat */
.stat-quote {
  margin-top: 0.35rem;
  color: rgba(234,240,246,0.75);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Handle long multi-word headings (e.g., Box 2) */
.stat-number.is-long {
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: center;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .stat-number.is-long { font-size: 1.45rem; }
}

/* Animations */
@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes neuronPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes connectionFlow {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Centered list with styled boxes */
.centered-list {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.centered-list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  flex: 0 0 auto;
  width: auto;
}

.centered-list li {
  flex: 0 0 auto;
  width: 320px;
  max-width: 100%;
  background: rgba(57,195,255,0.05);
  border: 1px solid rgba(57,195,255,0.2);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  text-align: left;
}

/* Competency boxes */
.competency-boxes {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.competency-box {
  flex: 0 0 auto;
  width: 320px;
  max-width: 100%;
  background: rgba(57, 195, 255, 0.05) !important;
  border: 1px solid rgba(57, 195, 255, 0.2) !important;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(57, 195, 255, 0.9);
  display: block;
  margin: 0.5rem;
}

.competency-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* About page specific styles */
.competency-list {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.competency-list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  /* shrink-wrap group, let wrapper center it */
  flex: 0 0 auto;
  width: auto;
}

.competency-list li {
  flex: 0 0 auto;
  width: 320px;
  max-width: 100%;
  background: rgba(57,195,255,0.05);
  border: 1px solid rgba(57,195,255,0.2);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero-content { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-graphic { flex: 0 0 200px; }
  .security-animation { width: 200px; height: 200px; }
  .hero-visual { 
    flex: 0 0 280px; 
    height: 280px; 
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  .tech-grid {
    width: 100%;
    height: 100%;
    min-height: 280px;
  }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .insight-grid { grid-template-columns: 1fr; }
  .stats-panel { flex-direction: row; }
  /* On small screens, stack items vertically and use full width */
  .competency-list ul { display: flex; flex-direction: column; align-items: center; width: 100%; flex: 1 1 auto; }
  .competency-list li { width: 100%; max-width: 400px; }
  .centered-list ul { display: flex; flex-direction: column; align-items: center; width: 100%; flex: 1 1 auto; }
  .centered-list li { width: 100%; max-width: 400px; }
  .competency-boxes { flex-direction: column; align-items: center; }
  .competency-box { width: 100%; max-width: 400px; }
  .tech-cards { grid-template-columns: 1fr; }
}

.site-footer { border-top: 1px solid rgba(255,255,255,.06); margin-top: 2rem; }
.site-footer .container { padding: 1.2rem 1rem; text-align:center; color: var(--muted); }
