/* ============================================================
   AIPlayerX — marketing site
   Dark, restrained, grid-driven. No external assets or fonts.
   ============================================================ */

:root {
  --bg:        #070A0F;
  --bg-alt:    #0A0E15;
  --panel:     #0E141D;
  --card:      #111823;
  --card-hi:   #151D2A;
  --line:      rgba(255, 255, 255, .08);
  --line-hi:   rgba(255, 255, 255, .16);

  --text:      #E9EFF7;
  --text-dim:  #A9B6C7;
  --muted:     #7B8899;

  --cyan:      #22D3EE;
  --blue:      #2563EB;
  --cyan-soft: rgba(34, 211, 238, .12);
  --cyan-line: rgba(34, 211, 238, .32);

  --radius:    16px;
  --radius-lg: 22px;
  --wrap:      1160px;

  --shadow:    0 24px 60px -30px rgba(0, 0, 0, .9);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  /* single soft light source at the top of the page */
  content: "";
  position: fixed;
  inset: -30vh 0 auto 0;
  height: 90vh;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(37, 99, 235, .16), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(34, 211, 238, .10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .nav, .footer { position: relative; z-index: 1; }

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--mono);
  font-size: .88em;
  color: #B7E8F2;
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .14);
  border-radius: 6px;
  padding: .12em .38em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--cyan);
  color: #04121A;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 200;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-lg { font-size: 16px; padding: 15px 28px; }
.btn-block { width: 100%; margin-top: 22px; }

.btn-primary {
  background: linear-gradient(180deg, #2FE0FA, #17B9D6);
  color: #04121A;
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, .7);
}
.btn-primary:hover { box-shadow: 0 14px 36px -12px rgba(34, 211, 238, .9); }

.btn-outline {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-hi);
  color: var(--text);
}
.btn-outline:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28); }

.btn-ghost { color: var(--text-dim); padding-inline: 12px; }
.btn-ghost:hover { color: var(--text); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 15, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 15, .9);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-right: auto;
  font-size: 14.5px;
  color: var(--text-dim);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform .18s ease, opacity .18s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { bottom: 15px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ── hero ────────────────────────────────────────────────── */
.hero { padding: 76px 0 24px; }
.hero-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hi), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8FD9E6;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--cyan-line);
  border-radius: 999px;
  background: var(--cyan-soft);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .2);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.1vw, 54px);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 700;
}
.grad {
  background: linear-gradient(100deg, #7DE9FA 0%, #22D3EE 45%, #4E8CF7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--text-dim);
  max-width: 33em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-note {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ── hero product visual ─────────────────────────────────── */
.hero-visual { perspective: 1400px; }

.wall {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0D1420, #080C13);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform .5s ease;
}
.wall:hover { transform: rotateY(0) rotateX(0); }

.wall-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.wall-dots { display: flex; gap: 5px; }
.wall-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22303F;
}
.wall-dots i:nth-child(1) { background: #3A2B2B; }
.wall-path { font-family: var(--mono); font-size: 11.5px; letter-spacing: .01em; }
.wall-pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .28);
  background: rgba(52, 211, 153, .1);
  color: #6EE7B7;
  font-size: 11px;
  font-weight: 600;
}
.wall-pill em {
  width: 5px; height: 5px; border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}

.wall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.tile {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #0B1017;
  border: 1px solid rgba(255, 255, 255, .06);
}
/* fake sensor imagery — layered gradients, no image files */
.tile-a { background: linear-gradient(165deg, #16222C, #0B1218 60%), radial-gradient(40% 50% at 70% 80%, #1E3A34, transparent); }
.tile-b { background: linear-gradient(200deg, #131C28, #090E14 65%), radial-gradient(50% 40% at 30% 70%, #24303F, transparent); }
.tile-c { background: linear-gradient(150deg, #101A1C, #080D10 60%), radial-gradient(45% 45% at 60% 30%, #1B2E2B, transparent); }
.tile-d { background: linear-gradient(180deg, #141A24, #090D13 70%), radial-gradient(40% 40% at 50% 90%, #2A2433, transparent); }

.tile::after {
  /* vignette + faint scanlines */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 0%, transparent 40%, rgba(0, 0, 0, .5));
  pointer-events: none;
}

.scan {
  position: absolute;
  left: 0; right: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .10), transparent);
  animation: scan 5.5s linear infinite;
}
@keyframes scan {
  0%   { transform: translateY(-40%); }
  100% { transform: translateY(300%); }
}

.det {
  position: absolute;
  left: 16%; top: 26%;
  width: 34%; height: 48%;
  border: 1.5px solid #38BDF8;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .18), 0 0 22px -6px rgba(56, 189, 248, .7);
  animation: drift 7s ease-in-out infinite;
}
.det-2 {
  left: 42%; top: 46%; width: 40%; height: 34%;
  border-color: #FBBF24;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, .18), 0 0 22px -6px rgba(251, 191, 36, .7);
  animation-delay: -2s;
}
.det-3 {
  left: 22%; top: 34%; width: 44%; height: 46%;
  border-color: #34D399;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, .18), 0 0 22px -6px rgba(52, 211, 153, .7);
  animation-delay: -4s;
}
.det-4 {
  left: 30%; top: 38%; width: 38%; height: 40%;
  border-color: #A78BFA;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, .18), 0 0 22px -6px rgba(167, 139, 250, .7);
  animation-delay: -1s;
}
.det b, .det em {
  position: absolute;
  left: -1.5px;
  font-size: 9.5px;
  line-height: 1;
  padding: 3px 5px;
  font-family: var(--mono);
  font-style: normal;
  white-space: nowrap;
}
.det b {
  top: -16px;
  background: #38BDF8;
  color: #04121A;
  border-radius: 3px 3px 0 0;
  font-weight: 700;
  letter-spacing: .02em;
}
.det em {
  bottom: -16px;
  background: rgba(4, 18, 26, .85);
  color: #7DD3FC;
  border-radius: 0 0 3px 3px;
}
.det-2 b { background: #FBBF24; }
.det-2 em { color: #FCD34D; }
.det-3 b { background: #34D399; }
.det-3 em { color: #6EE7B7; }
.det-4 b { background: #A78BFA; }
.det-4 em { color: #C4B5FD; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(3px, -4px); }
}

.tile figcaption {
  position: absolute;
  left: 7px; bottom: 6px;
  font-size: 10px;
  color: rgba(233, 239, 247, .62);
  font-family: var(--mono);
  letter-spacing: -.01em;
  z-index: 2;
}

.wall-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}
.wall-foot span { display: inline-flex; align-items: center; gap: 5px; }
.wall-foot .k { color: #9FDDEA; font-style: normal; }
.wall-ai { margin-left: auto; }
.wall-ai .k { color: #6EE7B7; }

/* ── stats strip ─────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 64px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div {
  padding: 26px 26px 26px 0;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { border-right: none; }
.stats > div + div { padding-left: 26px; }
.stats dt {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #D9F4FA;
  line-height: 1.2;
}
.stats dd {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ── sections ────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head { max-width: 720px; margin-bottom: 52px; }
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6FC9DC;
}
h2 {
  margin: 0;
  font-size: clamp(27px, 3.1vw, 38px);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 700;
}
.sec-sub {
  margin: 18px 0 0;
  font-size: 16.5px;
  color: var(--text-dim);
  line-height: 1.62;
}

/* ── cards ───────────────────────────────────────────────── */
.cards {
  display: grid;
  gap: 16px;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-inline: auto; }

.card {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), #0C111A);
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover {
  border-color: var(--line-hi);
  background: linear-gradient(180deg, var(--card-hi), #0D131C);
  transform: translateY(-2px);
}

.card-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
  color: #7DE9FA;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -.012em;
}
.card-lede {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13.8px;
  color: var(--text-dim);
  line-height: 1.5;
}
.bullets li {
  position: relative;
  padding-left: 20px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: .8;
}

.card-accent {
  border-color: var(--cyan-line);
  background: linear-gradient(170deg, rgba(34, 211, 238, .09), #0C111A 55%);
}

/* capability cards carry a number instead of an icon */
.card.flat .num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: #4C6B7A;
  margin-bottom: 18px;
}
.card.flat h3 { margin-bottom: 10px; }
.card.flat p {
  margin: 0;
  font-size: 14.2px;
  line-height: 1.62;
  color: var(--text-dim);
}

/* ── AI tiers ────────────────────────────────────────────── */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.tier {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.tier-featured {
  border-color: var(--cyan-line);
  background: linear-gradient(175deg, rgba(34, 211, 238, .08), #0D131C 50%);
  box-shadow: 0 30px 70px -50px rgba(34, 211, 238, .8);
}
.tier-name {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}
.tier-price {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.tier-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.tier-desc {
  margin: 14px 0 22px;
  font-size: 14.2px;
  color: var(--text-dim);
  line-height: 1.6;
  min-height: 4.8em;
}
.tag {
  font-size: 10.5px;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
  color: #8FE3F1;
  text-transform: none;
  font-weight: 600;
}
.tag-soon {
  border-color: var(--line-hi);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
}
.fineprint {
  margin: 26px 0 0;
  font-size: 12.5px;
  color: #66717F;
}
.fineprint-center {
  max-width: 780px;
  margin: 22px auto 0;
  text-align: center;
}
.fineprint-center a {
  color: #8FE3F1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sec-head-center {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

/* ── flow ────────────────────────────────────────────────── */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}
.flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0C1119;
}
.flow li::after {
  /* connector arrow between steps */
  content: "";
  position: absolute;
  right: -14px; top: 34px;
  width: 12px; height: 1px;
  background: var(--line-hi);
}
.flow li:last-child::after { display: none; }
.flow-n {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
  color: #8FE3F1;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.flow h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 650;
}
.flow p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.flow code {
  align-self: flex-start;
  margin-top: 18px;
  font-size: 11.5px;
  color: #8FE3F1;
  background: rgba(34, 211, 238, .06);
}
.flow li h3 + p { margin-bottom: auto; }
.flow li h3 { margin-bottom: 8px; }

/* ── split / trust ───────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: start;
}

.checks {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.checks li {
  position: relative;
  padding-left: 32px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .28em;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(34, 211, 238, .12);
  border: 1px solid var(--cyan-line);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5.5px; top: .62em;
  width: 6px; height: 3px;
  border-left: 1.6px solid var(--cyan);
  border-bottom: 1.6px solid var(--cyan);
  transform: rotate(-45deg);
}
.checks b { color: var(--text); font-weight: 600; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0F1621, #090D14);
  padding: 22px;
}
.panel-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
/* deployment map — built from elements so it aligns at every width */
.flowmap {
  display: grid;
  justify-items: stretch;
  gap: 0;
  margin: 4px 0 0;
}
.fm-node {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid var(--line-hi);
  border-radius: 9px;
  background: #0B1119;
  text-align: center;
}
.fm-node-hub {
  border-color: var(--cyan-line);
  background: linear-gradient(180deg, rgba(34, 211, 238, .08), #0B1119);
}
.fm-k {
  font-size: 11.5px;
  font-weight: 650;
  color: #C6D6E4;
  letter-spacing: -.005em;
}
.fm-t {
  font-family: var(--mono);
  font-size: 10px;
  color: #6F8296;
  letter-spacing: -.01em;
}
.fm-link {
  position: relative;
  height: 34px;
  display: grid;
  place-items: center;
}
.fm-link::before {
  /* vertical connector */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--line-hi), var(--cyan-line), var(--line-hi));
}
.fm-link b {
  position: relative;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .04em;
  color: #7E93A8;
  background: #0D131B;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 2px 8px;
  text-transform: uppercase;
}
.fm-viewers {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.fm-viewers span {
  flex: 1 1 0;
  min-width: 74px;
  text-align: center;
  padding: 9px 8px;
  border: 1px dashed var(--line-hi);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .02);
}
.panel-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ── pricing ─────────────────────────────────────────────── */
.price { display: flex; flex-direction: column; }
.price h3 { margin: 0 0 14px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.price-num {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.price-num span {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.price-sub {
  margin: 8px 0 22px;
  font-size: 13px;
  color: var(--muted);
}
.price .btn { margin-top: auto; }
.price .bullets { margin-bottom: 26px; }
.price-featured {
  border-color: var(--cyan-line);
  background: linear-gradient(175deg, rgba(34, 211, 238, .08), #0D131C 55%);
  box-shadow: 0 40px 90px -60px rgba(34, 211, 238, .9);
}
.badge {
  position: absolute;
  top: -11px; left: 24px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2FE0FA, #17B9D6);
  color: #04121A;
}

/* ── faq ─────────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 400;
  transition: transform .2s, background .2s, color .2s;
}
.faq details[open] summary::after {
  content: "−";
  background: var(--cyan-soft);
  border-color: var(--cyan-line);
  color: #8FE3F1;
}
.faq summary:hover { color: #CFF3FA; }
.faq details > p {
  margin: 0;
  padding: 0 44px 22px 4px;
  font-size: 14.8px;
  line-height: 1.68;
  color: var(--text-dim);
  max-width: 68ch;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(70% 140% at 20% 0%, rgba(37, 99, 235, .16), transparent 65%),
    radial-gradient(50% 120% at 85% 40%, rgba(34, 211, 238, .10), transparent 65%),
    #080C12;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.cta h2 {
  font-size: clamp(24px, 2.7vw, 33px);
  max-width: 20em;
}
.cta p {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--text-dim);
  max-width: 46ch;
}
.cta-actions { display: flex; gap: 12px; flex: none; flex-wrap: wrap; }

/* ── footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: #06090D;
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
}
.footer-brand p {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 26ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  font-size: 13.5px;
}
.footer-cols > div { display: grid; gap: 10px; align-content: start; }
.footer-h {
  margin: 0 0 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5C6878;
}
.footer-cols a { color: var(--text-dim); transition: color .15s; }
.footer-cols a:hover { color: var(--text); }

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: #5C6878;
}
.footer-base p { margin: 0; }
.footer-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }

/* ── reveal on scroll ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 620px; }
  .wall { transform: none; }
  .cards-3, .cards-2, .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(2)::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: none; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats > div:nth-child(3) { padding-left: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    left: 0; right: 0; top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 14px;
    background: rgba(7, 10, 15, .97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 13px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    font-size: 15.5px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .nav-inner { gap: 12px; }
  .nav-cta { margin-left: auto; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 44px 0 12px; }
  .stats { margin-top: 44px; }
  .stats > div { padding: 20px 16px 20px 0; }
  .stats > div + div { padding-left: 16px; }
  .stats dt { font-size: 22px; }
  .stats dd { font-size: 12.5px; }
  .cards-3, .cards-2, .tiers, .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .faq details > p { padding-right: 8px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .wall-foot { gap: 6px 14px; }
  .wall-ai { margin-left: 0; }
}

/* ============================================================
   Legal pages (privacy.html / terms.html)
   Long-form text, same dark palette. No inline styles, so the
   published CSP can stay at style-src 'self'.
   ============================================================ */

.legal {
  padding: 148px 0 96px;
  position: relative;
  z-index: 1;
}

.legal h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 44px;
}

.legal h2 {
  font-size: 19px;
  letter-spacing: -.012em;
  margin: 40px 0 12px;
  color: var(--text);
}

.legal h3 {
  font-size: 15.5px;
  margin: 26px 0 8px;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.72;
}

.legal p { margin: 0 0 14px; }

.legal ul,
.legal ol { margin: 0 0 18px; padding-left: 22px; }

.legal li { margin-bottom: 7px; }

.legal a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong { color: var(--text); font-weight: 600; }

.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14.5px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  vertical-align: top;
}

.legal th {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Callout for the "we don't do this" points and for anything that
   changes the meaning of the section above it. */
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.notice p { margin-bottom: 0; }
.notice p + p { margin-top: 10px; }

.legal-back {
  display: inline-block;
  margin-top: 44px;
  color: var(--muted);
  font-size: 14px;
}

.legal-back:hover { color: var(--text); }

/* The legal pages reuse the nav bar but have no section links, so the
   call to action is just a quiet way back. */
.nav-plain {
  color: var(--text-dim);
  font-size: 14px;
  transition: color .15s;
}

.nav-plain:hover { color: var(--text); }

@media (max-width: 640px) {
  .legal { padding: 120px 0 72px; }
  .legal table { font-size: 13.5px; }
  .legal th, .legal td { padding: 8px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan, .det { animation: none; }
  .wall { transform: none; transition: none; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .001ms !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .nav, .cta-actions, .footer-cols { display: none; }
  .card, .tier, .panel { border-color: #ddd; background: #fff; }
}
