@import url('../fonts/fonts.css');

/* ══════════════════════════════════════════════════════════
   TRAFFELO AI — DESIGN TOKENS
   Light is the default canvas per brand direction; dark is opt-in.
   ══════════════════════════════════════════════════════════ */
:root {
  --bg:            #FFFFFF;
  --bg-alt:        #FAFAFC;
  --bg-deep:       #F4F6F8;
  --surface:       #FFFFFF;
  --surface-2:     #F4F6F8;
  --surface-3:     #EDF1F5;
  --ink:           #0A0B0E;
  --ink-2:         #16181D;
  --ink-3:         #3A4048;
  --muted:         #566072;
  --muted-2:       #64748B;
  --line:          #E4E8EC;
  --line-2:        #D2D8DE;
  --accent:        #00A3FF;
  --accent-2:      #0086D6;
  --accent-text:   #0070B8;
  --accent-ink:    #0A0B0E;
  --accent-soft:   rgba(0,163,255,.09);
  --accent-line:   rgba(0,163,255,.35);
  --glow:          rgba(0,163,255,.22);
  --glow-strong:   rgba(0,163,255,.40);
  --shadow-sm:     0 1px 2px rgba(10,11,14,.05), 0 2px 8px rgba(10,11,14,.04);
  --shadow-md:     0 2px 6px rgba(10,11,14,.06), 0 12px 32px rgba(10,11,14,.07);
  --shadow-glow:   0 4px 24px rgba(0,163,255,.16);
  --code-bg:       #F4F6F8;
  --grid-line:     rgba(10,11,14,.045);
  --scrim-rgb:     255,255,255;
  --veil:          .64;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;
  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sect-y: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --bg:            #0A0B0E;
  --bg-alt:        #0D0F13;
  --bg-deep:       #07080A;
  --surface:       #16181D;
  --surface-2:     #1B1E25;
  --surface-3:     #22262E;
  --ink:           #FFFFFF;
  --ink-2:         #E9EEF3;
  --ink-3:         #C3CBD6;
  --muted:         #9AA7B8;
  --muted-2:       #7C8899;
  --line:          #22252C;
  --line-2:        #2E323B;
  --accent:        #00D2FF;
  --accent-2:      #70E0FF;
  --accent-text:   #00D2FF;
  --accent-ink:    #0A0B0E;
  --accent-soft:   rgba(0,210,255,.10);
  --accent-line:   rgba(0,210,255,.30);
  --glow:          rgba(0,210,255,.30);
  --glow-strong:   rgba(0,210,255,.55);
  --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
  --shadow-md:     0 2px 8px rgba(0,0,0,.45), 0 18px 44px rgba(0,0,0,.4);
  --shadow-glow:   0 4px 30px rgba(0,210,255,.18);
  --code-bg:       #0F1117;
  --grid-line:     rgba(0,210,255,.05);
  --scrim-rgb:     10,11,14;
  --veil:          .76;
}

/* Theme swaps must not animate: Chrome latches a transitioned property
   whose value comes from a custom property that changed, leaving the old
   colour stuck. Suppress all transitions for one frame while swapping. */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after { transition: none !important; }

/* ══════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink-3);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ══════════════════════════════════════════════════════════
   LAYOUT PRIMITIVES
   ══════════════════════════════════════════════════════════ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

.sect-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sect-head h2 { font-size: clamp(1.9rem, 3.7vw, 2.85rem); margin-block: 1rem .9rem; }
.sect-head p { font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--muted); max-width: 42rem; }

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-3); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-size: .9375rem; font-weight: 600;
  padding: .875rem 1.5rem; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-glow); }
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 6px 34px var(--glow-strong); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent-text); color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.btn--sm { padding: .625rem 1.05rem; font-size: .8125rem; }
.btn--lg { padding: 1.0625rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.hdr__nav { display: flex; align-items: center; gap: .25rem; margin-inline: auto; }
.hdr__nav a {
  font-size: .875rem; font-weight: 500; color: var(--ink-3); white-space: nowrap;
  padding: .5rem .8rem; border-radius: var(--r-pill);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--ink); background: var(--accent-soft); }
.hdr__tools { display: flex; align-items: center; gap: .5rem; }

.logo { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo svg { height: 32px; width: auto; }

.iconbtn {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  color: var(--ink-3); background: transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.iconbtn:hover { border-color: var(--accent-text); color: var(--accent-text); background: var(--accent-soft); }
.iconbtn svg { width: 17px; height: 17px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.langswitch { position: relative; }
.langswitch__btn {
  display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--ink-3);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.langswitch__btn:hover { border-color: var(--accent-text); color: var(--accent-text); }
.langswitch__btn svg { width: 11px; height: 11px; opacity: .6; }
.langswitch__menu {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 178px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: .375rem; z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.langswitch.is-open .langswitch__menu { opacity: 1; visibility: visible; transform: none; }
.langswitch__menu a, .langswitch__menu span {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .7rem; border-radius: var(--r-sm); font-size: .875rem; color: var(--ink-3);
}
.langswitch__menu a:hover { background: var(--accent-soft); color: var(--ink); }
.langswitch__menu a[aria-current="true"] { color: var(--accent-text); font-weight: 600; }
.langswitch__menu span { color: var(--muted-2); font-size: .8125rem; cursor: default; }
.langswitch__menu span i { font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; font-style: normal; opacity: .75; }
.langswitch__sep { height: 1px; background: var(--line); margin: .375rem .25rem; }

.burger { display: none; }
.burger svg { width: 18px; height: 18px; }
.burger .i-x { display: none; }
.burger[aria-expanded="true"] .i-x { display: block; }
.burger[aria-expanded="true"] .i-bars { display: none; }

@media (max-width: 1040px) {
  .hdr__nav, .hdr__inner > .btn--ghost { display: none; }
  .burger { display: grid; }
  .hdr__tools { margin-left: auto; }
}
@media (max-width: 600px) { .hdr__inner > .btn--primary { display: none; } }

.mobnav {
  position: fixed; inset: 72px 0 0; z-index: 89; background: var(--bg);
  padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.mobnav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobnav a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.mobnav .btn { margin-top: 1.75rem; }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3rem, 5vw, 4.5rem); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 74% 18%, var(--glow) 0%, transparent 52%),
    linear-gradient(to bottom, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none;
}
/* Match the still art exactly so the handoff to motion is invisible. */
.hero__video.is-ready { opacity: var(--hero-art-opacity); }
.hero .wrap { position: relative; z-index: 1; }

.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1080px) { .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; } }

.hero h1 { font-size: clamp(2rem, 4.1vw, 3.5rem); font-weight: 800; margin-block: 1.25rem 1.5rem; line-height: 1.05; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--ink-3); }
[data-theme="dark"] .hero h1 span + span { color: var(--accent-2); }
.hero__sub { font-size: clamp(1rem, 1.35vw, 1.1875rem); color: var(--ink-3); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__tour {
  display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.6rem;
  font-size: .875rem; font-weight: 500; color: var(--ink-3);
  transition: color .2s var(--ease);
}
.hero__tour:hover { color: var(--accent-text); }
.hero__tour i {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line-2); transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.hero__tour:hover i { border-color: var(--accent-text); background: var(--accent-soft); }
.hero__tour svg { width: 10px; height: 10px; fill: currentColor; margin-left: 2px; }

/* ── Interactive canvas stage ─────────────────────────────── */
.matrix {
  position: relative; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-md); overflow: hidden;
}
[data-theme="dark"] .matrix { background: linear-gradient(160deg, #101319 0%, #0A0B0E 100%); }
.matrix__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .875rem 1.125rem; border-bottom: 1px solid var(--line);
}
.matrix__title { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.matrix__dots { display: flex; gap: .3rem; }
.matrix__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.matrix__dots i:first-child { background: var(--accent); box-shadow: 0 0 8px var(--glow-strong); }
.matrix__canvas { position: relative; width: 100%; aspect-ratio: 16 / 11; }
.matrix__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 1080px) { .matrix__canvas { aspect-ratio: 16 / 12; } }

.matrix__tip {
  position: absolute; z-index: 4; pointer-events: none; left: 0; top: 0;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: .5rem .7rem; font-size: .75rem; line-height: 1.4; color: var(--ink);
  box-shadow: var(--shadow-md); max-width: 220px;
  opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .16s;
}
.matrix__tip.is-on { opacity: 1; transform: none; }
.matrix__tip b { display: block; font-family: var(--font-heading); font-size: .8125rem; }
.matrix__tip span { color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; }

.matrix__stages {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
}
.matrix__stages div { background: var(--surface); padding: .7rem .75rem; }
[data-theme="dark"] .matrix__stages div { background: #0D0F13; }
.matrix__stages b { display: block; font-family: var(--font-heading); font-size: .6875rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.matrix__stages span { display: block; font-size: .625rem; color: var(--muted-2); line-height: 1.35; margin-top: .15rem; }
@media (max-width: 640px) { .matrix__stages { grid-template-columns: repeat(2, 1fr); } }

.matrix__filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  padding: .75rem 1.125rem; border-top: 1px solid var(--line);
}
.matrix__filters > span { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-right: .25rem; }

.chip {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .04em;
  padding: .4rem .8rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--muted); background: transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover { border-color: var(--accent-text); color: var(--accent-text); }
.chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink);
  box-shadow: 0 0 16px var(--glow);
}

/* ══════════════════════════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════════════════════════ */
.trustbar { border-block: 1px solid var(--line); background: var(--bg-alt); }
.trustbar ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.trustbar li { padding: clamp(1.5rem,2.6vw,2.25rem) 1.25rem; text-align: center; position: relative; }
.trustbar li + li::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.trustbar b {
  display: block; font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.04em; color: var(--ink); line-height: 1;
}
.trustbar b em { font-style: normal; font-size: .55em; color: var(--accent-text); margin-left: .04em; }
.trustbar b.is-small { font-size: clamp(.875rem, 1.5vw, 1.0625rem); letter-spacing: -.01em; font-family: var(--font-mono); font-weight: 500; }
.trustbar span { display: block; font-size: .8125rem; color: var(--muted); margin-top: .6rem; line-height: 1.45; }
@media (max-width: 880px) {
  .trustbar ul { grid-template-columns: repeat(2, 1fr); }
  .trustbar li:nth-child(odd)::before { display: none; }
  .trustbar li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ══════════════════════════════════════════════════════════
   SHARED CARD
   ══════════════════════════════════════════════════════════ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.35rem, 2.2vw, 1.85rem);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.card__n { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--accent-text); }
.card h3 { font-size: 1.0625rem; margin-block: .7rem .5rem; }
.card p { font-size: .9375rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════════
   SECTION 2 — PLATFORM ENGINE
   ══════════════════════════════════════════════════════════ */
.engine__layout { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 1024px) { .engine__layout { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; } }

.modlist { display: grid; gap: .625rem; }
.modlist button {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center;
  width: 100%; text-align: left; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  transition: border-color .22s var(--ease), background-color .22s var(--ease), box-shadow .22s var(--ease);
}
.modlist button:hover { border-color: var(--line-2); }
.modlist button[aria-selected="true"] {
  border-color: var(--accent-text); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-line);
}
.modlist__n {
  grid-row: span 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: .75rem;
  border: 1px solid var(--line-2); color: var(--muted);
  transition: all .22s var(--ease);
}
.modlist button[aria-selected="true"] .modlist__n {
  background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); box-shadow: 0 0 14px var(--glow);
}
.modlist__name { font-family: var(--font-heading); font-weight: 600; font-size: .9375rem; color: var(--ink); letter-spacing: -.01em; }
.modlist__stage { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.modpanel {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden; min-height: 420px;
}
.modpanel__viz { position: relative; aspect-ratio: 16 / 8; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .modpanel__viz { background: #0B0D11; }
.modpanel__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.modpanel__body { padding: clamp(1.35rem, 2.4vw, 2rem); }
.modpanel__body h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); margin-bottom: .75rem; }
.modpanel__role { color: var(--muted); font-size: .9375rem; }
.modpanel__meta { margin-top: 1.5rem; display: grid; gap: 1.15rem; }
.modpanel__label { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .4rem; }
.modpanel__preview { font-size: .875rem; color: var(--ink-3); }
.endpoints { display: grid; gap: .3rem; }
.endpoints code {
  font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3);
  background: var(--code-bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .45rem .65rem; display: block;
}
.endpoints code b { color: var(--accent-text); font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   SECTION 3 — USE CASES
   ══════════════════════════════════════════════════════════ */
.uc__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 2rem; }
.segmented {
  display: inline-flex; padding: 4px; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
}
.segmented button {
  padding: .5rem 1rem; border-radius: var(--r-pill); font-size: .8125rem; font-weight: 500; color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chiprow { display: flex; flex-wrap: wrap; gap: .4rem; }

.bento { display: grid; gap: clamp(.875rem, 1.5vw, 1.25rem); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }

.uccard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), opacity .28s var(--ease), transform .28s var(--ease);
}
.uccard::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.uccard:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.uccard:hover::after { opacity: 1; }
.uccard.is-dimmed { opacity: .32; filter: saturate(.5); }
.uccard.is-hidden { display: none; }
.uccard__ico { width: 40px; height: 40px; color: var(--accent-text); margin-bottom: 1.1rem; }
.uccard h3 { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.uccard__sum { color: var(--muted); font-size: .9375rem; margin-top: .55rem; }
.uccard__action {
  margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px dashed var(--line-2);
  font-size: .875rem; color: var(--ink-3);
}
.uccard__action b { display: block; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .35rem; font-weight: 500; }
.uccard__more { margin-top: 1.25rem; font-size: .875rem; font-weight: 600; color: var(--accent-text); display: inline-flex; align-items: center; gap: .4rem; }
.uccard__more svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.uccard:hover .uccard__more svg { transform: translateX(3px); }

.personacard {
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  background: var(--accent-soft); padding: clamp(1.35rem, 2.4vw, 2rem);
  display: grid; gap: 1.25rem; align-items: center;
}
@media (min-width: 780px) { .personacard { grid-template-columns: auto 1fr auto; gap: 2rem; } }
.personacard[hidden] { display: none; }
.personacard__metric { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.045em; color: var(--accent-text); line-height: 1; }
.personacard__unit { display: block; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; font-weight: 500; }
.personacard__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.personacard__value { color: var(--ink-3); font-size: .9375rem; margin-top: .35rem; }

/* ══════════════════════════════════════════════════════════
   SECTION 4 — GOVERNANCE & TRUST
   ══════════════════════════════════════════════════════════ */
.trustsec { background: var(--bg-deep); }
[data-theme="dark"] .trustsec { background: #0F1117; }
.trustsec__grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.trustsec .wrap { position: relative; z-index: 1; }

.boundary {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-md);
}
[data-theme="dark"] .boundary { background: #0A0B0E; }
.boundary__canvas { position: relative; width: 100%; aspect-ratio: 16 / 7.5; }
.boundary__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 720px) { .boundary__canvas { aspect-ratio: 4 / 5; } }
.boundary__legend {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border-top: 1px solid var(--line);
}
.boundary__legend > div { background: var(--surface); padding: 1rem 1.15rem; }
[data-theme="dark"] .boundary__legend > div { background: #0D0F13; }
.boundary__legend h4 { font-size: .875rem; display: flex; align-items: center; gap: .5rem; }
.boundary__legend h4 i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.boundary__legend .in i { background: var(--accent); box-shadow: 0 0 10px var(--glow-strong); }
.boundary__legend .out i { background: var(--muted-2); }
.boundary__legend p { font-size: .75rem; color: var(--muted-2); margin-top: .3rem; font-family: var(--font-mono); letter-spacing: .04em; }
.boundary__legend ol { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.boundary__legend li { font-family: var(--font-mono); font-size: .6875rem; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .25rem .55rem; }
@media (max-width: 620px) { .boundary__legend { grid-template-columns: 1fr; } }

.pillars { display: grid; gap: clamp(.875rem, 1.5vw, 1.25rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { position: relative; padding-top: 1.5rem; }
.pillar__n {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .75rem;
}
.pillar__n::after { content: ''; width: 28px; height: 1px; background: var(--accent-line); }
.pillar h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.pillar p { font-size: .9375rem; color: var(--muted); }

.badges { display: grid; gap: .75rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 700px) { .badges { grid-template-columns: repeat(4, 1fr); } }
.badge {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 1.1rem 1.15rem; text-align: left;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.badge:hover { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.badge svg { width: 22px; height: 22px; color: var(--accent-text); margin-bottom: .8rem; }
.badge b { display: block; font-family: var(--font-heading); font-size: .8125rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.badge span { display: block; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .07em; color: var(--muted-2); margin-top: .35rem; line-height: 1.55; }

.cisoblock {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  background: var(--accent-soft); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 1.5rem;
}
@media (min-width: 900px) { .cisoblock { grid-template-columns: 1fr auto; align-items: center; } }
.cisoblock h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.cisoblock p { color: var(--ink-3); font-size: .9375rem; margin-top: .6rem; max-width: 40rem; }
.cisoblock__cta { display: flex; flex-wrap: wrap; gap: .625rem; }

/* ══════════════════════════════════════════════════════════
   SECTION 5A — ROI CALCULATOR
   ══════════════════════════════════════════════════════════ */
.roi { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 940px) { .roi { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: start; } }

.roi__panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(1.4rem, 2.6vw, 2rem); }
.field + .field { margin-top: 1.75rem; }
.field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.field__label label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field__val { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; color: var(--accent-text); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--line-2); border-radius: var(--r-pill); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent), 0 2px 10px var(--glow-strong);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); cursor: grab;
}
.field__ticks { display: flex; justify-content: space-between; margin-top: .55rem; font-family: var(--font-mono); font-size: .625rem; color: var(--muted-2); }

.optrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.optrow--4 { grid-template-columns: repeat(4, 1fr); }
.optrow button {
  padding: .625rem .5rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: .8125rem; color: var(--muted); text-align: center;
  transition: all .2s var(--ease);
}
.optrow button:hover { border-color: var(--accent-text); color: var(--accent-text); }
.optrow button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); font-weight: 600; }

.roi__out {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-md);
}
[data-theme="dark"] .roi__out { background: linear-gradient(165deg, #14171D 0%, #0A0B0E 100%); }
.roi__hero { padding: clamp(1.5rem, 3vw, 2rem); border-bottom: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.roi__hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow) 0%, transparent 65%); pointer-events: none;
}
.roi__hero > * { position: relative; }
.roi__hero .k { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.roi__hero .v { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.5rem, 6vw, 3.5rem); letter-spacing: -.05em; color: var(--accent-text); line-height: 1.05; margin-top: .4rem; }
.roi__hero .s { font-size: .875rem; color: var(--muted); margin-top: .35rem; }
.roi__rows { display: grid; }
.roi__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.roi__row .k { font-size: .8125rem; color: var(--muted); }
.roi__row .v { font-family: var(--font-mono); font-size: .875rem; font-weight: 500; color: var(--ink); text-align: right; }
.roi__row .v.ok { color: var(--accent-text); }
.roi__foot { padding: 1.1rem 1.25rem; }
.roi__foot p { font-size: .6875rem; color: var(--muted-2); line-height: 1.6; margin-top: .8rem; }

/* ══════════════════════════════════════════════════════════
   SECTION 5B — BRIEFING FORM
   ══════════════════════════════════════════════════════════ */
.briefing { position: relative; overflow: hidden; }
.briefing__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .briefing__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: start; } }
.briefing h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-block: 1rem 1rem; }

.form { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-md); }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__group { margin-bottom: 1.15rem; }
.form label.lbl { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.form label.lbl em { font-style: normal; color: var(--accent-text); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font-size: .9375rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form textarea { resize: vertical; min-height: 96px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form :is(input,select,textarea):focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .hint { font-size: .75rem; color: var(--muted-2); margin-top: .4rem; }
.form .err { font-size: .75rem; color: #EF5350; margin-top: .4rem; display: none; }
.form .form__group.has-error .err { display: block; }
.form .form__group.has-error :is(input,select,textarea) { border-color: #EF5350; }
.checkline { display: flex; gap: .65rem; align-items: flex-start; font-size: .8125rem; color: var(--muted); }
.checkline input { margin-top: .18rem; width: 16px; height: 16px; accent-color: var(--accent-text); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.formmsg { border-radius: var(--r-md); padding: 1rem 1.15rem; font-size: .875rem; margin-bottom: 1.15rem; display: none; }
.formmsg.is-on { display: block; }
.formmsg--ok { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink); }
.formmsg--err { background: rgba(239,83,80,.08); border: 1px solid rgba(239,83,80,.35); color: #EF5350; }
.formmsg b { display: block; font-family: var(--font-heading); margin-bottom: .2rem; color: var(--ink); }

/* ══════════════════════════════════════════════════════════
   SECTION 5C — REGIONAL HUBS
   ══════════════════════════════════════════════════════════ */
.hubs { display: grid; gap: .75rem; }
@media (min-width: 700px) { .hubs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .hubs { grid-template-columns: repeat(4, 1fr); } }
.hub {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 1.25rem 1.3rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.hub:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.hub__status { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.hub__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; }
.hub[data-state="live"] .hub__dot { background: #2FD98B; box-shadow: 0 0 0 0 rgba(47,217,139,.55); animation: pulse 2.4s infinite; }
.hub[data-state="setup"] .hub__dot { background: var(--accent); box-shadow: 0 0 0 0 var(--glow-strong); animation: pulse 2.4s infinite .4s; }
.hub[data-state="review"] .hub__dot { background: #FFB74D; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .hub__dot { animation: none !important; } }
.hub h3 { font-size: 1rem; margin-top: .9rem; }
.hub .country { font-family: var(--font-mono); font-size: .6875rem; color: var(--accent-text); letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; }
.hub p { font-size: .8125rem; color: var(--muted); margin-top: .55rem; }

/* ══════════════════════════════════════════════════════════
   PULL QUOTE
   ══════════════════════════════════════════════════════════ */
.pullquote { max-width: 52rem; margin-inline: auto; text-align: center; }
.pullquote svg { width: 34px; height: 34px; color: var(--accent-text); margin-inline: auto; margin-bottom: 1.5rem; opacity: .8; }
.pullquote blockquote { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: -.03em; line-height: 1.3; color: var(--ink); }
.pullquote cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 1.5rem; }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.ftr { background: var(--bg-deep); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
[data-theme="dark"] .ftr { background: #07080A; }
.ftr__map {
  position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none;
  opacity: .28; color: var(--accent-text);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}
.ftr .wrap { position: relative; z-index: 1; }
.ftr__top { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 1000px) { .ftr__top { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); } }
.ftr__brand p { font-size: .8125rem; color: var(--muted); margin-top: 1rem; max-width: 22rem; }
.ftr__brand .desc { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-text); margin-top: .85rem; }
.ftr__cols { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .ftr__cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ftr__cols { grid-template-columns: repeat(5, 1fr); } }
.ftr__cols h4 { font-family: var(--font-mono); font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.ftr__cols li + li { margin-top: .55rem; }
.ftr__cols a, .ftr__cols span { font-size: .8125rem; color: var(--muted); transition: color .2s var(--ease); }
.ftr__cols a:hover { color: var(--accent-text); }
.ftr__cols span { display: inline-flex; align-items: center; gap: .4rem; opacity: .6; cursor: default; }
.ftr__cols span i { font-style: normal; font-family: var(--font-mono); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 3px; padding: .1rem .25rem; }

.ftr__certs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.ftr__certs > b { font-family: var(--font-mono); font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: .5rem; }
.certchip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .05em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .35rem .6rem;
  filter: grayscale(1); transition: filter .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.certchip:hover { filter: none; color: var(--ink); border-color: var(--accent-line); }
.certchip svg { width: 12px; height: 12px; color: var(--accent-text); }

.ftr__bottom { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.ftr__bottom p, .ftr__bottom a { font-size: .75rem; color: var(--muted); }
.ftr__bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.ftr__bottom a:hover { color: var(--accent-text); }

/* ══════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: var(--gutter); background: rgba(10,11,14,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(920px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,.4); transform: translateY(10px) scale(.98);
  transition: transform .3s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal__head h3 { font-size: 1.0625rem; }
.modal__body { padding: clamp(1.25rem, 3vw, 2rem); }
.tourlist li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tourlist li:last-child { border-bottom: 0; }
.tourlist time { font-family: var(--font-mono); font-size: .75rem; color: var(--accent-text); }
.tourlist b { display: block; font-family: var(--font-heading); font-size: .875rem; color: var(--ink); margin-bottom: .3rem; }
.tourlist p { font-size: .875rem; color: var(--muted); }
.modal video { width: 100%; border-radius: var(--r-md); background: #000; }

/* ══════════════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════════════ */
.cookie {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 110;
  width: min(420px, calc(100vw - var(--gutter) * 2));
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 1.35rem 1.5rem;
  transform: translateY(20px); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s;
}
.cookie.is-on { transform: none; opacity: 1; visibility: visible; }
.cookie h4 { font-size: .9375rem; margin-bottom: .5rem; }
.cookie p { font-size: .8125rem; color: var(--muted); }
.cookie p a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.cookie__cta { display: flex; gap: .5rem; margin-top: 1.15rem; }

/* ══════════════════════════════════════════════════════════
   SOLUTION (USE-CASE DEEP DIVE) PAGES
   ══════════════════════════════════════════════════════════ */
.pagehero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.pagehero__bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 100% at 80% 0%, var(--glow) 0%, transparent 62%); }
.pagehero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--muted-2); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs svg { width: 11px; height: 11px; opacity: .5; }
.pagehero h1 { font-size: clamp(1.9rem, 4.4vw, 3.15rem); font-weight: 800; margin-block: 1rem 1.15rem; max-width: 20ch; }
.pagehero .lede { max-width: 46rem; color: var(--muted); }
.pagehero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.metachip { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .04em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .4rem .8rem; background: var(--surface); }

.solgrid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 1000px) { .solgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: start; } }
.solblock + .solblock { margin-top: clamp(2.5rem, 5vw, 4rem); }
.solblock > .eyebrow { margin-bottom: 1rem; }
.solblock h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-bottom: 1.25rem; }
.solblock .painlist li { position: relative; padding-left: 1.65rem; color: var(--ink-3); font-size: 1rem; }
.solblock .painlist li + li { margin-top: .85rem; }
.solblock .painlist li::before {
  content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--accent);
}

.steps { display: grid; gap: 1rem; counter-reset: s; }
.step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.35rem 1.5rem;
}
.step__n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text);
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 500;
}
.step h3 { font-size: 1rem; }
.step .mods { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-top: .3rem; }
.step p { font-size: .9375rem; color: var(--muted); margin-top: .7rem; }

.roilist { display: grid; gap: .75rem; }
@media (min-width: 700px) { .roilist { grid-template-columns: repeat(3, 1fr); } }
.roilist li {
  border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: 1.25rem 1.3rem; font-size: .9375rem; color: var(--ink-3);
}
.roilist svg { width: 18px; height: 18px; color: var(--accent-text); margin-bottom: .8rem; }

.ahaquote {
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  background: var(--accent-soft); padding: clamp(1.5rem, 3vw, 2.25rem);
}
.ahaquote blockquote { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.0625rem, 1.9vw, 1.3rem); line-height: 1.5; letter-spacing: -.02em; color: var(--ink); }
.ahaquote footer { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.ahaquote .av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-family: var(--font-mono); font-size: .75rem; flex-shrink: 0; }
.ahaquote cite { font-style: normal; display: block; font-size: .875rem; font-weight: 600; color: var(--ink); }
.ahaquote .org { font-size: .75rem; color: var(--muted); }

.solaside { position: sticky; top: 96px; display: grid; gap: 1rem; }
.solaside__box { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.4rem 1.5rem; }
.solaside__box h3 { font-size: .9375rem; margin-bottom: 1rem; }
.solaside__box li + li { margin-top: .7rem; }
.solaside__box li { font-size: .8125rem; color: var(--muted); display: flex; gap: .6rem; align-items: flex-start; }
.solaside__box li b { color: var(--ink); font-weight: 600; }
.solaside__box .num { font-family: var(--font-mono); font-size: .625rem; color: var(--accent-text); border: 1px solid var(--accent-line); border-radius: 4px; padding: .1rem .3rem; flex-shrink: 0; margin-top: .1rem; }
@media (max-width: 999px) { .solaside { position: static; } }

.nextcase { border-top: 1px solid var(--line); }
.nextcase a { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2rem, 4vw, 3rem); }
.nextcase .k { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.nextcase h3 { font-size: clamp(1.15rem, 2.4vw, 1.75rem); margin-top: .6rem; transition: color .2s var(--ease); }
.nextcase a:hover h3 { color: var(--accent-text); }
.nextcase svg { width: 26px; height: 26px; color: var(--accent-text); flex-shrink: 0; transition: transform .25s var(--ease); }
.nextcase a:hover svg { transform: translateX(6px); }

/* ══════════════════════════════════════════════════════════
   LEGAL / PROSE
   ══════════════════════════════════════════════════════════ */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-block: 2.5rem 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; color: var(--ink-3); }
.prose p:last-child { margin-bottom: 0; }
.draftnote {
  border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: .9rem 1.15rem;
  font-size: .8125rem; color: var(--muted); margin-bottom: 2.5rem;
  display: flex; gap: .7rem; align-items: flex-start;
}
.draftnote svg { width: 16px; height: 16px; color: var(--accent-text); flex-shrink: 0; margin-top: .12rem; }

/* ══════════════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════════════ */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 800; }
.nf p { color: var(--muted); margin-block: 1rem 2rem; }

/* ══════════════════════════════════════════════════════════
   MOTION & UTILITIES
   ══════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.stagebar { display: none; }

/* Staging ribbon */
.stagebadge {
  position: fixed; left: 0; bottom: 0; z-index: 130;
  font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: .3rem .6rem; border-radius: 0 6px 0 0;
  opacity: .82; pointer-events: none;
}

/* ── Logo lockup ───────────────────────────────────────── */
.logo__mark { color: var(--ink); flex-shrink: 0; }
.logo__wordmark {
  font-family: var(--font-heading); font-size: 1.1875rem; font-weight: 700;
  letter-spacing: -.035em; color: var(--ink); line-height: 1; white-space: nowrap;
}
.logo__wordmark span { color: var(--accent-text); }
@media (max-width: 420px) { .logo__wordmark { font-size: 1.0625rem; } }
.ftr__brand .logo { margin-bottom: .25rem; }

/* ── Brand art layers ──────────────────────────────────── */
:root          { --hero-art: url('../img/hero-light.webp'); --hero-art-opacity: .34; }
[data-theme="dark"] { --hero-art: url('../img/hero-dark.webp');  --hero-art-opacity: .52; }

.hero__art {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--hero-art);
  background-size: cover;
  background-position: 50% 44%;
  opacity: var(--hero-art-opacity);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 99%);
}

/* Legibility scrim: sits above the artwork and below the content, so the
   headline column always has a clean ground no matter what the art does. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(var(--scrim-rgb), var(--veil)) 0%,
    rgba(var(--scrim-rgb), var(--veil)) 46%,
    rgba(var(--scrim-rgb), calc(var(--veil) * .55)) 60%,
    rgba(var(--scrim-rgb), 0) 78%);
}
@media (max-width: 1079px) {
  .hero__art { opacity: calc(var(--hero-art-opacity) * .7); }
  .hero::after {
    background: linear-gradient(to bottom,
      rgba(var(--scrim-rgb), var(--veil)) 0%,
      rgba(var(--scrim-rgb), calc(var(--veil) * .8)) 55%,
      rgba(var(--scrim-rgb), calc(var(--veil) * .35)) 100%);
  }
}

/* Bento card media band */
.uccard { padding: 0; }
.uccard__media {
  position: relative; aspect-ratio: 16 / 6.2; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.uccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.uccard:hover .uccard__media img { transform: scale(1.04); }
.uccard__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--surface) 100%);
  opacity: .55;
}
.uccard__body { padding: clamp(1.35rem, 2.2vw, 1.85rem); display: flex; flex-direction: column; flex: 1; }
.uccard__ico {
  position: relative; z-index: 2;
  margin-top: -3.25rem; margin-bottom: 1.1rem;
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent-text);
  box-shadow: var(--shadow-sm);
}
.uccard h3 { margin-top: 0; }
.uccard__more { margin-top: auto; padding-top: 1.25rem; }

/* Solution page hero art */
.pagehero { padding-bottom: 0; }
.pagehero__art {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border: 1px solid var(--line); border-bottom: 0;
  overflow: hidden; aspect-ratio: 21 / 6; position: relative;
}
.pagehero__art img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
@media (max-width: 700px) { .pagehero__art { aspect-ratio: 16 / 8; } }

/* ── Touch target sizing ───────────────────────────────── */
/* Footer link rows are 16px tall by default, under the WCAG 2.2 AA
   minimum of 24px for pointer targets. Pad them on touch devices. */
@media (pointer: coarse) {
  .ftr__cols li + li { margin-top: .15rem; }
  .ftr__cols a, .ftr__cols span { display: inline-flex; align-items: center; min-height: 28px; }
  .ftr__bottom nav { gap: .5rem 1.25rem; }
  .ftr__bottom a { display: inline-flex; align-items: center; min-height: 28px; }
  .crumbs a { min-height: 28px; display: inline-flex; align-items: center; }
}

/* ══════════════════════════════════════════════════════════
   PRE-LAUNCH PAGE
   ══════════════════════════════════════════════════════════ */
.soonhdr{position:sticky;top:0;z-index:90;
  background:color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);}
.soonhdr__inner{display:flex;align-items:center;gap:1rem;height:72px}
.soonhdr .hdr__tools{margin-left:auto}
@media (max-width:520px){.soonhdr__cta{display:none}}

.livebadge{display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--font-mono);font-size:.625rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink);background:var(--surface);border:1px solid var(--line-2);
  border-radius:var(--r-pill);padding:.4rem .85rem}
.livebadge i{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:0 0 auto;
  box-shadow:0 0 0 0 var(--glow-strong);animation:pulse 2.4s infinite}

.soonhero{padding-block:clamp(2.5rem,6vw,4.5rem) clamp(2.5rem,5vw,4rem)}
.hero__note{font-size:.8125rem;color:var(--muted);margin-top:1.15rem;max-width:34rem}
.hero__note a{color:var(--accent-text);text-decoration:underline;text-underline-offset:2px}

.canvashint{display:flex;align-items:center;gap:.5rem;justify-content:flex-end;
  font-family:var(--font-mono);font-size:.6875rem;letter-spacing:.06em;
  color:var(--muted-2);margin-top:1rem}
.canvashint svg{color:var(--accent-text);flex:0 0 auto}
@media (max-width:1079px){.canvashint{justify-content:flex-start}}

/* Architecture pillars */
.soonpillars{display:grid;gap:clamp(.875rem,1.6vw,1.25rem)}
@media (min-width:820px){.soonpillars{grid-template-columns:repeat(3,1fr)}}
.soonpillar{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);
  padding:clamp(1.5rem,2.6vw,2rem);transition:border-color .25s var(--ease),box-shadow .25s var(--ease)}
.soonpillar:hover{border-color:var(--accent-line);box-shadow:var(--shadow-md)}
.soonpillar__ico{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;
  background:var(--accent-soft);border:1px solid var(--accent-line);color:var(--accent-text);margin-bottom:1.35rem}
.soonpillar__n{font-family:var(--font-mono);font-size:.6875rem;letter-spacing:.14em;
  color:var(--muted-2);margin-bottom:.5rem}
.soonpillar h3{font-size:1.0625rem;margin-bottom:.65rem}
.soonpillar p{font-size:.9375rem;color:var(--muted)}

.honestnote{display:flex;gap:.7rem;align-items:flex-start;margin-top:clamp(1.5rem,3vw,2.25rem);
  font-size:.8125rem;color:var(--muted);max-width:62ch;
  border:1px dashed var(--line-2);border-radius:var(--r-md);padding:.9rem 1.15rem}
.honestnote svg{color:var(--accent-text);flex:0 0 auto;margin-top:.15rem}

/* Brand band */
.brandband{position:relative;overflow:hidden;background:#0A0B0E;color:#E9EEF3;
  padding-block:clamp(4rem,9vw,7rem)}
.brandband__art{position:absolute;inset:0;pointer-events:none;
  background:url('../img/brand-band.webp') center/cover no-repeat;opacity:.6;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 42%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0%,#000 42%,#000 100%)}
.brandband::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,#0A0B0E 0%,#0A0B0E 40%,rgba(10,11,14,.72) 55%,rgba(10,11,14,0) 82%)}
.brandband__inner{position:relative;z-index:1;display:grid;gap:clamp(1.5rem,3vw,2.5rem);max-width:1320px}
@media (min-width:900px){.brandband__inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}}
.brandband h2{color:#fff;font-size:clamp(1.75rem,3.4vw,2.6rem)}
.brandband .eyebrow{color:#00D2FF}
.brandband .eyebrow::before{background:#00D2FF;box-shadow:0 0 0 3px rgba(0,210,255,.12)}
.brandband__copy p{color:#B9C4D0;font-size:clamp(.9375rem,1.3vw,1.0625rem);max-width:46ch}
.brandband__copy p+p{margin-top:1.15rem}
.brandband__copy em{color:#fff;font-style:italic}
@media (max-width:899px){
  .brandband__art{opacity:.32;-webkit-mask-image:none;mask-image:none}
  .brandband::after{background:linear-gradient(180deg,rgba(10,11,14,.88) 0%,rgba(10,11,14,.72) 100%)}
}

.soonftr{background:var(--bg-alt)}
.soonftr .ftr__bottom{align-items:flex-start}
.soonftr .ftr__bottom p{font-size:.75rem;color:var(--muted)}
