/* ============================================================
   KV Cache — design tokens & site styles
   ============================================================ */
:root {
  --bg: #05080b;
  --bg-secondary: #081016;
  --surface: #0b141b;
  --surface-hover: #0f1b23;

  --text: #f4f8f8;
  --text-secondary: #a6b4ba;
  --text-muted: #66777f;

  --line: rgba(180, 220, 225, 0.12);
  --line-strong: rgba(180, 220, 225, 0.22);

  --accent: #57f0b0;
  --accent-soft: rgba(87, 240, 176, 0.14);

  --cyan: #39d7ff;
  --blue: #368cff;

  --max-width: 1280px;
  --gutter: 40px;
  --section-y: 150px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
/* technical grid + atmospheric light */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 75% 0%, rgba(54,140,255,0.08), transparent 65%),
    radial-gradient(700px 400px at 20% 100%, rgba(87,240,176,0.05), transparent 65%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--accent); color: #04110b; border-radius: 6px; font-weight: 500;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(var(--max-width), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.accent { color: var(--accent); }

/* ---------- Typography ---------- */
.h1 { font-size: clamp(46px, 5.3vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; }
.h2 { font-size: clamp(34px, 4.1vw, 56px); line-height: 1.06; font-weight: 500; letter-spacing: -0.035em; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.lead { color: var(--text-secondary); font-size: 18px; line-height: 1.65; max-width: 48ch; }
.lead + .lead { margin-top: 14px; }
.body-copy { color: var(--text-secondary); font-size: 17px; max-width: 54ch; }
.mono, .label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.label.accent { color: var(--accent); }
.label .num { color: var(--text-muted); }
.label .dash { width: 24px; height: 1px; background: var(--line-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02);
  cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s, background .25s, filter .15s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(87,240,176,.55); box-shadow: 0 0 0 1px rgba(87,240,176,.12), 0 8px 30px rgba(87,240,176,.08); }
.btn:active { transform: translateY(0); filter: brightness(.92); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #04110b; border-color: var(--accent); }
.btn-primary:hover { background: #6ff5bd; border-color: #6ff5bd; box-shadow: 0 0 0 1px rgba(87,240,176,.25), 0 10px 36px rgba(87,240,176,.22); }
.btn-outline { border-color: rgba(87,240,176,.55); background: transparent; height: 40px; font-size: 14px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 80px;
  background: rgba(5, 8, 11, 0.35);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.site-header.scrolled { background: rgba(5, 8, 11, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 22px; position: relative; display: inline-block; flex: none; }
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; width: 11px; height: 14px; border-radius: 2px; background: var(--accent);
}
.brand-mark::before { left: 0; top: 0; }
.brand-mark::after { left: 13px; top: 8px; background: rgba(87,240,176,.55); }
.nav { display: flex; gap: 34px; font-size: 14.5px; color: var(--text-secondary); }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .3s var(--ease-out); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .3s var(--ease-out), background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease-out), top .3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 55; background: rgba(5,8,11,.97);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 24px 48px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s;
}
.nav-open .nav-overlay { opacity: 1; visibility: visible; }
.nav-overlay a { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.nav-overlay a:hover { color: var(--accent); }
.nav-overlay .btn { margin-top: 34px; align-self: flex-start; }
.nav-overlay .label { margin: 0 0 16px; }
body.nav-open { overflow: hidden; }

/* ---------- Sections ---------- */
main { padding-top: 80px; }
.section { padding: var(--section-y) 0; border-top: 1px solid var(--line); position: relative; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 80px; align-items: center; }
.split.top { align-items: start; }
.split .copy .lead { margin-top: 26px; }
.split .copy .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal-group.in > * { opacity: 1; transform: none; }
.js .reveal-group.in > :nth-child(2) { transition-delay: .08s; }
.js .reveal-group.in > :nth-child(3) { transition-delay: .16s; }
.js .reveal-group.in > :nth-child(4) { transition-delay: .24s; }
.js .reveal-group.in > :nth-child(5) { transition-delay: .32s; }
.js .reveal-group.in > :nth-child(6) { transition-delay: .40s; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 120px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero .label { margin-bottom: 30px; }
.hero .lead { margin-top: 30px; font-size: 18.5px; }
.hero .actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; overflow: visible; }

/* --- hero visualization (SVG) --- */
.viz text { font-family: var(--font-sans); fill: var(--text); font-size: 13px; }
.viz .vlabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; fill: var(--text); text-transform: uppercase; }
.viz .vsub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; fill: var(--text-muted); }
.viz .stack path { fill: rgba(54,140,255,.18); stroke: rgba(57,215,255,.65); stroke-width: 1; }
.viz .stack path:nth-child(1) { fill: rgba(54,140,255,.28); }
.viz .link { fill: none; stroke: rgba(57,215,255,.38); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-out) forwards; }
.viz .link.out { stroke: rgba(87,240,176,.45); }
.viz .l1 { animation-delay: .9s; } .viz .l2 { animation-delay: 1.05s; } .viz .l3 { animation-delay: 1.2s; } .viz .l4 { animation-delay: 1.5s; } .viz .l5 { animation-delay: 1.65s; }
.viz .cube { animation: rise 1.2s var(--ease-out) both; transform-box: fill-box; transform-origin: center; }
.viz .cube .face { fill: rgba(11,20,27,.75); stroke: rgba(87,240,176,.55); stroke-width: 1; }
.viz .cube .face.top { fill: rgba(87,240,176,.08); }
.viz .cube .edge { fill: none; stroke: rgba(87,240,176,.25); stroke-width: 1; }
.viz .layer { fill: rgba(87,240,176,.14); stroke: var(--accent); stroke-width: 1; stroke-opacity: .85; animation: assemble .9s var(--ease-out) both; }
.viz .layer:nth-child(1) { animation-delay: .35s; } .viz .layer:nth-child(2) { animation-delay: .5s; }
.viz .layer:nth-child(3) { animation-delay: .65s; } .viz .layer:nth-child(4) { animation-delay: .8s; }
.viz .glow { fill: rgba(87,240,176,.18); filter: blur(28px); animation: breathe 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.viz .block { fill: rgba(87,240,176,.22); stroke: var(--accent); stroke-width: 1; animation: floaty 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.viz .block.b2 { animation-delay: -1.5s; animation-duration: 7s; } .viz .block.b3 { animation-delay: -3s; animation-duration: 5.5s; }
.viz .block.b4 { animation-delay: -4.2s; animation-duration: 8s; fill: rgba(57,215,255,.18); stroke: var(--cyan); }
.viz .pk { fill: var(--cyan); r: 2.6px; offset-rotate: 0deg; animation: travel 4.5s linear infinite; opacity: 0; }
.viz .pk.g { fill: var(--accent); }
.viz .cb { width: 9px; height: 9px; rx: 1.5px; fill: var(--accent); stroke: #04110b; stroke-width: .5; offset-rotate: 0deg; offset-anchor: center; animation: lifecycle 11s var(--ease-out) infinite; opacity: 0; }
.viz .llm rect.box { fill: rgba(11,20,27,.8); stroke: rgba(54,140,255,.6); }
.viz .llm circle { fill: rgba(57,215,255,.6); }
.viz .llm line { stroke: rgba(57,215,255,.35); stroke-width: 1; }
.viz .llm .pulse { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.viz .frame { fill: none; stroke: rgba(87,240,176,.22); stroke-dasharray: 3 6; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes assemble { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes lifecycle {
  0%   { offset-distance: 0%;  opacity: 0; }
  4%   { opacity: 1; }
  30%  { offset-distance: 46%; opacity: 1; }
  34%  { offset-distance: 50%; }
  60%  { offset-distance: 50%; opacity: 1; }
  64%  { offset-distance: 54%; }
  90%  { offset-distance: 100%; opacity: 1; }
  93%  { opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
  transition: border-color .3s, background .3s;
}
.card:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.card .icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 20px; transition: transform .3s var(--ease-out); }
.card:hover .icon { transform: translateY(-2px); }
.card .icon svg { width: 100%; height: 100%; }
.card .mono { margin-bottom: 14px; display: block; color: var(--text); }
.card p { color: var(--text-secondary); font-size: 15px; }

/* ---------- 01 Problem ---------- */
.problem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem-cards .card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.problem-cards .card .idx { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .12em; }
.problem-cards .card .mono { font-size: 15px; letter-spacing: .1em; margin: 0 0 10px; color: var(--accent); }
.problem-cards .card .bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 24px; overflow: hidden; }
.problem-cards .card .bar i { display: block; height: 100%; width: 40%; background: var(--accent); transition: width 1.2s var(--ease-out); }
.problem-cards .card:nth-child(2) .bar i { width: 62%; } .problem-cards .card:nth-child(3) .bar i { width: 84%; }

/* ---------- 02 Technology pipeline ---------- */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pipeline .card { padding: 22px; min-height: 230px; display: flex; flex-direction: column; position: relative; z-index: 1; }
.pipeline .card.hl { border-color: rgba(87,240,176,.6); box-shadow: 0 0 0 1px rgba(87,240,176,.15), 0 0 48px rgba(87,240,176,.08); }
.pipeline .card .mono { color: var(--text-muted); font-size: 11px; }
.pipeline .card.hl .mono { color: var(--accent); }
.pipeline .stage { height: 84px; display: flex; align-items: center; justify-content: center; margin: 4px 0 18px; }
.pipeline .card h3 { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.pipeline .card p { font-size: 13.5px; }
/* track sits behind the cards (visible only in the gaps); the token travels in front */
.pipe-track { position: absolute; left: 24px; right: 24px; top: 86px; height: 1px; background: rgba(57,215,255,.35); pointer-events: none; z-index: 0; }
.pipe-track .token { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(87,240,176,.8); animation: token 7s var(--ease-out) infinite; z-index: 2; }
@keyframes token {
  0% { left: 0%; opacity: 0; } 5% { opacity: 1; }
  28% { left: 32%; } 34% { left: 34%; }
  58% { left: 64%; } 66% { left: 66%; background: var(--cyan); }
  92% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; }
}
.quote-mark { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); text-align: center; line-height: 1.5; }
.cells { display: grid; grid-template-columns: repeat(5, 12px); gap: 4px; }
.cells i { width: 12px; height: 12px; border-radius: 2px; background: rgba(54,140,255,.18); border: 1px solid rgba(57,215,255,.35); }
.cells i.on { background: rgba(57,215,255,.7); border-color: var(--cyan); }
.cells i.g { background: var(--accent); border-color: var(--accent); }
.tokens { display: flex; gap: 5px; }
.tokens i { width: 16px; height: 22px; border-radius: 3px; background: rgba(54,140,255,.18); border: 1px solid rgba(57,215,255,.35); }
.tokens i.g { background: var(--accent-soft); border-color: var(--accent); }
.stack-ico { width: 56px; height: 56px; }

/* ---------- 03 Infrastructure ---------- */
.capabilities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap { background: var(--surface); padding: 28px 24px 30px; transition: background .3s; position: relative; }
.cap:hover { background: var(--surface-hover); }
.cap .idx { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .12em; }
.cap .icon { width: 28px; height: 28px; color: var(--accent); margin: 28px 0 22px; transition: transform .3s var(--ease-out); }
.cap:hover .icon { transform: translateY(-2px); }
.cap h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; line-height: 1.5; }
.cap p { font-size: 14px; color: var(--text-secondary); }

/* ---------- 04 Performance ---------- */
.bench { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bench-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bench-head .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid rgba(87,240,176,.45); border-radius: 4px; color: var(--accent); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.bench-head .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bench-head .note { font-size: 12.5px; color: var(--text-muted); }
.bench-body { display: grid; grid-template-columns: 1.55fr 1fr; }
.bench-charts { padding: 28px 24px; border-right: 1px solid var(--line); }
.chart + .chart { margin-top: 32px; }
.chart .mono { display: flex; justify-content: space-between; margin-bottom: 14px; color: var(--text); }
.chart .mono small { color: var(--text-muted); letter-spacing: .08em; text-transform: none; font-family: var(--font-mono); font-size: 11px; }
.row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; font-size: 14px; color: var(--text-secondary); }
.row + .row { margin-top: 10px; }
.row .name.hl { color: var(--accent); }
.track { height: 10px; border-radius: 2px; background: rgba(255,255,255,.04); border: 1px solid var(--line); overflow: hidden; }
.fill { height: 100%; width: 0; background: repeating-linear-gradient(90deg, #4a5f6c 0 6px, #3b4d58 6px 8px); transition: width 1.4s var(--ease-out); }
.fill.hl { background: repeating-linear-gradient(90deg, var(--accent) 0 6px, #3cc78f 6px 8px); box-shadow: 0 0 14px rgba(87,240,176,.35); }
.in .fill, .no-js .fill { width: var(--w); }
.bench-side { padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.bench-side svg { width: 100%; height: 110px; }
.bench-side .mono { color: var(--text); }
.bench-side .big { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-top: 10px; }
.bench-side .small { color: var(--text-muted); font-size: 13px; margin-top: 10px; }

/* ---------- 05 Architecture ---------- */
.arch-wrap { margin-top: 72px; position: relative; padding: 48px; border: 1px solid var(--line); border-radius: var(--radius); background:
  linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 32px 32px,
  var(--bg-secondary); overflow: hidden; }
.arch { display: grid; grid-template-columns: 1fr 56px 1.2fr 56px 1fr 56px 1fr; align-items: center; }
.node { background: rgba(11,20,27,.85); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 10px; transition: border-color .3s; }
.node svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }
.node:hover { border-color: rgba(57,215,255,.6); }
.arch-col { display: flex; flex-direction: column; align-items: stretch; }
.vlink { height: 26px; width: 1px; margin: 0 auto; background: rgba(57,215,255,.4); position: relative; }
.vlink::after { content: ""; position: absolute; left: -2px; top: -5px; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: vpk 1.8s linear infinite; }
@keyframes vpk { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.hlink { height: 1px; background: rgba(57,215,255,.35); position: relative; margin: 0 6px; }
.hlink::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: hpk 2.2s linear infinite; }
.hlink.h2::after { animation-delay: .7s; } .hlink.h3::after { animation-delay: 1.4s; }
@keyframes hpk { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
.fabric { border: 1px solid rgba(87,240,176,.6); border-radius: 10px; padding: 16px; background: rgba(87,240,176,.04); box-shadow: 0 0 0 1px rgba(87,240,176,.12), 0 0 60px rgba(87,240,176,.08); }
.fabric .title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.fabric .node { margin-top: 8px; border-color: var(--line); }
.fabric .node:first-of-type { margin-top: 0; }
.tiers .node + .node { margin-top: 10px; }
.cluster .racks { display: grid; gap: 6px; margin-top: 12px; }
.cluster .racks div { display: flex; gap: 4px; }
.cluster .racks i { flex: 1; height: 10px; border-radius: 2px; background: rgba(54,140,255,.18); border: 1px solid rgba(57,215,255,.3); }
.cluster .racks i.on { background: rgba(87,240,176,.25); border-color: var(--accent); animation: pulse 3s ease-in-out infinite; }
.cluster .racks div:nth-child(2) i.on { animation-delay: -1s; } .cluster .racks div:nth-child(3) i.on { animation-delay: -2s; }
.cluster { background: rgba(11,20,27,.85); border: 1px solid var(--line-strong); border-radius: 8px; padding: 14px; }
.cluster .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 06 Why ---------- */
.why { text-align: left; }
.why .h2 { max-width: 20ch; }
.statements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--line); }
.statement .mono { color: var(--accent); display: block; margin-bottom: 18px; font-size: 12.5px; }
.statement p { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; letter-spacing: -0.015em; color: var(--text); font-weight: 500; }

/* ---------- 07 Engineers ---------- */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-list li { background: var(--surface); padding: 20px 22px; display: flex; align-items: center; gap: 14px; font-size: 15.5px; transition: background .3s; }
.feature-list li:hover { background: var(--surface-hover); }
.feature-list li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); flex: none; }
.code-strip { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-secondary); display: flex; gap: 20px; flex-wrap: wrap; }
.code-strip span b { color: var(--accent); font-weight: 500; }

/* ---------- 08 Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; align-items: start; }
.contact-points { margin-top: 36px; display: grid; gap: 18px; }
.contact-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--text-secondary); font-size: 15.5px; }
.contact-points li .n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; padding-top: 5px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select option { background: #0b141b; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 150px; resize: vertical; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff7a7a; box-shadow: 0 0 0 3px rgba(255,122,122,.16); }
.field.invalid label { color: #ff9c9c; }
.field-error { display: none; font-size: 12.5px; color: #ff9c9c; margin-top: -2px; }
.field.invalid .field-error { display: block; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.form-footer .note { font-size: 12.5px; color: var(--text-muted); max-width: 44ch; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; padding: 200px 0 220px; border-top: 1px solid var(--line); background: #04070a; }
.final .earth { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: max(1600px, 130vw); height: auto; pointer-events: none; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #04070a 0%, rgba(4,7,10,.2) 55%, rgba(4,7,10,0) 100%); pointer-events: none; }
.final .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.final .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.final .h2 { max-width: 16ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .tag { color: var(--text-secondary); font-size: 14.5px; margin-top: 18px; max-width: 28ch; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 18px; }
.footer-grid ul li + li { margin-top: 10px; }
.footer-grid ul a { color: var(--text-secondary); font-size: 14.5px; transition: color .2s; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Simple pages (thanks / error / coming soon) ---------- */
.page-simple { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.simple-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 40px; max-width: 560px; width: 100%; text-align: center; }
.simple-card .brand { justify-content: center; margin-bottom: 30px; }
.simple-card .label { justify-content: center; margin-bottom: 18px; }
.simple-card h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.03em; margin-bottom: 16px; font-weight: 500; }
.simple-card p { color: var(--text-secondary); margin-bottom: 30px; }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; --section-y: 120px; }
  .split, .hero .wrap { gap: 48px; }
  .capabilities { grid-template-columns: repeat(2, 1fr); }
  .cap:last-child { grid-column: 1 / -1; }
  .problem-cards { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .split, .hero .wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero .lead { max-width: 56ch; }
  .arch { grid-template-columns: 1fr 1fr; gap: 40px 56px; }
  .arch .hlink { display: none; }
  .arch-col, .fabric, .tiers, .cluster { position: relative; }
  .statements { grid-template-columns: 1fr; gap: 36px; }
  .bench-body { grid-template-columns: 1fr; }
  .bench-charts { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipe-track { display: none; }
}
/* ---------- Responsive: mobile ---------- */
@media (max-width: 768px) {
  :root { --gutter: 20px; --section-y: 88px; }
  body { font-size: 16px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header { height: 68px; } main { padding-top: 68px; }
  .hero { padding: 40px 0 80px; }
  .hero .lead { font-size: 17px; }
  .problem-cards { grid-template-columns: 1fr; }
  .problem-cards .card { min-height: 0; }
  .capabilities { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline .card { min-height: 0; }
  .arch-wrap { padding: 24px 18px; margin-top: 48px; }
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch .hlink { display: block; width: 1px; height: 32px; margin: 0 auto; }
  .arch .hlink::after { animation: vpk 1.8s linear infinite; left: -2px; }
  .row { grid-template-columns: 110px 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .final { padding: 140px 0 160px; }
  .final .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
  .viz .link { stroke-dashoffset: 0; }
  .viz .pk, .viz .cb, .pipe-track .token, .hlink::after, .vlink::after { display: none; }
  .viz .layer, .viz .cube { opacity: 1; transform: none; }
  .fill { width: var(--w); }
}

/* ---------- 404 ---------- */
.simple-card.nf { max-width: 600px; }
.nf-visual { width: 220px; margin: 0 auto 26px; }
.nf-cells rect { fill: rgba(54,140,255,.14); stroke: rgba(57,215,255,.35); stroke-width: 1; }
.nf-cells rect.hit { fill: var(--accent-soft); stroke: var(--accent); }
.nf-cells rect.miss { fill: rgba(255,120,120,.14); stroke: rgba(255,140,140,.8); stroke-dasharray: 3 3; animation: nf-blink 1.6s ease-in-out infinite; }
@keyframes nf-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.nf-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.field select.preselected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Partner documentation page ---------- */
.docs-page { padding-top: 80px; }
.docs-hero { padding: 96px 0 72px; }
.docs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.docs-grid .h2 { max-width: 16ch; }
.docs-grid .lead { margin-top: 26px; }
.docs-grid .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.docs-note { margin-top: 28px; font-size: 13.5px; color: var(--text-muted); max-width: 46ch; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.docs-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.docs-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px 200px at 100% 0%, rgba(87,240,176,.06), transparent 70%); }
.docs-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.docs-panel-head .mono { color: var(--text); }
.docs-badge { display: inline-flex; white-space: nowrap; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(87,240,176,.45); border-radius: 4px; color: var(--accent); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.docs-badge svg { width: 13px; height: 13px; }
.docs-list li { display: grid; grid-template-columns: 36px 1fr 28px; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background .3s; }
.docs-list li:hover { background: var(--surface-hover); }
.docs-id { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .1em; }
.docs-title { font-size: 15px; color: var(--text); display: flex; flex-direction: column; gap: 3px; }
.docs-title small { font-size: 12.5px; color: var(--text-muted); }
.docs-lock { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; justify-self: end; }
.docs-lock::before { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 6px; border-radius: 1.5px; background: var(--text-muted); }
.docs-lock::after { content: ""; position: absolute; left: 7.5px; top: 5px; width: 5px; height: 5px; border: 1.2px solid var(--text-muted); border-bottom: 0; border-radius: 3px 3px 0 0; }
.docs-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.docs-panel-foot a { color: var(--accent); font-weight: 500; }
.docs-panel-foot a:hover { text-decoration: underline; }
.docs-benefits { padding: 48px 0 120px; }
.docs-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site-footer.slim { padding: 28px 0 36px; }
.site-footer.slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.site-footer.slim a:hover { color: var(--text); }
@media (max-width: 1024px) {
  .docs-grid { grid-template-columns: 1fr; gap: 48px; }
  .docs-grid .h2 { max-width: none; }
}
@media (max-width: 768px) {
  .docs-page { padding-top: 68px; }
  .docs-hero { padding: 56px 0 40px; }
  .docs-benefits { padding: 24px 0 80px; }
  .docs-benefit-grid { grid-template-columns: 1fr; }
  .site-header.simple .header-cta { display: inline-flex; }
  .docs-list li { grid-template-columns: 28px 1fr 24px; padding: 14px 16px; }
}
