/* Scopewatch project website.

   Concept: a checkpoint. Every tool call an agent makes is stopped, inspected,
   and stamped before it may pass. The page is a control-room console: slate
   ink, a ruled inspection grid, and verdict stamps. Signal amber is the brand
   accent because HOLD is the state Scopewatch exists to produce.

   State colours match the reviewer dashboard: green = allow/executed,
   red = deny, amber = hold/pending, blue = informational. Colour is never the
   only signal; every state also carries its text label.

   Dark-first. Light values live under prefers-color-scheme: light and
   [data-theme="light"]. */

:root {
  color-scheme: dark;
  --ink: #0a0c10;
  --ink-2: #10131a;
  --ink-3: #161a23;
  --ink-code: #0d1016;
  --line: #222834;
  --line-2: #323a49;
  --fg: #eef1f5;
  --fg-2: #a4acba;
  --fg-3: #6e7787;

  --signal: #ffb224;
  --signal-ink: #1a1205;
  --allow: #3ddc84;
  --deny: #ff6363;
  --hold: #ffb224;
  --info: #6fa8ff;
  --nvidia: #76b900;
  --nav-bg: color-mix(in srgb, var(--ink) 78%, transparent);
  --shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.85);
  --grid-line: color-mix(in srgb, var(--fg) 5%, transparent);

  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 7px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1180px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ink: #f3f4f6;
    --ink-2: #ffffff;
    --ink-3: #e9ebef;
    --ink-code: #f7f8fa;
    --line: #dde0e6;
    --line-2: #c4c9d2;
    --fg: #0e1117;
    --fg-2: #485062;
    --fg-3: #6a7282;
    --signal: #b56a00;
    --signal-ink: #fffaf0;
    --allow: #0f8a47;
    --deny: #c72c2c;
    --hold: #a86200;
    --info: #2160d8;
    --nvidia: #4e7d00;
    --shadow: 0 30px 80px -40px rgba(16, 24, 40, 0.35);
    --grid-line: color-mix(in srgb, var(--fg) 6%, transparent);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #f3f4f6;
  --ink-2: #ffffff;
  --ink-3: #e9ebef;
  --ink-code: #f7f8fa;
  --line: #dde0e6;
  --line-2: #c4c9d2;
  --fg: #0e1117;
  --fg-2: #485062;
  --fg-3: #6a7282;
  --signal: #b56a00;
  --signal-ink: #fffaf0;
  --allow: #0f8a47;
  --deny: #c72c2c;
  --hold: #a86200;
  --info: #2160d8;
  --nvidia: #4e7d00;
  --shadow: 0 30px 80px -40px rgba(16, 24, 40, 0.35);
  --grid-line: color-mix(in srgb, var(--fg) 6%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

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

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

a { color: inherit; }
img { max-width: 100%; display: block; }
code, pre, .mono { font-family: var(--font-mono); }
code { font-size: 0.86em; background: var(--ink-3); border: 1px solid var(--line); padding: 0.08em 0.38em; border-radius: 5px; overflow-wrap: anywhere; }
strong { font-weight: 600; color: var(--fg); }

.wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Hackathon strip ---------- */
.strip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-2); background: var(--ink-2); border-bottom: 1px solid var(--line);
}
.strip .wrap { display: flex; align-items: center; justify-content: center; gap: 10px 18px; flex-wrap: wrap; padding-block: 8px; text-align: center; }
.strip a { color: var(--fg); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.strip a:hover { border-bottom-color: var(--signal); }
.strip .sep { color: var(--fg-3); }
.strip .live { display: inline-flex; align-items: center; gap: 7px; color: var(--signal); }
@media (max-width: 720px) { .strip .opt { display: none; } }
.strip .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent); }

/* ---------- Navigation ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--fg-2); transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links .btn { color: var(--signal-ink); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg-3); }
.theme-toggle svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 14px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px;
  font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--signal); color: var(--signal-ink); box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 40%, transparent); }
.btn-primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg-3); background: var(--ink-3); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Status pills ---------- */
.pill {
  --c: var(--fg-2);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 5px;
  font-size: 12px; font-weight: 600; font-family: var(--font-mono); letter-spacing: 0.02em;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill.allow { --c: var(--allow); }
.pill.deny { --c: var(--deny); }
.pill.hold { --c: var(--hold); }
.pill.info { --c: var(--info); }
.pill.muted { --c: var(--fg-3); }

/* Verdict stamp: the checkpoint's rubber stamp. */
.stamp {
  --c: var(--hold);
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c);
  border: 2px solid var(--c); border-radius: 5px; padding: 3px 9px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
  transform: rotate(-4deg);
  background: color-mix(in srgb, var(--c) 8%, transparent);
}
.stamp.allow { --c: var(--allow); }
.stamp.deny { --c: var(--deny); }
.stamp.hold { --c: var(--hold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--fg-2); text-decoration: none;
}
.eyebrow .tag { background: var(--signal); color: var(--signal-ink); font-weight: 700; padding: 2px 8px; border-radius: 4px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Sections ---------- */
section { padding-block: 104px; position: relative; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--signal); margin: 0 0 18px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--fg-2); margin: 20px 0 0; max-width: 64ch; }
p { margin: 0; }
.muted { color: var(--fg-2); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Inspection grid backdrop shared by the hero and CTA. */
.gridded { position: relative; isolation: isolate; }
.gridded::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 80%);
}

/* ---------- Hero ---------- */
.hero { padding-block: 84px 56px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 760px; height: 760px; right: -220px; top: -180px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 16%, transparent), transparent);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); font-weight: 800; margin: 26px 0 0; letter-spacing: -0.045em; line-height: 0.95; }
.hero h1 .hl { color: var(--signal); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.09em;
  background: repeating-linear-gradient(90deg, var(--signal) 0 0.32em, transparent 0.32em 0.48em);
}
.hero .lead { margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

/* Hero console */
.console {
  background: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden; min-width: 0; position: relative;
}
.console-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); background: var(--ink-3); }
.console-bar .method { color: var(--info); font-weight: 700; }
.console-bar .dots { display: flex; gap: 6px; margin-right: 4px; }
.console-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.console-body { padding: 18px; display: grid; gap: 14px; position: relative; }
.req { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; background: var(--ink-code); border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; overflow-x: auto; color: var(--fg-2); white-space: pre; }
.req .k { color: var(--info); }
.req .s { color: var(--fg); }
.stages { display: grid; gap: 7px; }
.stage {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 13px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--ink-2);
  opacity: 0.4; transform: translateY(3px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .45s, background .45s;
}
.stage.on { opacity: 1; transform: none; }
.stage .n { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--fg-2); }
.stage .t { font-size: 14px; font-weight: 600; }
.stage .d { font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage.final.on { border-color: color-mix(in srgb, var(--hold) 55%, transparent); background: color-mix(in srgb, var(--hold) 9%, var(--ink-2)); }
.console .stamp.big {
  position: absolute; right: 30px; top: 30px; font-size: 22px; padding: 6px 14px; letter-spacing: 0.2em;
  opacity: 0; transform: rotate(-9deg) scale(1.6); transition: opacity .25s, transform .35s var(--ease);
  background: color-mix(in srgb, var(--ink-2) 80%, transparent); pointer-events: none;
}
.console .stamp.big.on { opacity: 1; transform: rotate(-9deg) scale(1); }
@media (max-width: 520px) { .console .stamp.big { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .stage { opacity: 1; transform: none; transition: none; }
  .console .stamp.big { opacity: 1; transform: rotate(-9deg); transition: none; }
}

/* ---------- Decision ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; position: relative; }
.ticker-head {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
  background: var(--ink-2); border-right: 1px solid var(--line);
}
.ticker-track { display: flex; width: max-content; gap: 0; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick {
  display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-right: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; color: var(--fg-2);
}
.tick .op { color: var(--fg); font-weight: 600; }
.tick .res { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; padding-left: 0; }
  .ticker-head { position: static; background: none; border-right: 0; padding-block: 10px 0; }
}

/* ---------- Stats ---------- */
.stats { padding-block: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.stat { padding: 22px 24px 4px 0; display: grid; gap: 4px; align-content: start; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .v { font-family: var(--font-display); font-size: clamp(38px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 14px; color: var(--fg-2); margin-top: 6px; }
.stat .q { font-size: 11.5px; color: var(--fg-3); font-family: var(--font-mono); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 460px) {
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 14px; }
}

/* ---------- Threats ---------- */
.threats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .threats { grid-template-columns: minmax(0, 1fr); } }
.threat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; display: flex; flex-direction: column; }
.threat .sample {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--fg-2);
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--ink-code);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.threat .sample span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.threat .body { padding: 22px; display: grid; gap: 10px; }
.threat p { color: var(--fg-2); font-size: 15px; }

/* ---------- Pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; list-style: none; margin: 0; padding: 0; }
.pipeline::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px);
}
.pipe-step { position: relative; display: grid; gap: 12px; align-content: start; }
.pipe-step .gate {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; position: relative;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--signal);
  background: var(--ink); border: 2px solid var(--signal);
}
.pipe-step h3 { margin-top: 10px; }
.pipe-step p { color: var(--fg-2); font-size: 14.5px; }
.pipe-step .outs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (max-width: 960px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .pipeline::before { display: none; }
}
@media (max-width: 560px) { .pipeline { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Story (injection) ---------- */
.story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .story { grid-template-columns: minmax(0, 1fr); } }
.doc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; min-width: 0; }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); font-family: var(--font-mono); flex-wrap: wrap; background: var(--ink-3); }
.doc-body { padding: 18px; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; color: var(--fg-2); }
mark, .mark {
  background: color-mix(in srgb, var(--deny) 16%, transparent); color: var(--fg);
  border-bottom: 1px dashed var(--deny); padding: 0 2px; border-radius: 3px;
}
mark.warn { background: color-mix(in srgb, var(--hold) 16%, transparent); border-bottom-color: var(--hold); }
.verdict-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
}
.verdict-row .arrow { color: var(--fg-3); }
.verdict-row .label { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }
.verdict-row .btn { margin-left: auto; }
@media (max-width: 640px) { .verdict-row .arrow { display: none; } .verdict-row .btn { margin-left: 0; } }

/* ---------- Invariants: a spec sheet ---------- */
.spec { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line-2); }
.spec li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec .id { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--allow); padding-top: 3px; letter-spacing: 0.04em; }
.spec h3 { font-size: 18px; }
.spec p { color: var(--fg-2); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 760px) { .spec { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.shots .side { display: grid; gap: 18px; }
@media (max-width: 900px) { .shots { grid-template-columns: minmax(0, 1fr); } }
figure { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
figure img { width: 100%; height: auto; }
figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--fg-2); border-top: 1px solid var(--line); }

/* ---------- Results ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); font-weight: 600; background: var(--ink-3); }
th .target { display: block; text-transform: none; letter-spacing: 0; margin-top: 2px; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
td .sub { display: block; font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); margin-top: 3px; }
.good { color: var(--allow); font-weight: 600; }
.miss { color: var(--hold); font-weight: 600; }
.note { font-size: 14px; color: var(--fg-2); margin-top: 18px; max-width: 78ch; }

/* Bar meters inside the results table: scaled 0–100%. */
.meter { display: grid; gap: 6px; min-width: 110px; }
.meter .bar { height: 6px; border-radius: 3px; background: var(--ink-3); position: relative; overflow: hidden; }
.meter .bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c, var(--fg-2)); border-radius: 3px; }
.meter .bar b { position: absolute; top: -2px; bottom: -2px; left: var(--t); width: 2px; background: var(--fg); opacity: .55; }

/* ---------- Partners ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.partner { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.partner .logo-word { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.partner .logo-word.nv { color: var(--nvidia); }
.partner .logo-word.nb { color: var(--fg); }
.partner p { color: var(--fg-2); font-size: 15px; }
.partner ul { margin: 4px 0 0; padding-left: 18px; color: var(--fg-2); font-size: 14.5px; display: grid; gap: 8px; }

/* ---------- Limits: hazard-taped ---------- */
.limits { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.limits .tape { height: 10px; background: repeating-linear-gradient(135deg, var(--hold) 0 12px, var(--ink) 12px 24px); opacity: .85; }
.limits .inner { padding: 28px 30px 30px; }
.limits ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 36px; }
@media (max-width: 760px) { .limits ul { grid-template-columns: minmax(0, 1fr); } }
.limits li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--fg-2); font-size: 15px; }
.limits li::before { content: "!"; width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--hold); border: 1.5px solid var(--hold); margin-top: 2px; }

/* ---------- Code block ---------- */
.code { position: relative; background: var(--ink-code); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px 9px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); background: var(--ink-3); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.8; color: var(--fg); }
.code pre .c { color: var(--fg-3); }
.code pre .p { color: var(--signal); user-select: none; }
.copy { font: inherit; font-size: 12px; background: var(--ink-2); color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { color: var(--fg); }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--line-2); border-radius: 16px; padding: 64px 28px; background: var(--ink-2); display: grid; justify-items: center; text-align: center; gap: 4px; overflow: hidden; }
.cta-band .stamp { font-size: 15px; margin-bottom: 22px; }
.cta-band .lead { margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 14px; color: var(--fg-3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer a { color: var(--fg-2); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Reveal on scroll (starts visible; only nudges in) ---------- */
.js .reveal { transform: translateY(14px); transition: transform .8s var(--ease); }
.js .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ======================================================================
   Demo page
   ====================================================================== */
.demo-hero { padding-block: 56px 32px; }
.demo-hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.04em; margin-top: 20px; line-height: 0.98; }
.banner {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--info) 40%, transparent);
  background: color-mix(in srgb, var(--info) 9%, transparent);
  border-radius: 10px; font-size: 14px; color: var(--fg-2); max-width: 920px;
}
.banner > span:first-child { color: var(--info); font-weight: 700; }

.demo { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; padding-bottom: 96px; align-items: start; }
.demo > * { min-width: 0; }
@media (max-width: 980px) { .demo { grid-template-columns: minmax(0, 1fr); } }

.scenarios { display: grid; gap: 8px; position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (max-width: 980px) { .scenarios { position: static; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); } }
.scn {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  display: grid; gap: 8px; transition: border-color .15s, background .15s;
}
.scn:hover { border-color: var(--line-2); }
.scn[aria-pressed="true"] { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 7%, var(--ink-2)); box-shadow: inset 3px 0 0 var(--signal); }
.scn .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scn .no { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.scn .nm { font-weight: 600; font-size: 14.5px; line-height: 1.35; }

.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; min-width: 0; overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.panel-head h2 { font-size: 26px; }
.panel-head p { color: var(--fg-2); font-size: 14.5px; margin-top: 6px; max-width: 640px; }
.panel-body { padding: 20px 22px; }

.scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.scope .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--fg-2); background: var(--ink-3); overflow-wrap: anywhere; }
.chip.bad { color: var(--deny); border-color: color-mix(in srgb, var(--deny) 40%, transparent); }
.chip.none { color: var(--fg-3); font-style: italic; }

.controls { display: flex; gap: 8px; flex-wrap: wrap; }

/* Track: the five checkpoints for the focused action */
.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .track { grid-template-columns: minmax(0, 1fr); } }
.node {
  --c: var(--fg-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 14px; background: var(--ink-3);
  transition: border-color .35s, background .35s, opacity .35s, box-shadow .35s; opacity: .45; min-width: 0;
}
.node .h { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.node .t { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); font-weight: 600; }
.node .s { font-size: 13.5px; font-weight: 700; margin-top: 8px; font-family: var(--font-mono); overflow-wrap: anywhere; color: var(--c); }
.node .x { font-size: 12px; color: var(--fg-3); margin-top: 4px; overflow-wrap: anywhere; }
.node.active { opacity: 1; border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 20%, transparent); }
.node.done { opacity: 1; }
.node.skip { opacity: .3; }
.node.allow { --c: var(--allow); }
.node.deny { --c: var(--deny); }
.node.hold { --c: var(--hold); }
.node.info { --c: var(--info); }
.node.allow.done, .node.deny.done, .node.hold.done { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.node.deny.done, .node.hold.done { background: color-mix(in srgb, var(--c) 10%, var(--ink-2)); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 13px 22px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s;
}
.tl:last-child { border-bottom: 0; }
.tl:hover { background: var(--ink-3); }
.tl[aria-current="true"] { background: color-mix(in srgb, var(--signal) 7%, transparent); box-shadow: inset 3px 0 0 var(--signal); }
.tl.pending { opacity: .4; }
.tl .i { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--fg-2); }
.tl .op { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; }
.tl .rs { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-3); overflow-wrap: anywhere; }
@media (max-width: 560px) { .tl { grid-template-columns: 30px minmax(0, 1fr); } .tl .pill { grid-column: 2; justify-self: start; } }

/* Evidence */
.evidence { display: grid; gap: 14px; }
.ev { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ev-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ink-3); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ev-h .t { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--fg-2); }
.ev-b { padding: 14px; display: grid; gap: 10px; font-size: 14px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.kv .k { color: var(--fg-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.kv .v { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--fg); }
.kv .v.missing { color: var(--fg-3); font-style: italic; font-family: var(--font-sans); }
@media (max-width: 560px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.quote { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; padding: 12px 14px; border-radius: 8px; background: var(--ink-code); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg-2); }

.approval-box { border: 1px solid color-mix(in srgb, var(--hold) 50%, transparent); background: color-mix(in srgb, var(--hold) 9%, transparent); border-radius: 10px; padding: 16px; display: grid; gap: 12px; }
.approval-box .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-approve { background: var(--allow); color: var(--ink); }
.btn-deny { background: var(--deny); color: var(--ink); }
.what-next { font-size: 14px; color: var(--fg); padding: 12px 14px; border-radius: 8px; background: var(--ink-3); border: 1px solid var(--line-2); }
.sim-note { font-size: 12.5px; color: var(--fg-3); }

.empty { color: var(--fg-3); font-size: 14px; padding: 18px 22px; }

.review-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--hold) 10%, transparent); font-size: 14px; }
.review-bar[hidden] { display: none; }
.review-bar strong { color: var(--hold); }
.review-bar .actions { display: flex; gap: 8px; }
