/* ============================================================
   MagellanOne · Content site · shared design system
   Aligned to the live demo tokens (Geist + Geist Mono, #07090d
   surfaces, #4f8bff accent). One stylesheet across all 6 pages.
   ============================================================ */

:root {
  --bg-0: #07090d;
  --bg-1: #0b0f15;
  --bg-2: #10151d;
  --bg-3: #161c26;
  --bg-4: #1d2531;
  --line-1: #1a212c;
  --line-2: #232b38;
  --line-3: #2e3849;
  --ink-0: #f3f5f8;
  --ink-1: #c7cdd6;
  --ink-2: #8a93a1;
  --ink-3: #5b6573;
  --ink-4: #3c4654;
  --accent: #4f8bff;
  --accent-soft: rgba(79,139,255,0.12);
  --accent-line: rgba(79,139,255,0.32);
  --ok: #36c08a;
  --ok-soft: rgba(54,192,138,0.10);
  --warn: #e8b65a;
  --warn-soft: rgba(232,182,90,0.12);
  --risk: #ef6a5f;
  --risk-soft: rgba(239,106,95,0.12);
  --font-ui: 'Geist', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1400px 700px at 50% -10%, rgba(79,139,255,0.06), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(239,106,95,0.035), transparent 60%);
  pointer-events: none; z-index: 0;
}
.mono { font-family: var(--font-mono); font-feature-settings: "zero","ss01"; }
::selection { background: var(--accent-soft); color: var(--ink-0); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

/* ---------- Nav ---------- */
nav.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,21,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-1);
}
nav.site .inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 0 32px; height: 64px;
}
nav.site .brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-0); font-weight: 600; font-size: 14.5px;
  letter-spacing: -0.005em; text-decoration: none;
  padding-right: 22px; margin-right: 4px;
  border-right: 1px solid var(--line-2); height: 28px;
}
nav.site .brand svg { color: var(--accent); }
nav.site .links { display: flex; align-items: center; gap: 2px; }
nav.site .links a {
  color: var(--ink-2); text-decoration: none; font-size: 13px;
  padding: 7px 12px; border-radius: 6px; transition: all .15s ease;
  white-space: nowrap;
}
nav.site .links a:hover { color: var(--ink-0); background: var(--bg-2); }
nav.site .links a.current { color: var(--ink-0); background: var(--bg-3); }
nav.site .spacer { flex: 1; }
nav.site .nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 500;
  background: var(--accent); color: #ffffff; text-decoration: none;
  border: 1px solid var(--accent); transition: background .15s ease;
}
nav.site .nav-cta:hover { background: #6a9eff; }
nav.site .menu-btn {
  display: none; background: transparent; border: 1px solid var(--line-2);
  color: var(--ink-1); border-radius: 6px; padding: 7px 9px; cursor: pointer;
}

/* ---------- Layout ---------- */
section { position: relative; z-index: 1; padding: 88px 32px; }
section.tight { padding: 64px 32px; }
.container { max-width: var(--maxw); margin: 0 auto; }
.divider-top { border-top: 1px solid var(--line-1); }
.band { background: var(--bg-1); border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }

/* ---------- Type ---------- */
.kicker {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.kicker.muted { color: var(--ink-3); }
h1.display {
  margin: 22px 0 0; font-size: clamp(42px, 5.6vw, 72px); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.03; color: var(--ink-0);
  text-wrap: balance;
}
h2.section {
  margin: 14px 0 0; font-size: clamp(30px, 3.8vw, 46px); font-weight: 500;
  letter-spacing: -0.022em; line-height: 1.08; color: var(--ink-0);
  max-width: 860px; text-wrap: balance;
}
h3.sub { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink-0); }
p.lede { margin: 22px 0 0; font-size: 18px; color: var(--ink-1); max-width: 660px; line-height: 1.55; text-wrap: pretty; }
p.body { margin: 14px 0 0; color: var(--ink-1); font-size: 14.5px; max-width: 640px; text-wrap: pretty; }
.eyebrow-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; font-family: var(--font-ui); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.005em; border-radius: 6px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); box-shadow: 0 10px 32px -12px rgba(79,139,255,0.55); }
.btn-primary:hover { background: #6a9eff; }
.btn-ghost { background: transparent; color: var(--ink-0); border-color: var(--line-3); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-row { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.04em;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-1);
}
.pill-accent { background: var(--accent-soft); border-color: var(--accent-line); color: #A8C5FF; }
.pill-warn { background: var(--warn-soft); border-color: rgba(232,182,90,0.32); color: var(--warn); }
.pill-risk { background: var(--risk-soft); border-color: rgba(239,106,95,0.32); color: var(--risk); }
.pill-ok   { background: var(--ok-soft); border-color: rgba(54,192,138,0.32); color: var(--ok); }
.pill .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; display: inline-block; }
@keyframes pulse-dot { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }
.pulse { animation: pulse-dot 2s ease-in-out infinite; }

/* ---------- Cards ---------- */
.card { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 10px; padding: 26px 28px; }
.card-elev { background: var(--bg-3); }
.card-accent { border-color: var(--accent-line); }
.card-icon {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--bg-1); display: grid; place-items: center; color: var(--ink-1); flex: 0 0 auto;
}

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }

/* ---------- Value cards (3-col) ---------- */
.value-card { padding: 28px 30px; }
.value-card .vc-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--bg-1); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); margin-bottom: 18px; }
.value-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-0); }
.value-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }

/* ---------- Stat row ---------- */
.statrow { display: flex; gap: 26px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-1); flex-wrap: wrap; }
.statrow .stat { display: flex; gap: 10px; align-items: baseline; }
.statrow .stat-n { font-family: var(--font-mono); font-size: 22px; color: var(--ink-0); letter-spacing: -0.015em; font-weight: 500; white-space: nowrap; }
.statrow .stat-l { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }

/* ---------- Flow timeline (How it works) ---------- */
.flow-rail { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 40px; }
.flow-step {
  position: relative; padding: 16px 14px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line-1); text-align: left;
}
.flow-step .fn { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.06em; }
.flow-step .ft { font-size: 12.5px; color: var(--ink-1); margin-top: 8px; line-height: 1.35; }
.flow-step.alert { border-color: var(--accent-line); }
.flow-step.alert .fn { color: var(--risk); }

/* ---------- Accordion ---------- */
.accordion { margin-top: 36px; border: 1px solid var(--line-1); border-radius: 10px; overflow: hidden; }
.acc-item { border-top: 1px solid var(--line-1); }
.acc-item:first-child { border-top: none; }
.acc-head {
  width: 100%; text-align: left; background: var(--bg-2); border: none; cursor: pointer;
  padding: 20px 24px; display: flex; align-items: center; gap: 16px; color: var(--ink-0);
  font-family: var(--font-ui); transition: background .15s ease;
}
.acc-head:hover { background: var(--bg-3); }
.acc-head .acc-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); width: 28px; flex: 0 0 auto; }
.acc-head .acc-t { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; flex: 1; }
.acc-head .acc-chev { color: var(--ink-3); transition: transform .2s ease; flex: 0 0 auto; }
.acc-item.open .acc-chev { transform: rotate(90deg); color: var(--accent); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--bg-1); }
.acc-body-inner { padding: 4px 24px 22px 68px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.acc-item.open .acc-body { max-height: 320px; }

/* ---------- Comparison table ---------- */
.cmp { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-1); border-radius: 10px; overflow: hidden; }
.cmp .col { padding: 28px 30px; }
.cmp .col + .col { border-left: 1px solid var(--line-1); }
.cmp .col.muted { background: var(--bg-1); }
.cmp .col.bright { background: var(--bg-2); }
.cmp .cmp-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.cmp .cmp-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line-1); font-size: 13.5px; color: var(--ink-1); }
.cmp .cmp-item:first-of-type { border-top: none; }
.cmp .cmp-item .ic { flex: 0 0 auto; margin-top: 3px; }

/* ---------- Steps (Translation) ---------- */
.steps { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 22px 26px; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 10px;
}
.step .step-n { font-family: var(--font-mono); font-size: 22px; color: var(--accent); letter-spacing: -0.01em; }
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 500; color: var(--ink-0); }
.step .io { display: flex; gap: 24px; margin-top: 12px; flex-wrap: wrap; }
.step .io .io-l { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.step .io .io-v { font-size: 13px; color: var(--ink-1); margin-top: 3px; max-width: 360px; }

/* ---------- Big number anchor ---------- */
.anchor-card { background: var(--bg-3); border: 1px solid var(--accent-line); border-radius: 12px; padding: 40px 44px; }
.anchor-num { font-family: var(--font-mono); font-weight: 500; color: var(--ink-0); letter-spacing: -0.05em; line-height: 0.85; font-size: clamp(72px, 10vw, 132px); }
.anchor-meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); display: flex; gap: 32px; flex-wrap: wrap; }
.anchor-meta .row-l { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.anchor-meta .row-v { font-family: var(--font-mono); font-size: 18px; color: var(--ink-0); margin-top: 4px; }

/* ---------- Reversibility bars ---------- */
.rev { margin-top: 40px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.rev-card { padding: 22px 24px; background: var(--bg-1); border-radius: 10px; }
.rev-card .rev-when { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.rev-card .rev-cost { font-family: var(--font-mono); font-size: 28px; color: var(--ink-0); letter-spacing: -0.015em; margin-top: 10px; }
.rev-card .rev-note { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; line-height: 1.55; }

/* ---------- Governance tiles ---------- */
.gov-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.gov-tile { padding: 28px; border-left: 1px solid var(--line-1); }
.gov-tile:first-child { border-left: none; }
.gov-tile .gicon { width: 36px; height: 36px; border-radius: 6px; background: var(--bg-1); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ok); margin-bottom: 16px; }
.gov-tile .gl { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.gov-tile .gv { font-size: 15px; color: var(--ink-0); font-weight: 500; }
.gov-tile .gd { font-size: 12px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }

/* ---------- Principles / numbered list ---------- */
.principles { margin-top: 36px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.principle { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 22px; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 10px; }
.principle .pn { font-family: var(--font-mono); font-size: 18px; color: var(--accent); }
.principle h3 { margin: 0 0 4px; font-size: 15px; font-weight: 500; color: var(--ink-0); }
.principle p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* ---------- Pilot weeks ---------- */
.weeks { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.week { padding: 22px 24px; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 10px; position: relative; }
.week .wk { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.week h3 { margin: 8px 0 10px; font-size: 16px; font-weight: 500; color: var(--ink-0); }
.week ul { margin: 0; padding: 0; list-style: none; }
.week li { font-size: 12.5px; color: var(--ink-2); padding: 5px 0 5px 16px; position: relative; line-height: 1.45; }
.week li::before { content: ""; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 99px; background: var(--accent); }

/* ---------- Checklist ---------- */
.checklist { margin-top: 16px; display: grid; gap: 0; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-1); }
.check:first-child { border-top: none; padding-top: 0; }
.check .ic { color: var(--ok); margin-top: 2px; }
.check .ic.no { color: var(--risk); }
.check .t { color: var(--ink-1); font-size: 13.5px; }

/* ---------- Page-to-page footer nav ---------- */
.pagenav { margin-top: 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagenav a {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  padding: 18px 24px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg-2); min-width: 240px; transition: all .15s ease;
}
.pagenav a:hover { border-color: var(--accent-line); background: var(--bg-3); }
.pagenav a.next { text-align: right; align-items: flex-end; margin-left: auto; }
.pagenav .pn-l { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.pagenav .pn-t { font-size: 16px; color: var(--ink-0); font-weight: 500; }

/* ---------- Footer ---------- */
footer.site { padding: 48px 32px 36px; border-top: 1px solid var(--line-1); position: relative; z-index: 1; }
footer.site .inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
footer.site .brand { display: flex; align-items: center; gap: 10px; color: var(--ink-0); font-weight: 600; font-size: 14px; }
footer.site .brand svg { color: var(--accent); }
footer.site h4 { margin: 0 0 12px; font-size: 11.5px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
footer.site a { display: block; color: var(--ink-2); text-decoration: none; font-size: 13px; padding: 4px 0; }
footer.site a:hover { color: var(--ink-0); }
footer.site .legal { margin: 40px auto 0; max-width: var(--maxw); padding-top: 20px; border-top: 1px solid var(--line-1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Hero visual shells ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.viz {
  position: relative; border-radius: 12px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  padding: 26px 28px; overflow: hidden;
}
.viz::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 80% 0%, rgba(79,139,255,0.10), transparent 60%); pointer-events: none; }
.viz-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.viz-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  nav.site .links a { padding: 7px 9px; font-size: 12.5px; }
}
@media (max-width: 980px) {
  section { padding: 64px 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: 1fr 1fr; }
  .gov-tile { border-left: 1px solid var(--line-1); border-top: 1px solid var(--line-1); }
  .gov-tile:nth-child(odd) { border-left: none; }
  .gov-tile:nth-child(-n+2) { border-top: none; }
  .flow-rail { grid-template-columns: repeat(4, 1fr); }
  .rev, .weeks { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .cmp { grid-template-columns: 1fr; }
  .cmp .col + .col { border-left: none; border-top: 1px solid var(--line-1); }
  footer.site .inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  nav.site .links { display: none; }
  nav.site .links.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--line-2); padding: 12px 24px; gap: 2px;
  }
  nav.site .links.open a { padding: 12px; font-size: 14px; }
  nav.site .menu-btn { display: inline-flex; }
  nav.site .inner { padding: 0 20px; }
}
@media (max-width: 560px) {
  .gov-grid { grid-template-columns: 1fr; }
  .gov-tile { border-left: none; }
  .gov-tile:nth-child(-n+2) { border-top: 1px solid var(--line-1); }
  .gov-tile:first-child { border-top: none; }
  .weeks { grid-template-columns: 1fr; }
  .flow-rail { grid-template-columns: repeat(2, 1fr); }
  footer.site .inner { grid-template-columns: 1fr; gap: 20px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .pagenav a, .pagenav a.next { min-width: 100%; }
}
