/* KupEye landing page · frost theme
   Tokens first, then base, layout, components and sections.
   Dark is the default; [data-theme="light"] on <html> switches the palette. */

/* ---------- Fonts (self-hosted, SIL Open Font License, see assets/fonts) ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: "Unbounded", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --content: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 6.5vw, 96px);

  color-scheme: dark;
  --bg: #06080F;
  --bg-2: #0A0D17;
  --solid: #0D1120;
  --surface: rgba(150, 170, 255, 0.045);
  --surface-2: rgba(150, 170, 255, 0.09);
  --glass: rgba(10, 14, 26, 0.80);
  --nav-bg: rgba(6, 8, 15, 0.74);
  --cmd-bg: #080B14;
  --line: rgba(160, 180, 255, 0.13);
  --line-2: rgba(160, 180, 255, 0.24);
  --text: #EDF1FF;
  --text-2: #AEB8CF;
  --text-3: #8792AD;

  /* Frost: the brand accent */
  --accent: #CFF4FF;
  --accent-ink: #CFF4FF;
  --accent-display: #CFF4FF;
  --accent-bg: rgba(207, 244, 255, 0.10);
  /* Magenta: blockers and second accent */
  --accent-2: #FF5DD2;
  --accent-2-ink: #FF7ADB;
  --accent-2-display: #FF5DD2;
  --accent-2-bg: rgba(255, 93, 210, 0.14);
  /* Amber: warnings */
  --warn: #FFC25C;
  --warn-ink: #FFC766;
  --warn-bg: rgba(255, 194, 92, 0.14);

  --btn-bg: #CFF4FF;
  --btn-text: #04121A;
  --btn-shadow: 0 0 0 1px rgba(207, 244, 255, 0.55), 0 10px 34px rgba(207, 244, 255, 0.20);
  --text-glow: 0 0 30px rgba(207, 244, 255, 0.45);
  --dot-glow: 0 0 12px rgba(207, 244, 255, 0.85);
  --card-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 70px rgba(207, 244, 255, 0.06);
  --halo: rgba(207, 244, 255, 0.13);
  --halo-2: rgba(255, 93, 210, 0.16);
  --gridline: rgba(140, 165, 255, 0.075);

  /* The terminal stays dark in both themes */
  --term-bg: #070A12;
  --term-line: rgba(160, 180, 255, 0.16);
  --term-text: #E6ECFF;
  --term-dim: #8C97B2;
  --term-accent: #CFF4FF;
  --term-block: #FF7ADB;
  --term-warn: #FFC766;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6FB;
  --bg-2: #EBEFF7;
  --solid: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: #E3E8F2;
  --glass: rgba(255, 255, 255, 0.86);
  --nav-bg: rgba(244, 246, 251, 0.80);
  --cmd-bg: #FFFFFF;
  --line: rgba(18, 28, 58, 0.11);
  --line-2: rgba(18, 28, 58, 0.20);
  --text: #0A0E1A;
  --text-2: #3E4A63;
  --text-3: #56627C;

  /* Frost is too pale on white, so the light theme uses slate */
  --accent: #5F8296;
  --accent-ink: #3B5B70;
  --accent-display: #4C7088;
  --accent-bg: rgba(76, 112, 136, 0.12);
  --accent-2: #E63AC0;
  --accent-2-ink: #B3189A;
  --accent-2-display: #C8239F;
  --accent-2-bg: rgba(230, 58, 192, 0.10);
  --warn: #F2A20C;
  --warn-ink: #8A5300;
  --warn-bg: rgba(255, 170, 40, 0.16);

  --btn-bg: #0A0E1A;
  --btn-text: #F4F6FB;
  --btn-shadow: 0 10px 28px rgba(10, 14, 26, 0.18);
  --text-glow: none;
  --dot-glow: 0 0 10px rgba(76, 112, 136, 0.55);
  --card-shadow: 0 30px 70px rgba(20, 30, 70, 0.14), 0 2px 6px rgba(20, 30, 70, 0.06);
  --halo: rgba(140, 190, 220, 0.24);
  --halo-2: rgba(230, 58, 192, 0.12);
  --gridline: rgba(18, 28, 58, 0.06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 76px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-text);
  font-weight: 600; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 44px; }
.stack--wide { gap: 52px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

/* ---------- Type ---------- */
.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.glow { color: var(--accent-display); text-shadow: var(--text-glow); }
.lede { font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.muted { color: var(--text-3); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

/* ---------- Icons ---------- */
.i {
  display: block; flex: none;
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--12 { width: 12px; height: 12px; stroke-width: 2.6; }
.i--16 { width: 16px; height: 16px; stroke-width: 2; }
.i--18 { width: 18px; height: 18px; stroke-width: 2; }
.i--22 { width: 22px; height: 22px; }

/* ---------- Links and buttons ---------- */
.link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: color .2s ease;
}
.link:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 14px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease, background-color .2s ease;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--btn-shadow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow), 0 0 48px var(--halo); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-bg); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }
.icon-copied { display: none; }
.is-copied .icon-copy { display: none; }
.is-copied .icon-copied { display: block; color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding-block: 12px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; text-decoration: none; color: var(--text);
}
.brand__mark {
  width: 32px; height: 32px; flex: none;
  color: var(--accent-display);
  fill: none; stroke: currentColor; stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand__name span { color: var(--accent-ink); }
.brand--sm .brand__mark { width: 28px; height: 28px; stroke-width: 4; }
.brand--sm .brand__name { font-size: 17px; }
.nav__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px; flex: 1 1 auto; }
.nav__links .link { flex: none; white-space: nowrap; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--section-y); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--gridline) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 62% 42%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 62% 42%, #000 25%, transparent 78%);
}
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 96px 56px; }
.hero__copy {
  flex: 1 1 540px; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--font-mono); font-size: 13px; color: var(--text-2);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--dot-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero__lede { max-width: 33em; font-size: clamp(17px, 1.35vw, 20px); color: var(--text-2); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cmd {
  width: 100%; max-width: 500px;
  display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--cmd-bg);
  font-family: var(--font-mono); font-size: 14px;
}
.cmd__prompt { color: var(--accent-ink); }
.cmd__text { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--text); }
.checks {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 14px; color: var(--text-2);
}
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .i { color: var(--accent-ink); stroke-width: 2.2; }

.hero__visual { flex: 1 1 420px; min-width: 0; position: relative; display: flex; justify-content: center; }
.halo {
  position: absolute; left: 50%; top: 50%;
  width: 640px; height: 640px; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--halo), transparent);
}
.reticle {
  position: absolute; left: 50%; top: 50%;
  width: 760px; height: 760px; transform: translate(-50%, -50%);
  pointer-events: none; overflow: visible; fill: none;
}
/* Two-column hero: shift the rings right so they never pass behind the copy */
@media (min-width: 1100px) {
  .reticle { width: min(820px, 64vw); height: min(820px, 64vw); left: calc(50% + 90px); }
  .reticle .reticle__cross { display: inline; }
}
.reticle__ring { stroke: var(--line-2); stroke-width: 1; }
.reticle__ticks { stroke: var(--accent); stroke-width: 10; stroke-dasharray: 1.4 16.66; opacity: .4; }
.reticle__arc { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 220 2494; filter: drop-shadow(0 0 6px var(--accent)); }
.reticle__dash { stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 90 22 8 22; opacity: .55; }
.reticle__cross { display: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.spin { transform-box: view-box; transform-origin: 50% 50%; animation: spin 80s linear infinite; }
.spin--rev { animation-duration: 120s; animation-direction: reverse; }

/* Readiness card */
.plan-card {
  position: relative; width: 100%; max-width: 520px;
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px; border-radius: 24px;
  border: 1px solid var(--line-2); background: var(--glass);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--card-shadow);
}
.plan-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.plan-card__title { display: flex; flex-direction: column; gap: 2px; }
.plan-card__cluster { font-size: 17px; font-weight: 600; }
.version {
  font-family: var(--font-mono); font-size: 13px;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface);
}
.version__arrow { color: var(--accent-ink); }
.score-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ring { position: relative; flex: none; width: 108px; height: 108px; }
.ring svg { display: block; width: 108px; height: 108px; fill: none; }
.ring__track { stroke: var(--line); stroke-width: 8; }
.ring__value {
  stroke: var(--accent); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 205 289; filter: drop-shadow(0 0 6px var(--accent));
}
.ring__label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.ring__num { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1; }
.ring__label .label { font-size: 11px; }
.stats { flex: 1 1 220px; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
}
.stat .label { font-size: 11px; }
.stat__num { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.1; color: var(--text); }
.stat__num--block { color: var(--accent-2-ink); }
.stat__num--warn { color: var(--warn-ink); }
.path { display: flex; flex-direction: column; gap: 10px; }
.path__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; letter-spacing: .06em; }
.path__line {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between; align-items: center;
}
.path__line::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 50%;
  height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, var(--line-2), var(--accent) 45%, var(--accent-2));
}
.path__line li {
  position: relative;
  font-family: var(--font-mono); font-size: 13px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--solid); color: var(--text-2);
}
.path__line li.is-target { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px var(--halo); }
.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.finding {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
}
.tag {
  width: 74px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 0; border-radius: 6px;
}
.tag--block { color: var(--accent-2-ink); background: var(--accent-2-bg); }
.tag--warn { color: var(--warn-ink); background: var(--warn-bg); }
.finding__body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.finding__title { font-size: 14px; font-weight: 500; line-height: 1.35; }
.finding__meta { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--text-3); }
.owner { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }
.gate {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding-top: 14px; border-top: 1px dashed var(--line-2);
}
.gate__state { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.gate__state .i { color: var(--accent-2-ink); stroke-width: 1.9; }
.gate__note { font-size: 13px; color: var(--text-3); }

/* ---------- Built-for strip ---------- */
.strip { padding-block: 20px; border-block: 1px solid var(--line); background: var(--bg-2); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.strip__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.strip__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px;
  font-size: 16px; font-weight: 600; color: var(--text-2);
}
.strip__note { margin-left: auto; font-size: 14px; color: var(--text-3); }

/* ---------- Why ---------- */
.stat-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface);
}
.stat-card > p:last-child { color: var(--text-2); text-wrap: pretty; }
.stat-card__figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.stat-card__figure .label { font-size: 13px; }
.stat-card__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 4vw, 54px); line-height: 1; letter-spacing: -0.04em;
  color: var(--accent-display);
}
.stat-card__num--alt { color: var(--accent-2-display); }

/* ---------- Attribution ---------- */
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; }
.split-head .section-head { flex: 1 1 560px; min-width: 0; }
.split-head__aside { flex: 1 1 340px; min-width: 0; max-width: 30em; }
.chain-wrap { position: relative; }
.rail {
  position: absolute; left: 40px; right: 40px; top: 50%; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .8; pointer-events: none;
}
.signal {
  position: absolute; top: -3px; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--dot-glow);
  animation: signal 5s cubic-bezier(.45, 0, .2, 1) infinite;
}
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.chain-step {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: 20px;
  border: 1px solid var(--line-2); background: var(--solid);
}
.chain-step__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chain-step__head .label { letter-spacing: .1em; }
.chain-step__head .i { color: var(--accent-ink); }
.chain-step__value { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.chain-step__value strong { font-weight: 600; }
.chain-step--owner { border-color: var(--accent); box-shadow: 0 0 40px var(--halo); }
.chain-step--owner .label { color: var(--accent-ink); }
.chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  padding: 3px 8px; border-radius: 6px;
}
.chip--warn { color: var(--warn-ink); background: var(--warn-bg); }
.chip--accent { color: var(--accent-ink); background: var(--accent-bg); }
.chip--solid { color: var(--btn-text); background: var(--btn-bg); }
.points { gap: 28px 40px; }
.point { display: flex; flex-direction: column; gap: 10px; }
.point__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.point__title .i { color: var(--accent-ink); }
.point p { font-size: 16px; color: var(--text-2); text-wrap: pretty; }
.point code { font-size: .9em; color: var(--text); overflow-wrap: anywhere; }

/* ---------- Features ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface);
  min-width: 0;
}
.card--wide { grid-column: span 2; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.card > p { font-size: 16px; color: var(--text-2); text-wrap: pretty; }
.card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--accent-bg); color: var(--accent-ink);
}
.card__icon--alt { background: var(--accent-2-bg); color: var(--accent-2-ink); }
.nodes { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.node { aspect-ratio: 3 / 2; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); }
.node--block { border-color: var(--accent-2); background: var(--accent-2-bg); box-shadow: 0 0 12px var(--halo-2); }
.card > p.legend {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}
.legend > span { display: flex; align-items: center; gap: 8px; }
.legend__block { color: var(--accent-2-ink); }
.legend__swatch { width: 12px; height: 8px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--surface-2); }
.legend__swatch--block { border-color: var(--accent-2); background: var(--accent-2-bg); }
.code {
  margin: 0; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--cmd-bg);
  font-size: 12.5px; line-height: 1.75; overflow-x: auto;
}
.code .k { color: var(--text-3); }
.code .v { color: var(--accent-2-ink); }
.code .s { color: var(--accent-ink); }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mini-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--cmd-bg);
}
.mini-list__text { flex: 1 1 auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: var(--dot-glow); }
.dot--alt { background: var(--accent-2); box-shadow: none; }
.state { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }
.state--alt { color: var(--accent-2-ink); }
.pr {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--cmd-bg);
}
.pr__title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.pr__title .i { color: var(--accent-ink); }
.pr__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.pr__add { color: var(--accent-ink); }
.pr__del { color: var(--accent-2-ink); }

/* ---------- Plan and gate ---------- */
.plan-stack { display: flex; flex-direction: column; gap: 18px; }
.hops { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.hop {
  flex: 1 1 180px; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface);
}
.hop .label { letter-spacing: .1em; }
.hop__ver { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.hop__desc { font-size: 14px; color: var(--text-2); }
.hop--target { border-color: var(--accent); box-shadow: 0 0 34px var(--halo); }
.hop--target .label { color: var(--accent-ink); }
.gate-chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-family: var(--font-mono); font-size: 12px;
  padding: 4px 9px; border-radius: 8px;
  color: var(--accent-ink); background: var(--accent-bg);
}
.gate-chip--alt { color: var(--accent-2-ink); background: var(--accent-2-bg); }
.chev { display: flex; align-items: center; color: var(--text-3); }
.note { font-size: 15px; color: var(--text-3); }
.gate-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
  padding: 26px 28px; border-radius: 22px;
  border: 1px solid var(--line-2); background: var(--surface);
}
.gate-band p { flex: 1 1 380px; min-width: 0; font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.gate-band strong { font-weight: 600; color: var(--text); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--solid);
  font-size: 14px; font-weight: 500;
}
.chips .i { color: var(--accent-ink); }

/* ---------- How it works ---------- */
.how { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.steps { flex: 1 1 440px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; }
.step > div { display: flex; flex-direction: column; gap: 6px; }
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.step p { color: var(--text-2); text-wrap: pretty; }
.step__num {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--accent-ink); box-shadow: 0 0 20px var(--halo);
}
.terminal {
  flex: 1 1 500px; min-width: 0;
  border-radius: 20px; border: 1px solid var(--term-line);
  background: var(--term-bg); color: var(--term-text);
  box-shadow: var(--card-shadow); overflow: hidden;
  font-family: var(--font-mono);
}
.terminal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--term-line);
  font-size: 12px; color: var(--term-dim);
}
.terminal__bar > span:first-child { display: flex; align-items: center; gap: 8px; }
.terminal__body {
  margin: 0; padding: 18px 20px 20px;
  font-size: 13.5px; line-height: 1.75;
  overflow-x: auto; white-space: pre;
}
.t-acc { color: var(--term-accent); }
.t-dim { color: var(--term-dim); }
.t-block { color: var(--term-block); }
.t-warn { color: var(--term-warn); }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px; align-items: stretch;
}
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  padding: 30px; border-radius: 24px;
  border: 1px solid var(--line); background: var(--surface);
}
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--solid), var(--solid)) padding-box,
    linear-gradient(140deg, var(--accent), var(--accent-2)) border-box;
  box-shadow: 0 0 60px var(--halo);
}
.plan__head { display: flex; flex-direction: column; gap: 6px; }
.plan__tag + .plan__head h3 { padding-right: 112px; }
.plan__head h3 { font-size: 20px; font-weight: 600; }
.plan__head p { font-size: 15px; color: var(--text-2); }
.plan__tag {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  color: var(--accent-ink); background: var(--accent-bg);
}
.plan__tag--alt { color: var(--accent-2-ink); background: var(--accent-2-bg); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.plan__amount { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.plan__unit { font-size: 14px; color: var(--text-3); }
.placeholder {
  font-family: var(--font-mono); font-size: 22px; font-weight: 600;
  padding: 4px 10px; border-radius: 8px;
  border: 1px dashed var(--line-2); color: var(--text-2);
}
.plan__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--text-2); }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; }
.plan__list .i { margin-top: 4px; color: var(--accent-ink); stroke-width: 2.2; }
.plan__list .plan__lead { font-weight: 600; color: var(--text); }

/* ---------- Closing call to action ---------- */
.cta-box {
  position: relative; overflow: hidden;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 72px);
  border-radius: 32px; border: 1px solid var(--line-2); background: var(--solid);
}
.cta-box__halo {
  position: absolute; left: 50%; top: 0;
  width: 760px; height: 420px; transform: translate(-50%, -55%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--halo), transparent);
}
.cta-box__content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
}
.cta-box__mark {
  width: 84px; height: 84px; flex: none;
  color: var(--accent-display);
  fill: none; stroke: currentColor; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px var(--halo));
}
.cta-box__title { max-width: 16em; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.1; letter-spacing: -0.035em; }
.cta-box__content > p { max-width: 36em; font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.cta-box .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 44px; }
.footer__inner { display: flex; flex-direction: column; gap: 22px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--text-3); }

/* ---------- Motion ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes signal { 0% { left: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { display: none; }
}
@media (max-width: 1000px) {
  .nav__links { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 0 24px; }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chev { display: none; }
}
@media (max-width: 760px) {
  .nav__links { gap: 0 18px; }
  .nav__links .link { font-size: 14px; }
  .strip__note { margin-left: 0; }
  .hide-sm { display: none; }
  .chain { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .finding { grid-template-columns: 74px minmax(0, 1fr); }
  .owner { grid-column: 2; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card--wide { grid-column: auto; }
  .nodes { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .spin, .signal { animation: none; }
  .btn, .link, .icon-btn, .skip-link { transition: none; }
}
