/* ============================================================
   eve — landing experience
   Monochrome Vercel visual language · Geist · hairlines · glow
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #0d0d0d;
  --bg-3: #111214;
  --panel: rgba(255, 255, 255, 0.02);
  --panel-2: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #ededed;
  --fg-hi: #ffffff;
  --muted: #a1a1a1;
  --dim: #6b6b6b;
  --glow: rgba(255, 255, 255, 0.06);
  --accent: #ffffff;
  --danger: #ff6f6f;
  --ok: #7dffa9;
  --font-sans: "Geist", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1140px;
  --nav-h: 60px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* monochrome syntax palette */
  --tk-kw: #f0f0f0;
  --tk-str: #d9d9d9;
  --tk-cm: #525252;
  --tk-pn: #8f8f8f;
  --tk-fn: #ffffff;
  --tk-prop: #bdbdbd;
  --tk-num: #e6e6e6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #fff; color: #000; }

h1, h2, h3, h4 { color: var(--fg-hi); letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; margin-bottom: 18px; }
h3 { font-size: 1.14rem; letter-spacing: -0.01em; }
code, .mono, kbd { font-family: var(--font-mono); font-size: 0.92em; }
p code, li code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.86em;
  white-space: nowrap;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  background: #fff; color: #000; font-weight: 600;
  padding: 10px 18px; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 12px; outline-offset: 2px; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.25), #fff);
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
}

/* ============================ nav ============================ */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-row { display: flex; align-items: center; height: var(--nav-h); gap: 28px; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; min-height: 40px; }
.brand-mark { width: 14px; height: 14px; fill: #fff; align-self: center; }
.brand-name {
  font-weight: 700; font-size: 1.28rem; letter-spacing: -0.045em; color: #fff;
  font-family: var(--font-mono);
}
.brand-tag {
  font-size: 0.74rem; color: var(--dim); letter-spacing: 0.02em;
  border-left: 1px solid var(--line-2); padding-left: 9px;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; padding: 7px 12px; border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: #fff; background: var(--panel-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-2); align-items: center; justify-content: center;
}
.menu-toggle .ic { width: 20px; height: 20px; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-open { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex; flex-direction: column; padding: 10px 24px 22px;
  background: rgba(10, 10, 10, 0.96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  padding: 13px 6px; color: var(--muted); font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: #fff; }

/* ============================ buttons ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 560; font-size: 0.94rem; letter-spacing: -0.01em;
  border-radius: 999px; padding: 11px 22px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .ic { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn-solid { background: #fff; color: #000; }
.btn-solid:hover { box-shadow: 0 0 0 1px #fff, 0 8px 34px rgba(255, 255, 255, 0.22); }
.btn-solid:hover .ic { transform: translate(2px, -2px); }
.btn-outline { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.42); background: var(--panel-2); box-shadow: 0 0 24px rgba(255,255,255,0.07); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: #fff; background: var(--panel-2); }
.btn-danger { border-color: rgba(255, 111, 111, 0.4); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 111, 111, 0.08); }
.btn-sm { padding: 7px 13px; font-size: 0.84rem; min-height: 40px; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ic { width: 16px; height: 16px; fill: currentColor; flex: none; }
.ic[href~="#i-arrow"], .ic use[href~="#i-arrow"] { fill: none; }

/* ============================ chrome (window frame) ============================ */
.chrome {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.chrome-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.chrome-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2); flex: none;
}
.chrome-title {
  margin-left: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chrome-title .ic { width: 13px; height: 13px; }

/* ============================ shared section bits ============================ */
.section { padding: clamp(90px, 12vw, 150px) 0; border-top: 1px solid var(--line); position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  margin-bottom: 22px; background: var(--panel);
}
.kicker .ic { width: 12px; height: 12px; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); max-width: 720px; line-height: 1.66; letter-spacing: -0.005em; }
.lede strong { color: #fff; font-weight: 620; }
.h2-code { font-family: var(--font-mono); font-size: 0.82em; color: #fff; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================ hero ============================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 60px;
  overflow: hidden;
}
#grid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 320px at 30% 30%, rgba(255, 255, 255, 0.055), transparent 65%),
    radial-gradient(520px 420px at 78% 60%, rgba(255, 255, 255, 0.035), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px; align-items: center;
}
.hero-copy .kicker .ic { width: 11px; height: 11px; fill: var(--muted); }
.h1-agent { position: relative; white-space: nowrap; }
.h1-agent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.09em;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  opacity: 0.7;
  animation: underline-drift 5s var(--ease) infinite;
}
@keyframes underline-drift {
  0%, 100% { transform: scaleX(0.55); opacity: 0.35; }
  50% { transform: scaleX(1); opacity: 0.8; }
}
.hero .lede { margin-top: 22px; max-width: 560px; }

.cmd-pill {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.96rem;
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 11px 8px 11px 20px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 18px 50px -18px rgba(255,255,255,0.12);
  transition: border-color 0.2s, box-shadow 0.3s;
  max-width: 100%;
}
.cmd-pill:hover { border-color: rgba(255, 255, 255, 0.38); box-shadow: 0 0 40px -8px rgba(255,255,255,0.25); }
.cmd-pill code { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-dollar { color: var(--dim); user-select: none; }
.cmd-lg { font-size: 1.05rem; padding: 14px 10px 14px 24px; }

.copy-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--muted); flex: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.2s var(--ease);
}
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,0.5); transform: scale(1.06); }
.copy-btn:active { transform: scale(0.94); }
.copy-btn .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.copy-btn .ic-check { display: none; stroke: var(--ok); }
.copy-btn.is-copied { color: var(--ok); border-color: rgba(125, 255, 169, 0.5); }
.copy-btn.is-copied .ic-copy { display: none; }
.copy-btn.is-copied .ic-check { display: block; animation: pop-in 0.3s var(--ease); }
@keyframes pop-in { 0% { transform: scale(0.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.copied-tip {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%) translateY(4px);
  font-size: 0.72rem; font-family: var(--font-sans); color: #000; background: #fff;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.copy-btn.is-copied .copied-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.copy-sm { width: 40px; height: 40px; margin-left: auto; }
.copy-sm .ic { width: 14px; height: 14px; }

.hero-actions { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.hero-facts {
  display: flex; gap: 8px 22px; margin-top: 34px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--dim);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--dim); box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* hero console */
.hero-console { position: relative; }
.console { position: relative; }
.console-live {
  margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px var(--ok);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.console-body {
  padding: 18px 18px 14px; min-height: 300px; max-height: 340px;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.85;
  color: var(--muted); overflow: hidden;
}
.console-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding: 9px 16px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim);
  background: rgba(255, 255, 255, 0.015);
}
.console-path { color: var(--dim); }
#console-status.is-parked { color: var(--danger); }
.c-line { display: block; white-space: pre-wrap; word-break: break-word; animation: line-in 0.3s var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
.c-time { color: #4a4a4a; }
.c-cmd { color: #fff; }
.c-chan { color: #e5e5e5; font-weight: 600; }
.c-tool { color: #d5d5d5; }
.c-ok { color: var(--ok); }
.c-warn { color: var(--danger); }
.c-dim { color: var(--dim); }
.c-caret {
  display: inline-block; width: 8px; height: 1em; vertical-align: text-bottom;
  background: #fff; margin-left: 2px;
  animation: caret-blink 0.9s steps(1) infinite;
}
.typing .c-caret { animation: none; opacity: 1; }
@keyframes caret-blink { 50% { opacity: 0; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 40px; height: 58px; display: flex; justify-content: center; z-index: 2;
}
.scroll-hint::before {
  content: ""; width: 26px; height: 42px; margin-top: 8px;
  border: 1.5px solid var(--line-2); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 16px; left: 50%;
  width: 3px; height: 8px; border-radius: 2px; background: var(--muted);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0% { transform: translate(-50%, 0); opacity: 1; } 70% { transform: translate(-50%, 14px); opacity: 0; } 100% { opacity: 0; } }

/* ============================ directory explorer ============================ */
.explorer {
  margin-top: 44px;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px;
}
.tree-list { padding: 10px; }
.tree-list li { margin-top: 2px; }
.tree-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--muted); padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.2s, transform 0.2s var(--ease);
}
.tree-btn:hover { background: var(--panel-2); color: var(--fg); }
.tree-btn:focus-visible { outline-offset: -1px; }
.tree-btn[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-2);
  color: #fff;
  box-shadow: inset 2px 0 0 #fff, 0 0 26px -8px rgba(255, 255, 255, 0.25);
}
.tree-btn .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; opacity: 0.85; }
.tree-btn .tree-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-btn .tree-sub { color: var(--dim); display: block; font-size: 0.72rem; margin-top: 1px; }
.tree-btn .tree-tag {
  margin-left: auto; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; flex: none;
}
.tree-btn.tree-dir > .tree-name::after { content: "/"; color: var(--dim); }

.viewer { display: flex; flex-direction: column; min-width: 0; }
.viewer-blurb {
  padding: 15px 18px 13px; font-size: 0.93rem; color: var(--fg);
  border-bottom: 1px dashed var(--line);
  min-height: 66px;
}
.viewer-blurb .dim-note { color: var(--dim); }
.viewer-scroll { overflow-x: auto; flex: 1; }
.code {
  padding: 16px 18px 18px;
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.75;
  color: var(--fg); min-width: 100%;
}
.code code { display: block; }
.code-sm { font-size: 0.78rem; padding: 14px 16px; }
.viewer-foot {
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding: 9px 16px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim);
}
.tk-kw { color: var(--tk-kw); font-weight: 600; }
.tk-str { color: var(--tk-str); }
.tk-cm { color: var(--tk-cm); font-style: italic; }
.tk-fn { color: var(--tk-fn); }
.tk-prop { color: var(--tk-prop); }
.tk-num { color: var(--tk-num); }
.tk-pn { color: var(--tk-pn); }
.tk-head { color: #fff; font-weight: 700; }
.code-line { display: block; }
.code-line.is-hl {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.6);
}

/* ============================ primitives map ============================ */
.map-grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; align-items: stretch; }
.map-stage {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(420px 420px at 50% 50%, rgba(255, 255, 255, 0.045), transparent 70%),
    var(--bg-2);
  min-height: 480px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-edge { stroke: var(--line-2); stroke-width: 1.2; fill: none; transition: stroke 0.3s; }
.map-edge.is-active { stroke: rgba(255, 255, 255, 0.75); filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)); }
.map-packet { fill: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9)); }

.map-node {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.85rem; font-weight: 560; color: var(--muted);
  background: rgba(13, 13, 13, 0.9);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 10px 16px;
  transition: color 0.2s, border-color 0.25s, box-shadow 0.3s, transform 0.3s var(--ease);
  z-index: 3;
}
.map-node .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.map-node:hover { color: #fff; transform: translate(-50%, -50%) scale(1.05); }
.map-node[aria-pressed="true"] {
  color: #000; background: #fff; border-color: #fff;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.35);
}
.map-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.13), rgba(13,13,13,0.95) 62%);
  border: 1px solid var(--line-2);
  z-index: 2; text-align: center;
}
.map-core .ic { width: 20px; height: 20px; fill: none; stroke: #fff; margin-bottom: 3px; }
.map-core strong { font-family: var(--font-mono); font-size: 0.95rem; color: #fff; }
.map-core em { font-style: normal; font-size: 0.64rem; color: var(--dim); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.map-core-ring {
  position: absolute; inset: -1px; border-radius: 50%; pointer-events: none;
  animation: core-sonar 3s ease-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
@keyframes core-sonar {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
.prim-detail { display: flex; flex-direction: column; }
.prim-desc { padding: 15px 18px 4px; font-size: 0.93rem; color: var(--fg); min-height: 72px; }
.prim-detail .code { border-top: 1px dashed var(--line); margin-top: 10px; }
.prim-points { padding: 4px 18px 16px; }
.prim-points li {
  position: relative; font-size: 0.82rem; color: var(--muted);
  padding: 4px 0 4px 18px;
}
.prim-points li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--dim);
}

/* ============================ capability cards ============================ */
.cap-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cap-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 24px 70px -34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
}
.cap-wide { grid-column: 1 / -1; }
.cap-head { display: flex; gap: 14px; align-items: flex-start; }
.cap-head > .ic { width: 21px; height: 21px; fill: none; stroke: currentColor; margin-top: 2px; flex: none; }
.cap-head p { color: var(--muted); font-size: 0.9rem; margin-top: 5px; }
.cap-controls { margin-left: auto; display: flex; gap: 8px; flex: none; }

/* ---- durable timeline ---- */
.timeline { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 6px 2px 2px; }
.tl-step {
  flex: 1 0 128px; display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; padding: 0 8px 4px;
}
.tl-node {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--dim);
  background: var(--bg-2); position: relative; z-index: 2;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, background 0.3s;
}
.tl-node .ic { width: 13px; height: 13px; fill: none; stroke: currentColor; }
.tl-label { font-size: 0.72rem; color: var(--muted); margin-top: 9px; font-family: var(--font-mono); }
.tl-status { font-size: 0.62rem; color: var(--dim); margin-top: 2px; font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; min-height: 14px; }
.tl-wire {
  position: absolute; top: 15px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 1.5px;
  background: var(--line-2); overflow: hidden; z-index: 1;
}
.tl-wire::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translateX(-100%);
}
.tl-step:first-child .tl-wire { display: none; }
.tl-step.is-done .tl-node { border-color: rgba(255,255,255,0.85); color: #fff; background: rgba(255,255,255,0.1); }
.tl-step.is-done .tl-wire::after { transform: translateX(100%); transition: transform 0.5s linear; }
.tl-step.is-done .tl-label { color: var(--fg); }
.tl-step.is-running .tl-node {
  border-color: #fff; color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 0 22px rgba(255, 255, 255, 0.45);
  animation: node-pulse 1s ease-in-out infinite;
}
@keyframes node-pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04), 0 0 26px rgba(255, 255, 255, 0.6); } }
.tl-step.is-parked .tl-node { border-style: dashed; border-color: var(--muted); }
.tl-step.is-crashed .tl-node { border-color: var(--danger); color: var(--danger); box-shadow: 0 0 18px rgba(255, 111, 111, 0.5); }
.tl-checkpoint {
  position: absolute; top: -9px; right: calc(50% - 26px);
  width: 12px; height: 12px; z-index: 3;
  color: var(--dim);
}
.tl-checkpoint .ic { width: 12px; height: 12px; fill: none; stroke: currentColor; }
.tl-step.has-checkpoint .tl-checkpoint { color: var(--ok); animation: pop-in 0.35s var(--ease); }
.timeline-log {
  font-size: 0.76rem; color: var(--dim); min-height: 38px;
  border-top: 1px dashed var(--line); padding-top: 10px;
}
.timeline-log .c-ok { animation: flash-ok 0.5s var(--ease); }
@keyframes flash-ok { 0% { text-shadow: 0 0 12px var(--ok); } }

/* ---- sandbox fleet ---- */
.fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vm {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  background: var(--bg-2); position: relative;
  transition: border-color 0.4s, opacity 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
  min-width: 0;
}
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vm-name { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.vm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; transition: background 0.3s, box-shadow 0.3s; }
.vm-bars { margin-top: 9px; display: grid; gap: 5px; }
.vm-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; position: relative; }
.vm-bar i {
  position: absolute; inset: 0; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), #fff);
  transition: width 0.7s var(--ease);
}
.vm-val { font-family: var(--font-mono); font-size: 0.6rem; color: var(--dim); display: flex; justify-content: space-between; }
.vm.is-running { border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 0 18px -6px rgba(255,255,255,0.35); animation: vm-breathe 3s ease-in-out infinite; }
.vm.is-running .vm-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
@keyframes vm-breathe { 50% { box-shadow: 0 0 26px -4px rgba(255,255,255,0.5); } }
.vm.is-booting .vm-dot { background: #fff; animation: live-pulse 0.7s ease-in-out infinite; }
.vm.is-booting { border-style: dashed; }
.vm.is-stopping { opacity: 0.55; }
.vm.is-stopping .vm-dot { background: var(--danger); }
.vm.is-stopped { opacity: 0.32; border-style: dotted; }
.vm.is-stopped .vm-bar i { width: 0 !important; }
.fleet-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 0.64rem; color: var(--dim); }
.fleet-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.st-running { background: var(--ok); }
.st-booting { background: #fff; }
.st-stopping { background: var(--danger); }
.st-stopped { background: #3a3a3a; }

/* ---- channels fan-out ---- */
.channels-stage {
  position: relative; min-height: 380px; border: 1px solid var(--line); border-radius: 12px;
  background: radial-gradient(360px 220px at 32% 50%, rgba(255,255,255,0.05), transparent 70%), var(--bg-2);
  overflow: hidden;
}
#channels-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ch-edge { stroke: var(--line-2); stroke-width: 1.1; fill: none; stroke-dasharray: 4 6; animation: dash-flow 1.4s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -10; } }
.ch-packet { fill: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,0.9)); }
.ch-agent {
  position: absolute; left: 9%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 2; text-align: center;
}
.ch-agent-orb {
  width: 74px; height: 74px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.16), rgba(10,10,10,0.95) 65%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 44px rgba(255, 255, 255, 0.18);
  position: relative;
}
.ch-agent-orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: core-sonar 2.6s ease-out infinite;
}
.ch-agent-orb .ic { width: 22px; height: 22px; fill: none; stroke: #fff; }
.ch-agent span { font-family: var(--font-mono); font-size: 0.74rem; color: #fff; }
.ch-chip {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 540; color: var(--muted);
  background: rgba(13,13,13,0.92); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 8px 13px; z-index: 2; min-height: 40px;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.3s;
  white-space: nowrap;
}
.ch-chip .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.ch-chip:hover { color: #fff; border-color: rgba(255,255,255,0.5); box-shadow: 0 0 22px rgba(255,255,255,0.22); }
.ch-chip.is-lit { color: #fff; border-color: rgba(255,255,255,0.65); box-shadow: 0 0 24px rgba(255,255,255,0.3); }

/* ---- hitl ---- */
.hitl-panel { display: flex; flex-direction: column; gap: 12px; min-height: 330px; font-size: 0.86rem; }
.hitl-msg {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--bg-2); color: var(--muted);
  animation: line-in 0.35s var(--ease);
}
.hitl-msg strong { color: var(--fg); font-weight: 560; }
.hitl-msg.mono { font-family: var(--font-mono); font-size: 0.74rem; }
.hitl-msg code { background: none; border: 0; padding: 0; color: #fff; }
.hitl-gate {
  border: 1px dashed rgba(255, 255, 255, 0.4); border-radius: 12px;
  padding: 14px; display: grid; gap: 11px;
  background: rgba(255, 255, 255, 0.02);
  animation: line-in 0.35s var(--ease), gate-glow 2s ease-in-out infinite;
}
@keyframes gate-glow { 50% { box-shadow: 0 0 26px -6px rgba(255,255,255,0.35); } }
.hitl-gate.is-resolved { animation: none; box-shadow: none; border-style: solid; border-color: var(--line-2); }
.hitl-gate-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.hitl-gate-head .ic { width: 13px; height: 13px; fill: none; stroke: currentColor; }
.hitl-toolcall { font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre; }
.hitl-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.hitl-verdict { font-family: var(--font-mono); font-size: 0.74rem; }
.hitl-verdict.ok { color: var(--ok); }
.hitl-verdict.no { color: var(--danger); }

/* ---- subagents ---- */
.sa-tree { display: flex; flex-direction: column; gap: 0; font-family: var(--font-mono); font-size: 0.8rem; }
.sa-root {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 14px;
  color: #fff; background: var(--bg-2); position: relative;
}
.sa-root .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.sa-children { display: grid; gap: 10px; margin: 18px 0 0 26px; position: relative; }
.sa-children::before {
  content: ""; position: absolute; left: -13px; top: -14px; bottom: 50%;
  border-left: 1px solid var(--line-2); width: 13px;
  border-bottom: 1px solid var(--line-2); border-bottom-left-radius: 8px;
}
.sa-child {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--bg-2); position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sa-child .ic { width: 14px; height: 14px; fill: none; stroke: var(--muted); }
.sa-name { color: var(--fg); }
.sa-role { color: var(--dim); font-size: 0.7rem; }
.sa-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
.sa-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.4), #fff);
  border-radius: 2px; transition: width 0.5s var(--ease);
}
.sa-child.is-active { border-color: rgba(255,255,255,0.4); box-shadow: 0 0 20px -6px rgba(255,255,255,0.3); }
.sa-child.is-done { border-color: rgba(125,255,169,0.35); }
.sa-status { font-size: 0.64rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.sa-child.is-done .sa-status { color: var(--ok); }
.sa-merge {
  margin: 14px 0 0 26px; color: var(--dim); font-size: 0.72rem;
  min-height: 20px; animation: line-in 0.3s var(--ease);
}
.sa-merge.is-on { color: var(--ok); }

/* ---- evals ---- */
.evals { display: grid; gap: 7px; }
.eval-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px;
  font-family: var(--font-mono); font-size: 0.74rem;
  background: var(--bg-2);
  transition: border-color 0.3s;
}
.eval-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eval-chip {
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 5px; padding: 2px 8px; border: 1px solid var(--line);
  color: var(--dim); transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.eval-row.is-running { border-color: rgba(255,255,255,0.5); }
.eval-row.is-running .eval-chip { color: #fff; border-color: rgba(255,255,255,0.5); animation: live-pulse 0.7s infinite; }
.eval-row.is-pass .eval-chip { color: var(--ok); border-color: rgba(125,255,169,0.45); background: rgba(125,255,169,0.06); }
.eval-row.is-fail .eval-chip { color: var(--danger); border-color: rgba(255,111,111,0.45); }
.eval-dur { color: var(--dim); font-size: 0.66rem; }
.evals-score { font-size: 0.74rem; color: var(--dim); min-height: 20px; }
.evals-score strong { color: var(--ok); font-weight: 600; }

/* ============================ nextjs duo ============================ */
.duo { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo .code { min-height: 240px; }
.badge-live {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ok); border: 1px solid rgba(125,255,169,0.4);
  border-radius: 4px; padding: 1px 7px; display: inline-flex; align-items: center; gap: 5px;
}
.badge-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); animation: live-pulse 1.4s infinite; }

/* ============================ stack table ============================ */
.seg-toggle { display: inline-flex; gap: 4px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; margin: 34px 0 16px; background: var(--bg-2); }
.seg-btn {
  border-radius: 999px; padding: 8px 20px; font-size: 0.86rem; font-weight: 560; min-height: 40px;
  color: var(--muted); transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.seg-btn.is-on { background: #fff; color: #000; box-shadow: 0 0 22px rgba(255,255,255,0.28); }
.table-wrap { overflow: hidden; }
.stack-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.stack-table th, .stack-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.stack-table thead th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); background: rgba(255,255,255,0.02); }
.stack-table tbody th { font-weight: 560; color: var(--fg); font-size: 0.88rem; }
.stack-table tbody th small { display: block; font-weight: 400; color: var(--dim); font-size: 0.72rem; margin-top: 1px; }
.stack-table td { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); transition: color 0.3s, background 0.3s; }
.stack-table.swap td { animation: cell-swap 0.45s var(--ease); }
@keyframes cell-swap { 0% { opacity: 0; transform: translateY(5px); } }
.col-flag { color: #fff; }
.table-note { padding: 13px 18px; font-size: 0.8rem; color: var(--dim); border-top: 0; }

/* ============================ cta ============================ */
.cta { text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 380px at 50% 32%, rgba(255, 255, 255, 0.075), transparent 68%);
}
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta .lede { margin: 0 auto; }
.cta .hero-actions { justify-content: center; }

/* ============================ footer ============================ */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 34px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer-brand p { margin-top: 16px; color: var(--dim); font-size: 0.84rem; line-height: 1.7; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.72rem; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; font-weight: 500; }
.footer-col a { color: var(--muted); font-size: 0.86rem; width: fit-content; transition: color 0.15s; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--dim); font-size: 0.74rem;
}

/* ============================ responsive ============================ */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { min-height: auto; padding-bottom: 90px; }
  .map-grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions .btn-label { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .tree { max-height: 248px; overflow-y: auto; }
  .brand-tag { display: none; }
  .fleet { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .cmd-pill { font-size: 0.8rem; padding: 9px 7px 9px 15px; gap: 9px; }
  .cmd-lg { font-size: 0.85rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .fleet { grid-template-columns: repeat(2, 1fr); }
  .tl-step { flex-basis: 108px; }
  .cap-controls { flex-direction: column; align-items: stretch; }
  .cap-head { flex-wrap: wrap; }
  .stack-table tbody th { font-size: 0.78rem; }
  .stack-table td { font-size: 0.72rem; }
  .seg-toggle { margin-top: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .viewer-hint { display: none; }
}

/* screenshot tool mode (does not affect normal browsing) */
html.shot .hero { min-height: auto; padding-bottom: 110px; }
html.shot .reveal { opacity: 1 !important; transform: none !important; }
html.shot .scroll-hint { display: none; }

/* ============================ reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-hint, .map-core-ring, .ch-agent-orb::after { display: none; }
  #console-live-dot { animation: none; }
}
