/* Neutron's public product surface: navy, technical, and evidence-led. */

:root {
  color-scheme: dark;
  --bg: #0c0e12;
  --bg-2: #101319;
  --panel: #14181f;
  --panel-2: #171c24;
  --line: #232a35;
  --line-2: #2e3745;
  --ink: #e7ecf3;
  --ink-2: #aeb8c6;
  --ink-3: #788698;
  --accent: #7cd0ff;
  --accent-2: #3f8cff;
  --accent-ink: #06131f;
  --good: #46d39a;
  --warn: #e3b65a;
  --risk: #ef8375;
  --grid: rgba(255, 255, 255, 0.025);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --nav-h: 64px;
  --wrap: 1180px;
  --radius: 8px;
  --radius-sm: 6px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f4f7;
  --bg-2: #e9edf3;
  --panel: #fdfeff;
  --panel-2: #f2f6fb;
  --line: #d5dce6;
  --line-2: #bcc7d6;
  --ink: #1a1e26;
  --ink-2: #48505c;
  --ink-3: #606b7a;
  --accent: #0b63c8;
  --accent-2: #0a4fa0;
  --accent-ink: #f2f8ff;
  --good: #19734f;
  --warn: #795500;
  --risk: #a43d33;
  --grid: rgba(0, 30, 60, 0.035);
  --shadow: 0 18px 50px -24px rgba(20, 40, 70, 0.35);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f2f4f7;
    --bg-2: #e9edf3;
    --panel: #fdfeff;
    --panel-2: #f2f6fb;
    --line: #d5dce6;
    --line-2: #bcc7d6;
    --ink: #1a1e26;
    --ink-2: #48505c;
    --ink-3: #606b7a;
    --accent: #0b63c8;
    --accent-2: #0a4fa0;
    --accent-ink: #f2f8ff;
    --good: #19734f;
    --warn: #795500;
    --risk: #a43d33;
    --grid: rgba(0, 30, 60, 0.035);
    --shadow: 0 18px 50px -24px rgba(20, 40, 70, 0.35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg-stars { position: fixed; inset: -200px; z-index: -1; pointer-events: none; }
.bg-stars::before, .bg-stars::after {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(231, 236, 243, 0.9), transparent),
    radial-gradient(1px 1px at 130px 90px, rgba(124, 208, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, rgba(231, 236, 243, 0.6), transparent),
    radial-gradient(1px 1px at 80px 220px, rgba(231, 236, 243, 0.5), transparent);
  background-size: 260px 260px;
  content: "";
  opacity: 0.3;
  animation: stardrift 240s linear infinite;
}
.bg-stars::after {
  background-size: 420px 420px;
  opacity: 0.2;
  animation-direction: reverse;
  animation-duration: 400s;
}
@keyframes stardrift { to { transform: translate3d(260px, 130px, 0); } }

.bg-aura {
  --aura-lo: 0.22;
  --aura-hi: 0.42;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-aura::before, .bg-aura::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(70px);
  opacity: var(--aura-hi);
}
.bg-aura::before {
  width: 55vw;
  height: 55vw;
  inset: -12% auto auto 4%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 58%, transparent), transparent 66%);
  animation: aura-a 18s ease-in-out infinite;
}
.bg-aura::after {
  width: 48vw;
  height: 48vw;
  inset: auto 0 -14% auto;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-2) 60%, transparent), transparent 66%);
  animation: aura-b 24s ease-in-out infinite;
}
@keyframes aura-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: var(--aura-lo); }
  50% { transform: translate3d(4vw, 3vw, 0) scale(1.18); opacity: var(--aura-hi); }
}
@keyframes aura-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: var(--aura-lo); }
  50% { transform: translate3d(-4vw, -3vw, 0) scale(1.16); opacity: var(--aura-hi); }
}

.bg-nebula { position: fixed; inset: 0; z-index: -1; background: radial-gradient(60% 45% at 72% 10%, color-mix(in oklab, var(--accent) 10%, transparent), transparent); pointer-events: none; }
body[data-page="home"] .bg-nebula { display: none; }
:root[data-theme="light"] .bg-stars { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .bg-stars { display: none; }
}

main { display: block; }
img, svg { max-width: 100%; }
button, input { font: inherit; }
h1, h2, h3, h4, h5, .tag, .sec-num, .stat .l, .card .k, .phys-cell .k {
  letter-spacing: 0;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--warn);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 100;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.tag {
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
}
.tag-accent { color: var(--accent); }

/* Navigation */
.nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.nav-in {
  position: relative;
  display: flex;
  min-height: var(--nav-h);
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-2));
  box-shadow:
    0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent),
    0 0 16px color-mix(in oklab, var(--accent) 55%, transparent);
  animation: corepulse 3.5s ease-in-out infinite;
}
@keyframes corepulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent),
      0 0 14px color-mix(in oklab, var(--accent) 45%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 5px color-mix(in oklab, var(--accent) 14%, transparent),
      0 0 26px color-mix(in oklab, var(--accent) 85%, transparent);
  }
}
.brand .word, .brand .word em {
  --brand-glint: #ffffff;
  background-image:
    linear-gradient(100deg, transparent 42%, var(--brand-glint) 50%, transparent 58%),
    linear-gradient(var(--brand-base), var(--brand-base));
  background-position: 190% 0, 0 0;
  background-repeat: no-repeat;
  background-size: 220% 100%, 100% 100%;
  color: transparent;
  animation: brandglaze 10s ease-in-out infinite;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand .word { --brand-base: #cbd4e0; position: relative; display: inline-block; }
.brand .word em { --brand-base: var(--accent); font-style: normal; }
:root[data-theme="light"] .brand .word { --brand-base: var(--ink); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand .word { --brand-base: var(--ink); }
}
@keyframes brandglaze {
  0% { background-position: 190% 0, 0 0; }
  22%, 100% { background-position: -90% 0, 0 0; }
}

.nav-beta, .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--accent) 8%, var(--bg));
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
}
.pill { padding: 6px 10px; font-size: 11px; }
.pill .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: auto;
}
.nav-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
  text-decoration: none;
}
.nav-links a.cta {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-mono);
  font-size: 12px;
}
.nav-links a.cta:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); }

.theme-btn, .nav-menu-btn {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.theme-btn:hover, .nav-menu-btn:hover { border-color: var(--accent); color: var(--ink); }
.nav-menu-btn { display: none; margin-inline-start: auto; }
.nav-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}
.nav-menu-btn[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-block-size: 0;
  padding: 72px 0 56px;
  align-items: center;
  overflow: hidden;
  border-top: 0;
  isolation: isolate;
}
.hero::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    680px 340px at 78% 12%,
    color-mix(in oklab, var(--accent) 16%, transparent),
    transparent 70%
  );
  content: "";
  pointer-events: none;
}
body[data-page="home"] .hero { min-block-size: min(680px, calc(100svh - 184px)); }
.hero-grid { position: relative; z-index: 1; display: block; width: 100%; }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero h1 {
  margin: 16px 0 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.04;
}
body[data-page="home"] .hero h1 { font-size: 64px; }
.hero .lede {
  max-width: 40em;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 18px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: 13px;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover {
  background: color-mix(in oklab, var(--accent) 86%, var(--ink));
  text-decoration: none;
}
.btn-ghost {
  border-color: var(--line-2);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.core3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero.has-3d .core3d { display: block; }
.orbit {
  position: absolute;
  inset: 50% 0 auto auto;
  width: min(40vw, 420px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}
.orbit svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero.has-3d .orbit { visibility: hidden; }
.orbit .ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.orbit .core { fill: var(--accent); }
.orbit .node { fill: var(--panel); stroke: var(--line-2); stroke-width: 1.5; }
.orbit .spin { transform-origin: 50% 50%; animation: spin 34s linear infinite; }
.orbit .spin.rev { animation-duration: 52s; animation-direction: reverse; }
.orbit .spin.slow { animation-duration: 68s; }
.orbit-label { fill: var(--ink-3); font-family: var(--f-mono); font-size: 9px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Full-width sections and evidence surfaces */
section { padding: 80px 0; border-top: 1px solid var(--line); }
.sec-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 36px;
}
.sec-num {
  padding-top: 8px;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 13px;
}
.sec-head h1, .sec-head h2, .closing-title, .access-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.14;
}
.sec-head p { max-width: 44em; margin: 8px 0 0; color: var(--ink-2); }

.frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.frame-bar {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.frame-bar i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.frame-bar .u {
  margin-inline-start: 8px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11px;
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2720 / 1800;
  object-fit: contain;
}
.product-shot { margin-bottom: 24px; }

.feat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.feat:first-of-type { border-top: 0; }
.feat > *, .feat-media { min-width: 0; }
.feat.flip .feat-media { order: -1; }
.feat h3 { margin: 10px 0 8px; font-family: var(--f-display); font-size: 22px; }
.feat p { margin: 0; color: var(--ink-2); }
.feat ul { margin: 14px 0 0; padding-inline-start: 20px; color: var(--ink-2); }
.feat li { margin: 5px 0; }
.feat li::marker, .log li::marker { color: var(--accent); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}
.cards-4, .cards:has(> .card:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  min-width: 0;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
}
.card .k {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
}
.card h4 { margin: 9px 0 6px; font-family: var(--f-display); font-size: 17px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; }

.phys { display: grid; border-bottom: 1px solid var(--line); }
.phys-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.2fr);
  border-top: 1px solid var(--line);
}
.phys-cell { padding: 20px; }
.phys-cell .k {
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
}
.phys-cell p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.phys-cell.is-agent { border-inline-start: 1px solid var(--line); background: var(--panel); }
.phys-cell.is-agent .k { color: var(--accent); }
.phys-arrow { display: grid; padding: 0 6px; place-items: center; color: var(--accent); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  border-block: 1px solid var(--line);
  background: var(--line);
}
.stat { min-width: 0; padding: 22px 20px; background: var(--bg); }
.stat .n { color: var(--ink); font-family: var(--f-display); font-size: 30px; font-weight: 700; }
.stat .l {
  margin-top: 4px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.steps { display: grid; border-block: 1px solid var(--line); counter-reset: s; }
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; }
.step::before {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 14px;
  content: counter(s, decimal-leading-zero);
  counter-increment: s;
}
.step h4 { margin: 0 0 6px; font-family: var(--f-display); font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }

pre.code {
  margin: 0;
  overflow-x: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
}
pre.code .cm { color: var(--ink-3); }
pre.code .ky { color: var(--accent); }
pre.code .st { color: var(--good); }
code.inline, .log code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

/* Access, archive, and release surfaces */
.access-band { background: var(--bg-2); }
.access-band > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: start;
  gap: 72px;
}
.access-copy p { max-width: 38em; margin: 12px 0 0; color: var(--ink-2); }
.wl-panel { min-width: 0; padding-top: 4px; }
.wl-head { display: flex; align-items: center; justify-content: space-between; }
.wl-k {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
}
.waitlist { display: flex; max-width: 500px; margin-top: 12px; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"] {
  min-width: 0;
  min-height: 46px;
  flex: 1 1 220px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
}
.waitlist input::placeholder { color: var(--ink-3); }
.waitlist button {
  min-width: 156px;
  min-height: 46px;
  flex: 0 0 auto;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.waitlist button:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); }
.waitlist button:disabled { opacity: 0.62; cursor: wait; }
.waitlist.done input, .waitlist.done button { visibility: hidden; }
.waitlist-msg { display: none; min-height: 48px; margin: 14px 0 0; font-size: 15px; }
.waitlist-msg.on { display: block; }
.waitlist-msg.ok { color: var(--good); }
.waitlist-msg.err { color: var(--risk); }
.waitlist-msg .big {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
}
.wl-note { margin: 12px 0 0; color: var(--ink-3); font-family: var(--f-mono); font-size: 11px; }
.access-link { display: inline-flex; min-height: 40px; align-items: center; margin-top: 14px; }

.sky {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(900px 420px at 70% 20%, rgba(124, 208, 255, 0.07), transparent 70%),
    #0d1017;
  box-shadow: var(--shadow);
}
.sky svg { display: block; width: 100%; height: auto; }
.sky .lbl {
  fill: #aeb8c6;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.sky .sub { fill: #728196; font-family: var(--f-mono); font-size: 8.5px; }
.sky .grid-line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 0.5; stroke-dasharray: 2 5; }
.cstar { cursor: pointer; transition: filter 120ms ease-out; }
.cstar:hover, .cstar:focus { filter: brightness(1.18); outline: none; }
.hint-inline { color: var(--accent); }

.chart-callout {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 4;
  width: min(280px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1px solid #2e3745;
  border-radius: var(--radius);
  background: rgba(15, 19, 27, 0.96);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transform: translate(16px, 16px);
  transition: opacity 120ms ease-out;
}
.chart-callout.on { opacity: 1; }
.chart-callout .cc-k {
  color: #7cd0ff;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
}
.chart-callout h5 { margin: 3px 0 9px; color: #e7ecf3; font-family: var(--f-display); font-size: 15px; }
.chart-callout .cc-row { display: flex; gap: 8px; margin: 4px 0; color: #aeb8c6; font-size: 12px; line-height: 1.45; }
.chart-callout .mk { flex: none; font-family: var(--f-mono); font-weight: 700; }
.chart-callout .pro .mk { color: #46d39a; }
.chart-callout .con .mk { color: #ff8f5a; }

.chart-selectors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.chart-selector {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 11px;
  cursor: pointer;
}
.chart-selector:hover, .chart-selector[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.cmp-scroll { overflow-x: auto; border-radius: var(--radius); }
.cmp { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 14px; }
.cmp caption { margin-bottom: 12px; color: var(--ink-3); font-size: 13px; text-align: left; }
.cmp th, .cmp td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp th {
  background: var(--panel-2);
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
}
.cmp tbody th { color: var(--ink-2); font-family: var(--f-body); font-size: 14px; text-transform: none; }
.cmp .y { color: var(--good); font-weight: 600; }
.cmp .n { color: var(--ink-3); }
.cmp .hl { background: color-mix(in oklab, var(--accent) 7%, var(--panel)); }
.foot-cite { max-width: 56em; margin: 18px 0 0; color: var(--ink-3); font-size: 13px; }
.closing-title { margin-top: 12px; }

.log { max-width: 780px; }
.log h1 { display: none; }
.log pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.log pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre;
  overflow-wrap: normal;
}
.log h2 {
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 22px;
}
.log ul { padding-inline-start: 20px; }
.log li { margin: 10px 0; color: var(--ink-2); }
.log strong { color: var(--ink); }
.log p { color: var(--ink-3); font-size: 13px; }

footer { padding: 44px 0 60px; border-top: 1px solid var(--line); color: var(--ink-3); }
.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-in a { color: var(--ink-2); font-size: 14px; }
.foot-note { max-width: 60em; font-family: var(--f-mono); font-size: 12px; }

.confirm-banner {
  position: fixed;
  inset: auto auto 24px 50%;
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  transform: translate(-50%, 160%);
  transition: transform 180ms ease-out;
}
.confirm-banner.show { transform: translate(-50%, 0); }
.confirm-banner.ok { border-color: var(--good); }
.confirm-banner.err { border-color: var(--risk); }

.reveal { opacity: 0; transform: translateY(12px); animation: rise 420ms ease-out forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .nav-beta { display: none; }
  .cards-4, .cards:has(> .card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .access-band > .wrap { gap: 48px; }
}

@media (max-width: 900px) {
  .nav-beta { display: inline-flex; }
  .nav-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    max-height: calc(100dvh - var(--nav-h));
    margin: 0;
    padding: 16px 24px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; min-height: 44px; padding: 8px 4px; border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-links a.cta { width: 100%; margin-top: 8px; justify-content: center; }
  .nav-links .theme-btn { margin-top: 8px; }
  section { padding: 64px 0; }
  .sec-head h1, .sec-head h2, .closing-title, .access-copy h2 { font-size: 32px; }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feat.flip .feat-media { order: 0; }
  .access-band > .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .chart-selectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 900px) {
  .hero-copy { max-width: 390px; }
}

@media (max-width: 340px) {
  .nav-beta { display: none; }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero {
    min-block-size: calc(100svh - 144px);
    padding: 32px 0 28px;
    align-items: flex-end;
  }
  .hero h1, body[data-page="home"] .hero h1 { font-size: 44px; }
  .orbit {
    inset: 12px -72px auto auto;
    width: 230px;
    opacity: 0.38;
    transform: none;
  }
  .phys-row { grid-template-columns: minmax(0, 1fr); }
  .phys-arrow { display: none; }
  .phys-cell.is-agent { border-block-start: 1px solid var(--line); border-inline-start: 0; }
  .cards, .cards-4, .cards:has(> .card:nth-child(4):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .brand { font-size: 17px; }
  .hero { padding: 56px 0 40px; }
  #product { padding-top: 24px; }
  .hero h1, body[data-page="home"] .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 16px; }
  section { padding: 52px 0; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 28px; }
  .sec-num { padding-top: 0; }
  .sec-head h1, .sec-head h2, .closing-title, .access-copy h2 { font-size: 28px; }
  .waitlist button { flex: 1 1 100%; }
  .foot-in { align-items: flex-start; flex-direction: column; }
  .chart-selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-callout { position: relative; inset: auto; display: none; width: auto; margin: 0 12px 12px; transform: none !important; }
  .chart-callout.on { display: block; }
}

@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 18px; }
}

@media (max-width: 760px) and (max-height: 600px) and (orientation: landscape) {
  body[data-page="home"] .hero { min-block-size: 0; padding: 56px 0; }
  .hero-copy { max-width: 58%; }
  .orbit { inset: 50% 0 auto auto; width: 38%; transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .core3d { display: none !important; }
  .hero.has-3d .orbit { visibility: visible; }
  .orbit animate { display: none; }
}

@media (forced-colors: active) {
  .brand .dot, .pill .pip { forced-color-adjust: none; }
}
