/* ==========================================================================
   TradeStox — by Kedil Solutions Pvt Ltd
   Design system ported from the TradeStox Flutter app (tradestox-app).
   Brand: #0050FF · Poppins (UI) / Outfit (display) · light slate surfaces.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand: #0050ff;
  --brand-700: #0040db;
  --brand-300: #3b82f6;
  --brand-900: #1e3a8a;
  --brand-tint: #eff6ff;

  /* Ink & text (Tailwind slate scale, exactly as the app uses) */
  --ink: #0f172a;        /* slate-900 — headings */
  --ink-800: #1e293b;    /* slate-800 */
  --text: #475569;       /* slate-600 — body copy */
  --muted: #64748b;      /* slate-500 — secondary */
  --muted-2: #94a3b8;    /* slate-400 — faint */
  --line: #e2e8f0;       /* slate-200 — hairline borders */
  --line-2: #f1f5f9;     /* slate-100 */

  /* Surfaces */
  --surface: #ffffff;
  --surface-2: #f8fafc;  /* slate-50 */
  --surface-3: #f1f5f9;  /* slate-100 */

  /* Semantic — gains / losses (match the app's stock-card greens & reds) */
  --up: #16a34a;
  --up-bright: #5ac147;
  --up-tint: rgba(90, 193, 71, 0.10);
  --down: #ef4444;
  --down-bright: #fd3e08;
  --down-tint: rgba(253, 62, 8, 0.10);

  /* Premium accents (contest gold, weekly-pass purple) */
  --gold-1: #fbbf24;
  --gold-2: #f59e0b;
  --purple-1: #7c3aed;
  --purple-2: #9d4edd;

  /* Typography */
  --font-ui: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", var(--font-ui);
  --font-eyebrow: "DM Sans", var(--font-ui);

  /* Radii (app: card 16, button 8, pill 30) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows — the app's signature soft, layered, low-alpha stack */
  --shadow-card: 0 8px 20px rgba(15, 23, 42, 0.03), 0 2px 6px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06), 0 4px 10px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.12), 0 10px 24px rgba(15, 23, 42, 0.06);
  --shadow-brand: 0 14px 30px rgba(0, 80, 255, 0.28);

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* easeOutCubic-ish */
}

/* ----------------------------------------------------------------------------
   2. Reset & base
   ---------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -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-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

::selection { background: rgba(0, 80, 255, 0.16); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(0, 80, 255, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }

p { color: var(--text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-eyebrow);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.eyebrow.is-centered { justify-content: center; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  line-height: 1.65;
}

.text-grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------------------------------------------------------------
   4. Layout helpers
   ---------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--surface-2); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-head .lead { margin-top: 16px; }

.grid { display: grid; gap: 24px; }

.center { text-align: center; }

/* ----------------------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------------------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--sm { --btn-h: 44px; padding: 0 20px; font-size: 0.9rem; }
.btn--lg { --btn-h: 58px; padding: 0 32px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* Primary — brand blue with the app's glow + shine sweep */
.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 18px 38px rgba(0, 80, 255, 0.34); }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: shine 3.4s var(--ease) infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Ghost — hairline outline on light surfaces */
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* On dark / brand backgrounds */
.btn--light { background: #fff; color: var(--brand); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24); }
.btn--outline-light { border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); }

/* Gold — the contest CTA */
.btn--gold {
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2));
  color: #1a1505;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.34);
}
.btn--gold:hover { transform: translateY(-2px); }

/* App-store style pill */
.btn--store {
  --btn-h: 56px;
  gap: 12px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  text-align: left;
}
.btn--store:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--store svg { width: 24px; height: 24px; }
.btn--store .store-kicker { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.04em; opacity: 0.8; text-transform: uppercase; line-height: 1; }
.btn--store .store-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.15; }

/* ----------------------------------------------------------------------------
   6. Brand mark / logo
   ---------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  box-shadow: 0 6px 16px rgba(0, 80, 255, 0.30);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand__name b { color: inherit; font-weight: 700; }
.brand--light .brand__name { color: #fff; }

/* ----------------------------------------------------------------------------
   7. Pills, tags & stat chips
   ---------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pill svg { width: 15px; height: 15px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-ui);
}
.chip svg { width: 12px; height: 12px; }
.chip--up { background: var(--up-tint); color: var(--up-bright); }
.chip--down { background: var(--down-tint); color: var(--down-bright); }

/* ----------------------------------------------------------------------------
   8. Generic card
   ---------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

/* ----------------------------------------------------------------------------
   9. Navigation
   ---------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav__links a {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-800);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--brand); background: var(--brand-tint); }
.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border-radius: var(--r-sm);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 26px; height: 26px; }

/* Mobile menu */
.nav__menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--gutter) 26px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.nav__menu.is-open { display: flex; }
.nav__menu a { padding: 14px 12px; border-radius: var(--r-sm); font-weight: 500; color: var(--ink-800); }
.nav__menu a:hover { background: var(--surface-2); color: var(--brand); }
.nav__menu .btn { margin-top: 12px; }

/* ----------------------------------------------------------------------------
   10. Hero
   ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 78% 8%, rgba(0, 80, 255, 0.10), transparent 70%),
    radial-gradient(closest-side at 8% 30%, rgba(59, 130, 246, 0.10), transparent 70%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
  opacity: 0.5;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero__title { margin: 22px 0 20px; }
.hero__title .text-grad { display: inline; }
.hero__copy { max-width: 30ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}
.hero__trust svg { width: 18px; height: 18px; color: var(--up); flex: none; }

.hero__avatars { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.avatars span:first-child { margin-left: 0; }
.hero__avatars small { display: block; color: var(--muted); font-size: 0.8rem; }
.hero__avatars strong { color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.stars { color: var(--gold-2); letter-spacing: 2px; font-size: 0.85rem; }

/* ----------------------------------------------------------------------------
   11. Phone mockup (recreated app UI)
   ---------------------------------------------------------------------------- */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage .glow {
  position: absolute;
  width: 78%; height: 78%;
  top: 12%; left: 11%;
  background: radial-gradient(circle, rgba(0, 80, 255, 0.32), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}
.phone {
  position: relative;
  width: 300px;
  max-width: 80vw;
  aspect-ratio: 300 / 620;
  background: #0b1220;
  border-radius: 44px;
  padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 42%; height: 26px;
  background: #0b1220;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}

/* App header inside the phone */
.app-top {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 130%);
  padding: 30px 18px 22px;
  color: #fff;
}
.app-top__row { display: flex; align-items: center; justify-content: space-between; }
.app-greet { font-size: 0.72rem; opacity: 0.82; }
.app-user { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.app-bell {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
}
.app-bell svg { width: 16px; height: 16px; color: #fff; }
.app-balance { margin-top: 16px; }
.app-balance small { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.app-balance .amt { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; letter-spacing: -0.02em; margin-top: 2px; }
.app-balance .delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 0.74rem; font-weight: 600; background: rgba(255, 255, 255, 0.16); padding: 3px 9px; border-radius: var(--r-pill); }
.app-balance .delta svg { width: 12px; height: 12px; }

.app-body { padding: 14px; display: flex; flex-direction: column; gap: 11px; overflow: hidden; }
.app-section-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.74rem; font-weight: 600; color: var(--ink); }
.app-section-label a { color: var(--brand); font-size: 0.66rem; font-weight: 600; }

/* Mini stock card (mirrors StockCard) */
.mini-stock {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-stock__logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  color: #fff;
  flex: none;
}
.mini-stock__id { flex: 1; min-width: 0; }
.mini-stock__sym { font-weight: 700; font-size: 0.84rem; color: var(--ink); }
.mini-stock__name { font-size: 0.64rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-stock__spark { width: 50px; height: 26px; flex: none; }
.mini-stock__num { text-align: right; flex: none; }
.mini-stock__price { font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.mini-stock__chg { font-size: 0.66rem; font-weight: 600; }
.up { color: var(--up-bright); }
.down { color: var(--down-bright); }

.app-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.app-nav span { width: 20px; height: 20px; color: var(--muted-2); }
.app-nav span.is-active { color: var(--brand); }
.app-nav svg { width: 100%; height: 100%; }

/* Floating chips around the phone */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
}
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .ico svg { width: 18px; height: 18px; }
.float-card small { display: block; font-size: 0.66rem; color: var(--muted); }
.float-card strong { font-size: 0.92rem; color: var(--ink); font-family: var(--font-display); }
.float-card--a { top: 12%; left: -8%; animation: float 5s ease-in-out infinite; }
.float-card--b { bottom: 14%; right: -6%; animation: float 5.6s ease-in-out infinite 0.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ----------------------------------------------------------------------------
   12. Ticker
   ---------------------------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 26px;
  font-size: 0.88rem;
  white-space: nowrap;
}
.ticker__sym { font-weight: 600; color: var(--ink); }
.ticker__px { color: var(--muted); }
.ticker__chg { font-weight: 600; font-size: 0.8rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------------------
   13. Stats band
   ---------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stat__num .text-grad { display: inline; }
.stat__label { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

/* ----------------------------------------------------------------------------
   14. Feature cards
   ---------------------------------------------------------------------------- */
.features { grid-template-columns: repeat(3, 1fr); }
.feature { height: 100%; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0, 80, 255, 0.18); }
.feature__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 18px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 9px; }
.feature p { font-size: 0.95rem; }
.feature--gold .feature__icon { background: rgba(245, 158, 11, 0.12); color: var(--gold-2); }
.feature--green .feature__icon { background: var(--up-tint); color: var(--up); }
.feature--purple .feature__icon { background: rgba(124, 58, 237, 0.12); color: var(--purple-1); }

/* ----------------------------------------------------------------------------
   15. How it works
   ---------------------------------------------------------------------------- */
.steps { grid-template-columns: repeat(3, 1fr); position: relative; }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-900));
  box-shadow: var(--shadow-brand);
  margin-bottom: 22px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.96rem; }
.steps__line {
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: -1;
}

/* ----------------------------------------------------------------------------
   16. Contest / premium gradient card
   ---------------------------------------------------------------------------- */
.contest-wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 64px); }

.contest-card {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 24px 50px rgba(0, 80, 255, 0.30);
  color: #fff;
  overflow: hidden;
}
.contest-card__glow { position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.22), transparent 55%); pointer-events: none; }
.contest-card__strip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40px;
  background: rgba(0, 0, 0, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}
.contest-card__strip span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-1);
}
.contest-card__body { padding: 22px 22px 0 60px; }
.contest-card__top { display: flex; align-items: center; justify-content: space-between; }
.contest-card__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.contest-card__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.66rem; font-weight: 700;
  background: var(--down); color: #fff;
  padding: 3px 9px; border-radius: 5px;
}
.contest-card__live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.contest-card__prizelabel { font-size: 0.64rem; letter-spacing: 0.1em; opacity: 0.7; margin-top: 18px; }
.contest-card__prize { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.contest-card__prize svg { width: 26px; height: 26px; color: var(--gold-1); }
.contest-card__prize b { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; }
.contest-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.contest-card__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.contest-card__bar i { display: block; height: 100%; width: 72%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); }
.contest-card__spots { display: flex; justify-content: space-between; margin-top: 9px; font-size: 0.72rem; }
.contest-card__spots .gold { color: var(--gold-1); font-weight: 600; }
.contest-card__spots .dim { color: rgba(255, 255, 255, 0.6); }
.contest-card__foot {
  margin-top: 18px;
  padding: 13px 22px 13px 60px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; justify-content: space-between;
  font-size: 0.74rem; color: rgba(255, 255, 255, 0.8);
}
.contest-card__foot span { display: inline-flex; align-items: center; gap: 6px; }
.contest-card__foot svg { width: 15px; height: 15px; color: var(--gold-1); }

.contest-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.contest-feat { display: flex; gap: 14px; align-items: flex-start; }
.contest-feat .tick { width: 26px; height: 26px; border-radius: 8px; background: var(--up-tint); color: var(--up); display: grid; place-items: center; flex: none; }
.contest-feat .tick svg { width: 15px; height: 15px; }
.contest-feat h4 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.contest-feat p { font-size: 0.9rem; }

/* ----------------------------------------------------------------------------
   17. Showcase (alternating feature rows)
   ---------------------------------------------------------------------------- */
.showcase { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 120px); }
.show-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.show-row:nth-child(even) .show-row__media { order: -1; }
.show-row__list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.show-row__list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); font-size: 0.96rem; }
.show-row__list svg { width: 21px; height: 21px; color: var(--brand); flex: none; margin-top: 1px; }
.show-row__media { display: flex; justify-content: center; }

/* A clean framed UI panel used in showcase */
.panel {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.panel__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.panel__bar i:nth-child(1) { background: #ff5f57; }
.panel__bar i:nth-child(2) { background: #febc2e; }
.panel__bar i:nth-child(3) { background: #28c840; }
.panel__bar span { margin-left: auto; font-size: 0.74rem; color: var(--muted); font-weight: 500; }
.panel__body { padding: 20px; }

/* Leaderboard mini */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; }
.lb-row + .lb-row { margin-top: 6px; }
.lb-row--me { background: var(--brand-tint); border: 1px solid rgba(0, 80, 255, 0.18); }
.lb-rank { width: 26px; font-family: var(--font-display); font-weight: 700; color: var(--muted); text-align: center; }
.lb-rank.gold { color: var(--gold-2); }
.lb-av { width: 38px; height: 38px; border-radius: 50%; background-size: cover; background-position: center; flex: none; }
.lb-id { flex: 1; }
.lb-id b { display: block; font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.lb-id small { color: var(--muted); font-size: 0.74rem; }
.lb-val { font-family: var(--font-display); font-weight: 700; color: var(--up); }

/* Option chain mini */
.oc { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.oc th { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; padding: 8px; text-align: right; }
.oc th:first-child, .oc td:first-child { text-align: left; }
.oc th.strike, .oc td.strike { text-align: center; }
.oc td { padding: 9px 8px; border-top: 1px solid var(--line-2); font-weight: 500; color: var(--ink); }
.oc td.strike { font-family: var(--font-display); font-weight: 700; background: var(--surface-2); }
.oc .call { color: var(--up); }
.oc .put { color: var(--down); }
.oc td.itm { background: rgba(0, 80, 255, 0.04); }

/* ----------------------------------------------------------------------------
   17b. Device frame (real app screenshots)
   ---------------------------------------------------------------------------- */
.device {
  position: relative;
  width: 280px;
  max-width: 78vw;
  background: #0b1220;
  border-radius: 40px;
  padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  container-type: inline-size;
}
.device::after { /* side buttons hint */
  content: "";
  position: absolute;
  right: -3px; top: 110px;
  width: 3px; height: 56px;
  border-radius: 3px;
  background: #0b1220;
}
.device img {
  width: 100%;
  display: block;
  border-radius: 32px;
  background: var(--surface-2);
}
.device--hero { width: 300px; }

/* ----------------------------------------------------------------------------
   17b-i. CSS app screens (rendered from assets/js/screens.js)
   Everything sized in `em` off a cqw root so screens scale with the device.
   ---------------------------------------------------------------------------- */
.scr {
  width: 100%;
  aspect-ratio: 320 / 660;
  overflow: hidden;
  border-radius: 11.5cqw;
  background: var(--surface-2);
  font-family: var(--font-ui);
  font-size: 4.05cqw;
  line-height: 1.3;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
}
.scr * { box-sizing: border-box; }
.scr .up { color: var(--up); }
.scr .down { color: var(--down); }
.scr svg { display: block; }

/* Bottom tab bar */
.scr__nav { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; padding: 0.5em 0.7em 0.6em; background: #fff; border-top: 1px solid var(--line); }
.scr__nav span { display: flex; flex-direction: column; align-items: center; gap: 0.22em; color: var(--muted-2); font-size: 0.5em; font-weight: 500; flex: 1; }
.scr__nav span i { font-style: normal; }
.scr__nav span.on { color: var(--brand); }
.scr__nav span svg { width: 1.55em; height: 1.55em; }
.scr__nav .scr__fab { flex: none; width: 2.6em; height: 2.6em; border-radius: 50%; background: linear-gradient(135deg, var(--brand-300), var(--brand)); box-shadow: 0 0.3em 0.6em rgba(0,80,255,.4); display: grid; place-items: center; margin-bottom: 0.1em; }
.scr__nav .scr__fab svg { width: 1.4em; height: 1.4em; color: #fff; }

.scr .tagpill { display: inline-flex; align-items: center; gap: 0.3em; background: var(--brand-tint); color: var(--brand); font-weight: 600; font-size: 0.62em; padding: 0.35em 0.7em; border-radius: var(--r-pill); }
.scr__sec { display: flex; align-items: center; justify-content: space-between; margin: 0.9em 0 0.6em; }
.scr__sec a { color: var(--brand); font-size: 0.6em; font-weight: 600; }
.scr__see { color: var(--brand); font-size: 0.6em; font-weight: 600; }

/* ---- HOME ---- */
.scrh__top { background: linear-gradient(150deg, var(--brand) 0%, #1f4fe0 100%); padding: 1.1em 1em 1.5em; border-radius: 0 0 1.6em 1.6em; color: #fff; }
.scrh__bar { display: flex; align-items: center; justify-content: space-between; }
.scrh__ava { width: 2.3em; height: 2.3em; border-radius: 50%; background: #fff; color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: 0.78em; display: grid; place-items: center; }
.scrh__coins { display: inline-flex; align-items: center; gap: 0.4em; background: rgba(255,255,255,.18); border-radius: var(--r-pill); padding: 0.3em 0.7em; font-size: 0.72em; font-weight: 700; }
.scrh__coins .c { width: 1.05em; height: 1.05em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b); }
.scrh__idx { display: flex; gap: 0.6em; margin-top: 1em; }
.idxc { flex: 1; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); border-radius: 0.7em; padding: 0.55em 0.65em; }
.idxc__h { display: flex; align-items: center; justify-content: space-between; font-size: 0.6em; opacity: 0.92; }
.idxc__h b { background: rgba(255,255,255,.22); padding: 0.1em 0.4em; border-radius: 0.5em; font-weight: 600; color: #d7ffe6; }
.idxc__v { font-family: var(--font-display); font-weight: 700; font-size: 0.92em; margin-top: 0.25em; }
.scrh__body { padding: 0 0.85em; margin-top: -0.8em; overflow: hidden; }
.pcard { background: #fff; border-radius: 1.1em; box-shadow: var(--shadow-card); padding: 0.9em; }
.pcard__row { display: flex; align-items: center; justify-content: space-between; }
.pcard__lbl { font-size: 0.56em; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.pcard__refresh { width: 1.7em; height: 1.7em; border-radius: 0.5em; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.pcard__refresh svg { width: 0.9em; height: 0.9em; }
.pcard__val { font-family: var(--font-display); font-weight: 700; font-size: 1.25em; margin-top: 0.25em; letter-spacing: -0.02em; }
.pcard__val span { font-family: var(--font-ui); font-size: 0.5em; font-weight: 600; }
.pcard__div { height: 1px; background: var(--line-2); margin: 0.7em 0; }
.pcard__cols { display: flex; justify-content: space-between; }
.pcard__cols small { display: block; color: var(--muted); font-size: 0.58em; }
.pcard__cols b { font-family: var(--font-display); font-size: 0.82em; }
.pcard__acts { display: flex; justify-content: space-between; margin-top: 0.9em; }
.pcard__acts span { display: flex; flex-direction: column; align-items: center; gap: 0.3em; font-size: 0.52em; color: var(--ink-800); font-weight: 500; text-align: center; width: 4.2em; }
.pcard__acts .ai { width: 2.7em; height: 2.7em; border-radius: 0.7em; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.pcard__acts .ai svg { width: 1.45em; height: 1.45em; }
.hold { display: flex; align-items: center; gap: 0.6em; background: #fff; border: 1px solid rgba(15,23,42,.05); border-radius: 0.8em; box-shadow: var(--shadow-card); padding: 0.55em 0.65em; margin-bottom: 0.5em; }
.hold__lg { width: 2em; height: 2em; border-radius: 0.5em; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.66em; flex: none; }
.hold__id { flex: 1; }
.hold__id b { font-size: 0.72em; }
.hold__id small { display: block; color: var(--muted); font-size: 0.56em; }
.hold__n { text-align: right; }
.hold__n b { font-size: 0.72em; }
.hold__n small { display: block; font-size: 0.58em; font-weight: 600; }

/* ---- DISCOVER ---- */
.scrd { background: #fff; }
.scrd__head { display: flex; align-items: center; gap: 0.55em; padding: 1.1em 0.9em 0.6em; }
.scrd__head .ic { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.scrd__head .ic svg { width: 1.15em; height: 1.15em; }
.scrd__head b { font-family: var(--font-display); color: var(--brand); font-size: 0.95em; }
.scrd__head small { display: block; color: var(--muted); font-size: 0.6em; }
.scrd__search { margin: 0.2em 0.9em 0.7em; display: flex; align-items: center; gap: 0.5em; background: var(--surface-3); border-radius: 0.8em; padding: 0.6em 0.8em; color: var(--muted-2); font-size: 0.66em; }
.scrd__search svg { width: 1.1em; height: 1.1em; }
.scrd__chips { display: flex; flex-wrap: wrap; gap: 0.45em; padding: 0 0.9em 0.5em; }
.chip2 { display: inline-flex; align-items: center; gap: 0.35em; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.4em 0.7em; font-size: 0.6em; font-weight: 500; color: var(--ink-800); }
.chip2 .d { width: 0.7em; height: 0.7em; border-radius: 0.2em; }
.chip2.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.drow { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.9em; border-top: 1px solid var(--line-2); }
.drow__lg { width: 2.1em; height: 2.1em; border-radius: 0.45em; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.7em; flex: none; }
.drow__id { flex: 1; }
.drow__id b { font-size: 0.74em; }
.drow__id small { display: block; color: var(--muted); font-size: 0.56em; }
.drow__px { text-align: right; }
.drow__px b { font-size: 0.74em; }
.drow__px small { display: block; font-size: 0.58em; font-weight: 600; }

/* ---- OPTIONS ---- */
.scro { background: #fff; }
.scro__head { padding: 1em 0.9em 0.7em; border-bottom: 1px solid var(--line-2); }
.scro__head .t { display: flex; align-items: center; justify-content: space-between; }
.scro__head b { font-family: var(--font-display); font-size: 0.92em; }
.scro__head .px { font-family: var(--font-display); font-weight: 700; font-size: 0.92em; }
.scro__head small { color: var(--muted); font-size: 0.58em; }
.scro__head .chg { font-size: 0.58em; font-weight: 600; }
.ocx { width: 100%; border-collapse: collapse; font-size: 0.62em; }
.ocx th { color: var(--muted); font-weight: 600; font-size: 0.82em; padding: 0.55em 0.7em 0.4em; text-transform: uppercase; letter-spacing: 0.04em; }
.ocx th.s, .ocx td.s { text-align: center; }
.ocx th.c { text-align: left; color: var(--up); }
.ocx th.p { text-align: right; color: var(--down); }
.ocx td { padding: 0.5em 0.7em; border-top: 1px solid var(--line-2); font-weight: 600; }
.ocx td.s { font-family: var(--font-display); background: var(--surface-2); color: var(--ink-800); font-size: 0.96em; }
.ocx td.s.atm { background: var(--brand); color: #fff; border-radius: 0.5em; }
.ocx .ltp { color: var(--ink); }
.ocx .dn { color: var(--down); font-weight: 500; font-size: 0.86em; }
.ocx .oi { color: var(--muted-2); font-weight: 500; font-size: 0.82em; }
.ocx td.pcol { text-align: right; }

/* ---- ORDERS ---- */
.scrord { background: #fff; }
.scrord__head { display: flex; align-items: center; gap: 0.55em; padding: 1.1em 0.9em 0.5em; }
.scrord__head .ic { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.scrord__head .ic svg { width: 1.1em; height: 1.1em; }
.scrord__head b { font-family: var(--font-display); color: var(--brand); font-size: 0.95em; }
.scrord__head small { display: block; color: var(--muted); font-size: 0.6em; }
.scrord__tabs { display: flex; gap: 1.1em; padding: 0.4em 1em 0; font-size: 0.66em; color: var(--muted); font-weight: 500; }
.scrord__tabs .on { color: var(--brand); font-weight: 700; border-bottom: 0.16em solid var(--brand); padding-bottom: 0.35em; }
.ocard { margin: 0.7em 0.9em 0; background: #fff; border: 1px solid var(--line); border-radius: 0.8em; box-shadow: var(--shadow-card); padding: 0.7em 0.75em; }
.ocard__t { display: flex; align-items: center; gap: 0.5em; }
.ocard__lg { width: 1.7em; height: 1.7em; border-radius: 0.4em; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.6em; flex: none; }
.ocard__sym { flex: 1; font-weight: 700; font-size: 0.7em; }
.ocard__sym small { display: block; color: var(--muted); font-weight: 500; font-size: 0.8em; }
.side { font-size: 0.6em; font-weight: 700; padding: 0.25em 0.6em; border-radius: 0.4em; }
.side.buy { background: var(--up-tint); color: var(--up); }
.side.sell { background: var(--down-tint); color: var(--down); }
.ocard__m { display: flex; justify-content: space-between; margin-top: 0.6em; }
.ocard__m div { font-size: 0.6em; }
.ocard__m small { display: block; color: var(--muted); }
.ocard__m b { font-size: 1.1em; }

/* ---- PREDICT ---- */
.scrp { background: #fff; }
.scrp__top { background: var(--surface-3); padding: 0.9em; position: relative; }
.scrp__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, #fff); }
.scrp__ocrow { display: flex; justify-content: space-between; font-size: 0.6em; color: var(--muted-2); padding: 0.3em 0; }
.scrp__ocrow b { color: var(--ink-800); }
.scrp__sheet { padding: 0.9em; margin-top: -0.6em; background: #fff; border-radius: 1.1em 1.1em 0 0; position: relative; box-shadow: 0 -0.4em 1em rgba(15,23,42,.06); flex: 1; }
.scrp__grab { width: 2.2em; height: 0.3em; border-radius: 0.3em; background: var(--line); margin: 0 auto 0.7em; }
.scrp__hd { display: flex; align-items: flex-start; justify-content: space-between; }
.scrp__hd b { font-family: var(--font-display); font-size: 0.82em; }
.scrp__hd small { display: block; color: var(--muted); font-size: 0.62em; }
.scrp__hd .px { font-family: var(--font-display); font-weight: 700; font-size: 0.86em; }
.scrp__hd .px small { color: var(--brand); text-align: right; }
.scrp__tabs { display: flex; gap: 1.2em; border-bottom: 1px solid var(--line-2); margin: 0.8em 0; font-size: 0.66em; color: var(--muted); font-weight: 600; }
.scrp__tabs .on { color: var(--brand); border-bottom: 0.16em solid var(--brand); padding-bottom: 0.4em; }
.scrp__banner { display: flex; align-items: center; gap: 0.4em; background: var(--brand-tint); color: var(--brand); border-radius: 0.6em; padding: 0.55em 0.7em; font-size: 0.6em; font-weight: 600; }
.scrp__banner svg { width: 1em; height: 1em; }
.scrp__fields { display: flex; gap: 0.6em; margin: 0.8em 0; }
.scrp__field { flex: 1; }
.scrp__field small { color: var(--muted); font-size: 0.58em; }
.scrp__qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 0.6em; padding: 0.45em 0.7em; margin-top: 0.25em; font-weight: 700; font-size: 0.78em; }
.scrp__qty span { color: var(--muted-2); }
.scrp__price { border: 1px solid var(--brand); border-radius: 0.6em; padding: 0.5em 0.7em; margin-top: 0.25em; font-family: var(--font-display); font-weight: 700; font-size: 0.82em; text-align: center; }
.scrp__cost { display: flex; justify-content: space-between; background: var(--surface-2); border-radius: 0.6em; padding: 0.6em 0.8em; font-size: 0.62em; }
.scrp__cost small { display: block; color: var(--muted); }
.scrp__cost b { font-size: 1.15em; }
.scrp__btn { margin-top: 0.8em; background: var(--brand); color: #fff; text-align: center; border-radius: 0.7em; padding: 0.75em; font-weight: 600; font-size: 0.72em; display: flex; align-items: center; justify-content: center; gap: 0.4em; }
.scrp__btn svg { width: 1em; height: 1em; }

/* ---- COINS ---- */
.scrc { background: #fff; padding: 1.1em 0.9em; overflow: hidden; }
.scrc__h { font-family: var(--font-display); font-weight: 800; font-size: 1.25em; background: linear-gradient(100deg, var(--brand), #22a0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scrc__bal { display: inline-flex; align-items: center; gap: 0.4em; box-shadow: var(--shadow-card); border-radius: var(--r-pill); padding: 0.35em 0.8em; font-weight: 700; font-size: 0.7em; margin: 0.7em 0; }
.scrc__bal .c { width: 1.1em; height: 1.1em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b); }
.scrc__bal small { color: var(--muted); font-weight: 500; }
.cpack { display: flex; align-items: center; gap: 0.7em; border: 1px solid var(--line); border-radius: 0.8em; padding: 0.65em 0.75em; margin-top: 0.6em; }
.cpack.on { border-color: var(--brand); background: var(--brand-tint); }
.cpack .c { width: 1.9em; height: 1.9em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b); flex: none; }
.cpack__id { flex: 1; }
.cpack__id b { font-size: 0.78em; }
.cpack__id small { display: block; color: var(--muted); font-size: 0.58em; }
.cpack__id .best { display: inline-block; background: var(--brand); color: #fff; font-size: 0.85em; font-weight: 700; border-radius: 0.4em; padding: 0.05em 0.45em; margin-top: 0.2em; }
.cpack__pr { text-align: right; }
.cpack__pr s { color: var(--muted-2); font-size: 0.58em; }
.cpack__pr b { display: block; font-family: var(--font-display); font-size: 0.92em; color: var(--brand); }
.scrc__btn { margin-top: 0.9em; background: var(--brand); color: #fff; text-align: center; border-radius: 0.7em; padding: 0.75em; font-weight: 600; font-size: 0.74em; }

/* ---- AI (dark promo) ---- */
.scrai { background: radial-gradient(120% 80% at 80% 10%, rgba(124,58,237,.5), transparent 60%), #070a16; color: #fff; padding: 1.4em 1.1em; justify-content: center; gap: 0.2em; text-align: center; }
.scrai__days { font-family: var(--font-display); font-weight: 800; font-size: 2.5em; line-height: 0.95; letter-spacing: -0.02em; color: #3b82f6; text-shadow: 0 0 0.5em rgba(59,130,246,.7); }
.scrai__ft { font-size: 0.66em; font-weight: 700; letter-spacing: 0.5em; color: #9dc1ff; margin: 0.4em 0 1.4em; }
.scrai__unlock { font-family: var(--font-display); font-weight: 700; font-size: 1.1em; }
.scrai__unlock span { background: linear-gradient(100deg, #c084fc, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scrai__sub { color: rgba(255,255,255,.72); font-size: 0.68em; line-height: 1.5; margin: 0.7em 1em 1.6em; }
.scrai__btn { background: linear-gradient(100deg, #4f7cff, #a855f7); border-radius: var(--r-pill); padding: 0.8em; font-weight: 700; font-size: 0.78em; display: flex; align-items: center; justify-content: center; gap: 0.4em; box-shadow: 0 0.5em 1.4em rgba(124,58,237,.5); }
.scrai__btn svg { width: 1em; height: 1em; }
.scrai__not { color: rgba(255,255,255,.6); font-size: 0.66em; margin-top: 1em; }

/* Horizontal screenshot gallery */
.gallery-wrap {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px 24px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.gallery__item { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery__item .device { width: 232px; }
.gallery__cap { margin-top: 14px; font-size: 0.86rem; font-weight: 500; color: var(--muted); }

/* ----------------------------------------------------------------------------
   17c. TradeStox AI band
   ---------------------------------------------------------------------------- */
.aiband {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(124, 58, 237, 0.55), transparent 55%),
    radial-gradient(120% 120% at 10% 90%, rgba(0, 80, 255, 0.6), transparent 55%),
    #0b1020;
  color: #fff;
  padding: clamp(36px, 5vw, 64px);
}
.aiband__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.aiband .eyebrow { color: #c4b5fd; }
.aiband .eyebrow::before { background: #c4b5fd; }
.aiband h2 { color: #fff; margin: 16px 0 14px; }
.aiband h2 .grad-ai { background: linear-gradient(100deg, #60a5fa, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aiband p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; max-width: 46ch; }
.aiband__list { margin: 24px 0 30px; display: grid; gap: 14px; }
.aiband__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.aiband__list .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); flex: none; }
.aiband__list .dot svg { width: 17px; height: 17px; color: #c4b5fd; }
.aiband__media { display: flex; justify-content: center; }
.aiband__media .device { background: #05060c; }
.aiband__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.1); font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.aiband__pill .live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }

/* ----------------------------------------------------------------------------
   18b. Coin packs (inside pricing)
   ---------------------------------------------------------------------------- */
.coin-rows { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.coin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; transition: border-color 0.2s, background 0.2s; }
.coin-row.is-best { border-color: rgba(0, 80, 255, 0.4); background: var(--brand-tint); }
.coin-row__l { display: flex; align-items: center; gap: 12px; }
.coin-coin { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; color: #7a5300; background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b); box-shadow: inset 0 -2px 3px rgba(120, 80, 0, 0.3); }
.coin-row__amt { font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.1; }
.coin-row__amt small { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.coin-row__r { text-align: right; }
.coin-row__old { font-size: 0.76rem; color: var(--muted-2); text-decoration: line-through; }
.coin-row__price { font-family: var(--font-display); font-weight: 700; color: var(--brand); }
.coin-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; color: var(--brand); background: #fff; border: 1px solid rgba(0, 80, 255, 0.3); border-radius: var(--r-pill); padding: 2px 8px; margin-left: 8px; vertical-align: middle; }

/* ----------------------------------------------------------------------------
   18. Pricing
   ---------------------------------------------------------------------------- */
.pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 30px;
}
.plan--featured {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 130%);
  color: #fff;
  box-shadow: 0 28px 56px rgba(0, 80, 255, 0.32);
}
.plan__badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
}
.plan--featured .plan__badge { background: linear-gradient(120deg, var(--gold-1), var(--gold-2)); color: #1a1505; }
.plan:not(.plan--featured) .plan__badge { background: rgba(124, 58, 237, 0.12); color: var(--purple-1); }
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.plan--featured .plan__name { color: #fff; }
.plan:not(.plan--featured) .plan__name { color: var(--ink); }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan__price b { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; }
.plan:not(.plan--featured) .plan__price b { color: var(--ink); }
.plan__price span { font-size: 0.92rem; opacity: 0.7; }
.plan__sub { font-size: 0.86rem; opacity: 0.78; margin-bottom: 22px; }
.plan:not(.plan--featured) .plan__sub { color: var(--muted); }
.plan__list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.plan__list li { display: flex; align-items: center; gap: 11px; font-size: 0.92rem; }
.plan__list svg { width: 19px; height: 19px; flex: none; }
.plan--featured .plan__list { color: rgba(255, 255, 255, 0.92); }
.plan--featured .plan__list svg { color: var(--gold-1); }
.plan:not(.plan--featured) .plan__list { color: var(--text); }
.plan:not(.plan--featured) .plan__list svg { color: var(--up); }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.86rem; margin-top: 24px; }

/* ----------------------------------------------------------------------------
   19. FAQ
   ---------------------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
}
.faq__q .ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--brand); transition: transform 0.3s var(--ease), background 0.3s; }
.faq__q .ico svg { width: 16px; height: 16px; }
.faq__item.is-open .faq__q .ico { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq__a p { padding: 0 4px 24px; color: var(--text); font-size: 0.96rem; }

/* ----------------------------------------------------------------------------
   20. CTA band
   ---------------------------------------------------------------------------- */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 120%);
  color: #fff;
  padding: clamp(48px, 7vw, 80px) clamp(28px, 5vw, 72px);
  overflow: hidden;
  text-align: center;
}
.cta__glow { position: absolute; inset: 0; background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.16), transparent 45%), radial-gradient(circle at 85% 90%, rgba(251, 191, 36, 0.18), transparent 50%); }
.cta__inner { position: relative; max-width: 640px; margin-inline: auto; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.86); margin: 16px auto 30px; font-size: 1.08rem; max-width: 50ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ----------------------------------------------------------------------------
   21. Footer
   ---------------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); padding: clamp(56px, 7vw, 88px) 0 36px; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; max-width: 34ch; }
.footer__brand .tagline { font-family: var(--font-eyebrow); font-size: 0.72rem; letter-spacing: 0.24em; color: var(--brand-300); margin-top: 16px; text-transform: uppercase; }
.footer__col h4 { font-family: var(--font-ui); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.62); transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; color: rgba(255, 255, 255, 0.7); transition: background 0.2s, color 0.2s; }
.footer__socials a:hover { background: var(--brand); color: #fff; }
.footer__socials svg { width: 18px; height: 18px; }
.footer__legal { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer__legal p { font-size: 0.84rem; color: rgba(255, 255, 255, 0.5); }
.footer__legal nav { display: flex; gap: 22px; }
.footer__legal nav a { font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); }
.footer__legal nav a:hover { color: #fff; }
.footer__disclaimer { margin-top: 24px; padding: 18px 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--r-md); font-size: 0.8rem; line-height: 1.65; color: rgba(255, 255, 255, 0.5); }

/* ----------------------------------------------------------------------------
   22. Legal / prose pages
   ---------------------------------------------------------------------------- */
.legal-hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 40px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.legal-hero .updated { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.prose { max-width: 760px; margin-inline: auto; padding: clamp(48px, 6vw, 72px) var(--gutter); }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; line-height: 1.75; }
.prose ul { margin: 0 0 16px; padding-left: 4px; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { display: flex; gap: 11px; line-height: 1.65; }
.prose ul li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); flex: none; margin-top: 9px; }
.prose a { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose__toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 40px; }
.prose__toc h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 12px; color: var(--ink); }
.prose__toc ol { padding-left: 20px; color: var(--text); display: flex; flex-direction: column; gap: 7px; }
.prose__toc a { color: var(--text); text-decoration: none; font-size: 0.94rem; }
.prose__toc a:hover { color: var(--brand); }

/* ----------------------------------------------------------------------------
   23. Scroll reveal
   ---------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------------
   24. Responsive
   ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: 46ch; }
  .phone-stage { margin-top: 8px; }
  .contest-wrap { grid-template-columns: 1fr; }
  .show-row { grid-template-columns: 1fr; gap: 32px; }
  .show-row:nth-child(even) .show-row__media { order: 0; }
  .show-row__media { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps__line { display: none; }
  .aiband__grid { grid-template-columns: 1fr; gap: 36px; }
  .aiband__media { order: -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .float-card--a { left: -2%; top: 6%; }
  .float-card--b { right: -2%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .cta__actions .btn { width: 100%; }
}
