/* ==========================================================================
   Varyant — varyant.io
   Electric duality: two accents (violet = variant A, mint = variant B)
   on a deep indigo canvas. No frameworks, no build step.
   ========================================================================== */

:root {
  --bg: #07080f;
  --bg-2: #0b0d18;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f2f3fa;
  --muted: #a3a9c2;
  --dim: #6b7190;
  --a: #8b7cff;            /* variant A — violet */
  --a-soft: rgba(139, 124, 255, 0.14);
  --b: #3ee8a4;            /* variant B — mint */
  --b-soft: rgba(62, 232, 164, 0.13);
  --danger: #ff7d95;
  --grad: linear-gradient(112deg, var(--a) 0%, var(--b) 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);
  --w: min(1120px, calc(100vw - 48px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139, 124, 255, 0.4); }

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

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

/* --------------------------------------------------------------------------
   Atmosphere: dotted grid + two color fields, fixed behind everything
   -------------------------------------------------------------------------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(139, 124, 255, 0.16), transparent 60%),
    radial-gradient(900px 700px at 96% 14%, rgba(62, 232, 164, 0.09), transparent 55%),
    radial-gradient(1200px 800px at 50% 115%, rgba(139, 124, 255, 0.08), transparent 60%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(1200px 900px at 50% 0%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 900px at 50% 0%, black 0%, transparent 78%);
}

.wrap { width: var(--w); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 8, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand svg { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 12px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); border-color: var(--line-strong); }
.lang summary svg { width: 15px; height: 15px; stroke: currentColor; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: #12142a;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px;
  display: grid;
  gap: 2px;
  min-width: 150px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  z-index: 60;
}
.lang-menu a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: background 0.15s, color 0.15s; }
.lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu a.active { background: var(--surface); color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #06130c;
  background: var(--grad);
  box-shadow: 0 8px 28px rgba(62, 232, 164, 0.24), 0 2px 8px rgba(139, 124, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(62, 232, 164, 0.32), 0 2px 10px rgba(139, 124, 255, 0.36); }
.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 160px 0 40px;
  text-align: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--b);
  box-shadow: 0 0 10px var(--b);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 15ch;
  margin-inline: auto;
}

/* The A/B word flip — a slot-machine roll; width glides between words so
   the rest of the headline slides instead of jumping. */
.flip {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  padding: 0.04em 0 0.12em;
  transition: width 0.5s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.flip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0.55;
}
/* Gradient clip lives ON the animated span: an ancestor's background-clip:text
   cannot paint into a child promoted to its own compositor layer (Chromium). */
.flip > span {
  display: inline-block;
  will-change: transform;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 62ch;
  margin: 26px auto 0;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

/* Waitlist form */
.waitlist {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.waitlist input[type="email"] {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 18px;
  width: min(340px, 100%);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist input[type="email"]::placeholder { color: var(--dim); }
.waitlist input[type="email"]:focus {
  border-color: var(--a);
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.18);
}
/* Honeypot: visually hidden without directional offsets — a left:-9999px
   box widens the scrollable area in RTL documents. */
.waitlist .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}
.form-note { font-size: 13px; color: var(--dim); margin-top: 14px; }
.form-msg { font-size: 14.5px; margin-top: 14px; font-weight: 500; min-height: 22px; }
.form-msg.ok { color: var(--b); }
.form-msg.err { color: var(--danger); }

/* --------------------------------------------------------------------------
   Hero mock — the product, rebuilt in HTML. A results card deciding a test.
   -------------------------------------------------------------------------- */
.mock-stage {
  margin: 72px auto 0;
  max-width: 860px;
  position: relative;
}
.mock-stage::before {
  content: "";
  position: absolute;
  inset: 8% -6% -12% -6%;
  background:
    radial-gradient(60% 70% at 30% 40%, rgba(139, 124, 255, 0.17), transparent 70%),
    radial-gradient(60% 70% at 72% 60%, rgba(62, 232, 164, 0.13), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}
.mock {
  background: linear-gradient(180deg, rgba(20, 23, 40, 0.92), rgba(11, 13, 24, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: left;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar .addr {
  margin-left: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
}
.mock-body { padding: 26px 28px 28px; }
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.mock-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mock-title small { display: block; font-size: 12.5px; color: var(--dim); font-family: var(--font-body); font-weight: 500; margin-top: 3px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
}
.badge-win {
  color: var(--b);
  background: var(--b-soft);
  border: 1px solid rgba(62, 232, 164, 0.35);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.badge-win.show { opacity: 1; transform: scale(1); }

.mock-rows { display: grid; gap: 12px; }
.mrow {
  display: grid;
  grid-template-columns: 118px 1fr 84px 76px;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
}
.mrow .who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; font-family: var(--font-display); }
.mrow .swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mrow.a .swatch { background: var(--a); box-shadow: 0 0 12px rgba(139, 124, 255, 0.7); }
.mrow.b .swatch { background: var(--b); box-shadow: 0 0 12px rgba(62, 232, 164, 0.6); }
.mrow .who small { display: block; color: var(--dim); font-size: 11.5px; font-family: var(--font-body); font-weight: 500; }
.meter { height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 99px; overflow: hidden; }
.meter i {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  transition: width 1.4s cubic-bezier(0.25, 1, 0.35, 1);
}
.mrow.a .meter i { background: linear-gradient(90deg, #6c5ce7, var(--a)); }
.mrow.b .meter i { background: linear-gradient(90deg, #17b877, var(--b)); }
.mrow .cr { font-family: var(--font-display); font-weight: 600; font-size: 16px; text-align: right; }
.mrow .pb { font-size: 12.5px; color: var(--muted); text-align: right; }
.mrow .pb b { color: var(--ink); font-size: 14px; }
.mrow.b .pb b { color: var(--b); }

.mock-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.apply-chip {
  font-size: 13px;
  font-weight: 600;
  color: #06130c;
  background: var(--grad);
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(62, 232, 164, 0.25);
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  margin: 84px 0 0;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: scroll 34s linear infinite;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.marquee span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: 108px 0 0; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.lead { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* --------------------------------------------------------------------------
   Test-type cards
   -------------------------------------------------------------------------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.tcard:hover { border-color: var(--line-strong); transform: translateY(-4px); background: var(--surface-2); }
.tcard h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 20px 0 8px; }
.tcard p { color: var(--muted); font-size: 15px; }
.tcard .art {
  height: 150px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* art 1 — two mini wireframes (templates) */
.art .wire {
  width: 84px; height: 108px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  padding: 8px;
  display: grid;
  gap: 5px;
  align-content: start;
}
.art .wire i { display: block; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.art .wire.wa { border-color: rgba(139, 124, 255, 0.6); box-shadow: 0 0 24px rgba(139, 124, 255, 0.14); }
.art .wire.wb { border-color: rgba(62, 232, 164, 0.6); box-shadow: 0 0 24px rgba(62, 232, 164, 0.12); }
.wire.wa .hero-blk { height: 34px; background: rgba(139, 124, 255, 0.35); }
.wire.wb .hero-blk { height: 20px; background: rgba(62, 232, 164, 0.35); }
.wire .l1 { height: 7px; width: 80%; }
.wire .l2 { height: 7px; width: 55%; }
.wire.wb .grid2 { height: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: none; }
.wire.wb .grid2 i { background: rgba(62, 232, 164, 0.25); border-radius: 3px; }

/* art 2 — copy swap */
.art .copyline { display: grid; gap: 9px; width: 76%; }
.art .copyline .row { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 12px; }
.art .copyline .tag {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.copyline .row.ra .tag { background: var(--a-soft); color: var(--a); }
.copyline .row.rb .tag { background: var(--b-soft); color: var(--b); }
.copyline .row.ra span { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255,125,149,.7); }
.copyline .row.rb span { color: var(--ink); }
.copyline .row.rb span::after {
  content: "";
  display: inline-block;
  width: 2px; height: 12px;
  background: var(--b);
  margin-left: 3px;
  vertical-align: -2px;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* art 3 — content blocks */
.art .stack { display: grid; gap: 7px; width: 64%; }
.art .stack i { display: block; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.art .stack i.swap {
  background: linear-gradient(90deg, var(--a-soft), var(--b-soft));
  border-color: rgba(139, 124, 255, 0.5);
  position: relative;
  animation: swapPulse 2.6s ease-in-out infinite;
}
@keyframes swapPulse { 50% { border-color: rgba(62, 232, 164, 0.65); } }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  position: relative;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 5px 11px;
  margin-bottom: 18px;
}
.step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step p code {
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--b);
}

/* --------------------------------------------------------------------------
   Stats demo — CI narrows as visitors grow
   -------------------------------------------------------------------------- */
.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.stats-copy .point { display: flex; gap: 14px; margin-top: 22px; }
.stats-copy .point .ic {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.stats-copy .point h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.stats-copy .point p { color: var(--muted); font-size: 14.5px; margin-top: 3px; }

.demo {
  background: linear-gradient(180deg, rgba(20, 23, 40, 0.9), rgba(11, 13, 24, 0.95));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.demo-top .t { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.demo-pb { font-size: 13px; color: var(--muted); }
.demo-pb b { font-family: var(--font-display); font-size: 20px; color: var(--ink); display: block; }
.demo-pb b.won { color: var(--b); }

.ci-lane { margin: 18px 0; }
.ci-lane .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ci-lane .lbl b { color: var(--ink); font-family: var(--font-display); }
.ci-track { position: relative; height: 34px; background: rgba(255, 255, 255, 0.045); border-radius: 10px; }
.ci-bar {
  position: absolute; top: 50%; height: 12px;
  transform: translateY(-50%);
  border-radius: 99px;
  transition: left 0.25s ease, width 0.25s ease;
}
.ci-a .ci-bar { background: linear-gradient(90deg, rgba(139,124,255,.35), rgba(139,124,255,.85)); box-shadow: 0 0 18px rgba(139, 124, 255, 0.35); }
.ci-b .ci-bar { background: linear-gradient(90deg, rgba(62,232,164,.35), rgba(62,232,164,.85)); box-shadow: 0 0 18px rgba(62, 232, 164, 0.3); }
.ci-mid { position: absolute; top: 4px; bottom: 4px; width: 2px; background: #fff; border-radius: 2px; transition: left 0.25s ease; }

.demo-slider { margin-top: 26px; }
.demo-slider .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.demo-slider .lbl b { color: var(--ink); font-family: var(--font-display); }
input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--a), var(--b));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--bg-2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--bg-2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.demo-verdict {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  min-height: 44px;
}
.demo-verdict b { color: var(--b); }

/* --------------------------------------------------------------------------
   Speed
   -------------------------------------------------------------------------- */
.speed-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.speed-row { margin-top: 22px; }
.speed-row .lbl { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 9px; }
.speed-row .lbl b { font-family: var(--font-display); }
.speed-row .lbl .kb { color: var(--muted); font-size: 13px; }
.speed-bar { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.speed-bar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.3s cubic-bezier(0.25, 1, 0.35, 1); }
.speed-row.them .speed-bar i { background: linear-gradient(90deg, #b45a6e, var(--danger)); }
.speed-row.us .speed-bar i { background: var(--grad); }
.speed-note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.speed-note code {
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--b);
}

/* --------------------------------------------------------------------------
   Targeting chips
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: rgba(62, 232, 164, 0.5); color: var(--ink); }
.chip svg { width: 15px; height: 15px; stroke: var(--b); }

/* --------------------------------------------------------------------------
   Comparison
   -------------------------------------------------------------------------- */
.compare {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: none; }
.compare thead th { font-family: var(--font-display); font-size: 14px; color: var(--dim); font-weight: 600; }
.compare thead th.v { color: var(--ink); }
.compare thead th.v span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.compare td.dim { color: var(--dim); }
.compare td.win { color: var(--ink); }
.compare td .yes { color: var(--b); font-weight: 700; margin-right: 8px; }
.compare td .no { color: var(--danger); font-weight: 700; margin-right: 8px; }
.compare td.feature { color: var(--muted); font-weight: 500; width: 26%; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--dim);
  transition: transform 0.25s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--b); }
.faq .a { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  border-radius: 28px;
  padding: 72px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 320px at 20% -10%, rgba(139, 124, 255, 0.22), transparent 65%),
    radial-gradient(700px 320px at 85% 115%, rgba(62, 232, 164, 0.16), transparent 65%),
    var(--bg-2);
}
.cta-panel h2 { max-width: 18ch; margin-inline: auto; }
.cta-panel .lead { max-width: 52ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  font-size: 14px;
  color: var(--dim);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--muted); transition: color 0.2s; }
.foot-links a:hover { color: var(--ink); }
.foot-note { width: 100%; margin-top: 18px; font-size: 12.5px; color: var(--dim); }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal { max-width: 760px; margin-inline: auto; padding: 140px 0 40px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); text-align: left; margin: 0 0 8px; max-width: none; }
.legal .updated { color: var(--dim); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal ul { padding-left: 22px; margin-top: 8px; }
.legal a { color: var(--b); }

/* 404 */
.err-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 120px 0 40px; }
.err-page .code {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 160px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Internationalization
   -------------------------------------------------------------------------- */
/* Bars and tracks are data-viz: keep their geometry physical in RTL. */
.meter, .ci-track, .speed-bar, .marquee { direction: ltr; }

/* Chinese: system CJK fallbacks; no negative tracking on hanzi. */
html[lang="zh"] body { font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4,
html[lang="zh"] .brand, html[lang="zh"] .mock-title, html[lang="zh"] .btn, html[lang="zh"] .step::before {
  font-family: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}
html[lang="zh"] h1 { max-width: 13ch; }

/* Arabic: Cairo pairs with the geometric brand; joined script needs zero tracking. */
html[lang="ar"] body { font-family: "Cairo", "Segoe UI", system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .brand, html[lang="ar"] .mock-title, html[lang="ar"] .btn,
html[lang="ar"] .who, html[lang="ar"] summary, html[lang="ar"] .step::before, html[lang="ar"] .demo-top .t {
  font-family: "Cairo", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}
html[lang="ar"] h1 { line-height: 1.28; }
html[lang="ar"] .kicker { letter-spacing: 0.04em; }
html[dir="rtl"] .flip { vertical-align: baseline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .cards-3, .steps { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .mrow { grid-template-columns: 96px 1fr 70px; }
  .mrow .pb { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 128px; }
  section { padding-top: 84px; }

  /* Mock: stacked card layout — name+rate on top, full-width meter below */
  .mock-bar { padding: 12px 14px; }
  .mock-bar .addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mock-body { padding: 18px 16px; }
  .mock-head { margin-bottom: 16px; }
  .mock-title { font-size: 17px; }
  .mrow {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "who cr"
      "meter meter"
      "pb pb";
    gap: 10px 12px;
    padding: 14px;
  }
  .mrow .who { grid-area: who; }
  .mrow .cr { grid-area: cr; font-size: 18px; align-self: center; }
  .mrow .meter { grid-area: meter; }
  .mrow .pb { display: block; grid-area: pb; text-align: start; font-size: 12px; }
  .mrow .pb br { display: none; }
  .mrow .pb b { margin-inline-start: 6px; }
  .mock-foot { flex-direction: column; align-items: flex-start; gap: 12px; }

  .compare { overflow-x: auto; }
  .compare table { min-width: 560px; }
  .cta-panel { padding: 52px 22px; }
  .waitlist { flex-direction: column; align-items: stretch; }
  .waitlist input[type="email"] { width: 100%; }
}
