/* Foundry marketing site: mission-control skin. Dark only, every colour explicit.
   One signature accent (ember), cool neutrals. Static, no build step.
   Rule: the page is complete at rest. Motion only decorates; no content waits on JS or an observer. */

:root {
  color-scheme: dark;
  --bg: #06080b;
  --bg-2: #0a0e13;
  --panel: #0d1218;
  --panel-2: #111820;
  --line: #1c2631;
  --line-2: #28384a;
  --text: #e9eef3;
  --muted: #9aa8b6;          /* 7.9:1 on --bg */
  --faint: #7b8b9c;          /* small labels: 4.9:1 or better on every panel */
  --ice: #9fc3d9;            /* cool neutral for structure lines, not an accent */
  --accent: #ff7a2f;         /* ember. 7.4:1 on --bg */
  --accent-hi: #ffa266;
  --accent-ink: #160a03;
  --accent-a12: rgba(255, 122, 47, .12);
  --accent-a25: rgba(255, 122, 47, .25);
  --ok: #ff7a2f;
  --stale: #b8c2cc;
  --radius: 12px;
  --display: "Unbounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --mx: 50vw; --my: -400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1rem/1.65 var(--font); overflow-x: hidden; overflow-wrap: break-word;
  background-image:
    linear-gradient(rgba(159, 195, 217, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 195, 217, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}
h1, h2, h3 { margin: 0 0 .55em; line-height: 1.15; font-weight: 400; color: var(--text); }
h1, h2 { font-family: var(--display); letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 1rem + 4vw, 4rem); font-weight: 400; line-height: 1.06; }
h2 { font-size: clamp(1.35rem, 1rem + 1.5vw, 2.1rem); }
.h2-sm { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }
h3 { font-family: var(--font); font-weight: 650; font-size: 1.05rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
code, kbd, pre { font-family: var(--mono); font-size: .92em; }
:not(pre) > code { color: var(--accent-hi); }
strong { color: var(--text); font-weight: 650; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1320px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 6px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.copy-ph { text-decoration: underline dashed var(--faint); text-underline-offset: 4px; }

/* cursor glow (fine pointers, motion allowed) */
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 122, 47, .06), transparent 60%);
}
main, .site-footer { position: relative; z-index: 1; }

/* ----------------------------------------------------------------- tags */
.tag {
  display: inline-block; font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
  vertical-align: middle;
}
.tag-planned { border-style: dashed; border-color: var(--faint); }
.tag-demo { border-color: var(--accent-a25); color: var(--accent-hi); }
.kbd {
  font: 500 .72rem/1 var(--mono); padding: 4px 6px; border-radius: 4px; color: var(--text);
  border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--panel-2);
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(6, 8, 11, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 500 1rem var(--display); letter-spacing: .02em; }
.brand-mark { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(255, 122, 47, .45)); }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: var(--accent-ink); }
.site-header nav { margin-left: auto; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.nav-list a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav-list a:hover { color: var(--text); }
.cmdk-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 36px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 4px 6px 4px 12px; font: 500 .78rem var(--mono); letter-spacing: .04em;
}
.cmdk-btn:hover { border-color: var(--accent); }
@media (max-width: 820px) { .site-header nav { display: none; } .cmdk-btn { margin-left: auto; } }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: min(92vh, 860px); display: flex; align-items: center; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 8, 11, .92) 0%, rgba(6, 8, 11, .8) 45%, rgba(6, 8, 11, 0) 72%);
}
.hero-inner { position: relative; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 8vw, 100px); pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.hero h1 { max-width: 15ch; text-shadow: 0 0 40px rgba(6, 8, 11, .8); }
.lede { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: #c5d0da; max-width: 54ch; }
.stage-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.4rem;
  font: 500 .78rem var(--mono); letter-spacing: .06em; color: var(--accent-hi);
  border: 1px solid var(--accent-a25); border-radius: 999px; padding: 7px 14px; background: rgba(255, 122, 47, .07);
}
.dot, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hint {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer;
  background: transparent; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted);
  padding: 8px 12px; font: .82rem var(--mono); text-align: left;
}
.hint:hover { border-color: var(--accent); color: var(--text); }
.field-caption { display: flex; gap: 10px; align-items: baseline; margin: 26px 0 0; max-width: 46ch; font-size: .85rem; color: var(--muted); }
.field-caption .live-dot { transform: translateY(-1px); }
.field-label { font: 500 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hi); }
.field-hud { position: absolute; inset: auto 0 18px 0; display: flex; justify-content: flex-end; gap: 28px; padding: 0 28px; pointer-events: none;
  font: 500 .66rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.field-hud span::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--faint); margin-right: 8px; vertical-align: middle; }
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero-scrim { background: linear-gradient(180deg, rgba(6, 8, 11, .82) 0%, rgba(6, 8, 11, .82) 70%, rgba(6, 8, 11, .2) 100%); }
  .hero-inner { padding-bottom: 250px; }
  .field-hud { display: none; }
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 10px 22px; border-radius: 8px; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, box-shadow .2s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px rgba(255, 162, 102, .4) inset, 0 8px 30px -10px rgba(255, 122, 47, .7); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-primary:disabled { background: var(--panel-2); color: var(--faint); box-shadow: none; border-color: var(--line-2); cursor: not-allowed; }
.btn-ghost { background: rgba(13, 18, 24, .7); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .82rem; }
.btn-placeholder { display: inline-flex; flex-wrap: wrap; gap: 6px; border: 1px dashed var(--faint); color: var(--text); background: transparent; cursor: default; text-align: center; }

/* ------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1rem;
  font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--accent-hi);
}
.kicker::before {
  content: ""; width: 28px; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent);
  transform-origin: left; flex: none;
}
.motion .kicker[data-reveal]:not(.is-in)::before { transform: scaleX(.15); }
.motion .kicker[data-reveal]::before { transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.section-lede { color: var(--muted); max-width: 62ch; margin-bottom: 2rem; }
.big { font-size: 1.06rem; }
.footnote { color: var(--muted); font-size: .85rem; margin-top: 1.4rem; font-family: var(--mono); }

/* --------------------------------------------------------- the problem */
.problem-list { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; display: grid; gap: 10px; }
.problem-list li { background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 8px; padding: 14px 18px; color: #c5d0da; }

/* -------------------------------------------------------------- pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pillar {
  position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 18px; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.pillar > * { order: 1; }
.pillar > p { color: var(--muted); font-size: .95rem; margin-bottom: .9em; }
.pillar-toggle { order: 2; }
.example-wrap { order: 3; display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.example-wrap > .example { overflow: hidden; min-height: 0; }
.pillar .example { margin: 0; padding-top: .9em; border-top: 1px dashed var(--line-2); font-size: .9rem; color: #c5d0da; }
.example-label { display: block; font: 500 .66rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-hi); margin-bottom: .4em; }
.icon { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 122, 47, .5)); }
.pillar-toggle {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted); border-radius: 6px; min-height: 32px;
  padding: 4px 10px; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.pillar-toggle::after { content: "+"; color: var(--accent); font-size: .95rem; }
.pillar-toggle[aria-expanded="true"]::after { content: "\2212"; }
.pillar-toggle:hover { border-color: var(--accent); color: var(--text); }
/* collapsed only when JS made it collapsible; hover previews on mouse devices */
.js .pillar:not(.is-open) .example-wrap { grid-template-rows: 0fr; }
.js .pillar:not(.is-open) .example-wrap > .example { visibility: hidden; }
@media (hover: hover) {
  .js .pillar:hover .example-wrap { grid-template-rows: 1fr; }
  .js .pillar:hover .example-wrap > .example { visibility: visible; }
  .pillar:hover { border-color: var(--accent-a25); box-shadow: 0 0 0 1px var(--accent-a12), 0 20px 40px -24px rgba(255, 122, 47, .45); }
}
.pillar.is-open { border-color: var(--accent-a25); }

/* -------------------------------------------------------- evidence demo */
.ev { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: clamp(16px, 3vw, 28px); position: relative; overflow: hidden; }
.ev::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
.ev-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ev-tree { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.ev-key { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ev-hash { font: 500 clamp(.78rem, .7rem + .4vw, 1.02rem) var(--mono); color: var(--text) !important; letter-spacing: .04em; word-break: break-all; }
.ev-hash .diff { color: var(--accent-hi); background: var(--accent-a12); border-radius: 2px; }
.ev-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ev-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.ev-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line-2); transition: border-color .3s, box-shadow .3s, opacity .3s;
}
.ev-card-k { font-weight: 650; }
.ev-card-v { color: var(--muted); font-size: .88rem; }
.ev-bind { margin-top: 8px; font: .78rem var(--mono); color: var(--muted); }
.ev-bind::before { content: "\2713  "; color: var(--accent); }
.ev-card.is-bound { border-color: var(--accent-a25); box-shadow: 0 0 0 1px var(--accent-a12) inset; }
.ev-card.is-stale { border-style: dashed; border-color: var(--faint); }
.ev-card.is-stale .ev-bind { color: var(--stale); text-decoration: line-through; text-decoration-color: var(--accent); }
.ev-card.is-stale .ev-bind::before { content: "\2715  "; color: var(--stale); text-decoration: none; }
.ev-card.is-stale .ev-card-k::after { content: "  · stops counting"; font: 500 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stale); }
.ev-status { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: .9rem; }
.ev-status code { color: var(--accent-hi) !important; }
.ev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.ev.is-broken .ev-dot { background: transparent; box-shadow: none; border: 1.5px solid var(--stale); }
.ev.is-broken .ev-status code { color: var(--stale) !important; }
@media (max-width: 900px) { .ev-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ev-cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------- how it works: flow */
.flow { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.flow-step {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.flow-step h3 { font-size: .98rem; }
.flow-step p { color: var(--muted); font-size: .88rem; margin: 0; }
.flow-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 12px;
  font: 700 .8rem var(--mono); border: 1px solid var(--accent); color: var(--accent-hi); background: var(--bg);
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; right: -15px; width: 16px; height: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.flow-gate { border-color: var(--accent); background: linear-gradient(180deg, rgba(255, 122, 47, .1), var(--panel)); }
.flow-gate .flow-num { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px var(--accent); }
.flow-step.is-active { border-color: var(--accent-hi); box-shadow: 0 0 0 1px var(--accent-a25), 0 0 40px -10px rgba(255, 122, 47, .6); }
.flow-step.is-done .flow-num { background: var(--accent-a25); }
.step-tag { margin-top: .8em !important; font-size: .8rem !important; }
.step-tag .badge { margin-right: 4px; }
.flow-caption { margin: 28px 0 0; font: 400 clamp(1.05rem, .95rem + .6vw, 1.4rem) var(--display); padding-left: 16px; border-left: 2px solid var(--accent); }
@media (max-width: 1100px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .flow-step:nth-child(3n)::after { display: none; }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step:nth-child(3n)::after { display: block; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -17px; right: auto; left: 31px; width: 1px; height: 18px; }
}

/* terminal */
.term { background: #05070a; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.term-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.term-dots i:first-child { background: var(--accent); }
.term-title { font: .8rem var(--mono); color: var(--muted); }
.term-ctl { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 8px; }
.term-body {
  padding: 16px 18px; font: .82rem/1.7 var(--mono); color: #cdd6df; min-height: 18em; max-height: 34em; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}
.t-line { min-height: 1.7em; }
.t-cmd::before { content: "$ "; color: var(--accent); }
.t-in::before { content: "> "; color: var(--accent); }
.t-cmd, .t-in { color: var(--text); }
.t-note { color: var(--faint); }
.t-ask { color: #e7d3c4; }
.t-ok { color: var(--accent-hi); }
.t-line.is-new { animation: tline .35s ease-out; }
.t-cmd.is-new, .t-in.is-new { animation: ttype .6s steps(32) both, tline .35s ease-out; }
@keyframes ttype { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tline { from { background: var(--accent-a12); } to { background: transparent; } }
.term-cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-foot { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.term-foot code { color: var(--muted) !important; }

/* ---------------------------------------------------------------- proof */
.stats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--panel); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font: 300 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--display); color: var(--accent); text-shadow: 0 0 24px rgba(255, 122, 47, .45); }
.stat-label { color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.proof-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.proof-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.proof-card p { color: var(--muted); margin: 0; font-size: .93rem; }

/* --------------------------------------------------------- status matrix */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 40px; padding: 6px 12px;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line-2); border-radius: 8px; font: 500 .8rem var(--mono);
}
.filter:hover { color: var(--text); border-color: var(--faint); }
.filter.is-on { color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-a25) inset; }
.fcount { color: var(--faint); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.status-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.status-table th, .status-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status-table thead th { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); background: var(--panel-2); }
.status-table tbody tr { position: relative; transition: background-color .2s; }
.status-table tbody tr:hover { background: rgba(159, 195, 217, .03); }
.status-table tbody tr:last-child > * { border-bottom: 0; }
.status-table tbody th { font-weight: 650; white-space: nowrap; }
.status-table td:nth-child(2) { color: var(--muted); }
.status-table td:nth-child(3) { white-space: nowrap; }
.status-table tbody tr > th:first-child { box-shadow: inset 2px 0 0 transparent; }
.status-table tr[data-status="shipped"] > th:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.status-table tr[data-status="build"] > th:first-child { box-shadow: inset 2px 0 0 var(--accent-a25); }
.status-table tr.is-entering { animation: rowin .45s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes rowin { from { transform: translateY(6px); background: var(--accent-a12); } to { transform: none; background: transparent; } }
.ms { font: .76rem var(--mono); color: var(--faint); margin-left: 4px; white-space: nowrap; }
.badge { display: inline-block; white-space: nowrap; font: 700 .68rem/1 var(--mono); letter-spacing: .08em; padding: 5px 8px; border-radius: 4px; border: 1px solid var(--accent); }
.badge-shipped { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 12px -2px rgba(255, 122, 47, .6); }
.badge-build { background: var(--accent-a12); color: var(--accent-hi); }
.badge-planned { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--faint); }
@media (max-width: 600px) {
  .status-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .status-table, .status-table tbody, .status-table tr, .status-table th, .status-table td { display: block; width: 100%; }
  .status-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .status-table tbody tr:last-child { border-bottom: 0; }
  .status-table th, .status-table td { padding: 0; border: 0; white-space: normal !important; }
  .status-table td { margin-top: 6px; }
  .status-table tr[data-status] > th:first-child { box-shadow: none; }
  .status-table tr[data-status="shipped"] { box-shadow: inset 2px 0 0 var(--accent); }
  .status-table tr[data-status="build"] { box-shadow: inset 2px 0 0 var(--accent-a25); }
}

/* -------------------------------------------------------------- roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--accent) 0 33%, var(--line-2) 33%); }
.phase { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; margin-top: 14px; }
.phase::before { content: ""; position: absolute; top: -20px; left: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--faint); }
.phase-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); }
.phase-current { border-color: var(--accent-a25); }
.phase p:last-child { color: var(--muted); margin: 0; }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.phase-tag { font: 700 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.phase-state { font: 500 .74rem var(--mono); color: var(--accent-hi); }
.end-state { margin-top: 18px; background: transparent; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 24px; }
.end-state h3 { font: 400 1.15rem var(--display); }
.end-state p:last-child { color: var(--muted); margin: 0; max-width: 80ch; }
@media (max-width: 820px) { .roadmap { grid-template-columns: 1fr; } .roadmap::before { display: none; } .phase::before { display: none; } .phase { margin-top: 0; } }

/* ------------------------------------------------------------- not list */
.not-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.not-list li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); color: var(--muted); }
.not-list li::before { content: "\2715"; position: absolute; left: 4px; top: 16px; font: 500 .85rem var(--mono); color: var(--accent); }

/* ------------------------------------------------------------------ FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 400 1.3rem var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* ------------------------------------------------------------------ CTA */
.cta { background: radial-gradient(600px 260px at 50% 0%, rgba(255, 122, 47, .12), transparent 70%), var(--bg); }
.cta p { color: var(--muted); }
.cta h2 { font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); }

/* --------------------------------------------------------------- footer */
.site-footer { padding: 28px 0; font-size: .86rem; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }

/* ------------------------------------------------------- command dialog */
.cmdk {
  width: min(680px, calc(100vw - 24px)); max-height: min(78vh, 640px); padding: 0; margin: 10vh auto auto;
  background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--accent-a12);
  overflow: hidden; display: none; flex-direction: column;
}
.cmdk[open] { display: flex; }
.cmdk::backdrop { background: rgba(3, 4, 6, .72); backdrop-filter: blur(4px); }
.cmdk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmdk-title { margin: 0; font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.cmdk-close { margin-left: auto; cursor: pointer; background: transparent; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; font: .72rem var(--mono); padding: 5px 8px; min-height: 30px; }
.cmdk-form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmdk-prompt { color: var(--accent); font: 700 1.1rem var(--mono); }
.cmdk-input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 1.05rem var(--mono); padding: 6px 0; caret-color: var(--accent); }
.cmdk-input:focus { outline: none; }
.cmdk-form:focus-within { box-shadow: inset 0 -1px 0 var(--accent); }
.cmdk-input::placeholder { color: var(--faint); }
.cmdk-help { margin: 0; padding: 10px 16px; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.cmdk-out { padding: 14px 16px; overflow: auto; font: .8rem/1.7 var(--mono); color: #cdd6df; white-space: pre-wrap; min-height: 8em; flex: 1; }
.cmdk-out .o-head { color: var(--accent-hi); }
.cmdk-out .o-dim { color: var(--faint); }
.cmdk-out .o-ok { color: var(--accent-hi); }

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .glow { display: none; }
}
