/* ========================================================================
   CardSwapio — Trust & Authority design system
   Deep navy + gold + violet · IBM Plex Sans
   ======================================================================== */

:root {
  /* Color tokens */
  --bg: #0B1120;
  --bg-2: #0F172A;
  --surface: #111C32;
  --surface-2: #15213B;
  --surface-3: #1B294A;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --fg: #F8FAFC;
  --fg-muted: #B4C0D4;
  --fg-dim: #8896AE;

  --primary: #F59E0B;           /* gold */
  --primary-2: #FBBF24;
  --on-primary: #0F172A;
  --accent: #8B5CF6;            /* violet */
  --accent-2: #A78BFA;
  --success: #10B981;
  --danger: #EF4444;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadow / elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.2), 0 1px 1px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.6), 0 12px 32px rgba(0,0,0,.35);
  --shadow-gold: 0 20px 50px -18px rgba(245, 158, 11, 0.55);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 380ms;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ================ Top bar ================ */
.topbar {
  background: linear-gradient(180deg, #07101E, #0A1526);
  border-bottom: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
}
.topbar__item svg { color: var(--primary); opacity: .85; }
@media (max-width: 640px) {
  .topbar__item--hide-mobile { display: none; }
  .topbar__inner { gap: 14px; }
}

/* ================ Navbar ================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav--scrolled { background: rgba(11, 17, 32, 0.92); border-bottom-color: var(--border-strong); }
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-size: 17px;
}
.logo__mark {
  width: 36px; height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--on-primary);
  box-shadow: 0 6px 18px -6px rgba(245,158,11,.6), inset 0 1px 0 rgba(255,255,255,.3);
}
.logo__accent { color: var(--primary); }
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.nav__links a {
  position: relative;
  padding: 6px 2px;
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--fg);
  margin: 3px auto;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: inline-grid; place-items: center; }
  .nav--open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    padding: 16px var(--gutter) 24px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .nav--open .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
}

/* ================ Buttons ================ */
.btn {
  --bg-btn: var(--surface);
  --fg-btn: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn--primary {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: var(--on-primary);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.35);
  font-weight: 600;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px -18px rgba(245,158,11,.7), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary:active { transform: translateY(0); }
.btn--secondary {
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(148,163,184,0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--fg-muted);
}
.btn--ghost:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.btn--lg { padding: 14px 24px; font-size: 15.5px; }
.btn--block { width: 100%; }

/* ================ Badges / pills ================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.badge--live .badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
  50%      { box-shadow: 0 0 0 7px rgba(16,185,129,.08); }
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
}

/* ================ Hero ================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 760px; height: 760px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.hero__glow--gold {
  top: -260px; right: -180px;
  background: radial-gradient(circle, #F59E0B 0%, transparent 70%);
}
.hero__glow--violet {
  bottom: -320px; left: -200px;
  background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
  opacity: 0.28;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 18px 0 18px;
  color: var(--fg);
}
.grad {
  background: linear-gradient(90deg, var(--primary-2) 0%, var(--primary) 50%, var(--accent-2) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  color: var(--fg-muted);
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 640px;
}
.hero__stat-val {
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.hero__stat-label {
  font-size: 12.5px;
  color: var(--fg-dim);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* Quote card */
.quote {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.quote::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245,158,11,0.5), transparent 40%, transparent 60%, rgba(139,92,246,0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.quote__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.quote__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.quote__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--success);
  background: rgba(16,185,129,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.quote__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}
.field { margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.field__control {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__control:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
}
.field__prefix {
  padding: 0 0 0 14px;
  color: var(--fg-muted);
  font-weight: 500;
}
.field__input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--fg);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field__input[type="number"]::-webkit-outer-spin-button,
.field__input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
select.field__input {
  padding-right: 38px;
  cursor: pointer;
}
.field__chev {
  position: absolute;
  right: 14px;
  color: var(--fg-muted);
  pointer-events: none;
}

.quote__result {
  margin: 18px 0 16px;
  padding: 14px 16px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--r-sm);
}
.quote__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.quote__row--total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(245,158,11,0.2);
  font-size: 16px;
  color: var(--fg);
  font-weight: 600;
}
.quote__row--total span:last-child {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.quote__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 12px;
  justify-content: center;
}

/* Press strip */
.press {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.press__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 20px var(--gutter);
  flex-wrap: wrap;
  justify-content: center;
}
.press__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  font-weight: 600;
}
.press__logos {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  flex-wrap: wrap;
  justify-content: center;
}
.press__logo {
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--fg-muted);
  opacity: 0.9;
  letter-spacing: -0.01em;
}
.press__logo--serif {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 600;
  font-style: italic;
}
.press__sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--fg-dim);
  opacity: 0.4;
}

/* ================ Generic section ================ */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.section--alt { background: linear-gradient(180deg, #09101F 0%, #0B1326 100%); }
.section--trust { background: radial-gradient(ellipse at top, rgba(139,92,246,0.08), transparent 50%); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--fg);
}
.section__title--left { text-align: left; }
.section__sub {
  color: var(--fg-muted);
  font-size: clamp(15px, 1.2vw, 17px);
  margin: 0;
  line-height: 1.6;
}
.section__sub--left { text-align: left; }

/* ================ Steps (How it works) ================ */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(245,158,11,0.3);
  box-shadow: var(--shadow-md);
}
.step__num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'IBM Plex Serif', serif;
  font-size: 38px;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148,163,184,0.25);
  letter-spacing: -0.02em;
}
.step__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(139,92,246,0.15));
  color: var(--primary);
  margin-bottom: 22px;
  border: 1px solid rgba(245,158,11,0.25);
}
.step__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.step__body {
  color: var(--fg-muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* ================ Brands grid ================ */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.brand:hover {
  transform: translateY(-2px);
  border-color: rgba(245,158,11,0.35);
  box-shadow: var(--shadow-md);
}
.brand:hover::before { opacity: 1; }
.brand__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}
.brand__rate {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(245,158,11,0.1);
  padding: 3px 10px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}
.brand--more {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(245,158,11,0.1));
  border-color: rgba(139,92,246,0.3);
}
.brand--more .brand__rate {
  color: var(--accent-2);
  background: rgba(139,92,246,0.15);
}

/* ================ Rates comparison ================ */
.rates__wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--fg-muted);
  font-size: 15px;
}
.checklist li svg {
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}

.ratebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-md);
}
.ratebar__head {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.ratebar__row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ratebar__row:last-child { border-bottom: 0; }
.ratebar__brand {
  font-weight: 500;
  font-size: 14.5px;
}
.ratebar__track {
  position: relative;
  height: 8px;
  background: rgba(148,163,184,0.12);
  border-radius: 4px;
  overflow: hidden;
}
.ratebar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  transition: width 1.2s var(--ease);
}
.ratebar__fill--ours { background: linear-gradient(90deg, var(--primary-2), var(--primary)); }
.ratebar__fill--avg { background: rgba(148,163,184,0.38); }
.ratebar__col {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.ratebar__val {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  min-width: 32px;
  text-align: right;
}
.ratebar__val--muted { color: var(--fg-dim); font-weight: 500; }

@media (max-width: 880px) {
  .rates__wrap { grid-template-columns: 1fr; }
  .ratebar__head, .ratebar__row { grid-template-columns: 80px 1fr 1fr; font-size: 12px; }
}

/* ================ Trust badges ================ */
.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.badgecard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.badgecard:hover {
  transform: translateY(-3px);
  border-color: rgba(139,92,246,0.3);
}
.badgecard__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(245,158,11,0.1));
  color: var(--accent-2);
  border: 1px solid rgba(139,92,246,0.25);
}
.badgecard h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.badgecard p {
  font-size: 13.5px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .badges { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .badges { grid-template-columns: 1fr; }
}

/* ================ Rating ================ */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 16px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 999px;
}
.rating__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--primary);
}
.rating__text {
  font-size: 13.5px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ================ Testimonials ================ */
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tcard {
  margin: 0;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tcard:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.tcard__quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 22px;
}
.tcard__quote::before {
  content: "\201C";
  display: block;
  font-family: 'IBM Plex Serif', serif;
  font-size: 48px;
  line-height: 0.5;
  color: var(--primary);
  margin-bottom: 14px;
  opacity: 0.7;
}
.tcard__who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--on-primary);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.avatar--2 { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; }
.avatar--3 { background: linear-gradient(135deg, #10B981, #34D399); color: #042f1e; }
.tcard__name { font-weight: 600; font-size: 14.5px; }
.tcard__meta { font-size: 12.5px; color: var(--fg-dim); }

@media (max-width: 880px) {
  .tgrid { grid-template-columns: 1fr; }
}

/* ================ FAQ ================ */
.faq__wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq__left { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq__item[open] {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--fg);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
  margin-right: 4px;
  margin-top: -4px;
}
.faq__item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--primary);
}
.faq__item summary:hover { color: var(--primary); }
.faq__body {
  padding: 0 22px 20px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (max-width: 880px) {
  .faq__wrap { grid-template-columns: 1fr; }
  .faq__left { position: static; }
}

/* ================ Final CTA ================ */
.cta {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 5vw, 56px) clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, #1A2744 0%, #141F38 50%, #1A2744 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.cta__inner::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.25), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta__inner::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(139,92,246,0.22), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta__copy { position: relative; z-index: 1; max-width: 540px; }
.cta__copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cta__copy p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 16px;
}
.cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================ Footer ================ */
.footer {
  background: #070C17;
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
  color: var(--fg-muted);
  font-size: 14px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer__brand { max-width: 320px; }
.footer__desc {
  margin: 16px 0 20px;
  color: var(--fg-dim);
  line-height: 1.6;
  font-size: 13.5px;
}
.footer__compliance {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
}
.footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin: 0 0 16px;
}
.footer__col a {
  display: block;
  padding: 5px 0;
  color: var(--fg-dim);
  font-size: 14px;
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--primary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  gap: 16px;
  font-size: 12.5px;
  color: var(--fg-dim);
  flex-wrap: wrap;
}
.footer__fine { max-width: 540px; text-align: right; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { color: var(--fg-dim); transition: color var(--dur) var(--ease); }
.footer__legal a:hover { color: var(--primary); }
.footer__copy { color: var(--fg-dim); }

@media (max-width: 980px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__fine { text-align: left; }
}

/* ================ Reveal on scroll ================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================ Sell Modal ================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.is-open { display: flex; }
body.is-locked { overflow: hidden; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  animation: fadeIn 200ms var(--ease);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popIn 280ms var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 8px;
  gap: 16px;
}
.modal__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.modal__subtitle {
  font-size: 13px;
  color: var(--fg-dim);
  margin: 4px 0 0;
}
.modal__close {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  flex-shrink: 0;
}
.modal__close:hover { background: rgba(255,255,255,0.1); color: var(--fg); }

/* Step bar */
.stepbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px 18px;
}
.stepbar__dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--fg-dim);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.stepbar__dot span {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: all var(--dur) var(--ease);
}
.stepbar__dot.is-active span {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.18);
}
.stepbar__dot.is-done span {
  background: rgba(16,185,129,0.15);
  border-color: var(--success);
  color: var(--success);
}
.stepbar__dot.is-active { color: var(--fg); }
.stepbar__line {
  flex: 1;
  height: 2px;
  background: var(--border-strong);
  border-radius: 2px;
  margin-top: -14px;
  transition: background var(--dur) var(--ease);
}
.stepbar__line.is-done { background: linear-gradient(90deg, var(--success), rgba(16,185,129,0.3)); }

/* Form panes */
.modal__form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.pane {
  display: none;
  padding: 8px 24px 20px;
  overflow-y: auto;
  flex: 1;
  animation: fadeInUp 260ms var(--ease);
}
.pane.is-active { display: block; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Chip options (radio) */
.chipgroup {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chipgroup--mini { margin-top: 10px; }
.chip-opt {
  position: relative;
  flex: 1;
  min-width: 140px;
}
.chip-opt input {
  position: absolute; opacity: 0; pointer-events: none;
}
.chip-opt span {
  display: block;
  padding: 12px 14px;
  text-align: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip-opt:hover span { border-color: rgba(245,158,11,0.35); color: var(--fg); }
.chip-opt input:checked + span {
  background: rgba(245,158,11,0.12);
  border-color: var(--primary);
  color: var(--fg);
}
.chip-opt input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(245,158,11,0.25);
}

.chip-quick {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip-quick:hover { border-color: var(--primary); color: var(--primary); }

/* Field hint */
.field__hint {
  font-size: 12px;
  color: var(--fg-dim);
  margin: 8px 0 0;
}

/* Rate callout */
.ratecallout {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-top: 4px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--fg);
}
.ratecallout svg { color: var(--primary); flex-shrink: 0; }
.ratecallout__hint {
  font-size: 11.5px;
  color: var(--fg-dim);
  margin-left: auto;
}

/* Grid 2-col for fields */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* Summary block */
.summary {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: var(--r-sm);
}
.summary--final {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.25);
}
.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.summary__row--total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(245,158,11,0.2);
  font-size: 15px;
  color: var(--fg);
  font-weight: 600;
}
.summary--final .summary__row--total { border-top-color: rgba(139,92,246,0.25); }
.summary__row--total span:last-child {
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Secure note (step 3) */
.secure {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
.secure svg { color: var(--success); flex-shrink: 0; }

/* Drop zone */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px;
  text-align: center;
  background: rgba(255,255,255,0.02);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.drop:hover { border-color: var(--primary); color: var(--fg); background: rgba(245,158,11,0.05); }
.drop svg { color: var(--primary); margin-bottom: 4px; }
.drop small { font-size: 12px; color: var(--fg-dim); }

/* Payout grid */
.paygrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 480px) { .paygrid { grid-template-columns: 1fr; } }
.paycard {
  position: relative;
  cursor: pointer;
}
.paycard input { position: absolute; opacity: 0; pointer-events: none; }
.paycard div {
  padding: 12px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
}
.paycard strong { display: block; font-weight: 600; font-size: 14.5px; color: var(--fg); }
.paycard small { display: block; font-size: 12px; color: var(--fg-dim); margin-top: 2px; }
.paycard:hover div { border-color: rgba(245,158,11,0.35); }
.paycard input:checked + div {
  background: rgba(245,158,11,0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
.paycard input:focus-visible + div { box-shadow: 0 0 0 3px rgba(245,158,11,0.25); }

/* Legal check */
.legal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  cursor: pointer;
}
.legal input {
  margin-top: 2px;
  accent-color: var(--primary);
  width: 16px; height: 16px;
  cursor: pointer;
}
.legal a { color: var(--primary); text-decoration: underline; }

/* Success pane */
.success {
  text-align: center;
  padding: 12px 4px 4px;
}
.success__icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(16,185,129,0.08));
  color: var(--success);
  border: 1.5px solid rgba(16,185,129,0.35);
  animation: popIn 400ms var(--ease);
}
.success h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.success p {
  color: var(--fg-muted);
  font-size: 14.5px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.order {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.order code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Footer */
.modal__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}
.modal__foot.is-hidden { display: none; }
.modal__foot .btn { min-width: 112px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* Shake on invalid */
.field--invalid .field__control {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.18);
  animation: shake 280ms var(--ease);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Mobile adjustments */
@media (max-width: 520px) {
  .modal { padding: 0; }
  .modal__panel { max-height: 100dvh; border-radius: 0; max-width: 100%; height: 100dvh; }
  .stepbar__dot small { display: none; }
}

/* ================ Advanced animations ================ */

/* Scroll progress */
.scrollbar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  z-index: 1001;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 50%, var(--accent) 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
  transition: width 120ms linear;
}

/* Shimmer sweep across primary buttons */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 45%; height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  z-index: 1;
  animation: shimmer 7s ease-in-out infinite;
  animation-delay: 2s;
}
.btn--primary:hover::after {
  animation: shimmer 1s ease-in-out;
  animation-delay: 0s;
}
@keyframes shimmer {
  0%   { left: -75%; }
  40%  { left: 125%; }
  100% { left: 125%; }
}

/* Animated gradient shine on .grad--shine */
.grad--shine {
  background-size: 200% auto;
  animation: gradshine 6s linear infinite;
}
@keyframes gradshine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Magnetic button (JS adds --mx/--my variables) */
.btn--magnet {
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  transform: translate(var(--mx, 0), var(--my, 0));
}

/* Cursor spotlight on cards (brand, badgecard, tcard) */
.brand, .badgecard, .tcard {
  position: relative;
}
.brand::after,
.badgecard::after,
.tcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms var(--ease);
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(245, 158, 11, 0.18),
    transparent 55%
  );
  z-index: 0;
}
.brand:hover::after,
.badgecard:hover::after,
.tcard:hover::after {
  opacity: 1;
}
.brand > *, .badgecard > *, .tcard > * { position: relative; z-index: 1; }

/* 3D tilt on quote card */
.quote[data-tilt] {
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Count-up numbers — tabular to prevent layout shift as they animate */
.hero__stat-val {
  font-variant-numeric: tabular-nums;
}

/* ================ Live rate ticker ================ */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(7, 15, 29, 0.6), rgba(11, 17, 32, 0.6));
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 48s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  flex-shrink: 0;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ticker__item strong {
  color: var(--fg);
  font-weight: 600;
  margin-left: 2px;
}
.ticker__item em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
}
.ticker__item .up {
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
}
.ticker__item .down {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}
.ticker__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 1.6s ease-in-out infinite;
  margin-right: 2px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Success checkmark SVG draw animation */
.success__icon svg {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: check-draw 600ms 150ms cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

/* Success icon pulse ring on reveal */
.success__icon {
  position: relative;
}
.success__icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--success);
  opacity: 0;
  animation: ring-pulse 1.4s 400ms ease-out 2;
}
@keyframes ring-pulse {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Step-bar dot bounce when activated */
.stepbar__dot.is-active span {
  animation: dot-pop 280ms var(--ease);
}
@keyframes dot-pop {
  0%   { transform: scale(0.85); }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Value change flash on summary rows + quote result */
.flash {
  animation: flash-highlight 600ms var(--ease);
}
@keyframes flash-highlight {
  0%   { color: var(--primary); transform: translateY(-2px); }
  100% { color: inherit; transform: translateY(0); }
}

/* Floating badge glow for hero live pill */
.badge--live {
  animation: badge-float 5s ease-in-out infinite;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ================ Step scenes (animated) ================ */
.scene {
  width: 100%;
  height: 100px;
  margin-bottom: 22px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(245, 158, 11, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.1));
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.scene__svg {
  width: 100%;
  height: 100%;
  display: block;
}
.step:hover .scene { border-color: rgba(245, 158, 11, 0.28); }

/* Scene 1 — rising chart */
.scene--chart .bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: bar-grow 3s ease-in-out infinite;
}
.scene--chart .bar-1 { animation-delay: 0.05s; --h: 20px; }
.scene--chart .bar-2 { animation-delay: 0.2s;  --h: 32px; }
.scene--chart .bar-3 { animation-delay: 0.35s; --h: 44px; }
.scene--chart .bar-4 { animation-delay: 0.5s;  --h: 58px; }
.scene--chart .bar-5 { animation-delay: 0.65s; --h: 70px; }
@keyframes bar-grow {
  0%   { y: 90; height: 0; }
  40%  { y: calc(90 - var(--h, 40px)); height: var(--h, 40px); }
  90%  { y: calc(90 - var(--h, 40px)); height: var(--h, 40px); }
  100% { y: 90; height: 0; }
}
.scene--chart .arrow {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-arrow 3s ease-in-out infinite;
  animation-delay: 0.8s;
}
.scene--chart .arrow-dot {
  opacity: 0;
  animation: dot-pop-in 3s ease-in-out infinite;
  animation-delay: 1.6s;
}
.scene--chart .tag {
  transform-origin: center;
  opacity: 0;
  animation: tag-in 3s ease-in-out infinite;
  animation-delay: 1.7s;
}
@keyframes draw-arrow {
  0%, 10%  { stroke-dashoffset: 200; }
  45%      { stroke-dashoffset: 0; }
  90%      { stroke-dashoffset: 0; opacity: 1; }
  100%     { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes dot-pop-in {
  0%, 40%   { opacity: 0; transform: scale(0); }
  55%       { opacity: 1; transform: scale(1.5); }
  70%, 90%  { opacity: 1; transform: scale(1); }
  100%      { opacity: 0; transform: scale(1); }
}
@keyframes tag-in {
  0%, 40%   { opacity: 0; transform: translateY(4px); }
  60%, 90%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(4px); }
}

/* Scene 2 — scanning shield */
.scene--shield .ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-breathe 4s ease-in-out infinite;
}
.scene--shield .r1 { animation-delay: 0s; }
.scene--shield .r2 { animation-delay: 0.4s; }
@keyframes ring-breathe {
  0%, 100% { transform: scale(1);   opacity: 0.45; }
  50%      { transform: scale(1.06); opacity: 0.15; }
}
.scene--shield .shield-body {
  transform-box: fill-box;
  transform-origin: center;
  animation: shield-pulse 4s ease-in-out infinite;
}
@keyframes shield-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(139, 92, 246, 0)); }
  50%      { filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.55)); }
}
.scene--shield .scanline {
  opacity: 0;
  animation: scan-move 4s ease-in-out infinite;
}
@keyframes scan-move {
  0%, 10%  { opacity: 0; transform: translateY(-26px); }
  25%      { opacity: 1; transform: translateY(-24px); }
  55%      { opacity: 1; transform: translateY(24px); }
  65%      { opacity: 0; transform: translateY(24px); }
  100%     { opacity: 0; transform: translateY(-26px); }
}
.scene--shield .shield-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: check-stroke 4s ease-in-out infinite;
}
@keyframes check-stroke {
  0%, 60%  { stroke-dashoffset: 40; }
  80%      { stroke-dashoffset: 0; }
  95%      { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 40; }
}
.scene--shield .spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: spark-twinkle 2.2s ease-in-out infinite;
}
.scene--shield .s1 { animation-delay: 0.2s; }
.scene--shield .s2 { animation-delay: 0.9s; }
.scene--shield .s3 { animation-delay: 1.4s; }
.scene--shield .s4 { animation-delay: 1.8s; }
@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* Scene 3 — card to wallet flow */
.scene--flow .flow-card {
  transform-box: fill-box;
  transform-origin: center;
  animation: card-slide 4s ease-in-out infinite;
}
@keyframes card-slide {
  0%, 10%  { transform: translateX(0) rotate(0); }
  40%      { transform: translateX(30px) rotate(-6deg); opacity: 1; }
  55%      { transform: translateX(52px) rotate(-10deg); opacity: 0; }
  65%      { transform: translateX(0) rotate(0); opacity: 0; }
  75%      { transform: translateX(0) rotate(0); opacity: 1; }
  100%     { transform: translateX(0) rotate(0); }
}
.scene--flow .flow-path {
  stroke-dasharray: 4 4;
  animation: flow-dash 1.4s linear infinite;
}
@keyframes flow-dash {
  to { stroke-dashoffset: -16; }
}
.scene--flow .flow-arrow {
  transform-box: fill-box;
  transform-origin: center;
  animation: arrow-pulse 1.4s ease-in-out infinite;
}
@keyframes arrow-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(0); }
  50%      { opacity: 1;   transform: translateX(3px); }
}
.scene--flow .coin {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: coin-pop 4s ease-in-out infinite;
}
.scene--flow .c1 { animation-delay: 1.6s; }
.scene--flow .c2 { animation-delay: 1.8s; }
.scene--flow .c3 { animation-delay: 2s; }
.scene--flow .coin-$ {
  opacity: 0;
  animation: coin-pop 4s ease-in-out infinite;
  animation-delay: 1.6s;
}
@keyframes coin-pop {
  0%, 40%  { opacity: 0; transform: translateY(0) scale(0.5); }
  55%      { opacity: 1; transform: translateY(-20px) scale(1.1); }
  70%      { opacity: 1; transform: translateY(-18px) scale(1); }
  85%      { opacity: 0; transform: translateY(-4px) scale(0.7); }
  100%     { opacity: 0; transform: translateY(0) scale(0.5); }
}

/* Keep step__num position sane next to the scene */
.step .step__num {
  z-index: 2;
}

/* ================ Reduced motion ================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================ Multi-code cart summary (sell modal) ================ */
.cart-summary {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(245,158,11,0.22);
}
.cart-summary[hidden] { display: none; }
.cart-summary__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 8px;
}
.cart-summary__head strong { color: var(--primary-2); }
.cart-summary__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-summary__list li {
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 6px 8px;
  background: rgba(0,0,0,0.22);
  border-radius: 6px;
  color: var(--fg-muted);
}
.cart-summary__list li span:nth-child(2) { color: var(--fg); font-variant-numeric: tabular-nums; }
.cart-remove {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg-dim);
  width: 24px;
  height: 24px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  font-size: 16px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cart-remove:hover { color: var(--danger); border-color: rgba(239,68,68,0.5); }
.js-add-code {
  margin-top: 14px;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(245,158,11,0.35) !important;
  color: var(--primary-2);
  padding: 12px;
}
.js-add-code:hover {
  background: rgba(245,158,11,0.06);
  border-color: rgba(245,158,11,0.6) !important;
}

/* ================ Legal / policy pages ================ */
/* NOTE: the article block uses `.legal-doc` (not `.legal`) because
   `.legal` is already claimed by the modal agreement checkbox row
   at line ~1526 (display: flex). */
.legal-shell {
  padding: 72px 0 96px;
  min-height: calc(100vh - var(--nav-h) - 220px);
}
.footer__bottom--lone {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 16px;
}
.legal-doc {
  display: block;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  color: var(--fg);
}
.legal-doc > * {
  display: block;
  width: 100%;
  max-width: 100%;
}
.legal-doc__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.legal-doc h1 {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 12px;
  line-height: 1.15;
}
.legal-doc__meta {
  color: var(--fg-dim);
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-doc h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  color: var(--fg);
}
.legal-doc h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--fg);
}
.legal-doc p,
.legal-doc li {
  color: var(--fg-muted);
  line-height: 1.75;
  font-size: 15.5px;
}
.legal-doc ul, .legal-doc ol {
  padding-left: 22px;
  margin: 10px 0 20px;
}
.legal-doc li + li { margin-top: 6px; }
.legal-doc a { color: var(--primary); }
.legal-doc a:hover { text-decoration: underline; }
.legal-doc__placeholder {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(245,158,11,0.12);
  border: 1px dashed rgba(245,158,11,0.4);
  color: var(--primary-2);
  font-size: 13px;
  font-family: 'IBM Plex Sans', sans-serif;
}
.legal-doc__toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0 40px;
}
.legal-doc__toc h4 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.legal-doc__toc ol { margin: 0; padding-left: 20px; }
.legal-doc__toc a { color: var(--fg); }
.legal-doc__contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-top: 24px;
}
.legal-doc__contact-card p { margin: 6px 0; }
