/* Fonts are served with the site (no third-party requests). */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

/* PMAXIS Harness — brand tokens from the PMAXIS palette.
   Purple (cortex) marks thinking; green (signal) marks acting. */
:root {
  --ink: #0A0A0A;
  --panel: #111111;
  --panel-2: #161616;
  --line: #1E1E1E;
  --line-2: #2A2A2A;
  --paper: #FFFFFF;
  --fog: #A1A1AA;
  --fog-2: #71717A;
  --signal: #00E676;
  --cortex: #8B5CF6;
  --halt: #FF5D73;

  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Type ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 18px;
}
.h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.lede { color: var(--fog); font-size: 18px; max-width: 58ch; margin-top: 18px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-solid { background: var(--signal); color: var(--ink); }
.btn-solid:hover { transform: translateY(-1px); background: #4DFFA0; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--paper); }
.btn-ghost:hover { border-color: var(--fog-2); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; }
.wm-name { font-weight: 700; letter-spacing: 0.06em; font-size: 17px; }
.wm-sub { font-family: var(--mono); font-size: 12px; color: var(--signal); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--fog); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }

/* Phone menu */
.menu-btn { display: none; position: relative; width: 40px; height: 40px; margin-left: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: none; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--paper); transition: transform 0.25s var(--ease), top 0.25s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.menu { display: flex; flex-direction: column; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); animation: menuIn 0.25s var(--ease); }
.menu[hidden] { display: none; }
.menu a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 16px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }

/* ── Hero ── */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.venue-icons { display: flex; gap: 12px; margin-bottom: 28px; }
.venue-icons img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.8); transition: transform 0.3s var(--ease); }
.venue-icons img:nth-child(1) { transform: translateY(6px) rotate(-6deg); }
.venue-icons img:nth-child(2) { transform: translateY(0) rotate(-2deg); }
.venue-icons img:nth-child(3) { transform: translateY(0) rotate(2deg); }
.venue-icons img:nth-child(4) { transform: translateY(6px) rotate(6deg); }
.venue-icons img:hover { transform: translateY(-3px) rotate(0); }
.venue-icons .vi-next { opacity: 0.45; filter: grayscale(0.5); }
.hero-title {
  font-size: clamp(42px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.hl { color: var(--signal); }
.hero-sub { color: var(--fog); font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── Decision trace (signature) ── */
.trace {
  margin: clamp(40px, 5vw, 56px) 0 0;
  background: linear-gradient(180deg, var(--panel), #0D0D0D);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 230, 118, 0.12);
}
.trace-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.trace-title { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); } }
.tag { font-size: 11px; color: var(--fog); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; }
.trace-tabs { display: flex; gap: 4px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tab {
  font: 500 13px var(--sans); color: var(--fog); background: none; border: 0; border-radius: 7px;
  padding: 6px 12px; cursor: pointer; transition: color 0.2s, background 0.2s;
}
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { background: var(--panel-2); color: var(--paper); }

.trace-flow { display: flex; align-items: stretch; padding: 28px 18px 22px; gap: 0; }
.node {
  --tone: var(--fog);
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 14px 16px;
  min-height: 112px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--ink);
  opacity: 0.45;
  transition: opacity 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
.node[data-tone="cortex"] { --tone: var(--cortex); }
.node[data-tone="signal"] { --tone: var(--signal); }
.node-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tone); }
.node-v { font-size: 14px; line-height: 1.4; color: var(--paper); min-height: 2.8em; }
.node.is-active { opacity: 1; border-color: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 14%, transparent), 0 12px 32px -12px color-mix(in srgb, var(--tone) 50%, transparent); transform: translateY(-2px); }
.node.is-done { opacity: 1; border-color: color-mix(in srgb, var(--tone) 45%, var(--line-2)); }
.node.is-blocked { opacity: 1; --tone: var(--halt); border-color: var(--halt); box-shadow: 0 0 0 4px rgba(255, 93, 115, 0.12); }
.node.is-skipped { opacity: 0.55; border-style: dashed; }
.node.is-skipped .node-v { color: var(--fog-2); }
.caret::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--tone); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.edge { position: relative; flex: 0 0 28px; align-self: center; height: 2px; background: var(--line-2); overflow: hidden; }
.edge i { position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--signal)); opacity: 0; }
.edge.is-flowing i { opacity: 1; animation: flow 0.55s linear forwards; }
.edge.is-lit { background: color-mix(in srgb, var(--signal) 55%, var(--line-2)); }
.edge.is-cut { background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
@keyframes flow { to { left: 100%; } }

.trace-log {
  list-style: none; margin: 0; padding: 14px 18px; min-height: 172px;
  border-top: 1px solid var(--line);
  background: #080808;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
}
.trace-log li { display: grid; grid-template-columns: 104px 92px 1fr; gap: 12px; color: var(--fog); animation: logIn 0.35s var(--ease) both; }
.trace-log .t { color: var(--fog-2); }
.trace-log .src { color: var(--paper); }
.trace-log .ok { color: var(--signal); }
.trace-log .think { color: var(--cortex); }
.trace-log .bad { color: var(--halt); }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } }
.trace-foot { padding: 10px 18px 14px; font-size: 12px; color: var(--fog-2); border-top: 1px solid var(--line); background: #080808; }

/* ── Sections ── */
.section { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.section-alt { background: #0C0C0C; }

/* ── How it works ── */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.how-side { position: sticky; top: 112px; align-self: start; }
.rail { margin-top: 40px; border-left: 1px solid var(--line-2); }
.rail li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0 10px 20px; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--fog-2); font-size: 15px;
  transition: color 0.3s, border-color 0.3s;
}
.rail li.is-on { color: var(--paper); border-left-color: var(--signal); }
.rail li.is-on[data-rail="0"] { border-left-color: var(--cortex); }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.sw-cortex { background: var(--cortex); }
.sw-signal { background: var(--signal); }
.legend { display: flex; gap: 20px; margin-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--fog); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

.how-steps { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 120px); padding-top: 8px; }
.step { --tone: var(--signal); opacity: 0.35; transition: opacity 0.5s var(--ease); }
.step[data-tone="cortex"] { --tone: var(--cortex); }
.step.is-on { opacity: 1; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--tone); margin-bottom: 14px; }
.step .h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.step > p { color: var(--fog); max-width: 54ch; }
.step .note { color: var(--cortex); font-size: 15px; margin-top: 10px; }
.artifact {
  margin: 24px 0 0; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line-2); border-left: 2px solid var(--tone);
  border-radius: 10px; font-size: 13px; line-height: 1.7; color: var(--fog);
  overflow-x: auto; white-space: pre;
}
.a-k { color: var(--paper); }
.a-v { color: var(--tone); }
.a-ok { color: var(--signal); }

/* ── Bots ── */
.bots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.bot {
  --tone: var(--signal);
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel);
  transition: border-color 0.3s;
}
.bot[data-tone="cortex"] { --tone: var(--cortex); }
.bot:hover { border-color: color-mix(in srgb, var(--tone) 45%, var(--line-2)); }
.bot-head { display: flex; flex-direction: column; gap: 14px; }
.pill { align-self: flex-start; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; }
.pill-signal { color: var(--signal); background: rgba(0, 230, 118, 0.08); border: 1px solid rgba(0, 230, 118, 0.25); }
.pill-cortex { color: var(--cortex); background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); }
.ticks { display: flex; flex-direction: column; gap: 10px; color: var(--fog); font-size: 15.5px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--tone); }

.mini { margin-top: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); padding: 8px; font-family: var(--mono); font-size: 12px; }
.ml-row { display: grid; grid-template-columns: 72px 96px 1fr; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--fog); }
.ml-row b { font-weight: 500; }
.ml-row.ok b { color: var(--signal); }
.ml-row.skip b { color: var(--fog-2); }
.ml-row:hover { background: var(--panel); }
.mt-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px 54px 84px; gap: 10px; align-items: center; padding: 6px 8px; }
.mt-row > span:first-child { color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-row > span:nth-child(2), .mt-row > span:nth-child(3) { text-align: right; }
.mt-headrow { color: var(--fog-2); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mt-headrow > span:first-child { color: var(--fog-2); }
.bar { position: relative; height: 12px; background: var(--line-2); overflow: hidden; }
.bar i { position: absolute; top: 0; bottom: 0; }
.b-solid { left: 0; }
.b-signal { background: var(--signal); }
.b-halt { background: var(--halt); }
.b-cortex { background: var(--cortex); }
.b-shade { opacity: 0.45; min-width: 2px; }
.c-signal { color: var(--signal); }
.c-halt { color: var(--halt); }
.c-cortex { color: var(--cortex); }
.c-fog { color: var(--fog); }

.modes { display: flex; align-items: center; gap: 20px; margin-top: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--fog); }
.modes strong { color: var(--paper); font-weight: 600; }
.mode-switch { flex: none; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; }
.mode-switch span { padding: 4px 12px; border-radius: 999px; color: var(--fog-2); }
.mode-switch .on { background: var(--paper); color: var(--ink); }

/* ── Capabilities ── */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.cap-group { padding: 26px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); }
.cap-h { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fog); margin-bottom: 18px; }
.sw-fog { background: var(--fog); }
.cap-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-list li { font-size: 15px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); transition: border-color 0.2s, color 0.2s; }
.cap-list li:hover { border-color: var(--fog-2); }

.plugins { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 20px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; }
.plugin-list { display: flex; flex-wrap: wrap; gap: 8px; }
.plugin-list li { font-family: var(--mono); font-size: 13px; color: var(--fog); padding: 6px 12px; border: 1px dashed var(--line-2); border-radius: 8px; }

/* ── Safety ── */
.safety { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: 56px; }
.gate { padding: 28px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); }
.gate-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fog); margin-bottom: 18px; }
.gate-list { display: flex; flex-direction: column; }
.gate-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gate-list li:last-child { border-bottom: 0; }
.gate-list b { display: block; font-weight: 500; font-size: 17px; }
.gate-list div span { color: var(--fog); font-size: 14.5px; }
.g-box {
  flex: none; position: relative; width: 22px; height: 22px; margin-top: 2px;
  border: 1.5px solid var(--line-2); border-radius: 6px;
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.g-box::after {
  content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 6px; height: 11px;
  border: solid var(--ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(0);
  transition: transform 0.3s var(--ease) 0.1s;
}
.gate-list li.is-checked .g-box { background: var(--signal); border-color: var(--signal); }
.gate-list li.is-checked .g-box::after { transform: rotate(45deg) scale(1); }
.gate-result { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: 13px; color: var(--fog); opacity: 0; transition: opacity 0.5s; }
.gate.is-done .gate-result { opacity: 1; }
.g-ok { color: var(--signal); }

.facts { display: grid; grid-template-rows: repeat(4, auto); gap: 12px; }
.facts li { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; }
.facts h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.facts p { color: var(--fog); font-size: 15px; }

/* ── Venues ── */
.venues { margin-top: 48px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.v-row { display: grid; grid-template-columns: 2fr 2fr 1.2fr 1fr; gap: 16px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); }
.v-headrow { border-top: 0; background: var(--panel); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fog-2); padding: 14px 24px; }
.v-row:not(.v-headrow) { color: var(--fog); transition: background 0.2s; }
.v-row:not(.v-headrow):hover { background: var(--panel); }
.v-name { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.v-ico { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; }
.st { font-style: normal; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-live { color: var(--signal); background: rgba(0, 230, 118, 0.08); }
.st-live::before { animation: ping 2s infinite; }
.st-beta { color: var(--cortex); background: rgba(139, 92, 246, 0.1); }
.st-next { color: var(--fog); background: rgba(161, 161, 170, 0.08); }

/* ── Architecture ── */
.stack { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tech li { font-family: var(--mono); font-size: 12.5px; color: var(--fog); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 10px; }
.schematic { display: flex; flex-direction: column; align-items: center; font-size: 14px; }
.sc-box { display: flex; flex-direction: column; align-items: center; padding: 12px 20px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); min-width: 160px; text-align: center; }
.sc-box small { font-family: var(--mono); font-size: 11px; color: var(--fog-2); }
.sc-signal { border-color: rgba(0, 230, 118, 0.45); color: var(--signal); }
.sc-line { position: relative; width: 2px; height: 34px; background: var(--line-2); overflow: hidden; }
.sc-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--fog)); animation: drop 2.4s linear infinite; }
.sc-line-live::after { background: linear-gradient(180deg, transparent, var(--signal)); animation-delay: 1.2s; }
@keyframes drop { to { top: 100%; } }
.sc-gw { width: 100%; max-width: 420px; padding: 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.sc-gw-t { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fog); text-align: center; margin-bottom: 12px; }
.sc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-chip { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); text-align: center; }
.sc-cortex { border-color: rgba(139, 92, 246, 0.45); color: var(--cortex); }
.sc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 420px; }
.sc-col { display: flex; flex-direction: column; align-items: center; }
.sc-col .sc-box { min-width: 0; width: 100%; }

/* ── CTA & footer ── */
.cta { padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -260px; width: 720px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 230, 118, 0.10), transparent); pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta .h2 { max-width: none; }
.cta .lede { margin: 18px auto 32px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--fog-2); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-c { margin-left: auto; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--fog-2); transition: color 0.2s; }
.foot-links a:hover { color: var(--paper); }
.disclaimer { margin-top: 18px; font-size: 11px; line-height: 1.5; color: #3F3F46; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.06s; }
.hero .reveal:nth-child(3) { transition-delay: 0.12s; }
.hero .reveal:nth-child(4) { transition-delay: 0.18s; }
.hero .reveal:nth-child(5) { transition-delay: 0.28s; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .trace-flow { flex-direction: column; }
  .node { flex: none; min-height: 0; flex-direction: row; align-items: baseline; gap: 14px; }
  .node-k { flex: 0 0 82px; }
  .node-v { min-height: 1.4em; }
  .edge { flex: 0 0 14px; width: 2px; height: 14px; align-self: auto; margin-left: 30px; }
  .edge i { left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--signal)); }
  .edge.is-flowing i { animation: flowDown 0.55s linear forwards; }
  .edge.is-cut { background: repeating-linear-gradient(180deg, var(--line-2) 0 4px, transparent 4px 8px); }
  @keyframes flowDown { to { top: 100%; } }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how-side { position: static; }
  .rail, .legend { display: none; }
  .step { opacity: 1; }
  .bots, .safety, .stack, .caps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero-title br { display: none; }
  .nav-row { justify-content: space-between; gap: 8px; }
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .wordmark { margin-right: auto; }
  .trace-head { flex-direction: column; align-items: flex-start; }
  .trace-tabs { width: 100%; }
  .tab { flex: 1; padding: 6px 4px; font-size: 12px; }
  .trace-log li { grid-template-columns: 1fr; gap: 0; padding-bottom: 6px; }
  .trace-log { font-size: 12px; line-height: 1.6; }
  .node { flex-direction: column; gap: 4px; }
  .node-k { flex: none; }
  .v-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .v-headrow { display: none; }
  .v-name { grid-column: 1 / -1; }
  .modes { flex-direction: column; align-items: flex-start; }
  .ml-row { grid-template-columns: 64px 1fr; }
  .ml-row span:last-child { grid-column: 2; }
  .mt-row { grid-template-columns: minmax(0, 1fr) 50px 64px; }
  .mt-row > span:nth-child(3) { display: none; }
  .foot-c { margin-left: 0; }
}

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

/* ── Legal pages ── */
.legal-back { margin-left: auto; font-size: 14px; color: var(--fog); }
.legal-back:hover { color: var(--paper); }
.legal { max-width: 720px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 10vw, 120px); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.05; }
.legal-date { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--fog-2); }
.legal h2 { margin-top: 40px; font-size: 20px; letter-spacing: -0.01em; }
.legal p, .legal li { margin-top: 10px; color: var(--fog); }
.legal ul { list-style: disc; padding-left: 20px; }
.foot-links a[aria-current="page"] { color: var(--paper); }
