/* Cortex — styles.css
   Plain CSS, no build step. Extends the WA aesthetic for the product launch.
   White / ink / muted / single accent blue. Hairline rules.
   Sub-400ms motion. No glassmorphism, no parallax.
*/

:root {
  /* Pure neutrals */
  --ink: #0A0A0A;
  --ink-soft: #171717;
  --muted: #525252;
  --muted-soft: #737373;
  --muted-quiet: #A3A3A3;
  --rule: #E5E5E5;
  --rule-soft: #F5F5F5;
  --button: #0A0A0A;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --container: 1200px;
  --gap: 24px;
  --nav-h: 64px;

  /* Accent — single blue. */
  --accent: #2563EB;
  --accent-deep: #1D4ED8;
  --accent-soft: #EFF4FE;

  /* Type scale */
  --fs-micro: 11px;
  --fs-caption: 13px;
  --fs-small: 14px;
  --fs-body: 17px;
  --fs-lead: 19px;
  --fs-statement: 24px;
  --fs-statement-lg: 32px;

  /* Fluid hero */
  --fs-hero: clamp(40px, 7.4vw + 6px, 108px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  --dur: 380ms;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11", "kern";
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

p, li, dd, h1, h2, h3, h4, .hero-text { text-wrap: pretty; }
h1, h2, .hero-title { text-wrap: balance; }

:target,
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
html { scroll-padding-top: calc(var(--nav-h) + 24px); }

main { flex: 1; }
a { color: inherit; text-decoration: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.05; font-weight: 600; }
::selection { background: var(--ink); color: #fff; }

/* Focus rings */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn-primary:focus-visible { outline-offset: 4px; }
a:focus-visible { border-radius: 1px; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { padding: 0 56px; } }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }

/* Tokens */
.label {
  font-size: var(--fs-micro);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  font-feature-settings: "ss01", "cv11";
}
.label-ink { color: var(--ink); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "ss01", "cv11"; }

/* Skip link */
.skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus {
  position: fixed; left: 12px; top: 12px; width: auto; height: auto;
  background: var(--button); color: #fff; padding: 8px 12px;
  border-radius: 6px; font-size: 14px; z-index: 100;
}

/* Static marker */
.marker {
  display: inline-block;
  width: 6px; height: 6px;
  border: 1px solid var(--ink);
  background: transparent;
  margin-right: 2px;
  position: relative;
  top: -1px;
}
.marker-filled { background: var(--ink); }
.marker-accent { border-color: var(--accent); background: var(--accent); }

/* =========================================================================
   Header — sticky glass nav.
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.04);
  transition: background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(10, 10, 10, 0.08);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.02), 0 8px 32px -20px rgba(10, 10, 10, 0.10);
}
.site-header .container.grid-12 {
  align-items: center;
  height: 100%;
}
.site-header .brand {
  grid-column: span 6;
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.018em;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--ink);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-version {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum","ss01";
  margin-left: 2px;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.site-nav {
  grid-column: span 6;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 18px; font-size: 14px; color: var(--muted);
  flex-wrap: wrap;
}
/* Overlay-only chrome — hidden on desktop horizontal nav */
.site-nav .nav-brand,
.site-nav .nav-footer { display: none; }
.site-nav a .nav-arrow { display: none; }
@media (min-width: 768px) { .site-nav { gap: 26px; } }

.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 180ms var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 999px;
  font-weight: 500;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--ink-soft); transform: translateY(-1px); color: #FFFFFF; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 112px 0 80px; } }
@media (min-width: 1200px) { .hero { padding: 132px 0 96px; } }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1100px 540px at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: var(--fs-micro);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  font-weight: 500;
  font-feature-settings: "tnum","ss01";
}
.hero-title {
  margin-top: 28px;
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.96;
  max-width: 16ch;
  color: var(--ink);
}
.hero-title .accent { color: var(--accent); }
.hero-text {
  margin-top: 36px;
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
}
@media (min-width: 768px) {
  .hero-text { font-size: 21px; }
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.hero-meta {
  margin-top: 24px;
  font-size: var(--fs-caption);
  color: var(--muted-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-meta .dot {
  width: 4px; height: 4px;
  background: var(--muted-quiet);
  border-radius: 50%;
  display: inline-block;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 500;
  padding: 14px 24px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  transition: background 200ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 1px 2px rgba(15, 23, 42, 0.10),
    0 8px 24px -10px rgba(37, 99, 235, 0.45);
  border: 0;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.20) inset,
    0 2px 4px rgba(15, 23, 42, 0.12),
    0 14px 32px -12px rgba(37, 99, 235, 0.55);
}
.btn-primary .arrow { transition: transform 180ms var(--ease); }
.btn-primary:hover .arrow { transform: translateX(2px); }
.btn-primary .os {
  display: inline-flex;
  width: 14px; height: 14px;
  align-items: center; justify-content: center;
  margin-right: -2px;
}
.btn-primary .os svg { width: 100%; height: 100%; }

.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 4px 0;
  position: relative;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.btn-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease);
}
.btn-text:hover::after { transform: scaleX(1); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Hero stat row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--rule);
}
.hero-stats .stat {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.hero-stats .stat:nth-child(odd) { padding-right: 16px; }
.hero-stats .stat:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}
.hero-stats .stat .k {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.hero-stats .stat .v {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum","ss01";
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hero-stats .stat .v .unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: lowercase;
}
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stats .stat:nth-child(n) {
    padding: 22px 20px;
    border-left: 1px solid var(--rule);
    border-bottom: 0;
  }
  .hero-stats .stat:first-child {
    border-left: 0;
    padding-left: 0;
  }
  .hero-stats .stat:last-child { padding-right: 0; }
}

/* =========================================================================
   Cortex preview — animated 3-agent demo block.
   Ported from wa/styles.css with looping animation added.
   ========================================================================= */
.cortex-preview {
  margin-top: 64px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(10, 10, 10, 0.02),
    0 2px 8px rgba(10, 10, 10, 0.03),
    0 30px 60px -28px rgba(15, 23, 42, 0.10);
}
@media (min-width: 768px) { .cortex-preview { margin-top: 88px; } }

.cortex-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #FAFAFA 0%, #F4F4F4 100%);
}
.cortex-chrome .dots { display: inline-flex; gap: 6px; }
.cortex-chrome .dots span {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted-soft);
  opacity: 0.42;
}
.cortex-chrome .title {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Cascadia Code", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
  font-feature-settings: "tnum", "ss01";
}
.cortex-chrome .version {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  font-feature-settings: "tnum", "ss01";
}

.cortex-body { background: var(--bg); }
.cortex-agent {
  padding: 22px 26px;
  border-bottom: 1px solid var(--rule);
}
.cortex-agent:last-child { border-bottom: 0; }

.agent-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.agent-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-weight: 500;
  font-feature-settings: "ss01","cv11";
}
.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  font-feature-settings: "ss01";
  color: var(--muted);
}
.agent-status .marker { top: 0; }
.status-working { color: var(--accent-deep); }
.status-review  { color: var(--ink); }
.status-idle    { color: var(--muted); }

.agent-log {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Cascadia Code", monospace;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
  font-feature-settings: "tnum", "ss01";
}
.agent-log p {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  column-gap: 12px;
  padding: 1px 0;
  /* Default state — invisible until staggered in or animated. */
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.agent-log p .ts {
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.agent-log p .arr {
  color: var(--muted-soft);
  font-weight: 500;
}
.agent-log .dim { color: var(--muted); }
.agent-log .accent { color: var(--accent-deep); font-weight: 500; }

/* When the preview is in view, log lines stagger in. */
.cortex-preview.is-playing .agent-log p { opacity: 1; transform: translateY(0); }
.cortex-preview .agent-log p:nth-child(1) { transition-delay: 0ms; }
.cortex-preview .agent-log p:nth-child(2) { transition-delay: 120ms; }
.cortex-preview .agent-log p:nth-child(3) { transition-delay: 240ms; }
.cortex-preview .agent-log p:nth-child(4) { transition-delay: 360ms; }

/* Tick row appended by JS every 6s, pulses the new line. */
.cortex-preview .agent-log p.tick {
  animation: tickIn 360ms var(--ease) both;
}
@keyframes tickIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cortex-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border-top: 1px solid var(--rule);
  background: var(--rule-soft);
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  font-feature-settings: "ss01";
}
.cortex-footer .k {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin-right: 6px;
}
.cortex-footer .v {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Cascadia Code", monospace;
  font-size: 12px;
  font-feature-settings: "tnum","ss01";
}
.cortex-footer .sep { color: var(--muted-soft); }
.cortex-footer .sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-deep);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
}
.cortex-footer .sync .marker { top: 0; }

.cortex-caption {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.cortex-caption .em { font-style: italic; color: var(--muted); }

/* =========================================================================
   Section frame
   ========================================================================= */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) { .section { padding: 120px 0; } }

.section-head {
  margin-bottom: 56px;
}
.section-head .label {
  display: inline-block;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw + 8px, 56px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 22ch;
  font-weight: 600;
}
.section-head p {
  margin-top: 24px;
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
}

/* =========================================================================
   What it does — 3-card grid
   ========================================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .feature {
    padding: 48px 32px;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .feature:first-child { padding-left: 0; }
  .feature:last-child { padding-right: 0; border-right: 0; }
}
.feature .icon {
  display: inline-flex;
  width: 28px; height: 28px;
  color: var(--accent);
  margin-bottom: 24px;
}
.feature .icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}
.feature p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.feature .meta {
  margin-top: 20px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted-soft);
  font-feature-settings: "tnum","ss01";
  letter-spacing: 0.02em;
}

/* =========================================================================
   Founder note
   ========================================================================= */
.founder-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .founder-block { grid-template-columns: 1fr 1.6fr; gap: 64px; }
}

.founder-meta {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.founder-meta .label { display: block; margin-bottom: 16px; }
.founder-meta .who {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.founder-meta .where {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum","ss01";
}
.founder-meta .signature {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-style: italic;
}

.founder-letter {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
}
.founder-letter p + p { margin-top: 18px; }
@media (min-width: 768px) {
  .founder-letter { font-size: 21px; line-height: 1.55; }
}

/* =========================================================================
   How it works — 3 steps
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  counter-increment: step;
}
@media (min-width: 768px) {
  .step {
    padding: 56px 32px;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .step:first-child { padding-left: 0; }
  .step:last-child { padding-right: 0; border-right: 0; }
}
.step .n {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum","ss01","salt";
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}
.step h3 {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.step p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================================================
   Comparison table — desktop = real table, mobile = stacked cards
   ========================================================================= */
.compare-wrap { overflow-x: auto; }
.compare {
  display: none;
}
@media (min-width: 768px) {
  .compare {
    display: table;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }
}
.compare th, .compare td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.5;
}
.compare thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  background: transparent;
}
.compare thead th.is-us {
  color: var(--ink);
  font-weight: 600;
}
.compare tbody th {
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
  width: 28%;
  letter-spacing: -0.01em;
}
.compare tbody td.is-us {
  color: var(--ink);
  font-weight: 500;
  background: rgba(37, 99, 235, 0.025);
}
.compare tbody tr {
  transition: background 150ms var(--ease);
}
.compare tbody tr:hover { background: var(--rule-soft); }
.compare tbody tr:hover td.is-us { background: rgba(37, 99, 235, 0.05); }
.compare .check { color: var(--accent); font-weight: 500; }
.compare .x { color: var(--muted-quiet); }

/* Mobile compare — stacked cards */
.compare-mobile { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .compare-mobile { display: none; } }

.compare-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg);
}
.compare-card.is-us {
  border-color: var(--ink);
  box-shadow: 0 8px 24px -16px rgba(37, 99, 235, 0.20);
}
.compare-card .col-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.compare-card.is-us .col-name { color: var(--accent); }
.compare-card .col-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
}
.compare-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.compare-card dl > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  align-items: baseline;
}
.compare-card dl > div:first-child { border-top: 0; }
.compare-card dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}
.compare-card dd { color: var(--ink); line-height: 1.4; }

/* =========================================================================
   System requirements + install
   ========================================================================= */
.install-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .install-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.spec-list {
  border-top: 1px solid var(--rule);
}
.spec-list .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 480px) {
  .spec-list .row {
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: baseline;
  }
}
.spec-list .k {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}
.spec-list .v {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum","ss01";
}
.spec-list .v code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--rule-soft);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink-soft);
}
.spec-list .v .pending {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
  font-style: italic;
}

.install-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.install-card .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.install-card .head .platform {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.install-card .head .size {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum","ss01";
}
.install-card ol {
  list-style: decimal inside;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  padding-left: 4px;
}
.install-card ol li { margin-bottom: 6px; }
.install-card ol code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--rule-soft);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink);
}
.install-card .note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  padding: 12px 14px;
  background: var(--rule-soft);
  border-radius: 6px;
  border-left: 2px solid var(--accent);
}
.install-card .note strong { color: var(--ink); font-weight: 600; }
.install-card .install-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.install-mobile-fallback {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: var(--rule-soft);
}
.install-mobile-fallback h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.install-mobile-fallback p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.install-mobile-fallback form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.install-mobile-fallback input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}
.install-mobile-fallback input[type="email"]:focus-visible {
  border-color: var(--accent);
  outline-offset: 1px;
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 880px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  user-select: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 200ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-deep); }
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.faq summary .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-quiet);
  transition: transform 280ms var(--ease), color 200ms var(--ease);
}
.faq details[open] summary .chev {
  transform: rotate(180deg);
  color: var(--ink);
}
.faq .answer {
  padding: 0 0 24px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}
.faq .answer p + p { margin-top: 12px; }
.faq .answer a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 180ms var(--ease);
}
.faq .answer a:hover { border-bottom-color: var(--accent-deep); }
.faq .answer code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--rule-soft);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink);
}

/* =========================================================================
   Footer — quiet, single column-ish, dark plate
   ========================================================================= */
.site-footer {
  margin-top: 0;
  background: #0A0A0A;
  color: #FAFAFA;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.10) 20%, rgba(255,255,255,0.10) 80%, transparent 100%);
}

.site-footer-cta {
  padding: 80px 0 64px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-footer-cta .eyebrow {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #60A5FA;
  font-weight: 500;
  font-feature-settings: "tnum","ss01";
}
.site-footer-cta h2 {
  margin-top: 24px;
  font-size: clamp(36px, 5.6vw + 4px, 76px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-weight: 600;
  color: #FFFFFF;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.site-footer-cta .actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  align-items: center;
}
.site-footer-cta .btn-primary {
  background: #60A5FA;
  color: #07070A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px -12px rgba(96, 165, 250, 0.55);
}
.site-footer-cta .btn-primary:hover {
  background: #93C5FD;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 36px -12px rgba(96, 165, 250, 0.7);
}
.site-footer-cta .btn-text {
  color: #FAFAFA;
}
.site-footer-cta .btn-text::after { background: #FAFAFA; }

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px var(--gap);
  padding: 64px 0 48px;
  align-items: start;
}
.site-footer .col-brand { grid-column: span 12; }
.site-footer .col-nav { grid-column: span 6; }
.site-footer .col-meta { grid-column: span 6; }
@media (min-width: 768px) {
  .site-footer .col-brand { grid-column: span 5; }
  .site-footer .col-nav { grid-column: span 4; }
  .site-footer .col-meta { grid-column: span 3; text-align: right; }
}
.site-footer .brand-line {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.018em;
  color: #FFFFFF;
}
.site-footer .brand-line .brand-mark { color: #FAFAFA; width: 22px; height: 22px; }
.site-footer .brand-desc {
  margin-top: 18px;
  font-size: 14px;
  color: #A3A3A3;
  line-height: 1.7;
  max-width: 38ch;
}
.site-footer .footer-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: #A3A3A3;
  margin-bottom: 18px;
}
.site-footer .footer-list {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px;
}
.site-footer .footer-list a {
  color: #FAFAFA;
  transition: color 180ms var(--ease);
}
.site-footer .footer-list a:hover { color: #A3A3A3; }
.site-footer .meta-line {
  font-size: 13px;
  color: #A3A3A3;
  line-height: 1.7;
}
.site-footer .meta-line + .meta-line { margin-top: 10px; }
.site-footer .meta-line .k {
  display: block;
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; color: #737373;
  margin-bottom: 4px; font-weight: 500;
}

.site-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer-legal-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-size: 12px;
  color: #737373;
  flex-wrap: wrap;
}
.site-footer-legal-grid .copy { font-variant-numeric: tabular-nums; }
.site-footer-legal-grid a { color: #A3A3A3; transition: color 180ms var(--ease); }
.site-footer-legal-grid a:hover { color: #FFFFFF; }
.site-footer-legal-grid .links {
  display: flex; gap: 18px; align-items: center;
}

/* =========================================================================
   Fade-in on scroll
   ========================================================================= */
.fade {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.fade.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .agent-log p { opacity: 1 !important; transform: none !important; }
  .cortex-preview .agent-log p.tick { animation: none; }
}

/* =========================================================================
   Mobile nav (hamburger) — appears <=1023px
   Bulletproof: dark bars on white header, separate .mobile-menu element
   so the desktop <nav> never has to shape-shift.
   ========================================================================= */

/* Hamburger button — desktop hidden, mobile visible */
.nav-toggle { display: none; }

/* Mobile menu overlay — desktop hidden */
.mobile-menu { display: none; }

@media (max-width: 1023px) {
  /* Show hamburger, HIDE the desktop horizontal nav entirely */
  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
    position: relative;
    z-index: 110;
    -webkit-tap-highlight-color: transparent;
    grid-column: span 3;
  }
  .site-nav { display: none !important; }
  .site-header .brand { grid-column: span 9; }

  /* Bars — DARK on closed state, visible on white header */
  .nav-toggle-bar {
    display: block;
    position: static;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transform: none;
    transition:
      transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
      opacity 200ms ease,
      background 200ms ease;
  }
  /* X morph on open — bars flip white because they sit on dark overlay */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: #FAFAFA; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

  /* Mobile menu overlay — only on mobile, only when body.nav-open */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 10, 0.94);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    z-index: 100;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Closed defaults */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity 280ms cubic-bezier(0.4, 0, 0.2, 1),
      transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear 280ms;
  }
  body.nav-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity 280ms cubic-bezier(0.4, 0, 0.2, 1),
      transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear 0s;
  }

  .mobile-menu-inner {
    padding: 88px 32px 48px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    color: #FAFAFA;
  }

  .mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.018em;
    color: #FAFAFA;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
  }
  .mobile-menu-brand .brand-mark { width: 22px; height: 22px; color: #FAFAFA; }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
  }
  .mobile-menu nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 4px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #FAFAFA;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),
      transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
      color 180ms ease;
  }
  .mobile-menu nav a .nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(250, 250, 250, 0.5);
    transition: transform 200ms ease, color 200ms ease;
    margin-left: 16px;
  }
  .mobile-menu nav a:hover { color: #FFFFFF; }
  .mobile-menu nav a:hover .nav-arrow { transform: translateX(4px); color: #FAFAFA; }

  body.nav-open .mobile-menu nav a:nth-of-type(1) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
  body.nav-open .mobile-menu nav a:nth-of-type(2) { transition-delay: 140ms; opacity: 1; transform: translateY(0); }
  body.nav-open .mobile-menu nav a:nth-of-type(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
  body.nav-open .mobile-menu nav a:nth-of-type(4) { transition-delay: 260ms; opacity: 1; transform: translateY(0); }
  body.nav-open .mobile-menu nav a:nth-of-type(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
  body.nav-open .mobile-menu nav a:nth-of-type(6) { transition-delay: 380ms; opacity: 1; transform: translateY(0); }
  body.nav-open .mobile-menu nav a:nth-of-type(7) { transition-delay: 440ms; opacity: 1; transform: translateY(0); }

  /* CTA pill — kept readable */
  .mobile-menu nav a.nav-cta {
    margin-top: 20px;
    padding: 16px 24px;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 0;
    justify-content: center;
    text-align: center;
  }
  .mobile-menu nav a.nav-cta:hover { background: var(--accent-deep); color: #FFFFFF; }
  .mobile-menu nav a.nav-cta .nav-arrow { display: none; }

  .mobile-menu-footer {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    color: rgba(250, 250, 250, 0.72);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),
      transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  body.nav-open .mobile-menu-footer {
    transition-delay: 500ms;
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-menu-footer .footer-line { display: block; }
  .mobile-menu-footer a {
    color: #FAFAFA;
    text-decoration: none;
    transition: color 180ms ease;
  }
  .mobile-menu-footer a:hover { color: var(--accent); }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu nav a,
  .mobile-menu-footer {
    transition: none !important;
    transition-delay: 0s !important;
    transform: none !important;
  }
}

/* =========================================================================
   Legal pages — long-form reading
   ========================================================================= */
.legal-hero {
  padding: 96px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.legal-hero h1 {
  font-size: clamp(36px, 5vw + 4px, 64px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 600;
}
.legal-hero .updated {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum","ss01";
}
.legal-body {
  padding: 48px 0 96px;
  max-width: 720px;
}
.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
  color: var(--ink);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-body ul {
  list-style: disc inside;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-left: 8px;
}
.legal-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--rule-soft);
  padding: 1px 6px;
  border-radius: 3px;
}
.legal-body a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-soft);
}

/* Print stylesheet */
@media print {
  .site-header, .site-nav, .mobile-menu, .nav-toggle, .site-footer-legal, .skip-link, .btn-primary, .btn-text {
    display: none !important;
  }
  body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt; line-height: 1.5; color: #000; background: #fff;
  }
  .container { max-width: 100%; padding: 0; }
  .hero, .section { padding: 8pt 0; }
  .hero-title { font-size: 22pt; line-height: 1.1; }
  .hero-text, .feature p, .step p { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after, a[href^="mailto"]::after {
    content: " (" attr(href) ")"; font-size: 9pt; color: #555;
  }
  .launch-countdown, .launch-live { display: none; }
}

/* =========================================================================
   Launch countdown — between hero CTAs and hero meta. Hidden post-launch.
   ========================================================================= */
.launch-countdown {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
}
@media (max-width: 360px) {
  .launch-countdown { grid-template-columns: repeat(2, 1fr); }
}
.launch-countdown[hidden] { display: none; }
.launch-countdown .cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  min-width: 0;
}
.launch-countdown .cd-num {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.launch-countdown .cd-k {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 500;
}
.launch-live {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}
.launch-live[hidden] { display: none; }
.launch-live .ll-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
