/* ==========================================================================
   Enterprice — landing
   Tokens: midnight navy surfaces, cool paper, one electric cyan accent.
   Type: Archivo (wide display) · Geist (body) · Geist Mono (data, labels).
   ========================================================================== */

:root {
  --midnight: #050e1a;
  --navy: #0a1b2e;
  --navy-2: #0e2440;
  --line-d: rgba(140, 185, 230, 0.14);
  --text-d: #e8f1f8;
  --muted-d: #93a9bf;

  --paper: #f2f5f8;
  --white: #ffffff;
  --ink: #08182a;
  --ink-2: #2a3b4e;
  --muted: #56677a;
  --line: #dae2ea;

  --cyan: #3cc8ff;
  --cyan-2: #7ddbff;
  --cyan-deep: #0772b0;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(20px, 4vw, 40px);
  --container: 1240px;
  --header-h: 72px;
  --section-y: clamp(84px, 10vw, 144px);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--cyan); color: var(--midnight); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--cyan); color: var(--midnight); font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow-dark { color: var(--cyan); }

.hero-eyebrow::before { display: none; }

.signal {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  flex: none;
}
.signal::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.h2 {
  margin-top: 20px;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: clamp(2.05rem, 1.25rem + 2.6vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
}
.section-dark .h2 { color: var(--white); }

.muted-heading { color: #8496a8; }
.accent-heading { color: var(--cyan); }

.section-lede {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.section-dark .section-lede { color: var(--muted-d); }
.h2 + .section-lede { margin-top: 22px; }

.inline-link {
  color: var(--cyan-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 15px/1 var(--f-body);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--cyan);
  color: #031222;
  box-shadow: 0 12px 32px -12px rgba(60, 200, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { background: #6dd6ff; box-shadow: 0 16px 40px -12px rgba(60, 200, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.btn-ghost-light {
  border-color: rgba(200, 225, 245, 0.26);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-d);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(200, 225, 245, 0.45); }

.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.link-arrow .arr { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--text-d);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 14, 26, 0.78);
  border-bottom-color: var(--line-d);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); }
.brand img { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-word {
  font: 650 16px/1 var(--f-display);
  font-stretch: 118%;
  letter-spacing: 0.13em;
}
.brand-sub {
  font: 500 9px/1 var(--f-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-d);
}

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.main-nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: #b4c6d8;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--white); }
.main-nav a[aria-current="true"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--cyan);
}
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-d);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  place-items: center;
}
.menu-icon { position: relative; width: 18px; height: 10px; display: block; }
.menu-icon span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8.5px; }
.is-open .menu-icon span:first-child { top: 4.25px; transform: rotate(45deg); }
.is-open .menu-icon span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Language switch */
.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--line-d);
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch button {
  position: relative;
  z-index: 1;
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: 0.08em;
  color: var(--muted-d);
  transition: color 0.3s var(--ease);
}
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--white); }
.lang-switch button[aria-pressed="true"] { color: #031222; }
.lang-indicator {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 8px;
  background: var(--cyan);
  box-shadow: 0 6px 16px -6px rgba(60, 200, 255, 0.8);
  transition: transform 0.45s var(--ease-out);
}
.lang-switch[data-active="es"] .lang-indicator { transform: translateX(100%); }
.lang-pending body { opacity: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden; overflow: clip;
  background: var(--midnight);
  color: var(--text-d);
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.graticule {
  position: absolute;
  top: 46%;
  right: -16%;
  width: min(1180px, 105vw);
  transform: translateY(-50%);
  stroke: rgba(125, 190, 240, 0.085);
  stroke-width: 1;
  -webkit-mask-image: radial-gradient(circle at 45% 50%, #000 30%, transparent 72%);
  mask-image: radial-gradient(circle at 45% 50%, #000 30%, transparent 72%);
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 90vw; height: 90vw;
  max-width: 1300px; max-height: 1300px;
  background:
    radial-gradient(closest-side, rgba(60, 200, 255, 0.16), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(7, 114, 176, 0.22), transparent 75%);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, 6%, 0) scale(1.08); }
}

.hero-inner { position: relative; }

.hero-title {
  margin-top: 26px;
  font-family: var(--f-display);
  font-stretch: 116%;
  font-weight: 640;
  font-size: clamp(2.55rem, 1.1rem + 5.2vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  color: var(--white);
}
.hero-title .line { display: block; overflow: hidden; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; }
.line-accent > span {
  background: linear-gradient(92deg, var(--cyan) 0%, #a8e9ff 45%, var(--cyan) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(36px, 5vw, 60px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-lede {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  color: #b7c9da;
  max-width: 34em;
  text-wrap: pretty;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.spec {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: start;
  gap: 28px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-d);
}
.spec dt {
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f879e;
}
.spec dd { margin-top: 9px; font-size: 14.5px; font-weight: 500; color: var(--text-d); }
.spec dt, .spec dd { white-space: nowrap; }

/* Hero load sequence */
.js [data-hero-step] {
  opacity: 0;
  transform: translateY(18px);
}
.js .hero-title [data-hero-step] { opacity: 1; transform: translateY(108%); }
.is-loaded [data-hero-step] {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.is-loaded .hero-title [data-hero-step] { transform: none; }

/* ---------- Split-flap board ---------- */

.board-wrap { position: relative; container-type: inline-size; }

.board {
  --cols: 21;
  position: relative;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 18px;
  background: linear-gradient(180deg, #0c1f36 0%, #081627 100%);
  border: 1px solid var(--line-d);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(60, 200, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.board::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(60, 200, 255, 0.5), transparent 35%, transparent 70%, rgba(60, 200, 255, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.board-title { display: inline-flex; align-items: center; gap: 10px; color: var(--text-d); }
.board-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-clock span { color: var(--cyan-2); }

.board-cols,
.board-row {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) 14px;
  column-gap: 3px;
  align-items: center;
}
.board-cols {
  margin-bottom: 8px;
  font: 500 9.5px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5f7891;
}
.c-code { grid-column: 1 / span 2; }
.c-market { grid-column: 4 / span 14; }
.c-ccy { grid-column: 19 / span 3; }

.board-rows { display: grid; row-gap: 4px; }

.flap {
  position: relative;
  aspect-ratio: 3 / 3.75;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: linear-gradient(180deg, #14304f 0 50%, #102a46 50% 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font: 500 calc((100cqw - 40px) / (var(--cols) + 1) * 0.62) / 1 var(--f-mono);
  color: #eef6fc;
  perspective: 120px;
  overflow: hidden; overflow: clip;
}
.flap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(2, 8, 16, 0.75);
}
.flap > span { display: block; backface-visibility: hidden; }
.flap.is-code { color: var(--cyan); }
.flap.is-ccy { color: #a9bfd3; }
.flap.is-settled > span { animation: flapIn 0.32s var(--ease-out); }
@keyframes flapIn {
  from { transform: rotateX(-80deg); opacity: 0.25; }
  to { transform: none; opacity: 1; }
}
.flap-gap { aspect-ratio: auto; }

.board-light {
  justify-self: end;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1a3452;
  transition: background-color 0.4s, box-shadow 0.4s;
}
.board-light.is-on { background: var(--cyan); box-shadow: 0 0 10px rgba(60, 200, 255, 0.9); }

/* Accessible table: visible without JS, hidden visually once the board renders */
.board-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 13px/1.4 var(--f-mono);
  color: var(--text-d);
}
.board-table th, .board-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line-d); }
.board-table th { color: var(--muted-d); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.js .board-table {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.board-cols, .board-rows { display: none; }
.js .board-cols { display: grid; }
.js .board-rows { display: grid; }

.board-note {
  margin-top: 14px;
  font: 400 12px/1.55 var(--f-mono);
  color: #6f879e;
  max-width: 62ch;
}

@container (max-width: 420px) {
  .board { --cols: 17; padding: 14px 12px; }
  .c-ccy, .flap.is-ccy, .flap-gap.is-ccy { display: none; }
  .board-head { letter-spacing: 0.1em; font-size: 10px; }
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line-d);
  background: rgba(255, 255, 255, 0.015);
}
.marquee-label {
  flex: none;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.marquee-viewport {
  display: flex;
  overflow: hidden; overflow: clip;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  animation: marquee 46s linear infinite;
}
.marquee-viewport:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  font: 500 17px/1 var(--f-display);
  font-stretch: 108%;
  letter-spacing: -0.01em;
  color: #c4d4e3;
}
.marquee-track li::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
  opacity: 0.6;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */

.section { position: relative; padding-block: var(--section-y); }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-dark { background: var(--midnight); color: var(--text-d); }
.section-dark-2 { background: linear-gradient(180deg, var(--midnight), #061323); border-top: 1px solid var(--line-d); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
}
.section-head .section-lede { justify-self: end; }

/* Reveal on scroll */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Why: statement + pillars ---------- */

.statement {
  margin-top: 28px;
  max-width: 24ch;
  font-family: var(--f-display);
  font-stretch: 104%;
  font-weight: 560;
  font-size: clamp(1.75rem, 1rem + 2.7vw, 3.55rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 30ch;
}
.js .statement .w { color: rgba(8, 24, 42, 0.16); transition: color 0.45s var(--ease); }
.js .statement .w.is-lit { color: var(--ink); }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
}

[data-spotlight] { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
[data-spotlight]::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(60, 200, 255, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
[data-spotlight]:hover::before { opacity: 1; }

.pillar {
  padding: 28px 26px 30px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(8, 24, 42, 0.02), 0 18px 40px -28px rgba(8, 24, 42, 0.25);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.pillar:hover { border-color: #b9dcef; transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(7, 114, 176, 0.35); }
.pillar-icon {
  width: 40px; height: 40px;
  fill: none;
  stroke: var(--cyan-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 36px;
}
.pillar h3 {
  font: 600 19px/1.2 var(--f-display);
  font-stretch: 106%;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pillar p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Solutions ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(28px, 3.6vw, 48px);
  border-radius: 28px;
  overflow: hidden; overflow: clip;
}
.product-supply {
  color: var(--text-d);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(60, 200, 255, 0.18), transparent 55%),
    linear-gradient(160deg, #0d2a47 0%, #071629 70%);
  box-shadow: 0 40px 80px -40px rgba(5, 14, 26, 0.7);
}
.product-api {
  background: var(--paper);
  border: 1px solid var(--line);
}

.product-kicker {
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}
.product-supply .product-kicker { color: var(--cyan); }

.product-name {
  margin-top: 18px;
  font-family: var(--f-display);
  font-stretch: 114%;
  font-weight: 620;
  font-size: clamp(2.2rem, 1.5rem + 2.1vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.product-supply .product-name { color: var(--white); }
.product-name span { color: var(--cyan-deep); }
.product-supply .product-name span { color: var(--cyan); }

.product-tagline { margin-top: 14px; font-size: 18px; font-weight: 500; color: var(--ink-2); }
.product-supply .product-tagline { color: #d4e3f0; }

.product-body { font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 46ch; }
.product-supply .product-body { color: #a3b8cc; }

.mini-flow {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}
.product-supply .mini-flow { background: rgba(255, 255, 255, 0.03); border-color: var(--line-d); }

.node {
  flex: none;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--white);
  font: 500 12px/1 var(--f-mono);
  color: var(--ink-2);
  white-space: nowrap;
}
.product-supply .node { background: rgba(255, 255, 255, 0.04); border-color: var(--line-d); color: #c7d7e6; }
.node-brand { border-color: rgba(60, 200, 255, 0.55) !important; color: var(--cyan-deep); background: rgba(60, 200, 255, 0.08); }
.product-supply .node-brand { color: var(--cyan); background: rgba(60, 200, 255, 0.1); }

.rail {
  position: relative;
  flex: 1;
  min-width: 18px;
  height: 1px;
  background: currentColor;
  color: rgba(7, 114, 176, 0.3);
  overflow: hidden; overflow: clip;
}
.product-supply .rail { color: rgba(140, 185, 230, 0.25); }
.rail i {
  position: absolute; top: 0; left: 0;
  width: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  animation: railX 2.2s linear infinite;
}
.rail i:nth-child(2) { animation-delay: -1.1s; }
.rail-both i:nth-child(2) {
  background: linear-gradient(270deg, transparent, var(--cyan));
  animation-name: railXReverse;
}
@keyframes railX { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes railXReverse { from { transform: translateX(250%); } to { transform: translateX(-100%); } }

.checks { display: grid; gap: 12px; }
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.product-supply .checks li { color: #d4e3f0; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(7, 114, 176, 0.12);
}
.checks li::after {
  content: "";
  position: absolute; left: 6px; top: 6px;
  width: 6px; height: 9px;
  border: solid var(--cyan-deep);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.product-supply .checks li::before { background: rgba(60, 200, 255, 0.14); }
.product-supply .checks li::after { border-color: var(--cyan); }

.product-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.product-supply .product-foot { border-top-color: var(--line-d); }
.fit { font-size: 14px; color: var(--muted); max-width: 30ch; line-height: 1.5; }
.fit-label {
  display: block;
  margin-bottom: 6px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a9aab;
}
.product-supply .fit { color: #a3b8cc; }
.product-supply .fit-label { color: #6f879e; }
.product-supply .link-arrow { color: var(--cyan); }
.product-api .link-arrow { color: var(--cyan-deep); }

/* Platform: wide card with an illustrative interface */
.product-platform {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(60, 200, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #f6f9fc 0%, #edf3f8 100%);
  border: 1px solid var(--line);
}
.platform-copy { display: flex; flex-direction: column; gap: 24px; height: 100%; }

.platform-ui {
  position: relative;
  overflow: hidden; overflow: clip;
  border-radius: 18px;
  background: #061220;
  border: 1px solid #12294a;
  color: var(--text-d);
  box-shadow: 0 50px 90px -40px rgba(5, 14, 26, 0.65), 0 0 0 1px rgba(60, 200, 255, 0.06);
}
.pui-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-d);
  background: rgba(255, 255, 255, 0.025);
}
.pui-title { font: 500 12px/1 var(--f-mono); color: #c4d4e3; letter-spacing: 0.04em; white-space: nowrap; }
.pui-user {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-d);
  font: 500 10.5px/1 var(--f-mono);
  color: var(--muted-d);
  white-space: nowrap;
}
.pui-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }

.pui-search { display: flex; align-items: stretch; gap: 8px; }
.pui-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-d);
  background: rgba(255, 255, 255, 0.03);
}
.pui-field small { font: 500 9.5px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #6f879e; }
.pui-field b { overflow: hidden; font-size: 14px; font-weight: 600; color: var(--white); white-space: nowrap; text-overflow: ellipsis; }
.pui-wide { flex: 1; }
.pui-swap { align-self: center; color: var(--muted-d); font-size: 13px; }
.pui-go {
  display: grid;
  place-items: center;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: #031222;
  font-size: 13px;
  font-weight: 600;
}

.pui-progress { height: 2px; border-radius: 2px; background: rgba(140, 185, 230, 0.12); overflow: hidden; overflow: clip; }
.pui-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan-deep), var(--cyan)); }
.platform-ui.is-live .pui-progress i { animation: puiLoad 1s var(--ease-out) forwards; }
@keyframes puiLoad { to { width: 100%; } }

.pui-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pui-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-d);
  font-size: 12px;
  color: #c4d4e3;
}
.pui-chip.is-on { background: rgba(60, 200, 255, 0.12); border-color: rgba(60, 200, 255, 0.4); color: var(--cyan-2); }
.pui-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-e { background: var(--cyan); }
.dot-own { background: #b5e8cf; }
.pui-count { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--muted-d); }

.pui-results { display: grid; gap: 6px; }
.pui-results li {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.3fr 0.6fr 0.8fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-d);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.js .pui-results li { opacity: 0; transform: translateY(8px); }
.platform-ui.is-live .pui-results li {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.platform-ui.is-live .pui-results li:nth-child(1) { transition-delay: 0.9s, 0.9s, 0s, 0s, 0s; }
.platform-ui.is-live .pui-results li:nth-child(2) { transition-delay: 1s, 1s, 0s, 0s, 0s; }
.platform-ui.is-live .pui-results li:nth-child(3) { transition-delay: 1.1s, 1.1s, 0s, 0s, 0s; }
.platform-ui.is-live .pui-results li:nth-child(4) { transition-delay: 1.2s, 1.2s, 0s, 0s, 0s; }
.pui-results li.is-selected {
  border-color: rgba(60, 200, 255, 0.55);
  background: rgba(60, 200, 255, 0.07);
  box-shadow: 0 0 0 1px rgba(60, 200, 255, 0.18);
}
.pui-time { font: 500 13px/1.2 var(--f-mono); color: var(--white); white-space: nowrap; }
.pui-time sup { font-size: 9px; color: var(--muted-d); }
.pui-meta { font-size: 12px; color: var(--muted-d); }
.pui-src {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 6px;
  font: 500 10.5px/1.2 var(--f-mono);
  white-space: nowrap;
}
.src-e { background: rgba(60, 200, 255, 0.12); color: var(--cyan-2); }
.src-own { background: rgba(181, 232, 207, 0.12); color: #b5e8cf; }
.pui-pos { font: 500 10.5px/1 var(--f-mono); color: var(--muted-d); white-space: nowrap; }
.pui-price { justify-self: end; font: 600 14px/1 var(--f-body); color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }

.pui-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.pui-note { font: 400 11px/1.3 var(--f-mono); color: #5f7891; }
.pui-book {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--cyan);
  color: #031222;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(60, 200, 255, 0.7);
}

/* ---------- How it works: flow ---------- */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.5fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
}

.flow-col {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line-d);
  background: rgba(255, 255, 255, 0.02);
}
.flow-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.flow-label-core { color: var(--cyan); }
.flow-label img { width: 18px; height: 18px; }

.flow-list { display: grid; gap: 8px; }
.flow-list li {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-d);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14.5px;
  font-weight: 500;
  color: #dbe7f2;
}
.flow-list-doors li { display: grid; gap: 3px; padding-block: 14px; }
.flow-list-doors strong { font-weight: 600; color: var(--white); }
.flow-list-doors small { font-size: 12.5px; color: var(--muted-d); font-weight: 400; }

.flow-core {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(60, 200, 255, 0.35);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(60, 200, 255, 0.13), transparent 60%),
    rgba(10, 27, 46, 0.7);
  box-shadow: 0 0 80px -20px rgba(60, 200, 255, 0.25);
}

.core-steps { display: grid; gap: 4px; counter-reset: core; }
.core-steps li {
  position: relative;
  counter-increment: core;
  padding: 10px 12px 10px 44px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted-d);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.core-steps li::before {
  content: counter(core, decimal-leading-zero);
  position: absolute;
  left: 13px;
  top: 10px;
  font: 500 11px/1.9 var(--f-mono);
  color: #5f7891;
  transition: color 0.5s var(--ease);
}
.core-steps li span { color: var(--white); font-weight: 600; }
.core-steps li.is-active { background: rgba(60, 200, 255, 0.1); color: #d4e6f5; }
.core-steps li.is-active::before { color: var(--cyan); }

.flow-rail {
  position: relative;
  height: 1px;
  background: rgba(140, 185, 230, 0.22);
  overflow: hidden; overflow: clip;
}
.flow-rail i {
  position: absolute; top: -1px; left: 0;
  width: 18px; height: 3px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseX 2.4s linear infinite;
}
.flow-rail i:nth-child(2) { animation-delay: -0.8s; }
.flow-rail i:nth-child(3) { animation-delay: -1.6s; }
@keyframes pulseX { from { transform: translateX(-20px); } to { transform: translateX(60px); } }
@keyframes pulseY { from { transform: translateY(-20px); } to { transform: translateY(56px); } }

.flow-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px dashed rgba(140, 185, 230, 0.26);
}
.flow-base-label {
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.flow-base ul { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-base li {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-d);
  font-size: 13px;
  color: #c4d4e3;
}

/* ---------- Developers ---------- */

.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}

.dev-features {
  display: grid;
  gap: 24px;
}
.dev-features li { padding-top: 18px; border-top: 1px solid var(--line-d); }
.dev-features h3 {
  font: 600 16.5px/1.25 var(--f-display);
  font-stretch: 104%;
  color: var(--white);
}
.dev-features p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted-d); }

.dev-code { position: sticky; top: calc(var(--header-h) + 32px); min-width: 0; }

.code-window {
  position: relative;
  border-radius: 18px;
  overflow: hidden; overflow: clip;
  background: #061220;
  border: 1px solid var(--line-d);
  box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(60, 200, 255, 0.05), 0 0 120px -40px rgba(60, 200, 255, 0.25);
}
.code-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line-d);
  background: rgba(255, 255, 255, 0.025);
}
.code-dots { display: flex; gap: 6px; flex: none; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: #1c3350; }

.code-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button {
  flex: none;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 500 12.5px/1 var(--f-mono);
  color: var(--muted-d);
  transition: background-color 0.25s, color 0.25s;
}
.code-tabs button:hover { color: var(--white); }
.code-tabs button[aria-selected="true"] { background: rgba(60, 200, 255, 0.13); color: var(--cyan-2); }

.code-panel {
  margin: 0;
  min-height: 494px;
  padding: 22px 24px;
  overflow-x: auto;
  font: 400 12.5px/1.7 var(--f-mono);
  color: #cfe0ee;
  tab-size: 2;
}
.code-panel[hidden] { display: none; }
.code-panel, .code-panel code { white-space: normal; }
.code-panel code { display: block; width: max-content; min-width: 100%; font: inherit; }
.code-panel .l { display: block; white-space: pre; }
.code-panel.is-typing .l { animation: lineIn 0.45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 32ms); }
@keyframes lineIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}
.t-m { color: var(--cyan); font-weight: 600; }
.t-p { color: var(--white); }
.t-h { color: #9fb3c8; }
.t-k { color: var(--cyan-2); }
.t-s { color: #b5e8cf; }
.t-b { color: #ffd08a; }
.t-c { color: #5f7a93; }

.code-note {
  padding: 12px 24px 16px;
  border-top: 1px solid var(--line-d);
  font: 400 11.5px/1.5 var(--f-mono);
  color: #6f879e;
}

/* ---------- Who we work with ---------- */

.segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.segment {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 36px);
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease-out);
}
.segment:hover { border-color: #b9dcef; transform: translateY(-3px); }
.segment h3 {
  font: 600 clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem)/1.15 var(--f-display);
  font-stretch: 108%;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.segment p { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.segment-fit { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.tag {
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(7, 114, 176, 0.08);
  border: 1px solid rgba(7, 114, 176, 0.18);
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--cyan-deep);
}

/* ---------- Markets ---------- */

.markets { overflow: hidden; overflow: clip; }
.markets-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.markets-points { display: grid; gap: 22px; margin: 40px 0 40px; }
.markets-points li { padding-left: 20px; border-left: 1px solid rgba(60, 200, 255, 0.4); }
.markets-points h3 { font: 600 17px/1.25 var(--f-display); font-stretch: 104%; color: var(--white); }
.markets-points p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted-d); }

.globe-wrap { position: relative; }
.globe-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 200, 255, 0.2), transparent 75%);
  filter: blur(30px);
}
.globe {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  aspect-ratio: 1;
}
.globe canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  cursor: grab;
  touch-action: pan-y;
}
.globe canvas:active { cursor: grabbing; }
.globe-fallback {
  position: absolute; inset: 4%;
  stroke: rgba(125, 190, 240, 0.25);
  stroke-width: 1;
  transition: opacity 0.8s var(--ease);
}
.globe.is-ready canvas { opacity: 1; }
.globe.is-ready .globe-fallback { opacity: 0; }

.globe-caption {
  position: relative;
  margin-top: 8px;
  font: 400 12px/1.5 var(--f-mono);
  color: var(--muted-d);
  text-align: center;
}
.legend-dot { display: inline-block; vertical-align: 1px; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------- Process ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(48px, 6vw, 80px);
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 22px; right: 0; top: 22px;
  height: 1px;
  background: var(--line);
}
.steps::after {
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2.2s var(--ease-out) 0.2s;
}
.steps.is-visible::after { transform: scaleX(1); }

.step { position: relative; }
.step-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font: 500 12.5px/1 var(--f-mono);
  color: var(--cyan-deep);
  transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.step.is-visible .step-index { border-color: rgba(7, 114, 176, 0.45); box-shadow: 0 0 0 6px rgba(60, 200, 255, 0.1); }
.step h3 {
  margin-top: 26px;
  font: 600 21px/1.15 var(--f-display);
  font-stretch: 108%;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.step p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.measure {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px 56px;
  align-items: center;
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 26px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(60, 200, 255, 0.14), transparent 55%),
    var(--navy);
  color: var(--text-d);
}
.measure-head h3 {
  font: 620 clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem)/1.05 var(--f-display);
  font-stretch: 112%;
  letter-spacing: -0.03em;
  color: var(--white);
}
.measure-head p { margin-top: 12px; color: var(--muted-d); font-size: 15.5px; line-height: 1.6; }
.measure-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.measure-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-d);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14.5px;
  color: #dbe7f2;
}
.gauge { display: flex; align-items: flex-end; gap: 3px; height: 16px; flex: none; }
.gauge::before, .gauge::after, .gauge i {
  content: "";
  width: 3px;
  border-radius: 2px;
  background: var(--cyan);
}
.gauge::before { height: 45%; opacity: 0.5; }
.gauge i { height: 75%; opacity: 0.75; }
.gauge::after { height: 100%; }

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-intro .section-lede { margin-top: 20px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font: 560 clamp(1.05rem, 1rem + 0.3vw, 1.2rem)/1.35 var(--f-display);
  font-stretch: 102%;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--cyan-deep); }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 11px no-repeat,
    var(--white);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-body { overflow: hidden; overflow: clip; }
.faq-body p { padding: 0 54px 26px 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */

.contact { overflow: hidden; overflow: clip; }
.contact-glow {
  position: absolute;
  left: -20%; bottom: -40%;
  width: 80vw; height: 80vw;
  max-width: 1100px; max-height: 1100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 200, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.contact-title { max-width: 13ch; }
.contact-copy .section-lede { margin-top: 22px; }

.next-steps { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-d); }
.next-label {
  margin-bottom: 20px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.next-steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 22px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #d4e3f0;
}
.next-steps li:last-child { padding-bottom: 0; }
.next-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13.5px; top: 32px; bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--cyan), transparent);
  opacity: 0.35;
}
.next-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(60, 200, 255, 0.4);
  background: rgba(60, 200, 255, 0.08);
  font: 500 12px/1 var(--f-mono);
  color: var(--cyan);
}
.next-steps li > span:last-child { padding-top: 3px; }

/* Form panel: dark glass with a lit edge, same family as the board */
.form-card {
  position: relative;
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(60, 200, 255, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(16, 38, 66, 0.82) 0%, rgba(7, 19, 34, 0.94) 100%);
  border: 1px solid var(--line-d);
  color: var(--text-d);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.form-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(60, 200, 255, 0.55), transparent 30%, transparent 75%, rgba(60, 200, 255, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-d);
}
.form-head h3 {
  font: 620 clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem)/1.1 var(--f-display);
  font-stretch: 110%;
  letter-spacing: -0.025em;
  color: var(--white);
}
.form-time {
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-d);
  white-space: nowrap;
}

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-group { margin-bottom: 28px; }
.form-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0;
  font: 500 11px/1.2 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fb6cc;
}
.optional {
  font: 400 10px/1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5f7891;
}

/* What are you looking for: selectable cards */
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(160, 200, 235, 0.14);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.35s var(--ease), transform 0.3s var(--ease-out);
}
.choice-box:hover { border-color: rgba(160, 200, 235, 0.32); background: rgba(255, 255, 255, 0.045); }
.choice-box:active { transform: scale(0.98); }
.choice-icon {
  width: 22px; height: 22px;
  margin-bottom: 14px;
  fill: none;
  stroke: #8fb3cf;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s var(--ease);
}
.choice-title { font: 600 15px/1.2 var(--f-display); font-stretch: 106%; color: var(--white); }
.choice-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted-d); }
.choice-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(160, 200, 235, 0.28);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.choice-check::after {
  content: "";
  position: absolute;
  left: 5.5px; top: 2.5px;
  width: 4.5px; height: 8px;
  border: solid #031222;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.35s var(--ease-out);
}
.choice input:checked + .choice-box {
  border-color: rgba(60, 200, 255, 0.7);
  background: radial-gradient(120% 120% at 0% 0%, rgba(60, 200, 255, 0.17), rgba(60, 200, 255, 0.04) 60%);
  box-shadow: 0 0 0 1px rgba(60, 200, 255, 0.3), 0 18px 40px -22px rgba(60, 200, 255, 0.55);
}
.choice input:checked + .choice-box .choice-icon { stroke: var(--cyan); }
.choice input:checked + .choice-box .choice-check { background: var(--cyan); border-color: var(--cyan); }
.choice input:checked + .choice-box .choice-check::after { transform: rotate(45deg) scale(1); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Fields with floating labels */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid-tail { margin-bottom: 24px; }
.field { position: relative; min-width: 0; }
.field-full { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 25px 16px 8px;
  border: 1px solid rgba(160, 200, 235, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  color-scheme: dark;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; padding-top: 30px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%2393A9BF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field select option { background: #0b1d33; color: var(--white); }
.field label {
  position: absolute;
  left: 17px; top: 19px;
  max-width: calc(100% - 34px);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.3;
  color: #8ea6bd;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.28s var(--ease-out), color 0.2s var(--ease);
}
.field label .optional { margin-left: 6px; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  transform: translateY(-10px) scale(0.76);
}
.field :focus + label { color: var(--cyan-2); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(160, 200, 235, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  background: rgba(60, 200, 255, 0.045);
  box-shadow: 0 0 0 4px rgba(60, 200, 255, 0.12);
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  box-shadow: 0 0 0 1000px #10263f inset;
  transition: background-color 9999s;
}
.field [aria-invalid="true"] { border-color: #ff7a7a; box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1); }
.field [aria-invalid="true"] + label { color: #ff9c9c; }
.field-error { display: block; font-size: 12.5px; line-height: 1.4; color: #ff9c9c; }
.field-error:not(:empty) { margin-top: 7px; }

/* Pills: markets (multi) and volume (single) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(160, 200, 235, 0.18);
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
  color: #c4d4e3;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease-out);
}
.pills span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(160, 200, 235, 0.45);
  transition: background-color 0.2s, border-color 0.2s;
}
.pills span:hover { border-color: rgba(160, 200, 235, 0.38); color: var(--white); }
.pills span:active { transform: scale(0.97); }
.pills input:checked + span { background: var(--cyan); border-color: var(--cyan); color: #031222; font-weight: 500; }
.pills input:checked + span::before { background: #031222; border-color: #031222; }
.pills input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error:empty { display: none; }
.form-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.1);
  color: #ffb4b4;
  font-size: 14px;
}

.btn-submit { min-height: 56px; font-size: 16px; border-radius: 14px; }
.btn-submit[disabled] { opacity: 0.7; cursor: progress; }
.form-note { margin-top: 14px; font-size: 12.5px; color: #6f879e; text-align: center; }

.form-body { transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out); }
.form-card.is-leaving .form-body { opacity: 0; transform: translateY(-8px); }

/* Result: shown after submit */
.form-result {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(28px, 6vw, 72px) 8px;
  text-align: center;
  outline: none;
  animation: resultIn 0.6s var(--ease-out) both;
}
.form-result[hidden] { display: none; }
@keyframes resultIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-icon {
  width: 64px; height: 64px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.result-icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; opacity: 0.55; animation: draw 0.8s var(--ease-out) forwards; }
.result-icon path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.5s var(--ease-out) 0.45s forwards; }
.form-result.is-preview .ri-check,
.form-result:not(.is-preview) .ri-info { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.result-title {
  font: 620 clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem)/1.1 var(--f-display);
  font-stretch: 110%;
  letter-spacing: -0.025em;
  color: var(--white);
}
.result-text { max-width: 40ch; font-size: 15.5px; line-height: 1.6; color: var(--muted-d); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.result-actions [hidden] { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: #030a13;
  color: var(--muted-d);
  padding: clamp(56px, 7vw, 88px) 0 28px;
  border-top: 1px solid var(--line-d);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
}
.footer-brand p { margin-top: 18px; font-size: 15px; color: #c4d4e3; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-nav div { display: grid; gap: 12px; align-content: start; }
.footer-nav p {
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5f7891;
  margin-bottom: 4px;
}
.footer-nav a { font-size: 14.5px; color: #c4d4e3; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 22px;
  border-top: 1px solid var(--line-d);
  font-size: 12.5px;
  color: #6f879e;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .spec dd { margin-top: 0; text-align: right; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-platform { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.6fr) 36px minmax(0, 1fr); }
  .flow > :nth-child(6), .flow > :nth-child(7) { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: rgba(5, 14, 26, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-d);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out), visibility 0s linear 0.3s;
  }
  .is-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-d);
    font: 560 22px/1.1 var(--f-display);
    font-stretch: 108%;
    color: var(--text-d);
  }
  .main-nav a[aria-current="true"]::after { display: none; }
  .main-nav .nav-cta-mobile { display: block; border-bottom: 0; color: var(--cyan); }
  .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section-head .section-lede { justify-self: start; }

  .products { grid-template-columns: minmax(0, 1fr); }

  .flow { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .flow > :nth-child(6), .flow > :nth-child(7) { display: block; }
  .flow-rail { justify-self: center; width: 1px; height: 40px; }
  .flow-rail i { top: 0; left: -1px; width: 3px; height: 16px; animation-name: pulseY; }
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-list-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .dev-code { position: relative; top: 0; order: -1; }
  .dev-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }

  .markets-grid { grid-template-columns: minmax(0, 1fr); }
  .globe { max-width: 520px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before, .steps::after { display: none; }

  .measure { grid-template-columns: minmax(0, 1fr); }

  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-intro { position: static; }

  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-copy { position: static; }
  .contact-title { max-width: 16ch; }
  .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }

  .hero-title { font-stretch: 104%; letter-spacing: -0.034em; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .spec dd { margin-top: 0; text-align: right; }

  .marquee { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee-viewport { width: 100%; }
  .marquee-track li { font-size: 15px; }

  .statement { font-stretch: 100%; }

  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar-icon { margin-bottom: 22px; }

  .mini-flow { padding: 12px; }
  .node { padding: 8px 9px; font-size: 10.5px; }

  .product-foot { flex-direction: column; align-items: flex-start; }

  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-list-doors { grid-template-columns: minmax(0, 1fr); }

  .dev-features { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .code-panel { min-height: 0; padding: 18px; font-size: 11.5px; }
  .code-tabs button { padding: 8px 9px; font-size: 12px; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 21.5px; top: 44px; bottom: 0;
    width: 1px;
    background: var(--line);
  }
  .step { padding: 0 0 36px 66px; }
  .step:last-child { padding-bottom: 0; }
  .step-index { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 10px; }

  .measure-list { grid-template-columns: minmax(0, 1fr); }

  .faq-body p { padding-right: 0; }

  .segments { grid-template-columns: minmax(0, 1fr); }

  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-head { flex-direction: column; gap: 8px; }
  .form-card { border-radius: 22px; }

  .pui-body { padding: 14px; gap: 12px; }
  .pui-search .pui-field:nth-of-type(4), .pui-swap, .pui-go { display: none; }
  .pui-field { flex: 1 1 0; padding: 8px 10px; }
  .pui-wide { flex-grow: 1.4; }
  .pui-count { display: none; }
  .pui-results li {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "time price" "meta src";
    row-gap: 8px;
    padding: 11px 12px;
  }
  .pui-time { grid-area: time; }
  .pui-price { grid-area: price; }
  .pui-meta { grid-area: meta; }
  .pui-src { grid-area: src; justify-self: end; }
  .pui-pos { display: none; }
  .pui-foot { flex-wrap: wrap; }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  .brand { gap: 9px; }
  .brand img { width: 28px; height: 28px; }
  .brand-word { font-size: 14px; letter-spacing: 0.1em; }
  .header-actions { gap: 8px; }
  .lang-switch button { min-width: 34px; height: 30px; }
  .menu-toggle { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .mini-flow { flex-direction: column; align-items: stretch; }
  .mini-flow .node { text-align: center; padding: 10px 12px; font-size: 11.5px; }
  .mini-flow .rail { flex: none; align-self: center; width: 1px; height: 20px; min-width: 0; }
  .mini-flow .rail i { width: 1px; height: 45%; background: linear-gradient(180deg, transparent, var(--cyan)); animation-name: railY; }
  .mini-flow .rail-both i:nth-child(2) { background: linear-gradient(0deg, transparent, var(--cyan)); animation-name: railYReverse; }
}
@keyframes railY { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
@keyframes railYReverse { from { transform: translateY(250%); } to { transform: translateY(-100%); } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-viewport { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; row-gap: 12px; }
  .rail i, .flow-rail i { display: none; }
  .js .statement .w { color: var(--ink); }
}
