/* ==========================================================================
   RadianVector — design system
   Grayscale foundation. Red = the vector. Blue = measured signal.
   Light and dark themes from one token set.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Accent scales — fixed hues, referenced by both themes
   -------------------------------------------------------------------------- */
:root {
  /* The vector. A crimson-leaning red with authority, not a fire-engine red. */
  --red-200: #FFD3CF;
  --red-300: #FFA9A2;
  --red-400: #FF7B72;
  --red-500: #F5453C;
  --red-600: #DE2B26;
  --red-700: #B81D1D;
  --red-800: #8E1616;

  /* Measured signal. Cool, technical, never cyan. */
  --blue-200: #CFE3FF;
  --blue-300: #9CC5FF;
  --blue-400: #5FA0FF;
  --blue-500: #2E7CF0;
  --blue-600: #1B62D4;
  --blue-700: #1449A0;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1240px;
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* the "click into place" curve — slight overshoot, then settle */
  --spring: cubic-bezier(0.34, 1.42, 0.64, 1);
}

/* --------------------------------------------------------------------------
   DARK (default)
   -------------------------------------------------------------------------- */
:root, :root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #08090A;
  --surface-1: #0F1113;
  --surface-2: #151719;
  --surface-3: #1C1F22;

  --fg:   #F4F5F7;
  --fg-2: #B2B7BE;
  --fg-3: #8D939B;  /* 6.4:1 on bg */
  --fg-4: #767D86;  /* 4.8:1 on bg — smallest labels still clear WCAG AA */

  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --hover:       rgba(255, 255, 255, 0.06);

  --red:      var(--red-500);
  --red-soft: var(--red-400);
  --red-deep: var(--red-700);
  --red-glow: rgba(245, 69, 60, 0.34);
  --red-wash: rgba(245, 69, 60, 0.09);
  --red-edge: rgba(245, 69, 60, 0.36);

  --blue:      var(--blue-400);
  --blue-soft: var(--blue-300);
  --blue-wash: rgba(95, 160, 255, 0.09);
  --blue-edge: rgba(95, 160, 255, 0.36);

  /* chart neutrals, light-to-dark on a dark ground */
  --g1: #A9AFB7;
  --g2: #7E848D;
  --g3: #565C65;
  --g4: #3A3F45;

  --pop-bg: #F4F5F7;
  --pop-fg: #08090A;
  --card-grad: linear-gradient(180deg, #0F1113, #0A0B0D);
  --hero-glow-r: rgba(245, 69, 60, 0.11);
  --hero-glow-b: rgba(95, 160, 255, 0.07);
  --grid-line: rgba(255, 255, 255, 0.038);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.95);
}

/* --------------------------------------------------------------------------
   LIGHT
   -------------------------------------------------------------------------- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg:        #FBFBFC;
  --surface-1: #FFFFFF;
  --surface-2: #F4F5F7;
  --surface-3: #ECEEF1;

  --fg:   #0D0F12;
  --fg-2: #474D55;
  --fg-3: #616871;  /* 5.5:1 on bg */
  --fg-4: #6C737C;  /* 4.6:1 on bg — smallest labels still clear WCAG AA */

  --line:        rgba(13, 15, 18, 0.11);
  --line-strong: rgba(13, 15, 18, 0.20);
  --hover:       rgba(13, 15, 18, 0.04);

  --red:      var(--red-600);
  --red-soft: var(--red-500);
  --red-deep: var(--red-800);
  --red-glow: rgba(222, 43, 38, 0.25);
  --red-wash: rgba(222, 43, 38, 0.07);
  --red-edge: rgba(222, 43, 38, 0.32);

  --blue:      var(--blue-600);
  --blue-soft: var(--blue-500);
  --blue-wash: rgba(27, 98, 212, 0.07);
  --blue-edge: rgba(27, 98, 212, 0.30);

  --g1: #5B626B;
  --g2: #838A93;
  --g3: #A9AFB7;
  --g4: #CBD0D6;

  --pop-bg: #0D0F12;
  --pop-fg: #FFFFFF;
  --card-grad: linear-gradient(180deg, #FFFFFF, #F7F8FA);
  --hero-glow-r: rgba(222, 43, 38, 0.07);
  --hero-glow-b: rgba(27, 98, 212, 0.05);
  --grid-line: rgba(13, 15, 18, 0.045);
  --shadow: 0 22px 50px -28px rgba(13, 15, 18, 0.28);
}

/* Follow the OS when the visitor has expressed no preference */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg:        #FBFBFC;
    --surface-1: #FFFFFF;
    --surface-2: #F4F5F7;
    --surface-3: #ECEEF1;
    --fg:   #0D0F12;
    --fg-2: #474D55;
    --fg-3: #616871;
    --fg-4: #6C737C;
    --line:        rgba(13, 15, 18, 0.11);
    --line-strong: rgba(13, 15, 18, 0.20);
    --hover:       rgba(13, 15, 18, 0.04);
    --red:      var(--red-600);
    --red-soft: var(--red-500);
    --red-deep: var(--red-800);
    --red-glow: rgba(222, 43, 38, 0.25);
    --red-wash: rgba(222, 43, 38, 0.07);
    --red-edge: rgba(222, 43, 38, 0.32);
    --blue:      var(--blue-600);
    --blue-soft: var(--blue-500);
    --blue-wash: rgba(27, 98, 212, 0.07);
    --blue-edge: rgba(27, 98, 212, 0.30);
    --g1: #5B626B;
    --g2: #838A93;
    --g3: #A9AFB7;
    --g4: #CBD0D6;
    --card-grad: linear-gradient(180deg, #FFFFFF, #F7F8FA);
    --hero-glow-r: rgba(222, 43, 38, 0.07);
    --hero-glow-b: rgba(27, 98, 212, 0.05);
    --grid-line: rgba(13, 15, 18, 0.045);
    --shadow: 0 22px 50px -28px rgba(13, 15, 18, 0.28);
    --pop-bg: #0D0F12;
    --pop-fg: #FFFFFF;
  }
}

/* Landing page: neutral light canvas; red remains an accent rather than a wash. */
:root[data-theme="light"] body.landing-page {
  --bg: #FAFAF8;
  --hero-glow-r: rgba(222, 43, 38, 0.025);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body.landing-page {
    --bg: #FAFAF8;
    --hero-glow-r: rgba(222, 43, 38, 0.025);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }

/* ---------- Page ambience ---------- */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 78% -6%, var(--hero-glow-r), transparent 62%),
    radial-gradient(760px 520px at 6% 12%, var(--hero-glow-b), transparent 60%);
}
.page-bg .grid-lines { position: absolute; inset: 0; opacity: 0.75; }
.grid-stroke { stroke: var(--grid-line); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section--band { background: color-mix(in srgb, var(--surface-1) 62%, transparent); }
.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Landing page rhythm: compact enough to scan while preserving room for the explanatory graphics. */
.landing-page .section { padding: 68px 0; }
.landing-page .section-head { margin-bottom: 40px; }
.landing-page .release-check__followup {
  margin-top: clamp(42px, 5vw, 60px); padding-top: clamp(34px, 4vw, 48px);
}
.landing-page .cta-block { padding: 60px 36px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

h1.display { font-size: clamp(2.9rem, 7vw, 5.2rem); letter-spacing: -0.045em; }
h2.display { font-size: clamp(2.15rem, 4.4vw, 3.5rem); letter-spacing: -0.038em; }
h3.display { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.02em; }

.lede { color: var(--fg-2); font-size: 1.075rem; line-height: 1.72; margin-top: 18px; }
.muted { color: var(--fg-3); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--font-mono); }
.accent-red { color: var(--red); }
.accent-blue { color: var(--blue); }

.vector-text {
  background: linear-gradient(100deg, var(--fg) 0%, var(--fg-2) 32%, var(--red) 94%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: relative; z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1480px; height: 78px; gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; }
.brand-name .v { color: var(--red); }

.nav-links {
  display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0;
  gap: clamp(12px, 1.25vw, 22px); font-size: 0.82rem; font-weight: 500; color: var(--fg-2);
}
.nav-links a {
  position: relative; min-width: 68px; padding: 7px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; white-space: normal; text-align: center; line-height: 1.05;
  transition: color 0.2s var(--ease);
}
.nav-links a span { display: block; white-space: nowrap; }
.nav-links a span + span { color: var(--fg-3); font-weight: 400; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--red); transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover span + span { color: var(--fg-2); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-cta > .btn--primary {
  padding: 11px 20px;
  border-color: var(--line-strong); background: color-mix(in srgb, var(--surface-1) 72%, transparent); color: var(--fg);
  font-size: .88rem; font-weight: 600;
  box-shadow: 0 8px 20px -18px rgba(0, 0, 0, .55);
}
.nav-cta > .btn--primary:hover {
  border-color: var(--red-edge); background: var(--red-wash); color: var(--fg);
  box-shadow: 0 10px 24px -18px var(--red-glow);
}

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 12px; color: var(--fg-2);
  transition: all 0.22s var(--ease);
}
.icon-btn:hover { background: var(--hover); color: var(--fg); border-color: var(--red-edge); }
.icon-btn svg { width: 17px; height: 17px; }

/* theme toggle icon swap */
.ico-sun { display: none; }
:root[data-theme="light"] .ico-sun { display: block; }
:root[data-theme="light"] .ico-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .ico-sun { display: block; }
  :root:not([data-theme="dark"]) .ico-moon { display: none; }
}

.menu-btn { display: none; }
.menu-btn .menu-close { display: none; }
.menu-btn.is-open .menu-lines { display: none; }
.menu-btn.is-open .menu-close { display: block; }
.mobile-menu {
  display: none; max-height: calc(100vh - 78px); overflow-y: auto;
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 97%, transparent);
  box-shadow: 0 28px 48px -36px rgba(0,0,0,.8);
}
.mobile-menu.is-open { display: block; }
.mobile-menu .wrap {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px;
  max-width: 920px; padding-top: 18px; padding-bottom: 24px;
}
.mobile-menu a {
  display: block; padding: 12px 14px; border-radius: 10px;
  color: var(--fg-2); font-size: .92rem; font-weight: 500;
}
.mobile-menu a:hover { background: var(--hover); color: var(--fg); }
.mobile-menu .mobile-menu__cta {
  grid-column: 1 / -1; width: fit-content; margin: 12px 14px 0;
  background: var(--surface-1); border-color: var(--line-strong); color: var(--fg); font-weight: 600;
}
.mobile-menu .mobile-menu__cta:hover { background: var(--red-wash); border-color: var(--red-edge); }

/* Keep the hero diagram visually connected to the headline on desktop. */
@media (min-width: 1001px) {
  .hero-visual { align-self: start; margin-top: 48px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg);
  font-size: 0.94rem; font-weight: 500; white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.btn:hover { background: var(--hover); border-color: var(--fg-4); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  border-color: var(--red-edge);
  background: linear-gradient(180deg, var(--red-wash), transparent);
  color: var(--fg);
}
.btn--primary:hover {
  border-color: var(--red);
  background: linear-gradient(180deg, var(--red-wash), var(--red-wash));
  box-shadow: 0 10px 34px -16px var(--red-glow);
}
.btn--solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; box-shadow: 0 12px 32px -14px var(--red-glow); }
.btn--pop {
  background: var(--pop-bg); border-color: var(--pop-bg); color: var(--pop-fg);
  font-weight: 600; padding: 16px 30px; font-size: 1rem;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.5);
}
.btn--pop:hover {
  background: var(--pop-bg); border-color: var(--pop-bg); color: var(--pop-fg);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 20px 44px -16px var(--red-glow), 0 0 0 4px var(--red-wash);
}
.btn--pop:active { transform: translateY(0) scale(0.995); }
.btn--sm { padding: 9px 17px; font-size: 0.85rem; }
.btn .ico { width: 15px; height: 15px; flex: none; }
.ico--arrow { transition: transform 0.25s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(3px); }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface-1); font-size: 0.78rem; color: var(--fg-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.pill--live .dot { animation: blip 2.4s ease-in-out infinite; }

.tag {
  display: inline-block; padding: 4px 11px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-3);
}
.tag--red { border-color: var(--red-edge); color: var(--red); background: var(--red-wash); }
.tag--blue { border-color: var(--blue-edge); color: var(--blue); background: var(--blue-wash); }

/* ---------- RadianCortex decision loop ---------- */
.decision-loop { padding: 0 0 46px; position: relative; }
.decision-loop__head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 14px;
}
.decision-loop__head h2 {
  color: var(--fg-3); font-family: var(--font-body); font-size: .88rem;
  font-weight: 400; letter-spacing: 0; line-height: 1.5;
}
.decision-rail {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-1) 86%, transparent);
  box-shadow: var(--shadow); overflow: hidden;
}
.decision-node {
  min-height: 172px; padding: 24px; position: relative;
  border-right: 1px solid var(--line); background: var(--card-grad);
}
.decision-node:last-child { border-right: 0; }
.decision-node::after {
  content: ""; position: absolute; top: 50%; right: -5px; z-index: 2;
  width: 9px; height: 9px; border-radius: 50%; transform: translateY(-50%);
  background: var(--surface-1); border: 2px solid var(--fg-4);
}
.decision-node:last-child::after { display: none; }
.decision-node--core { background: linear-gradient(145deg, var(--red-wash), var(--surface-1) 62%); }
.decision-node--core::after { border-color: var(--red); box-shadow: 0 0 0 5px var(--red-wash); }
.decision-node--selected { background: linear-gradient(145deg, var(--blue-wash), var(--surface-1) 62%); }
.decision-node__num {
  display: block; margin-bottom: 24px; font-family: var(--font-mono);
  color: var(--fg-4); font-size: 10px; letter-spacing: .16em;
}
.decision-node strong { display: block; font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 7px; }
.decision-node p { color: var(--fg-3); font-size: .86rem; line-height: 1.55; }
.decision-node--core strong { color: var(--red); }
.decision-node--selected strong { color: var(--blue); }

/* ---------- Continuous quality check ---------- */
.release-check { padding: 78px 0; }
.release-check__grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center; gap: clamp(38px, 6vw, 78px);
}
.release-check__copy h2 { margin-top: 18px; }
.release-check__copy > p:not(.lede) { margin-top: 16px; color: var(--fg-2); max-width: 650px; }
.release-check__copy .btn { margin-top: 28px; }
.release-check__followup {
  margin-top: clamp(52px, 8vw, 92px); padding-top: clamp(42px, 6vw, 68px);
  border-top: 1px solid var(--line);
}
.release-panel {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card-grad); box-shadow: var(--shadow); overflow: hidden;
}
.release-panel__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 24px 26px; border-bottom: 1px solid var(--line);
}
.release-panel__top > div { display: grid; gap: 6px; }
.release-panel__top strong { font-family: var(--font-display); font-size: 1.2rem; }
.release-panel__label {
  color: var(--fg-4); font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .16em;
}
.release-change {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 26px; border-bottom: 1px solid var(--line); color: var(--fg-3);
  font-size: .78rem;
}
.release-change span { margin-right: 4px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.release-change b {
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface-2); color: var(--fg-2); font-weight: 500;
}
.release-checks { padding: 8px 26px; }
.release-checks > div {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .84rem;
}
.release-checks > div:last-child { border-bottom: 0; }
.release-checks span { display: inline-flex; align-items: center; gap: 9px; color: var(--fg-2); }
.release-checks strong { font-family: var(--font-mono); color: var(--blue); font-size: 9px; letter-spacing: .09em; }
.signal { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.signal--pass { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); }
.signal--new { background: var(--red); box-shadow: 0 0 0 4px var(--red-wash); }
.release-result {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 4px 16px 0; padding: 18px 12px; border-top: 1px solid var(--blue-edge);
}
.release-result span { color: var(--fg-3); font-size: .82rem; }
.release-result strong { color: var(--blue); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .09em; }
.release-panel__note { padding: 0 26px 22px; color: var(--fg-4); font-size: .72rem; line-height: 1.5; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card-grad); overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card::after {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle at center, var(--red-glow), transparent 68%);
  opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 10px; }
#problem .grid-2 > .card > h3 { min-height: 2.16em; }
.card p { color: var(--fg-2); font-size: 0.95rem; }
.card--pad-lg { padding: 38px; }
.card--accent { border-color: var(--red-edge); }

.card-ico {
  width: 46px; height: 46px; border-radius: 13px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-ico svg { width: 22px; height: 22px; }

.card-list { margin-top: 18px; display: grid; gap: 9px; }
.card-list li { display: flex; gap: 10px; font-size: 0.885rem; color: var(--fg-3); line-height: 1.55; }
.card-list li::before {
  content: ""; flex: none; margin-top: 8px; width: 12px; height: 1px;
  background: var(--red); opacity: 0.8;
}
.card-list--blue li::before { background: var(--blue); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split--reverse .split-visual { order: -1; }
.split-visual {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-1); padding: 26px; overflow: hidden;
}

/* ---------- Modes (A/B/C/D) ---------- */
.mode {
  position: relative; padding: 26px 24px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card-grad);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.mode:hover { transform: translateY(-4px); border-color: var(--red-edge); }
.mode-key {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  color: var(--fg); opacity: 0.09; font-weight: 700;
}
.mode h3 { font-size: 1.05rem; margin-bottom: 8px; padding-right: 40px; }
.mode p { color: var(--fg-3); font-size: 0.885rem; }
.mode .mode-tag { margin-top: 16px; }

/* ---------- Stats ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--surface-1); padding: 26px 24px; }
.stat .num { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .num .u { color: var(--red); }
.stat .lbl { font-size: 0.8rem; color: var(--fg-3); margin-top: 4px; }

.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 56px; color: var(--fg-4);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
}
.scroll-cue svg { width: 14px; height: 14px; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(5px); opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 46s linear infinite; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.09em;
  color: var(--fg-4); white-space: nowrap; text-transform: uppercase;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 20px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-1);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.step:hover { border-color: var(--red-edge); background: var(--surface-2); }
.step-n {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-2);
}
.step:hover .step-n { border-color: var(--red); color: var(--red); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--fg-3); font-size: 0.9rem; }

/* ---------- Table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rv-table { width: 100%; border-collapse: collapse; font-size: 0.885rem; }
.rv-table caption { padding: 14px 20px; text-align: left; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--fg-3); font-size: 0.82rem; }
.rv-table th, .rv-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.rv-table thead th {
  background: var(--surface-2); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-3); font-weight: 500;
}
.rv-table tbody tr { background: var(--surface-1); transition: background 0.2s var(--ease); }
.rv-table tbody tr:hover { background: var(--surface-2); }
.rv-table tbody tr:last-child td { border-bottom: 0; }
.rv-table td.num { font-family: var(--font-mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.delta-up { color: var(--blue); }
.delta-down { color: var(--red); }

/* ---------- CTA ---------- */
.cta-block {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 84px 40px; text-align: center; overflow: hidden;
  background: var(--surface-1);
}
.cta-rays { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.cta-block h2 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }

.mail-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 999px;
  border: 1px solid var(--red-edge); background: var(--red-wash);
  font-family: var(--font-mono); font-size: 1rem; color: var(--fg);
  transition: all 0.25s var(--ease);
}
.mail-chip:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: 0 12px 30px -18px var(--red-glow); }
.contact-intake {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  max-width: 820px; margin: 30px auto 0;
}
.contact-intake span {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-1);
  color: var(--fg-2); font-size: .78rem; text-align: left;
}
.contact-intake b { font-family: var(--font-mono); color: var(--red); font-size: 9px; letter-spacing: .08em; }
.mail-chip svg { width: 17px; height: 17px; color: var(--red); }

/* ---------- Contact dialog ---------- */
body.has-contact-dialog { overflow: hidden; }
.contact-dialog[hidden] { display: none; }
.contact-dialog {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 22px;
}
.contact-dialog__backdrop {
  position: absolute; inset: 0; border: 0;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(12px);
}
.contact-dialog__panel {
  position: relative; width: min(100%, 560px); padding: 52px 38px 40px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface-1); box-shadow: var(--shadow); text-align: center;
}
.contact-dialog__close {
  position: absolute; top: 16px; right: 16px;
}
.contact-dialog__email {
  display: block; margin: 24px auto 22px;
  font-family: var(--font-mono); font-size: clamp(1.05rem, 4vw, 1.5rem);
  color: var(--fg); overflow-wrap: anywhere;
}
.contact-dialog__email:hover { color: var(--red); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 62px 0 34px; background: var(--surface-1); }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(2, 1fr); gap: 48px; }
.footer h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin-bottom: 16px;
}
.footer-links { display: grid; gap: 10px; font-size: 0.88rem; color: var(--fg-3); }
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 0.78rem; color: var(--fg-4);
}

/* ==========================================================================
   SVG theming helpers — presentation attributes can't read var(), classes can
   ========================================================================== */
.f-surf  { fill: var(--surface-1); }
.f-surf2 { fill: var(--surface-2); }
.f-bg    { fill: var(--bg); }
.f-t1    { fill: var(--fg); }
.f-t2    { fill: var(--fg-2); }
.f-t3    { fill: var(--fg-3); }
.f-t4    { fill: var(--fg-4); }
.f-red   { fill: var(--red); }
.f-red-s { fill: var(--red-soft); }
.f-blue  { fill: var(--blue); }
.f-blue-s{ fill: var(--blue-soft); }
.f-g1 { fill: var(--g1); } .f-g2 { fill: var(--g2); } .f-g3 { fill: var(--g3); } .f-g4 { fill: var(--g4); }

.s-line   { stroke: var(--line); }
.s-line2  { stroke: var(--line-strong); }
.s-t3     { stroke: var(--fg-3); }
.s-t4     { stroke: var(--fg-4); }
.s-fg     { stroke: var(--fg); }
.s-red    { stroke: var(--red); }
.s-red-s  { stroke: var(--red-soft); }
.s-blue   { stroke: var(--blue); }
.s-blue-s { stroke: var(--blue-soft); }
.s-g1 { stroke: var(--g1); } .s-g2 { stroke: var(--g2); } .s-g3 { stroke: var(--g3); }

.grad-red-a  { stop-color: var(--red-deep); }
.grad-red-b  { stop-color: var(--red); }
.grad-glow-a { stop-color: var(--red); stop-opacity: 0.34; }
.grad-glow-b { stop-color: var(--red); stop-opacity: 0; }
.grad-arc-a  { stop-color: var(--fg-3); }
.grad-arc-b  { stop-color: var(--fg); }
.grad-ray-a  { stop-color: var(--red); stop-opacity: 0.55; }
.grad-ray-b  { stop-color: var(--red); stop-opacity: 0; }

.svg-mono { font-family: var(--font-mono); }
.svg-sans { font-family: var(--font-body); }
.svg-display { font-family: var(--font-display); letter-spacing: -0.02em; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px) scale(0.985); transition: opacity 0.55s var(--ease), transform 0.78s var(--spring); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* ---------- SVG animation ---------- */
.draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.is-visible .draw, .draw.run { animation: draw-in 1.6s var(--ease) forwards; }
.draw--slow { animation-duration: 2.6s !important; }
.draw--d1 { animation-delay: .15s; } .draw--d2 { animation-delay: .3s; }
.draw--d3 { animation-delay: .45s; } .draw--d4 { animation-delay: .6s; }
.draw--d5 { animation-delay: .75s; } .draw--d6 { animation-delay: .9s; }

.bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.is-visible .bar { animation: bar-up 1s var(--ease) forwards; }
.bar--d1{animation-delay:.08s}.bar--d2{animation-delay:.16s}.bar--d3{animation-delay:.24s}
.bar--d4{animation-delay:.32s}.bar--d5{animation-delay:.4s}.bar--d6{animation-delay:.48s}
.bar--d7{animation-delay:.56s}.bar--d8{animation-delay:.64s}

.grow { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.is-visible .grow { animation: grow-in .7s var(--spring) forwards; }

/* diagram pieces that click into position */
.snap { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.82); }
.is-visible .snap { animation: snap-in .62s var(--spring) forwards; }
.snap--d1{animation-delay:.09s}.snap--d2{animation-delay:.18s}.snap--d3{animation-delay:.27s}
.snap--d4{animation-delay:.36s}.snap--d5{animation-delay:.45s}.snap--d6{animation-delay:.54s}
@keyframes snap-in { to { opacity: 1; transform: scale(1); } }

.fade-in { opacity: 0; }
.is-visible .fade-in { animation: fade-in .9s var(--ease) forwards; }
.fade--d2 { animation-delay: .3s; } .fade--d3 { animation-delay: .5s; }
.fade--d4 { animation-delay: .7s; } .fade--d5 { animation-delay: .9s; }

.spin-slow { transform-origin: center; animation: spin 26s linear infinite; }
.spin-rev  { transform-origin: center; animation: spin 38s linear infinite reverse; }
.float-y { animation: float-y 6s ease-in-out infinite; }
.flicker { animation: flicker 3.4s ease-in-out infinite; }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: pulse-ring 3.2s ease-out infinite; }
.pulse-ring--d1 { animation-delay: 1.05s; }
.pulse-ring--d2 { animation-delay: 2.1s; }
.dash-march { animation: march 2.4s linear infinite; }
.blink { animation: blip 2.6s ease-in-out infinite; }

@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes bar-up  { to { transform: scaleY(1); } }
@keyframes grow-in { to { transform: scale(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes flicker { 0%,100% { opacity: .25; } 50% { opacity: .8; } }
@keyframes blip    { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }
@keyframes march   { to { stroke-dashoffset: -32; } }
@keyframes pulse-ring { 0% { transform: scale(.35); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes slide   { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-inner { max-width: var(--maxw); }
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split-visual { order: 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .decision-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-node:nth-child(2) { border-right: 0; }
  .decision-node:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .decision-node:nth-child(2)::after { display: none; }
  .release-check__grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .landing-page .section { padding: 52px 0; }
  .landing-page .section-head { margin-bottom: 32px; }
  .cta-block { padding: 48px 22px; }
  .card--pad-lg { padding: 26px; }
  .split-visual { padding: 18px; }
  .contact-intake { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-cta > .btn { display: none; }
}
@media (max-width: 560px) {
  .nav-inner { height: 70px; gap: 10px; padding-left: 18px; padding-right: 18px; }
  .brand { gap: 8px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-name { font-size: 1.12rem; }
  .icon-btn { width: 38px; height: 38px; }
  .mobile-menu { max-height: calc(100vh - 70px); }
  .mobile-menu .wrap { grid-template-columns: 1fr; gap: 2px; padding-left: 14px; padding-right: 14px; }
  .mobile-menu__cta { grid-column: auto; width: calc(100% - 28px); margin-top: 12px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mail-chip { font-size: .82rem; padding: 12px 18px; }
  .table-wrap { overflow-x: auto; }
  .rv-table { min-width: 620px; }
  .scroll-x { overflow-x: auto; }
  .decision-loop__head { align-items: flex-start; flex-direction: column; }
  .decision-rail { grid-template-columns: 1fr; }
  .decision-node { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .decision-node:last-child { border-bottom: 0; }
  .decision-node::after { display: none; }
  .contact-intake { grid-template-columns: 1fr; }
  .release-check { padding: 58px 0; }
  .landing-page .release-check { padding: 50px 0; }
  .release-panel__top, .release-change { padding-left: 20px; padding-right: 20px; }
  .release-checks { padding-left: 20px; padding-right: 20px; }
  .release-checks > div { align-items: flex-start; }
  .release-panel__note { padding-left: 20px; padding-right: 20px; }
  .contact-dialog__panel { padding: 48px 22px 30px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .bar { transform: scaleY(1); }
  .grow { transform: scale(1); }
  .snap { opacity: 1; transform: scale(1); }
  .fade-in { opacity: 1; }
}
