/* OSO Audit — marketing site, v2 visual system (2026-08-17)
   ─────────────────────────────────────────────────────────────
   Direction: dark cinematic hero on every page, one gradient display
   phrase, white content cards floating on dark, hard light/dark section
   rhythm, luminous five-gate rail. Influenced by the confidence of the
   category leaders' sites (dark hero + gradient display type + phase
   rails) without their palette — OSO stays in its own blue/cyan family.

   Discipline unchanged from v1:
   - Zero JS. Every effect is CSS (scroll reveal via animation-timeline,
     accordions via <details>). This is a selling point, not a limitation.
   - Light-surface accent #0b6e99 is validator-passed (chroma floor,
     lightness band, ≥3:1 on white). Gradient text appears ONLY at display
     sizes; dark-surface body text is #a6c1d2 (≥7:1 on #071119).
   - No invented social proof anywhere. Verified numbers carry the page. */

:root {
  /* ink on light */
  --ink:        #0d1319;
  --ink-2:      #3d4854;
  --ink-3:      #66717f;
  --rule:       #e4e9ee;
  --rule-soft:  #eef2f5;

  /* surfaces */
  --bg:         #ffffff;
  --bg-alt:     #f5f8fa;
  --night:      #071119;   /* the dark stage */
  --night-2:    #0a1a26;
  --night-edge: rgba(255,255,255,.10);

  /* light-surface accent (validated) */
  --accent:     #0b6e99;
  --accent-2:   #0a5a7e;
  --accent-100: #e3f1f8;
  --accent-200: #c2e0ee;

  /* luminous family — dark surfaces + display gradients only */
  --lum:        #4fc9f5;
  --lum-2:      #2ee0c2;
  --grad-display: linear-gradient(94deg, #5bd2ff 4%, #37e2c6 96%);
  --grad-ink:     linear-gradient(94deg, #0a7ab3, #0c8f80);
  --grad-line:    linear-gradient(90deg, #1a7fae, #5bd2ff 46%, #37e2c6);

  --ondark:     #eaf3f8;
  --ondark-2:   #a6c1d2;
  --ondark-3:   #7d99ab;

  --shadow-sm: 0 1px 2px rgba(13,19,25,.05), 0 1px 3px rgba(13,19,25,.04);
  --shadow-md: 0 2px 4px rgba(13,19,25,.04), 0 10px 28px rgba(13,19,25,.08);
  --shadow-lg: 0 6px 16px rgba(4,12,18,.16), 0 28px 64px rgba(4,12,18,.26);
  --glow:      0 0 0 1px rgba(91,210,255,.14), 0 8px 40px rgba(43,166,214,.22);

  --measure: 66ch;
  --r: 14px;
  --r-lg: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: var(--measure); }
section { padding: 84px 0; }
.alt { background: var(--bg-alt); border-block: 1px solid var(--rule-soft); }

/* ── designed light backgrounds ──────────────────────────────
   The light sections are a stage too, not a void: soft in-family
   color blooms, a fine dot lattice, and large geometric ornaments
   (concentric rings, the node-chain motif from the brand mark).
   Everything is CSS or an inline data-URI — zero requests — and
   sits behind .wrap (z-index) at watermark contrast. */

section:not(.hero):not(.deep) { position: relative; overflow: hidden; }
section:not(.hero):not(.deep) > .wrap { position: relative; z-index: 1; }

/* white sections: cyan/teal blooms + dot lattice, upper-right */
section:not(.hero):not(.deep):not(.alt) {
  background:
    radial-gradient(46ch 34ch at 94% -6%, rgba(79,201,245,.17) 0%, transparent 62%),
    radial-gradient(36ch 28ch at -4% 104%, rgba(46,224,194,.13) 0%, transparent 60%),
    var(--bg);
}
section:not(.hero):not(.deep):not(.alt)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(rgba(11,110,153,.2) 1.3px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(64ch 40ch at 90% 6%, #000 0%, transparent 72%);
          mask-image: radial-gradient(64ch 40ch at 90% 6%, #000 0%, transparent 72%);
}

/* alt sections: concentric ring ornament + counter-bloom */
.alt {
  background:
    radial-gradient(44ch 34ch at 4% -8%, rgba(79,201,245,.15) 0%, transparent 60%),
    radial-gradient(40ch 30ch at 102% 108%, rgba(11,110,153,.13) 0%, transparent 60%),
    var(--bg-alt);
}
.alt::before {
  content: ""; position: absolute; width: 680px; height: 680px;
  right: -200px; top: -190px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle,
    rgba(11,110,153,.17) 0 1.6px, transparent 1.6px 48px);
  -webkit-mask-image: linear-gradient(215deg, #000 20%, transparent 72%);
          mask-image: linear-gradient(215deg, #000 20%, transparent 72%);
}
.alt::after {
  content: ""; position: absolute; width: 520px; height: 300px;
  left: -60px; bottom: -40px; pointer-events: none; opacity: .85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 300'%3E%3Cpath d='M40 240 L170 130 L300 190 L470 50' stroke='%230b6e99' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='.32'/%3E%3Ccircle cx='40' cy='240' r='7' fill='%230b6e99' opacity='.34'/%3E%3Ccircle cx='170' cy='130' r='7' fill='%230b6e99' opacity='.34'/%3E%3Ccircle cx='300' cy='190' r='7' fill='%230b6e99' opacity='.34'/%3E%3Ccircle cx='470' cy='50' r='12' fill='%230b6e99' opacity='.45'/%3E%3Ccircle cx='470' cy='50' r='24' stroke='%230b6e99' fill='none' opacity='.26'/%3E%3Ccircle cx='470' cy='50' r='38' stroke='%230b6e99' fill='none' opacity='.16'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}

/* corner arc behind big figures on white sections */
section:not(.hero):not(.deep):not(.alt)::after {
  content: ""; position: absolute; width: 560px; height: 560px;
  left: -240px; top: -240px; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(11,110,153,.2);
  box-shadow: 0 0 0 46px rgba(11,110,153,.07), 0 0 0 100px rgba(11,110,153,.045), 0 0 0 170px rgba(11,110,153,.025);
}

@media (max-width: 760px) {
  .alt::before, .alt::after,
  section:not(.hero):not(.deep):not(.alt)::after { display: none; }
}

/* ── logo ───────────────────────────────────────────────── */

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; display: block; flex: none;
  object-fit: contain; }
.brand-text { font-weight: 680; font-size: 17.5px; letter-spacing: -.02em; }
.brand-text b { color: var(--accent); font-weight: 680; }

/* ── header — dark glass over the dark hero ─────────────── */

header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7,17,25,.78); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
header .brand-text { color: #fff; }
header .brand-text b { color: var(--lum); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
nav a {
  color: var(--ondark-2); text-decoration: none; font-size: 15px; font-weight: 500;
  margin-left: 28px; padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .14s ease;
}
nav a:hover { color: #fff; }
nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--lum); }

/* ── the dark stage: hero ───────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 76px;
  background: var(--night);
  color: var(--ondark);
}
/* aurora — two cool glows + one deep pool, all in-family */
.hero.mesh, .mesh {
  background:
    radial-gradient(72ch 48ch at 14% -12%, rgba(23,116,160,.55) 0%, transparent 62%),
    radial-gradient(56ch 42ch at 88% -14%, rgba(24,158,142,.38) 0%, transparent 60%),
    radial-gradient(70ch 46ch at 55% 118%, rgba(14,74,110,.5) 0%, transparent 62%),
    var(--night);
}
/* fine engineering grid, masked to the upper-left — the "built" texture */
.hero::before, .mesh::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(157,203,226,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157,203,226,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(78ch 40ch at 24% 18%, #000 0%, transparent 74%);
          mask-image: radial-gradient(78ch 40ch at 24% 18%, #000 0%, transparent 74%);
}
.noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .wrap { position: relative; z-index: 1; }

.hero h1 { color: #fff; }
.hero .lede { color: var(--ondark-2); }
.hero p { color: var(--ondark-2); }

/* interior-page heroes are a slimmer band */
.hero.slim { padding: 64px 0 52px; }

/* white content cards float on the dark stage untouched */
.hero figure.viz { box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,.14); }

/* ── type ───────────────────────────────────────────────── */

h1 {
  font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05;
  letter-spacing: -.034em; font-weight: 720; margin: 0 0 24px;
}
/* the homepage hero carries the full display size */
.hero.home h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -.037em; }
h2 {
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12;
  letter-spacing: -.028em; font-weight: 700; margin: 0 0 18px;
}
h3 { font-size: 17.5px; font-weight: 650; margin: 0 0 9px; letter-spacing: -.008em; }
p { margin: 0 0 18px; max-width: var(--measure); }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); line-height: 1.55; }

/* the one gradient phrase — display sizes only */
.grad {
  background: var(--grad-display);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* darker gradient for light surfaces (keeps contrast at display sizes) */
.alt .grad, section:not(.hero):not(.deep) .grad {
  background: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .grad, .deep .grad {
  background: var(--grad-display);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px;
  font-weight: 660; color: var(--accent); margin: 0 0 20px;
  background: var(--accent-100); border: 1px solid var(--accent-200);
  padding: 6px 13px; border-radius: 999px;
}
.hero .eyebrow, .deep .eyebrow {
  color: #8fdcff; background: rgba(91,210,255,.09);
  border-color: rgba(91,210,255,.28);
}
.muted { color: var(--ink-3); font-size: 15px; }
a { color: var(--accent); }
.hero a:not(.cta), .deep a:not(.cta) { color: var(--lum); }

/* ── buttons ────────────────────────────────────────────── */

.cta {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; padding: 14px 26px; border-radius: 12px;
  font-weight: 640; font-size: 15.5px; letter-spacing: -.005em;
  box-shadow: var(--shadow-sm);
  transition: transform .13s ease, box-shadow .13s ease, background .13s ease;
}
.cta:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta.ghost { background: #fff; color: var(--accent); border: 1px solid var(--rule); box-shadow: none; }
.cta.ghost:hover { background: var(--bg-alt); }

/* on the dark stage: primary goes luminous-white, ghost goes glass */
.hero .cta, .deep .cta {
  background: #fff; color: var(--night);
  box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 34px rgba(91,210,255,.16);
}
.hero .cta:hover, .deep .cta:hover { background: #e8f6fd; transform: translateY(-1px); }
.hero .cta.ghost, .deep .cta.ghost {
  background: rgba(255,255,255,.05); color: var(--ondark);
  border: 1px solid rgba(255,255,255,.24); box-shadow: none;
}
.hero .cta.ghost:hover, .deep .cta.ghost:hover { background: rgba(255,255,255,.11); }

/* ── cards ──────────────────────────────────────────────── */

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
  border: 1px solid var(--rule); border-radius: var(--r); padding: 26px;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.card .ico {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 16px;
  background: var(--accent-100); color: var(--accent);
  display: grid; place-items: center;
}
.card .ico svg { width: 20px; height: 20px; }

/* ── figure frame (diagrams + charts) ───────────────────── */

figure.viz {
  margin: 0; border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-md); overflow: hidden;
}
figure.viz .head { padding: 22px 26px 0; }
figure.viz .head h3 { margin: 0 0 4px; font-size: 16.5px; color: var(--ink); }
figure.viz .head p { margin: 0; font-size: 14px; color: var(--ink-3); }
figure.viz .body { padding: 14px 26px 24px; }
figure.viz figcaption {
  padding: 13px 26px; border-top: 1px solid var(--rule-soft);
  background: var(--bg-alt); font-size: 13.5px; color: var(--ink-3);
}

/* chart bits */
.bar-row { cursor: default; }
.bar-row rect.fill { transition: opacity .12s ease; }
.bar-row:hover rect.fill { opacity: .82; }
.axis line, .axis path { stroke: var(--rule); }
.tick { fill: var(--ink-3); font-size: 11.5px; }
.bar-label { fill: var(--ink); font-size: 13px; font-weight: 550; }
.bar-value { fill: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }

details.data { margin-top: 14px; }
details.data summary { cursor: pointer; font-size: 13.5px; color: var(--accent); }
details.data table { margin-top: 12px; }

/* ── stat tiles ─────────────────────────────────────────── */

.facts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fact {
  border: 1px solid var(--rule); border-radius: var(--r); padding: 22px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.fact .n {
  font-size: 38px; font-weight: 720; letter-spacing: -.032em;
  line-height: 1.08; font-variant-numeric: tabular-nums;
  background: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.fact .l { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }

/* ── steps ──────────────────────────────────────────────── */

.steps { counter-reset: s; display: grid; gap: 4px; }
.step { position: relative; padding: 20px 0 20px 58px; border-bottom: 1px solid var(--rule-soft); }
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 20px;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-100); color: var(--accent);
  border: 1px solid var(--accent-200);
  font-size: 14.5px; font-weight: 660;
  display: grid; place-items: center;
}
.step p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* ── note ───────────────────────────────────────────────── */

.note {
  border: 1px solid var(--accent-200); border-left: 4px solid var(--accent);
  background: var(--accent-100); padding: 18px 20px; border-radius: 0 var(--r) var(--r) 0;
}
.note p { margin: 0; font-size: 15.5px; color: #0b3a4f; }
.hero .note { background: rgba(91,210,255,.08); border-color: rgba(91,210,255,.3); }
.hero .note p { color: #cfeafb; }

/* ── table ──────────────────────────────────────────────── */

.tbl-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-weight: 620; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); background: var(--bg-alt); }
td.num { font-variant-numeric: tabular-nums; text-align: right; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 620; padding: 3px 9px; border-radius: 999px; }
.pill.built { background: #e2f4ea; color: #14653a; }
.pill.plan  { background: #fdf0dc; color: #7a4a09; }

/* ── the dark closer ────────────────────────────────────── */

.deep {
  position: relative; overflow: hidden;
  background:
    radial-gradient(64ch 44ch at 82% -18%, rgba(23,116,160,.5) 0%, transparent 60%),
    radial-gradient(52ch 38ch at 6% 116%, rgba(24,158,142,.32) 0%, transparent 60%),
    var(--night);
  color: var(--ondark); padding: 96px 0;
}
.deep::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image:
    linear-gradient(rgba(157,203,226,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157,203,226,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(70ch 36ch at 78% 30%, #000 0%, transparent 74%);
          mask-image: radial-gradient(70ch 36ch at 78% 30%, #000 0%, transparent 74%);
}
.deep .wrap { position: relative; z-index: 1; }
.deep h2 { color: #fff; }
.deep p { color: var(--ondark-2); }

/* ── footer ─────────────────────────────────────────────── */

footer { background: var(--night); border-top: 1px solid rgba(255,255,255,.08); padding: 42px 0 60px; color: var(--ondark-3); font-size: 14.5px; }
footer a { color: var(--ondark-2); text-decoration: none; }
footer a:hover { color: #fff; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
  nav a { margin-left: 16px; font-size: 14px; }
  .brand-text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ── proof strip — glass on the dark stage ──────────────── */

.proofbar {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 16px; overflow: hidden;
  background: rgba(10,26,38,.55); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: var(--shadow-lg);
}
.proofbar > div { padding: 18px 24px; flex: 1 1 160px; border-right: 1px solid rgba(255,255,255,.09);
  display: flex; flex-direction: column; gap: 4px; justify-content: flex-start; }
.proofbar > div:last-child { border-right: 0; }
.proofbar .n {
  font-size: 27px; font-weight: 720; letter-spacing: -.025em; font-variant-numeric: tabular-nums;
  background: var(--grad-display);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.proofbar .l { font-size: 12.8px; color: var(--ondark-2); line-height: 1.35; }

/* ── bento ──────────────────────────────────────────────── */

.bento { display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); }
.bento > * {
  border: 1px solid var(--rule); border-radius: 16px; padding: 28px;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.bento > *:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #c6d8e2; }
.bento .w3 { grid-column: span 3; } .bento .w2 { grid-column: span 2; }
.bento .w4 { grid-column: span 4; } .bento .w6 { grid-column: span 6; }
.bento h3 { margin-bottom: 8px; font-size: 18.5px; }
.bento p { font-size: 15px; color: var(--ink-2); margin: 0; }
.bento .k {
  font-size: 40px; font-weight: 720; letter-spacing: -.032em;
  line-height: 1.02; font-variant-numeric: tabular-nums; margin-bottom: 8px;
  background: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bento .tint { background: linear-gradient(160deg, #eef8fc 0%, #fff 58%); }
/* dark cell: night surface with a luminous gradient border */
.bento .dark {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    linear-gradient(130deg, rgba(91,210,255,.65), rgba(55,226,198,.4) 45%, rgba(91,210,255,.12)) border-box;
}
.bento .dark h3 { color: #fff; } .bento .dark p { color: var(--ondark-2); }
.bento .dark .k {
  background: var(--grad-display);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bento .dark:hover { border-color: transparent; box-shadow: var(--glow); }

@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .w3,.bento .w2,.bento .w4,.bento .w6 { grid-column: span 2; } }

/* ── scroll reveal — CSS only, keeps the zero-JS property ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  }
}

/* ── hero two-column ────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 52px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ── the trace panel — dark glass, glowing clause node ──── */
.panel {
  border: 1px solid rgba(255,255,255,.14); border-radius: 18px; overflow: hidden;
  background: rgba(10,26,38,.6); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-lg);
}
.panel .ptop {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04); font-size: 12.5px; color: var(--ondark-3);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); flex: none; }
.panel .pbody { padding: 16px; display: grid; gap: 10px; }
.ev {
  border: 1px solid rgba(255,255,255,.12); border-radius: 11px; padding: 12px 14px;
  background: rgba(255,255,255,.045);
}
.ev .t { font-size: 13.6px; font-weight: 620; letter-spacing: -.005em; color: var(--ondark); }
.ev .s { font-size: 12.4px; color: var(--ondark-3); margin-top: 3px; }
.ev.clause {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(11,52,72,.92), rgba(9,44,62,.92)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 0 26px rgba(76,201,245,.22);
}
.ev.clause .t { color: #fff; } .ev.clause .s { color: #9adcf5; }
.link {
  display: flex; align-items: center; gap: 7px; padding-left: 6px;
  font-size: 11.6px; color: var(--ondark-3);
}
.link::before { content: ""; width: 2px; height: 15px; background: rgba(129,196,227,.45); border-radius: 2px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 640; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 5px; background: rgba(91,210,255,.14); color: #8fdcff;
  text-transform: uppercase;
}

/* light-surface variant when a panel appears outside the dark stage */
section:not(.hero):not(.deep) .panel { background: #fff; border-color: var(--rule); backdrop-filter: none; }
section:not(.hero):not(.deep) .panel .ptop { background: var(--bg-alt); border-color: var(--rule-soft); color: var(--ink-3); }
section:not(.hero):not(.deep) .ev { background: #fff; border-color: var(--rule); }
section:not(.hero):not(.deep) .ev .t { color: var(--ink); }
section:not(.hero):not(.deep) .ev .s { color: var(--ink-3); }
section:not(.hero):not(.deep) .link { color: var(--ink-3); }
section:not(.hero):not(.deep) .tag { background: var(--accent-100); color: var(--accent); }

/* ── expandable stages (details/summary — zero JS) ──────── */

.stage {
  border: 1px solid var(--rule); border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 12px;
  transition: box-shadow .16s ease, border-color .16s ease;
}
.stage[open] { box-shadow: var(--shadow-md); border-color: #c6d8e2; }
.stage > summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: grid; grid-template-columns: 38px 1fr 22px; gap: 14px; align-items: center;
}
.stage > summary::-webkit-details-marker { display: none; }
.stage > summary:hover { background: var(--bg-alt); }
.stage .num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-100); color: var(--accent); border: 1px solid var(--accent-200);
  display: grid; place-items: center; font-weight: 660; font-size: 14.5px;
}
.stage[open] .num { background: var(--accent); color: #fff; border-color: var(--accent); }
.stage .st { display: block; font-weight: 640; font-size: 16.5px; letter-spacing: -.01em; }
.stage .ss { display: block; font-size: 13.6px; color: var(--ink-3); margin-top: 3px; }
.stage .chev { color: var(--ink-3); transition: transform .18s ease; justify-self: end; }
.stage[open] .chev { transform: rotate(180deg); }
.stage .inner { padding: 0 22px 22px 74px; }
.stage .inner p { font-size: 15.5px; color: var(--ink-2); }
.stage ul { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.stage li { margin-bottom: 5px; }

@media (max-width: 640px) { .stage .inner { padding: 0 18px 18px; } }

/* ── screenshot frame ───────────────────────────────────── */

.shot { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-md); }
.shot .chrome {
  display: flex; align-items: center; gap: 7px; padding: 9px 13px;
  border-bottom: 1px solid var(--rule-soft); background: var(--bg-alt);
}
.shot .chrome .dot { background: #d7dee4; }
.shot .chrome .u {
  margin-left: 8px; font-size: 11.6px; color: var(--ink-3);
  background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 3px 10px;
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 11px 14px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--rule-soft); }
.shot.todo img { opacity: .95; }
.shot.todo { border-style: dashed; border-color: #c9d6de; box-shadow: none; }

/* ── the gate rail — five luminous checkpoints on dark ──── */

.rail { position: relative; margin-top: 44px; }
.rail .line {
  position: absolute; left: 2%; right: 2%; top: 17px; height: 4px; border-radius: 3px;
  background: var(--grad-line);
  box-shadow: 0 0 22px rgba(76,201,245,.4);
}
.rail ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  position: relative;
}
.rail li { text-align: center; padding-top: 0; }
.rail .node {
  width: 38px; height: 38px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--night); border: 2.5px solid var(--lum);
  color: var(--lum); font-weight: 720; font-size: 14.5px;
  display: grid; place-items: center; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--night), 0 0 20px rgba(76,201,245,.35);
}
.rail li:last-child .node {
  background: var(--grad-display); border-color: transparent; color: var(--night);
  box-shadow: 0 0 0 6px var(--night), 0 0 28px rgba(55,226,198,.5);
}
.rail .gt { font-weight: 650; font-size: 15px; color: #fff; letter-spacing: -.01em; }
.rail .gs { font-size: 12.6px; color: var(--ondark-3); margin-top: 4px; line-height: 1.4; }
@media (max-width: 760px) {
  .rail .line { display: none; }
  .rail ol { grid-template-columns: 1fr 1fr; }
  .rail .node { box-shadow: none; }
}

/* ── capability chips — dense inventory grid ────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13.5px; font-weight: 560; letter-spacing: -.006em; color: var(--ink-2);
  background: #fff; border: 1px solid var(--rule); border-radius: 999px;
  padding: 7px 14px; line-height: 1.25;
}
.chip.on { background: var(--accent-100); border-color: var(--accent-200); color: #0b3a4f; }
.chip.more { background: var(--bg-alt); color: var(--ink-3); border-style: dashed; }
.alt .chip { background: #fff; }

/* two-up: a figure beside its text */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; gap: 20px; } }

/* ── mobile header: nav wrapped over the brand at narrow widths ──
   The flex bar kept a fixed 66px height, so six nav links overlapped the
   logo below ~700px. Give the nav its own row instead. */
@media (max-width: 700px) {
  .bar { height: auto; flex-wrap: wrap; padding: 12px 0 4px; row-gap: 6px; }
  .bar nav { flex: 1 0 100%; display: flex; flex-wrap: wrap; column-gap: 18px; }
  .bar nav a { margin-left: 0; font-size: 14px; }
}
