/* ============================================================
   RECALL — A memory layer for software generation
   Design language: Computational Archaeology
   ============================================================ */

:root {
  /* Color system — light warm */
  --bg: #FAF8F4;
  --surface: #FEFCF8;
  --surface-2: #F4F1EA;
  --border: #E1E3E8;
  --accent: #4E8EAC;     /* primary — steel blue */
  --accent-2: #4D8F6E;   /* secondary — sage green */
  --highlight: #A8802C;  /* antique gold */
  --amber: #C97008;      /* attention — warm amber */
  --amber-dim: rgba(201, 112, 8, 0.07);
  --amber-line: rgba(201, 112, 8, 0.18);
  --text: #111318;
  --muted: #6B7483;

  /* Derived */
  --accent-dim: rgba(78, 142, 172, 0.08);
  --accent-line: rgba(78, 142, 172, 0.18);
  --grid: rgba(0, 0, 0, 0.03);
  --grid-line: rgba(0, 0, 0, 0.05);

  /* Blue panels for nav / footer */
  --panel: #1C5580;
  --panel-line: #2370A4;
  --ink: #070A0F;

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   ANIMATED GRADIENT TEXT — amber × steel blue sweep.
   Use sparingly: only on the single most important word or
   number per section.
   ============================================================ */
@keyframes grad-sweep {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.grad-text {
  background: linear-gradient(90deg, #2E7A9C 0%, #C97008 42%, #2E7A9C 84%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-sweep 7s ease-in-out infinite;
  display: inline-block;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: #E39020; color: #070A0F; }
::-moz-selection { background: #E39020; color: #070A0F; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}



a { color: inherit; text-decoration: none; }
img, canvas { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent-line);
}

.section-head { max-width: 800px; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 54px); margin: 20px 0 20px; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.65; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--panel-line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.38s var(--ease), box-shadow 0.4s var(--ease);
  /* scoped overrides so nav text reads on blue bg */
  --muted: rgba(200,220,240,0.68);
  --text: #EEF4FA;
  --amber: #E8AA30;
}
.nav.scrolled {
  box-shadow: 0 8px 32px rgba(10,26,45,0.55);
}
.nav.nav-hidden {
  transform: translateY(-100%);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 64px; width: auto; display: block; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.3s;
}
.nav-cta:hover { background: var(--amber); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(227,144,32,0.18); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-primary { background: var(--accent); color: var(--bg); transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.3s, border-color 0.3s; }
.btn-primary:hover { background: var(--amber); color: var(--bg); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(227,144,32,0.22); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--amber-line); color: var(--amber); background: var(--surface); transform: translateY(-1px); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 100px;
}
#hero-graph {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  filter: blur(2.5px);
  opacity: 0.42;
}
.hero::after { content: none; } /* body::after handles the global vignette */
.hero .container { z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 30px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 5px rgba(115,168,140,0.4); animation: pulse-dot 4s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.35;} }

.hero h1 {
  font-size: clamp(52px, 8.5vw, 116px);
  line-height: 0.93;
  letter-spacing: -0.055em;
  max-width: 18ch;
  margin-bottom: 40px;
}
.hero h1 .accent { color: #AACFDE; }
.hero h1 .line { display: block; }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 52px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0.7;
}
.hero-scroll .bar { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: scrolldown 2s infinite; }
@keyframes scrolldown { 0%{transform:scaleY(0);transform-origin:top;} 50%{transform:scaleY(1);transform-origin:top;} 51%{transform-origin:bottom;} 100%{transform:scaleY(0);transform-origin:bottom;} }

/* ============================================================
   DEMO — chat interface
   ============================================================ */
.demo {
  padding: 100px 0 80px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

/* Chat box shell — always dark terminal regardless of page theme */
.chat-box {
  --bg: #091A2C;
  --surface: #0D2038;
  --surface-2: #122844;
  --border: #1D3E5E;
  --text: #EFF1F5;
  --muted: #7AAFC6;
  background: #0D2038;
  border: 1px solid #1D3E5E;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
  box-shadow: 0 28px 64px rgba(8,16,28,0.30), 0 8px 24px rgba(8,16,28,0.18);
}
.chat-box.recall { border-color: rgba(127,175,196,0.16); }

/* Header bar */
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 10px; }
.chat-indicator { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.trad-dot { background: var(--muted); }
.recall-dot { background: var(--accent); box-shadow: 0 0 4px rgba(127,175,196,0.45); animation: pulse-dot 3.5s infinite; }
.chat-title { font-family: var(--font-mono); font-size: 13px; color: var(--text); font-weight: 500; }
.chat-badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  padding: 4px 10px; border-radius: 100px; text-transform: uppercase;
}
.trad-badge { background: rgba(245,201,106,0.10); color: var(--highlight); border: 1px solid rgba(245,201,106,0.2); }
.recall-badge { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-line); }

/* Message scroll area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* User message bubble */
.msg-user {
  align-self: flex-end;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px 12px 3px 12px;
  padding: 10px 14px;
  max-width: 82%;
  font-size: 14px;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.msg-user.in { opacity: 1; transform: none; }
.msg-user .msg-meta { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-bottom: 5px; }

/* Thinking block */
.msg-thinking {
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  background: rgba(11,15,20,0.6);
  border: 1px solid var(--border);
  border-left: 2px solid rgba(165,178,195,0.3);
  border-radius: 3px 12px 12px 12px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.chat-box.recall .msg-thinking { border-left-color: var(--accent-line); }
.msg-thinking.in { opacity: 1; transform: none; }
.msg-thinking-header {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px;
}
.thinking-spinner {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--border); border-top-color: var(--muted);
  animation: spin 0.8s linear infinite;
}
.chat-box.recall .thinking-spinner { border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.thinking-spinner.done { border: 1.5px solid var(--accent-2); animation: none; }
.chat-box.trad .thinking-spinner.done { border-color: var(--muted); }

.msg-thinking-text {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  /* no max-height, no overflow — the parent chat-messages scrolls */
}

/* Cursor blinking while typing */
.typing-cursor::after {
  content: "▋";
  color: var(--accent);
  animation: blink 0.65s step-end infinite;
}
.chat-box.trad .typing-cursor::after { color: var(--muted); }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* Result message (from AI) */
.msg-result {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px 12px 12px 12px;
  padding: 12px 14px;
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.msg-result.in { opacity: 1; transform: none; }
.msg-result-label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.12em; }
.msg-result pre {
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.65;
  color: #7ad7ff; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.msg-result pre .kw { color: var(--accent); }
.msg-result pre .fn { color: var(--accent-2); }
.msg-result pre .cm { color: #4a5c6d; }
.msg-result pre .str { color: var(--highlight); }
.msg-result.recall-result { border-color: rgba(127,175,196,0.15); }
.recall-compose-lines { display: flex; flex-direction: column; gap: 7px; }
.compose-line {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  padding: 7px 10px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--border);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.compose-line.in { opacity: 1; transform: none; }
.compose-line .cl-icon { font-size: 14px; flex-shrink: 0; }
.compose-line .cl-id { color: var(--accent); flex: 1; }
.compose-line .cl-ver { color: var(--muted); }
.compose-line .cl-ok { color: var(--accent-2); margin-left: auto; font-size: 11px; }

/* Chat footer */
.chat-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}
.chat-tokens { display: flex; align-items: baseline; gap: 4px; }
.tok-num { font-family: var(--font-head); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--muted); transition: color 0.4s; }
.tok-label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.chat-box.recall .tok-num { color: #B8D8E8; }
.chat-status { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.status-done { color: var(--accent-2) !important; }
.chat-box.trad .status-done { color: #a5b2c3 !important; }

/* Verdict */
.demo-verdict {
  text-align: center;
  margin-top: 36px;
  font-size: 16px;
  color: var(--muted);
}
.demo-verdict b { font-size: 28px; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.03em; }

/* ============================================================
   WHY (three cards)
   ============================================================ */
.why { padding: 130px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
/* thin accent rule along the top edge — shifts to amber on hover */
.why-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0.5;
  transition: opacity 0.4s, background 0.4s;
}
.why-card.result::before { background: linear-gradient(90deg, transparent, rgba(115,168,140,0.4), transparent); }
.why-card:hover { transform: translateY(-2px); border-color: var(--amber-line); box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04); }
.why-card:hover::before { opacity: 1; background: linear-gradient(90deg, transparent, var(--amber-line), transparent); }
.why-card .idx { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.why-card h3 { font-size: 22px; margin: 16px 0 12px; }
.why-card p { color: var(--muted); font-size: 15px; }
.why-card .icon { width: 44px; height: 44px; margin-bottom: 8px; color: var(--accent); }
.why-card.result .icon { color: var(--accent-2); }
.why-connector { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

/* ============================================================
   KNOWLEDGE GRAPH (interactive)
   ============================================================ */
.graph-section { padding: 100px 0; }
.graph-stage {
  position: relative;
  height: 600px;
  background:
    radial-gradient(130% 90% at 50% 4%, rgba(94,231,255,0.06), transparent 58%),
    linear-gradient(180deg, #0D2038 0%, #091828 100%);
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 40px 90px rgba(0,0,0,0.45);
}
/* faint instrument grid inside the stage so the tree reads as a 'viewport' */
.graph-stage::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(94,231,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,231,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 30%, transparent 78%);
  pointer-events: none;
}
#explore-graph { width: 100%; height: 100%; cursor: grab; }
#explore-graph:active { cursor: grabbing; }
.graph-hud {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
}
.graph-hud .k { color: var(--accent); }
.graph-controls {
  position: absolute; bottom: 20px; right: 20px;
  display: flex; gap: 8px;
}
.graph-controls button {
  width: 36px; height: 36px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; cursor: pointer;
  font-size: 16px; font-family: var(--font-mono);
  transition: border-color 0.2s, background 0.2s;
}
.graph-controls button:hover { border-color: var(--amber-line); color: var(--amber); background: var(--surface); }
.graph-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--surface-2);
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  max-width: 260px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 5;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.graph-tooltip.on { opacity: 1; transform: translateY(0); }
.graph-tooltip .gt-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.graph-tooltip .gt-cat { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.graph-tooltip .gt-desc { color: var(--muted); margin-top: 6px; font-size: 12px; line-height: 1.5; }

/* ============================================================
   SURFACES
   ============================================================ */
.surfaces { padding: 100px 0; }
.surfaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.surface-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.surface-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.surface-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.surface-body { display: flex; flex-direction: column; gap: 8px; }
.surface-body h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0; }
.surface-body p { font-size: .875rem; line-height: 1.65; color: var(--muted); margin: 0; }
.surface-link { font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-top: 8px; }
.surfaces-note {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin-top: 40px;
}
@media (max-width: 800px) {
  .surfaces-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LIBRARY (search)
   ============================================================ */
.library {
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* lift the whole search section (and its overflowing dropdown) above
     neighboring sections so results never render behind later content */
  position: relative;
  z-index: 60;
}
.lib-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.lib-heading {
  font-size: clamp(28px, 4vw, 52px);
  margin: 12px 0 32px;
}

.search-box {
  position: relative;
  z-index: 70;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-box:focus-within {
  border-color: var(--amber-line);
  box-shadow: 0 0 0 3px var(--amber-dim), 0 2px 12px rgba(0,0,0,0.08);
}
.search-box svg { color: var(--muted); flex-shrink: 0; }
.search-box input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--text); font-size: 17px; font-family: var(--font-body);
}
.search-box input::placeholder { color: var(--muted); }
.search-kbd {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 5px;
  padding: 2px 8px; background: var(--bg);
}
.lib-meta {
  text-align: center; margin-top: 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.lib-meta b { color: var(--text); }

/* Autocomplete dropdown — absolutely positioned so it doesn't shift layout */
.search-wrap { position: relative; text-align: left; z-index: 70; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.search-dropdown.open {
  max-height: 480px;
  opacity: 1;
}
.search-result-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  gap: 16px;
  text-decoration: none;
}
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover { background: var(--surface-2); }
.search-result-item:hover .sri-name { color: var(--amber); }
.sri-id { font-family: var(--font-mono); font-size: 12px; color: var(--accent); min-width: 200px; }
.sri-name { font-size: 14px; color: var(--text); flex: 1; }
.sri-count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.sri-cat { font-family: var(--font-mono); font-size: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 2px 8px; color: var(--muted); }
.sri-no-results { padding: 22px 20px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: center; }

/* ============================================================
   DETAIL VIEW (modal)
   ============================================================ */
.detail-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 8, 11, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 20px;
}
.detail-overlay.on { display: flex; }
.detail-panel {
  width: 100%; max-width: 920px;
  max-height: 86vh;
  background: #FEFCF8;
  border: 1px solid #E1E3E8;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 280px;
  animation: detail-in 0.4s var(--ease);
}
@keyframes detail-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.detail-main { padding: 30px; overflow-y: auto; }
.detail-side { background: #F4F1EA; border-left: 1px solid #E1E3E8; padding: 26px; overflow-y: auto; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.detail-head .d-id { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.detail-close { background: none; border: 1px solid #E1E3E8; color: #6B7483; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.detail-close:hover { color: var(--amber); border-color: var(--amber-line); }
.detail-panel h3 { font-size: 26px; margin: 6px 0 10px; color: #111318; }
.detail-panel .d-desc { color: #6B7483; margin-bottom: 22px; }
.detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid #E1E3E8; margin-bottom: 22px; }
.detail-tabs button {
  background: none; border: 0; color: #6B7483; font-family: var(--font-mono); font-size: 13px;
  padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.detail-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.detail-tabs button:hover { color: var(--amber); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane pre {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--text);
}
.tab-pane pre .kw { color: var(--accent); }
.tab-pane pre .str { color: var(--accent-2); }
.tab-pane pre .cm { color: #8B9EB0; }
.tab-pane ul { list-style: none; }
.tab-pane ul li { padding: 9px 0; border-bottom: 1px solid #E1E3E8; color: #6B7483; font-size: 14px; display: flex; gap: 10px; }
.tab-pane ul li::before { content: "›"; color: var(--accent); }
.detail-side h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #6B7483; margin-bottom: 14px; }
.lineage { position: relative; padding-left: 4px; }
.lineage .node { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-family: var(--font-mono); font-size: 12px; position: relative; }
.lineage .node .ball { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #E1E3E8; background: #FAF8F4; flex-shrink: 0; }
.lineage .node.current .ball { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 6px rgba(78,142,172,0.3); }
.lineage .node .ver { color: #111318; }
.lineage .node .when { color: #6B7483; margin-left: auto; }
.lineage::before { content: ""; position: absolute; left: 9px; top: 14px; bottom: 14px; width: 1px; background: #E1E3E8; }
.dep-list span { display: block; font-family: var(--font-mono); font-size: 12px; color: #6B7483; padding: 7px 0; }
.dep-list span::before { content: "→ "; color: var(--accent-2); }
.dep-list .none { color: #A0ADB8; }

/* ============================================================
   BENCHMARKS
   ============================================================ */
.bench { padding: 100px 0 0; }
.bench-grid {
  display: flex;
  flex-direction: column;
  margin-bottom: 80px;
}
.bench-stat {
  min-height: 85vh;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 100px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.bench-stat:last-child { border-bottom: none; }
.bench-stat .num {
  font-family: var(--font-head);
  font-size: clamp(68px, 15vw, 170px);
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--accent);
  line-height: 0.85;
}
.bench-stat.green .num { color: var(--accent-2); }
.bench-stat.gold .num { color: var(--highlight); }
/* Amber override — primary attention stat */
.bench-stat.amber-stat .num {
  color: var(--amber);
}
.bench-stat .lbl {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 14px);
  color: var(--muted);
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.bench-stat .stat-desc {
  max-width: 48ch;
  margin-top: 20px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.55;
  font-family: var(--font-body);
  letter-spacing: 0;
}

.bench-chart {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px;
}
.bench-chart h4 { font-size: 18px; margin-bottom: 4px; }
.bench-chart .sub { color: var(--muted); font-size: 13px; font-family: var(--font-mono); margin-bottom: 30px; }
.bar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.bar-row .bar-label { width: 180px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); flex-shrink: 0; }
.bar-track { flex: 1; height: 38px; background: var(--bg); border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.bar-fill { height: 100%; width: 0; border-radius: 7px; transition: width 1.4s var(--ease); display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; font-family: var(--font-mono); font-size: 12px; }
.bar-fill.trad { background: linear-gradient(90deg, #D4D8DE, #C2C8D0); color: #6B7483; }
.bar-fill.recall { background: linear-gradient(90deg, rgba(78,142,172,0.5), var(--accent)); color: #FFFFFF; font-weight: 600; }

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.arch { padding: 130px 0; }
.arch-flow { display: flex; flex-direction: column; gap: 0; max-width: 960px; margin: 0 auto; }
.arch-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 33px 39px;
  display: flex; align-items: center; gap: 27px;
  border-left: 3px solid var(--accent);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.4s;
}
.arch-step.animate-ready { opacity: 0; transform: translateY(24px); }
.arch-step.animate-ready.in { opacity: 1; transform: none; }
.arch-step:hover { border-color: var(--amber-line); border-left-color: var(--accent); }
.arch-step .num { font-family: var(--font-mono); font-size: 17px; color: var(--accent); width: 38px; flex-shrink: 0; }
.arch-step .a-body h4 { font-size: 26px; margin-bottom: 6px; }
.arch-step .a-body p { color: var(--muted); font-size: 18px; line-height: 1.5; }
.arch-step.engine { border-color: var(--accent-line); background: var(--surface); border-left: 3px solid var(--accent); }
.arch-connector { height: 48px; width: 1px; background: var(--border); margin: 0 auto; position: relative; }
.arch-connector::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; }
.arch-connector.in::after { animation: flow-down 1.2s var(--ease) forwards; }
@keyframes flow-down { 0%{ top: 0; opacity: 1; } 100%{ top: 100%; opacity: 0; } }

/* ============================================================
   VISION — loop comparison
   ============================================================ */
.vision { padding: 150px 0; text-align: center; }
.vision-headline { font-size: clamp(30px,4.2vw,54px); margin: 18px 0 52px; letter-spacing: -0.04em; }

/* Section labels */
.shift-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.shift-tag.accent { color: var(--accent); }

/* WITHOUT — horizontal row of plain text steps */
.shift-without { margin-bottom: 14px; }
.dead-chain {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.dc-n {
  font-family: var(--font-head); font-size: 26px; font-weight: 500; color: var(--muted);
  padding: 6px 14px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
}
.dc-n.warn { color: var(--text); }
.dc-n em { font-style: normal; font-family: var(--font-mono); font-size: 13px; color: #ff9d7a; }
.dc-sep { font-family: var(--font-mono); font-size: 20px; color: var(--border); padding: 0 8px; }
.dc-sep.dead { font-size: 14px; color: #ff7a7a; opacity: 0.45; }

/* Divider */
.shift-divider { width: 1px; height: 36px; background: var(--border); margin: 20px auto; }

/* WITH — cycle track */
.shift-with { display: flex; flex-direction: column; align-items: center; }

/* ── Cycle track ── */
.ct-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 44px auto 0;
  height: 80px;
  user-select: none;
}

.ct-track {
  position: absolute;
  top: 7px; left: 0; right: 0;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 1px;
  overflow: hidden;
}

.ct-base {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 1px;
}

.ct-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  opacity: 0.65;
}

.ct-nodes {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ct-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ct-ring {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  position: relative; z-index: 1;
  transition: border-color 0.28s, background 0.28s, transform 0.36s var(--ease), box-shadow 0.3s;
  flex-shrink: 0;
}

.ct-node.active .ct-ring {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.7);
  box-shadow: 0 0 0 6px rgba(78,142,172,0.10), 0 0 16px rgba(78,142,172,0.26);
}

.ct-node.visited .ct-ring {
  border-color: var(--accent);
  background: var(--accent);
}

.ct-lbl {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.28s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  line-height: 1.3;
}

.ct-lbl em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.35s;
  display: block;
}

.ct-node.active .ct-lbl    { color: var(--text); font-weight: 600; }
.ct-node.active .ct-lbl em { opacity: 1; }
.ct-node.visited .ct-lbl   { color: var(--accent); }

.ct-bullet {
  position: absolute;
  top: 7px;
  left: 0%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 4px rgba(78,142,172,0.12),
    0 0 12px rgba(78,142,172,0.38),
    -22px 0 8px rgba(78,142,172,0.10),
    -48px 0 4px rgba(78,142,172,0.04);
  transform: translate(-50%, -50%);
  z-index: 2;
  will-change: left, opacity;
}

.shift-cost { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-top: 24px; }
.shift-cost b { color: var(--accent-2); }

/* Quote */
.vision-quote { max-width: 680px; margin: 52px auto 0; }
.vision-quote p {
  font-size: 19px; font-style: italic; color: var(--muted);
  border-left: 2px solid var(--accent); padding-left: 22px;
  text-align: left; line-height: 1.6;
}

/* ============================================================
   FOOTER / CTA
   ============================================================ */
/* Solid cyan closing band — full-bleed, sits above the fixed background */
.foot-cta {
  padding: 120px 0 110px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--accent);
  color: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.foot-cta h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 18ch; margin: 0 auto 22px; color: var(--ink); }
.foot-cta p { color: rgba(7,10,15,0.74); font-size: 18px; margin-bottom: 36px; }
.foot-cta .eyebrow { color: rgba(7,10,15,0.78); }
.foot-cta .eyebrow::before { background: rgba(7,10,15,0.42); }
.foot-cta .hero-cta { justify-content: center; }
/* invert the buttons so they read on cyan */
.foot-cta .btn-primary { background: var(--ink); color: var(--accent); }
.foot-cta .btn-primary:hover { box-shadow: 0 14px 38px rgba(0,0,0,0.35); }
.foot-cta .btn-ghost { background: transparent; color: var(--ink); border-color: rgba(7,10,15,0.4); }
.foot-cta .btn-ghost:hover { background: rgba(7,10,15,0.08); border-color: var(--amber-line); color: var(--amber); }

/* Blue footer panel */
.footer {
  position: relative;
  z-index: 2;
  background: var(--panel);
  border-top: 1px solid var(--panel-line);
  padding: 56px 0 60px;
  /* scoped overrides so footer text reads on blue bg */
  --muted: rgba(200,220,240,0.58);
  --text: #EEF4FA;
  --amber: #E8AA30;
  --border: rgba(50,100,150,0.30);
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 14px; }
.footer .foot-tag { color: var(--muted); font-size: 14px; max-width: 30ch; }
.footer-links { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h6 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ============================================================
   BENCHMARK CHARTS
   ============================================================ */
.bench-charts-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.bench-compare-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px 32px;
  transition: border-color 0.4s var(--ease);
}
.chart-card:hover { border-color: var(--amber-line); }
.chart-head { margin-bottom: 18px; }
.chart-head h4 { font-size: clamp(17px, 2vw, 22px); margin-bottom: 5px; letter-spacing: -0.02em; }
.chart-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* Chart legend */
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin-bottom: 18px;
}
.cl-item {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.cl-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

/* Model logo badge */
.model-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted);
}
.model-badge .mb-dot { width: 7px; height: 7px; border-radius: 50%; }

/* Grouped column chart */
.gc-body {
  display: flex; align-items: flex-end; gap: 28px;
  height: 230px;
  padding-bottom: 28px;
  position: relative;
}
.gc-body::after {
  content: "";
  position: absolute; bottom: 27px; left: 0; right: 0; height: 1px;
  background: var(--border);
}
.gc-group {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%;
}
.gc-bars {
  display: flex; align-items: flex-end; gap: 8px;
  flex: 1; width: 100%; justify-content: center;
}
.gcb {
  width: 48px; height: 0;
  border-radius: 3px 3px 0 0;
  background: var(--c, #5EE7FF);
  transition: height 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.88;
}
.gcb:hover { opacity: 1; }
.gc-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-align: center; padding-top: 5px; letter-spacing: 0.08em;
}

/* Line chart SVG */
.line-chart-svg {
  width: 100%; height: auto; aspect-ratio: 14 / 5;
  display: block;
  overflow: visible;
}
.lc-grid { stroke: var(--border); stroke-width: 1; }
.lc-axis-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: var(--muted); }
.lc-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lc-dot { stroke-width: 2; }

/* Comparison table card */
.comp-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.comp-table th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.comp-table td {
  padding: 10px 12px; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.comp-table td:first-child { font-weight: 600; color: var(--text); font-size: 13px; }
.comp-table td.accent { color: var(--accent); font-weight: 600; font-family: var(--font-mono); }
.comp-table td.green { color: var(--accent-2); font-weight: 600; font-family: var(--font-mono); }
.comp-table td.amber { color: var(--amber); font-weight: 600; font-family: var(--font-mono); }
.comp-table tr:last-child td { border-bottom: 0; }

/* Model header in comparison */
.comp-models {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.comp-model-head {
  flex: 1; padding: 12px 12px 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  display: flex; flex-direction: column; gap: 4px;
}
.comp-model-head .cmh-name { color: var(--text); }
.comp-model-head .cmh-badge {
  display: inline-block; font-size: 10px; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 4px; text-transform: uppercase;
}
.cmh-badge.gpt { background: rgba(165,178,195,0.1); color: var(--muted); border: 1px solid rgba(165,178,195,0.2); }
.cmh-badge.strata { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-line); }

/* Big stats card */
.big-stats-card { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--border); padding-left: 40px; }
.bench-compare-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.bsc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.bsc-row:last-child { border-bottom: 0; }
.bsc-num {
  font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px);
  font-weight: 600; letter-spacing: -0.04em; color: var(--accent);
  line-height: 1;
}
.bsc-num.green { color: var(--accent-2); }
.bsc-num.gold { color: var(--highlight); }
.bsc-num.amber { color: var(--amber); }
.bsc-label {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-align: right; text-transform: uppercase; letter-spacing: 0.08em;
}

/* Scope badge row below big stats */
.bsc-scope {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.bsc-scope .sc-tag {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 3px 9px;
}

/* ============================================================
   BUFFER ZONE — separates cyan CTA from footer.
   Transparent so the fixed grid + constellation shows through.
   ============================================================ */
.cta-buffer {
  position: relative;
  z-index: 2;
  height: 160px;
  background: transparent;
}

/* ============================================================
   CHART TOOLTIP
   ============================================================ */
#chart-tooltip {
  position: fixed;
  z-index: 999;
  background: var(--surface-2);
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  display: flex;
  gap: 7px;
  align-items: center;
}
#chart-tooltip.on { opacity: 1; }
.ct-model { color: var(--muted); }
.ct-sep { color: var(--border); }
.ct-task { color: var(--text); }
.ct-val { color: #C8DEE9; font-weight: 600; margin-left: 3px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Scroll reveal — content always visible; .in adds a subtle entrance animation */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.animate-ready { opacity: 0; transform: translateY(28px); }
.reveal.animate-ready.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .why-grid, .recall-grid { grid-template-columns: 1fr 1fr; }
  .bench-compare-inner { grid-template-columns: 1fr; }
  .big-stats-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 28px; }
  .chart-card { padding: 32px 28px 28px; }
  .detail-panel { grid-template-columns: 1fr; max-height: 90vh; }
  .detail-side { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .demo-grid { grid-template-columns: 1fr; }
  .chat-box { height: 440px; }
  .why-grid, .recall-grid { grid-template-columns: 1fr; }
  .vision-compare { grid-template-columns: 1fr; gap: 30px; }
  .vision-divider { transform: rotate(90deg); }
  .bar-row .bar-label { width: 110px; font-size: 11px; }
  .container { padding: 0 20px; }
  .bench-stat { min-height: 70vh; }
  .bench-stat .num { font-size: clamp(80px, 22vw, 160px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   BETA PILL
   ============================================================ */
.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 144, 32, 0.10);
  border: 1px solid rgba(227, 144, 32, 0.28);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.beta-pill-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-amber 2s ease-in-out infinite;
}
@keyframes pulse-amber {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

/* ============================================================
   APPLY SECTION
   ============================================================ */
.apply {
  padding: 120px 0 140px;
  background: var(--bg);
  position: relative;
}
.apply::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border));
}
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 52px;
}
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-field .req { color: var(--amber); }
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(127, 175, 196, 0.12);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(142, 158, 175, 0.4); }
.form-field textarea { resize: vertical; min-height: 88px; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E9EAF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-field select option { background: var(--surface-2); }
.apply-submit { margin-top: 6px; align-self: flex-start; }
.apply-note {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.apply-success {
  text-align: center;
  padding: 72px 0;
}
.success-icon {
  width: 56px; height: 56px;
  background: rgba(115, 168, 140, 0.10);
  border: 1px solid rgba(115, 168, 140, 0.28);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  font-size: 22px;
  margin: 0 auto 24px;
}
.apply-success h3 { font-size: 26px; font-weight: 600; margin: 0 0 12px; }
.apply-success p { color: var(--muted); max-width: 380px; margin: 0 auto; line-height: 1.6; }

@media (max-width: 640px) {
  .apply-form { padding: 28px 24px; }
  .form-row.two-col { grid-template-columns: 1fr; }
}
