@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #08080a;
  --bg-1: #0c0c0e;
  --bg-2: #111114;
  --bg-3: #17171b;
  --line: #1b1b20;
  --line-2: #26262c;
  --line-3: #34343c;
  --fg: #ededf0;
  --fg-2: #b4b4bc;
  --fg-3: #85858f;
  --fg-4: #5c5c66;
  --accent: #ff6b2c;
  --accent-dim: rgba(255, 107, 44, 0.14);
  --ok: #4ade80;
  --blue: #8fb0ff;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1216px;
  --gutter: 24px;
  --nav-h: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
code, pre, kbd { font-family: var(--mono); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* ───────────────────────── frame / grid */

.frame {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.section {
  position: relative;
  border-top: 1px solid var(--line);
}
/* registration marks at section corners */
.section::before,
.section::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  background:
    linear-gradient(var(--line-3), var(--line-3)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) center / 100% 1px no-repeat;
  z-index: 2;
}
.section::before { left: -5px; }
.section::after { right: -5px; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.label b { color: var(--fg); font-weight: 500; }
.label .num { color: var(--accent); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.section-head .label {
  grid-column: span 3;
  padding: 20px var(--gutter);
  border-right: 1px solid var(--line);
}
.section-head .label + .label { grid-column: span 9; border-right: 0; text-align: right; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; }
.h-display {
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.h-section {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.038em;
}
.h-card { font-size: 17px; line-height: 1.35; letter-spacing: -0.012em; }
.dim { color: var(--fg-3); }
.lede { color: var(--fg-2); font-size: 18px; line-height: 1.55; max-width: 34em; }
p { margin: 0; }

/* ───────────────────────── nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .frame {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  border-color: transparent;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.brand svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a, .nav-right a {
  font-size: 13.5px;
  color: var(--fg-3);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-right a:hover, .nav-links a[aria-current] { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 2px 9px;
}
.md-link { font-family: var(--mono); font-size: 12.5px !important; }
.md-link::before { content: "↓ "; color: var(--accent); }

/* ───────────────────────── buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line-3);
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--fg-4); background: var(--bg-2); }
.btn-primary { background: var(--fg); color: #08080a; border-color: var(--fg); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 8px 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-2);
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
.cmd .prompt { color: var(--fg-4); }
.copy {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  color: var(--fg-4);
  transition: color 0.15s, background 0.15s;
}
.copy:hover { color: var(--fg); background: var(--bg-3); }
.copy svg { width: 14px; height: 14px; }
.copy[data-copied] { color: var(--ok); }

/* ───────────────────────── hero */

.hero { border-top: 0; }
.hero::before, .hero::after { display: none; }
.hero-grid { min-height: calc(100vh - var(--nav-h) - 128px); min-height: 640px; }
.hero-copy {
  grid-column: 1 / span 7;
  padding: 72px var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  position: relative;
}
.hero-copy .h-display { margin-top: 28px; }
.hero-copy .h-display em { font-style: normal; color: var(--fg-3); }
.hero-copy .lede { margin-top: 28px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot { margin-top: auto; padding-top: 56px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-foot .label { display: inline-flex; gap: 8px; align-items: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12); }
.dot.accent { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.hero-visual {
  grid-column: 8 / span 5;
  position: relative;
  padding: 72px var(--gutter) 56px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 0) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  overflow: hidden;
}

/* live trace panel */
.trace {
  position: relative;
  background: rgba(12, 12, 14, 0.92);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 80px -24px rgba(0, 0, 0, 0.8);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  overflow: hidden;
}
.trace-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 11px;
}
.trace-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); }
.trace-bar .live .dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); opacity: 0.6; } }

.record { padding: 16px 14px 14px; border-bottom: 1px solid var(--line); }
.record-title { display: flex; justify-content: space-between; color: var(--fg-3); font-size: 11px; margin-bottom: 12px; }
.record-title b { color: var(--fg); font-weight: 500; }
.kv { display: grid; grid-template-columns: 76px 1fr; row-gap: 6px; }
.kv dt { color: var(--fg-4); }
.kv dd { margin: 0; color: var(--fg); display: flex; align-items: center; gap: 8px; min-width: 0; }
.kv dd .v { padding: 0 4px; margin-left: -4px; border-radius: 3px; transition: background 0.6s var(--ease), color 0.6s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv dd .v.flash { background: var(--accent-dim); color: #ffd7c5; transition: none; }
.kv dd .by { color: var(--fg-4); font-size: 10.5px; opacity: 0; transition: opacity 0.4s; white-space: nowrap; }
.kv dd .by.on { opacity: 1; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--fg-3); display: inline-block; }
.status-chip[data-s="doing"] i { border-color: #f5c451; background: conic-gradient(#f5c451 0 50%, transparent 0); }
.status-chip[data-s="review"] i { border-color: var(--blue); background: conic-gradient(var(--blue) 0 75%, transparent 0); }
.status-chip[data-s="done"] i { border-color: var(--ok); background: var(--ok); }

.body-doc { padding: 12px 14px 14px; border-bottom: 1px solid var(--line); min-height: 96px; color: var(--fg-2); font-family: var(--sans); font-size: 13px; line-height: 22px; }
.body-doc .label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 10px; }
.caret { display: inline-block; position: relative; width: 1.5px; height: 15px; vertical-align: -3px; background: var(--accent); margin: 0 1px; }
.caret.human { background: var(--blue); }
.caret.typing { animation: none; }
.caret:not(.typing) { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.peers { display: inline-flex; gap: 12px; text-transform: none; letter-spacing: 0.02em; }
.peer { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-4); transition: color 0.3s; }
.peer::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
.peer.a { color: rgba(255, 107, 44, 0.55); }
.peer.h { color: rgba(143, 176, 255, 0.55); }
.peer.a.typing { color: var(--accent); }
.peer.h.typing { color: var(--blue); }
.log { height: 162px; overflow: hidden; position: relative; }
.log-head, .log-row { display: grid; grid-template-columns: 52px 118px 1fr 40px; padding: 0 14px; gap: 8px; }
.log-head { height: 28px; align-items: center; color: var(--fg-4); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.log-row { height: 26px; align-items: center; color: var(--fg-2); white-space: nowrap; animation: row-in 0.5s var(--ease); }
.log-row > * { overflow: hidden; text-overflow: ellipsis; }
.log-row .seq { color: var(--fg-4); }
.log-row .who.agent { color: var(--accent); }
.log-row .who.human { color: var(--blue); }
.log-row .ms { color: var(--fg-4); text-align: right; }
.log-row .op b { color: var(--fg); font-weight: 400; }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); background: rgba(255,255,255,0.03); } }
.log::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(transparent, rgba(12,12,14,0.95)); pointer-events: none; }

.trace-foot { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--fg-4); font-size: 10.5px; }
.trace-foot b { color: var(--fg-2); font-weight: 400; }

/* metrics strip */
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 28px var(--gutter) 30px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric .v { font-size: 36px; line-height: 1; letter-spacing: -0.04em; font-weight: 500; font-feature-settings: "tnum"; }
.metric .v small { font-size: 15px; color: var(--fg-3); letter-spacing: -0.01em; margin-left: 4px; font-weight: 400; }
.metric p { margin-top: 12px; color: var(--fg-3); font-size: 13.5px; line-height: 1.5; max-width: 22em; }

/* ───────────────────────── prose blocks */

.intro { padding: 88px var(--gutter) 72px; }
.intro .h-section { grid-column: 1 / span 7; }
.intro .side { grid-column: 9 / span 4; align-self: end; color: var(--fg-2); }
.intro .side p + p { margin-top: 16px; }

.cells { border-top: 1px solid var(--line); }
.cell {
  position: relative;
  padding: 28px var(--gutter) 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}
.cell:hover { background: var(--bg-1); }
.cell .label { margin-bottom: 40px; }
.cell .h-card { margin-bottom: 10px; }
.cell p { color: var(--fg-3); font-size: 14.5px; line-height: 1.55; }
.cell .mini { margin-top: auto; padding-top: 28px; font-family: var(--mono); font-size: 11.5px; line-height: 18px; color: var(--fg-4); white-space: pre; overflow: hidden; }
.cell .mini .x { color: #ff5a5a; }
.cell .mini .a { color: var(--accent); }
.cell .mini .h { color: var(--blue); }
.cells-4 > .cell { grid-column: span 3; }
.cells-4 > .cell:nth-child(4n) { border-right: 0; }
.cells-3 > .cell { grid-column: span 4; }
.cells-3 > .cell:nth-child(3n) { border-right: 0; }
.cells-2 > .cell { grid-column: span 6; }
.cells-2 > .cell:nth-child(2n) { border-right: 0; }

.statement {
  padding: 64px var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: baseline;
}
.statement .label { grid-column: span 3; }
.statement p { grid-column: 4 / span 9; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.022em; color: var(--fg-3); }
.statement p b { color: var(--fg); font-weight: 500; }

/* ───────────────────────── architecture diagram */

.arch { padding: 56px var(--gutter) 24px; }
.arch-row {
  display: grid;
  grid-template-columns: 1fr 76px 1fr 76px 1fr 76px 1fr;
  align-items: stretch;
}
.node {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-1);
  padding: 16px 16px 18px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s;
}
.node.hot { border-color: var(--line-3); }
.node .label { font-size: 10px; }
.node h4 { margin-top: 14px; font-size: 15px; letter-spacing: -0.01em; }
.node ul { list-style: none; margin: 12px 0 0; padding: 0; font-family: var(--mono); font-size: 11.5px; line-height: 20px; color: var(--fg-3); }
.node ul li::before { content: "– "; color: var(--fg-4); }
.wire { position: relative; align-self: center; height: 1px; background: var(--line-3); }
.wire::before, .wire::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(255, 107, 44, 0.45);
  opacity: 0;
}
.wire::before { animation: packet-r 3.2s var(--ease) infinite; }
.wire::after { background: var(--ok); box-shadow: 0 0 12px 2px rgba(74, 222, 128, 0.35); animation: packet-l 3.2s var(--ease) infinite; animation-delay: 1.6s; }
.wire:nth-of-type(4)::before { animation-delay: 0.35s; }
.wire:nth-of-type(4)::after { animation-delay: 1.95s; }
.wire:nth-of-type(6)::before { animation-delay: 0.7s; }
.wire:nth-of-type(6)::after { animation-delay: 2.3s; }
.wire span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 9.5px; color: var(--fg-4); white-space: nowrap; letter-spacing: 0.04em; }
@keyframes packet-r { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 42% { left: calc(100% - 5px); opacity: 1; } 50%, 100% { left: calc(100% - 5px); opacity: 0; } }
@keyframes packet-l { 0% { left: calc(100% - 5px); opacity: 0; } 8% { opacity: 1; } 42% { left: 0; opacity: 1; } 50%, 100% { left: 0; opacity: 0; } }

.steps { counter-reset: step; }
.step { grid-column: span 12; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--line); padding: 20px var(--gutter); align-items: baseline; transition: background 0.3s; }
.step:hover { background: var(--bg-1); }
.step .label { grid-column: span 1; }
.step h4 { grid-column: span 3; font-size: 15px; }
.step p { grid-column: span 5; color: var(--fg-3); font-size: 14.5px; }
.step p code { font-size: 0.88em; color: var(--fg-2); }
.step > code { grid-column: span 3; text-align: right; font-size: 11.5px; color: var(--fg-4); }

/* ───────────────────────── code */

.code-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.code-side { grid-column: span 4; padding: 40px var(--gutter); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.code-side .h-section { font-size: clamp(28px, 3vw, 40px); margin-bottom: 20px; }
.code-side > p { color: var(--fg-3); margin-bottom: 28px; font-size: 15px; }
.tab {
  display: grid;
  grid-template-columns: 28px 1fr;
  text-align: left;
  padding: 12px 12px;
  margin: 0 -12px;
  border-radius: 6px;
  color: var(--fg-3);
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--fg-2); background: var(--bg-1); }
.tab[aria-selected="true"] { color: var(--fg); background: var(--bg-2); }
.tab .label { color: inherit; opacity: 0.6; padding-top: 3px; }
.tab[aria-selected="true"] .label { color: var(--accent); opacity: 1; }
.tab strong { font-weight: 500; font-size: 15px; }
.tab small { display: block; grid-column: 2; font-size: 13px; color: var(--fg-4); line-height: 1.45; margin-top: 2px; }
.code-main { grid-column: span 8; min-width: 0; position: relative; background: var(--bg-1); }
.panel { display: none; }
.panel.on { display: block; animation: fade 0.35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.file-bar { display: flex; align-items: center; height: 40px; padding: 0 12px 0 var(--gutter); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.file-bar .copy { margin-left: auto; }

pre.shiki {
  margin: 0;
  padding: 20px var(--gutter) 24px;
  overflow-x: auto;
  background: transparent !important;
  font-size: 13px;
  line-height: 21px;
  tab-size: 2;
}
pre.shiki code { counter-reset: line; }
.code-main pre.shiki .line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2.2em;
  margin-right: 1.4em;
  text-align: right;
  color: #34343c;
}

/* ───────────────────────── comparison */

.diffs .cell { min-height: 236px; }
.diffs .cell .label { margin-bottom: 56px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 16px var(--gutter) 16px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
table.compare th:last-child, table.compare td:last-child { border-right: 0; }
table.compare thead th { font-weight: 500; font-size: 14px; padding-top: 22px; padding-bottom: 18px; }
table.compare thead th small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--fg-4); font-weight: 400; margin-top: 4px; letter-spacing: 0.02em; }
table.compare tbody th { width: 17%; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); padding-left: var(--gutter); }
table.compare thead th:first-child { padding-left: var(--gutter); }
table.compare td { color: var(--fg-3); width: 20.75%; }
table.compare .us { color: var(--fg); background: linear-gradient(180deg, rgba(255, 107, 44, 0.045), rgba(255, 107, 44, 0.015)); }
table.compare thead .us { box-shadow: inset 0 2px 0 var(--accent); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }

/* ───────────────────────── spec sheet */

.spec { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.spec-intro { grid-column: span 4; padding: 40px var(--gutter); border-right: 1px solid var(--line); }
.spec-intro p { color: var(--fg-3); margin-top: 16px; font-size: 15px; }
.spec dl { grid-column: span 8; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.spec dl > div { padding: 18px var(--gutter); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.spec dl > div:nth-child(2n) { border-right: 0; }
.spec dl > div:nth-last-child(-n + 2) { border-bottom: 0; }
.spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-4); }
.spec dd { margin: 6px 0 0; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.spec dd code { font-size: 12.5px; color: var(--fg); }

/* ───────────────────────── limits */

.limits li { list-style: none; }
.limits { margin: 0; padding: 0; }

/* ───────────────────────── agent cta */

.cta { padding: 96px var(--gutter) 96px; text-align: left; }
.cta .h-display { grid-column: 1 / span 8; font-size: clamp(40px, 5.4vw, 72px); }
.cta-box { grid-column: 1 / span 8; margin-top: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-1); overflow: hidden; }
.cta-box .row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
.cta-box .row:last-child { border-bottom: 0; }
.cta-box .row .prompt { color: var(--accent); }
.cta-box .row .copy { margin-left: auto; }
.cta-box .row .c { color: var(--fg-4); }
.cta-side { grid-column: 10 / span 3; align-self: end; color: var(--fg-3); font-size: 14.5px; }
.cta-side ul { margin: 0; padding: 0; list-style: none; }
.cta-side li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cta-side li a { color: var(--fg); font-family: var(--mono); font-size: 13px; }
.cta-side li a:hover { color: var(--accent); }

/* ───────────────────────── footer */

.footer .grid > div { padding: 28px var(--gutter) 40px; border-right: 1px solid var(--line); grid-column: span 3; }
.footer .grid > div:last-child { border-right: 0; }
.footer .label { margin-bottom: 16px; display: block; }
.footer a { display: block; color: var(--fg-3); font-size: 14px; line-height: 28px; }
.footer a:hover { color: var(--fg); }
.footer p { color: var(--fg-4); font-size: 13px; }
.colophon { display: flex; justify-content: space-between; padding: 16px var(--gutter); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--fg-4); }

/* ───────────────────────── reveal */

.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ───────────────────────── docs */

.docs { display: grid; grid-template-columns: 248px minmax(0, 1fr) 232px; max-width: var(--max); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: calc(100vh - var(--nav-h)); }
.docs-nav { position: sticky; top: var(--nav-h); align-self: start; height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 28px 16px 40px var(--gutter); border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.docs-nav .label { display: block; margin: 0 0 12px; }
.docs-nav ol { list-style: none; margin: 0; padding: 0; }
.docs-nav > ol > li { margin: 0; }
.docs-nav a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 5px; font-size: 13.5px; line-height: 1.4; color: var(--fg-3); transition: color 0.15s, background 0.15s; }
.docs-nav a:hover { color: var(--fg); }
.docs-nav a.on { color: var(--fg); background: var(--bg-2); }
.docs-nav ol ol { display: none; margin: 2px 0 6px 2px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.docs-nav li.open > ol { display: block; }
.docs-nav ol ol a { font-size: 12.5px; padding: 3px 10px; }
.docs-main { min-width: 0; padding: 48px 56px 120px; }
.docs-rail { position: sticky; top: var(--nav-h); align-self: start; padding: 28px var(--gutter) 28px 20px; border-left: 1px solid var(--line); height: calc(100vh - var(--nav-h)); }
.agent-card { border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-1); padding: 16px; font-size: 13px; color: var(--fg-3); }
.agent-card .label { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; color: var(--fg-2); }
.agent-card code { display: block; margin-top: 8px; font-size: 11px; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; white-space: nowrap; overflow-x: auto; }
.agent-card .btn { margin-top: 14px; width: 100%; justify-content: center; height: 34px; font-size: 13px; }
.rail-meta { margin-top: 24px; font-family: var(--mono); font-size: 11px; color: var(--fg-4); line-height: 20px; }

.prose { max-width: 740px; }
.prose > * + * { margin-top: 16px; }
.prose h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 8px; }
.prose h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); position: relative; }
.prose h2 .n { position: absolute; top: 8px; left: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent); font-weight: 400; }
.prose h3 { font-size: 18px; letter-spacing: -0.015em; margin-top: 44px; }
.prose h4 { font-size: 15px; margin-top: 28px; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 14px; }
.prose p, .prose li { color: var(--fg-2); font-size: 15.5px; line-height: 1.7; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose .anchor { text-decoration: none; color: inherit; }
.prose .anchor:hover::after { content: " #"; color: var(--fg-4); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--fg-4); }
.prose :not(pre) > code { font-size: 0.86em; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.prose td :not(pre) > code { white-space: normal; }
.prose blockquote { margin: 24px 0; padding: 14px 18px; border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--bg-1); }
.prose blockquote p { font-size: 14.5px; color: var(--fg-2); }
.prose .codeblock { position: relative; margin-top: 20px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-1); overflow: hidden; }
.prose .codeblock .lang { position: absolute; top: 9px; right: 42px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-4); }
.prose .codeblock .copy { position: absolute; top: 6px; right: 8px; opacity: 0; transition: opacity 0.15s; }
.prose .codeblock:hover .copy { opacity: 1; }
.prose .codeblock pre.shiki { padding: 16px 18px; font-size: 12.8px; line-height: 20px; }
.prose .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin: 20px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--fg-2); line-height: 1.55; }
.prose th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-4); font-weight: 400; background: var(--bg-1); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { white-space: nowrap; }
.prose td:first-child code { white-space: nowrap; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose a.btn { text-decoration: none; }
.doc-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 36px; }
.doc-meta .btn { height: 32px; font-size: 12.5px; padding: 0 12px; }

/* ───────────────────────── responsive */

@media (max-width: 1100px) {
  .docs { grid-template-columns: 228px minmax(0, 1fr); }
  .docs-rail { display: none; }
  .docs-main { padding: 40px 40px 100px; }
}
@media (max-width: 980px) {
  .hero-copy { grid-column: 1 / -1; border-right: 0; padding-top: 56px; }
  .hero-visual { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 40px; -webkit-mask-image: none; }
  .hero-grid { min-height: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .intro .h-section, .intro .side { grid-column: 1 / -1; }
  .intro .side { margin-top: 28px; }
  .cells-4 > .cell { grid-column: span 6; }
  .cells-4 > .cell:nth-child(2n) { border-right: 0; }
  .cells-3 > .cell { grid-column: span 6; border-right: 1px solid var(--line); }
  .cells-3 > .cell:nth-child(2n) { border-right: 0; }
  .arch-row { grid-template-columns: 1fr; gap: 0; }
  .wire { width: 1px; height: 36px; justify-self: center; }
  .wire::before, .wire::after { display: none; }
  .wire span { top: 50%; left: 14px; transform: translateY(-50%); }
  .step .label { grid-column: span 2; }
  .step h4 { grid-column: span 10; }
  .step p { grid-column: 3 / span 10; margin-top: 6px; }
  .step > code { display: none; }
  .code-side, .code-main { grid-column: 1 / -1; border-right: 0; }
  .code-side { border-bottom: 1px solid var(--line); }
  .spec-intro, .spec dl { grid-column: 1 / -1; border-right: 0; }
  .spec-intro { border-bottom: 1px solid var(--line); }
  .cta .h-display, .cta-box, .cta-side { grid-column: 1 / -1; }
  .cta-side { margin-top: 40px; }
  .statement .label, .statement p { grid-column: 1 / -1; }
  .statement p { margin-top: 16px; }
  .footer .grid > div { grid-column: span 6; border-bottom: 1px solid var(--line); }
  .footer .grid > div:nth-child(2n) { border-right: 0; }
  .nav-links a:not(:first-child) { display: none; }
  .nav-links { margin-left: 0; }
}
@media (max-width: 760px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { display: none; }
  .docs-main { padding: 32px var(--gutter) 80px; }
  .prose h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .section-head .label { grid-column: 1 / -1; border-right: 0; }
  .section-head .label + .label { display: none; }
  .cells-4 > .cell, .cells-3 > .cell, .cells-2 > .cell { grid-column: 1 / -1; border-right: 0; min-height: 0; }
  .cell .label { margin-bottom: 24px; }
  .metric .v { font-size: 30px; }
  .spec dl { grid-template-columns: 1fr; }
  .spec dl > div { border-right: 0; }
  .spec dl > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .footer .grid > div { grid-column: 1 / -1; border-right: 0; }
  .nav-right .pill, .nav-right .gh { display: none; }
  .hero-actions .cmd { width: 100%; }
  .log-head, .log-row { grid-template-columns: 44px 104px 1fr 34px; }
  .colophon { flex-direction: column; gap: 4px; }
}
