/* ==========================================================================
   Polymarquette — landing page
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --border: #e7e9ee;
  --border-strong: #d4d8e0;
  --text: #0b0f19;
  --text-2: #4a5160;
  --text-3: #6b7280;

  --accent: #2f5bff;
  --accent-hover: #2449e0;
  --accent-soft: rgba(47, 91, 255, 0.09);
  --gold: #ffc93c;

  --yes: #16a34a;
  --yes-soft: rgba(22, 163, 74, 0.1);
  --no: #e5484d;
  --no-soft: rgba(229, 72, 77, 0.1);

  --c-meetings: #2f5bff;
  --c-kitchen: #f97316;
  --c-office: #8b5cf6;
  --c-tech: #0ea5a4;
  --c-people: #ec4899;

  --dot: rgba(15, 23, 42, 0.08);
  --glow: rgba(47, 91, 255, 0.13);
  --glow-2: rgba(255, 201, 60, 0.14);

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 1px 2px rgba(16, 24, 40, 0.04), 0 24px 48px -16px rgba(16, 24, 40, 0.18);

  --radius: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c10;
    --bg-soft: #0f1217;
    --surface: #13161c;
    --border: #1f242d;
    --border-strong: #2d333e;
    --text: #edf0f5;
    --text-2: #a3abb9;
    --text-3: #8a93a3;
    --accent: #5b80ff;
    --accent-hover: #7895ff;
    --accent-soft: rgba(91, 128, 255, 0.14);
    --yes: #2fbf71;
    --yes-soft: rgba(47, 191, 113, 0.14);
    --no: #ff6369;
    --no-soft: rgba(255, 99, 105, 0.14);
    --c-meetings: #6b8cff;
    --c-kitchen: #fb923c;
    --c-office: #a78bfa;
    --c-tech: #2dd4bf;
    --c-people: #f472b6;
    --dot: rgba(255, 255, 255, 0.06);
    --glow: rgba(91, 128, 255, 0.16);
    --glow-2: rgba(255, 201, 60, 0.07);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0c10;
  --bg-soft: #0f1217;
  --surface: #13161c;
  --border: #1f242d;
  --border-strong: #2d333e;
  --text: #edf0f5;
  --text-2: #a3abb9;
  --text-3: #8a93a3;
  --accent: #5b80ff;
  --accent-hover: #7895ff;
  --accent-soft: rgba(91, 128, 255, 0.14);
  --yes: #2fbf71;
  --yes-soft: rgba(47, 191, 113, 0.14);
  --no: #ff6369;
  --no-soft: rgba(255, 99, 105, 0.14);
  --c-meetings: #6b8cff;
  --c-kitchen: #fb923c;
  --c-office: #a78bfa;
  --c-tech: #2dd4bf;
  --c-people: #f472b6;
  --dot: rgba(255, 255, 255, 0.06);
  --glow: rgba(91, 128, 255, 0.16);
  --glow-2: rgba(255, 201, 60, 0.07);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tnum { font-variant-numeric: tabular-nums; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn .i { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover .i { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--bg-soft); }

.btn-dark { background: #0b0f19; color: #fff; }
.btn-dark:hover { background: #1c2333; }

.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn .i { width: 18px; height: 18px; }

.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* Nav -------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--text);
}
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -10% auto auto;
  width: 900px;
  height: 900px;
  background:
    radial-gradient(closest-side at 60% 55%, var(--glow), transparent),
    radial-gradient(closest-side at 25% 75%, var(--glow-2), transparent 70%);
  pointer-events: none;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill .i { width: 14px; height: 14px; color: var(--text-3); }

.pill-dot, .live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yes);
  flex: none;
}
.pill-dot::after, .live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.live-dot { background: var(--no); }

@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero h1 .accent { color: var(--accent); }

.lede {
  max-width: 34em;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-3);
}
.social-proof em { font-style: italic; color: var(--text-2); }
.avatars { display: flex; }
.avatars span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--av);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
.avatars span:first-child { margin-left: 0; }

/* Feature card ----------------------------------------------------------- */

.feature-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.fc-head { display: flex; align-items: center; gap: 14px; }
.fc-cat { margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.fc-title { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }

.fc-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
  color: var(--accent);
}
.fc-pct {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fc-chance { font-size: 16px; font-weight: 600; }

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.delta.up { color: var(--yes); }
.delta.down { color: var(--no); }
.delta small { font-size: 13px; font-weight: 500; color: var(--text-3); }

.tri { width: 8px; height: 8px; fill: currentColor; flex: none; }
.down .tri { transform: rotate(180deg); }

.chart { display: block; width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.chart-grid line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-y text, .chart-x text {
  fill: var(--text-3);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.chart-line.drawing { transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1); }
.chart-area { transition: opacity 0.8s ease 0.5s; }
.chart-area.hidden { opacity: 0; transition: none; }
.chart-series.sliding { transition: transform 0.9s cubic-bezier(0.33, 1, 0.68, 1); }
.chart-dot { transition: transform 0.9s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.3s ease; }
.chart-dot.hidden { opacity: 0; transition: none; }
.chart-dot .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart-dot .pulse {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: chart-pulse 2s ease-out infinite;
}
@keyframes chart-pulse {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(3.2); opacity: 0; }
}

.fc-ranges { display: flex; gap: 2px; margin-top: 6px; }
.fc-ranges button {
  padding: 4px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.fc-ranges button:hover { color: var(--text); }
.fc-ranges button[aria-pressed="true"] { background: var(--bg-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }

.fc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

.trade {
  height: 50px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.trade span { margin-left: 2px; opacity: 0.85; font-variant-numeric: tabular-nums; }
.trade:active { transform: scale(0.98); }
.trade.yes { background: var(--yes-soft); color: var(--yes); }
.trade.no { background: var(--no-soft); color: var(--no); }
.trade.yes:hover { background: var(--yes); color: #fff; }
.trade.no:hover { background: var(--no); color: #fff; }

.fc-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

/* Market icon ------------------------------------------------------------ */

.market-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
}
.market-icon.lg { width: 48px; height: 48px; border-radius: 12px; }
.market-icon.lg .i { width: 24px; height: 24px; }

/* Ticker ----------------------------------------------------------------- */

.ticker {
  display: flex;
  align-items: stretch;
  height: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 24px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.ticker-items {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: marquee 70s linear infinite;
}
.ticker:hover .ticker-items { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--text-2);
  border-right: 1px solid var(--border);
}
.tick-name { color: var(--text); font-weight: 500; }
.tick-pct { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.tick .delta { margin: 0; font-size: 13px; }

/* Stats ------------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 56px;
  padding-bottom: 8px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 24px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 14.5px; color: var(--text-2); }

/* Sections --------------------------------------------------------------- */

.section { padding: 104px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 40px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: 28px;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-sub {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}

/* Filter chips ----------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chips button:hover { border-color: var(--border-strong); color: var(--text); }
.chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Market cards ----------------------------------------------------------- */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.market {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 212px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: card-in 0.4s ease both;
}
.market:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.market-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.market.multi .market-head { grid-template-columns: 40px minmax(0, 1fr); }

.market-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.012em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gauge { position: relative; width: 58px; text-align: center; margin-top: -2px; }
.gauge svg { display: block; width: 58px; height: 34px; overflow: visible; }
.gauge path { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.g-track { stroke: var(--border); }
.g-fill { stroke: var(--tone); transition: stroke-dasharray 0.6s ease, stroke 0.3s ease; }
.gauge[data-tone="yes"] { --tone: var(--yes); }
.gauge[data-tone="no"] { --tone: var(--no); }
.g-num {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.g-label { display: block; margin-top: 1px; font-size: 11px; color: var(--text-3); }

.market-body { margin-top: auto; }

.bets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bet {
  height: 40px;
  border: 0;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.bet:active { transform: scale(0.97); }
.bet.yes { background: var(--yes-soft); color: var(--yes); }
.bet.no { background: var(--no-soft); color: var(--no); }
.bet.yes:hover { background: var(--yes); color: #fff; }
.bet.no:hover { background: var(--no); color: #fff; }

.outcomes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.outcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 14px;
}
.o-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-pct { min-width: 3ch; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 4px; }
.outcome .bet { height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; }

.market-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
}
.market-foot span:first-child { font-variant-numeric: tabular-nums; }

.flash-up { animation: flash-up 1s ease; }
.flash-down { animation: flash-down 1s ease; }
@keyframes flash-up { 0%, 35% { color: var(--yes); } }
@keyframes flash-down { 0%, 35% { color: var(--no); } }

/* Steps ------------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.step {
  padding: 12px 12px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step .step-num, .step h3, .step p { margin-left: 16px; margin-right: 16px; }
.step-num {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 6px; font-size: 20px; letter-spacing: -0.025em; }
.step p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

.viz {
  display: grid;
  place-items: center;
  height: 148px;
  border-radius: 10px;
  background:
    radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--bg-soft);
  overflow: hidden;
}

.viz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 260px; }
.viz-chips span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.viz-chips .on { background: var(--text); border-color: var(--text); color: var(--bg); }

.viz-trade { display: flex; gap: 8px; }
.vt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}
.vt b { font-weight: 600; opacity: 0.8; }
.vt.yes { background: var(--yes); color: #fff; box-shadow: 0 6px 16px -6px var(--yes); }
.vt.no { background: var(--surface); color: var(--no); border: 1px solid var(--border); }

.viz-resolved { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--yes-soft);
  color: var(--yes);
  font-size: 14px;
  font-weight: 600;
}
.vr-badge .i { width: 16px; height: 16px; stroke-width: 2.4; }
.vr-gain { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

/* Leaderboard ------------------------------------------------------------ */

.lb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 72px;
}

.quote {
  margin: 36px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 500; letter-spacing: -0.01em; }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-3);
}

.av {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--av);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.quote .av { width: 28px; height: 28px; font-size: 10.5px; }

.board {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.board-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.board-title .i { color: #e0a800; }
.board-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}

.board-list { margin: 0; padding: 6px 0; list-style: none; }
.board-list li {
  display: grid;
  grid-template-columns: 24px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  transition: background-color 0.15s ease;
}
.board-list li + li { border-top: 1px solid var(--border); }
.board-list li:hover { background: var(--bg-soft); }

.rank { font-size: 14px; font-weight: 600; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank.gold { color: #d49b00; }
.rank.silver { color: #8e98a8; }
.rank.bronze { color: #c0723a; }

.who { display: flex; flex-direction: column; min-width: 0; }
.who strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { font-size: 13px; color: var(--text-3); }

.pnl {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 15px;
  font-weight: 700;
  color: var(--yes);
  font-variant-numeric: tabular-nums;
}
.pnl small { font-size: 12px; font-weight: 500; color: var(--text-3); }

/* FAQ -------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}

.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { width: 18px; height: 18px; color: var(--text-3); transition: transform 0.25s ease; }
.faq-list details[open] summary .i { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 22px 0; margin-top: -6px; font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* CTA -------------------------------------------------------------------- */

.cta-section { padding-top: 104px; }

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 48px;
  border-radius: 28px;
  background: #2f5bff;
  color: #fff;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 20%, transparent 70%);
}
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -20% -70% -20%;
  height: 120%;
  background:
    radial-gradient(closest-side at 30% 50%, rgba(255, 201, 60, 0.35), transparent),
    radial-gradient(closest-side at 75% 45%, rgba(130, 90, 255, 0.55), transparent);
  filter: blur(10px);
}
.cta h2 {
  max-width: 14em;
  margin: 0 auto;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #fff;
}
.cta > p { max-width: 30em; margin: 18px auto 0; font-size: 18px; color: rgba(255, 255, 255, 0.82); }

.cta-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 32px auto 0;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cta-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: #0b0f19;
  font: inherit;
  font-size: 15.5px;
}
.cta-form input::placeholder { color: #8a93a3; }
.cta-form input:focus-visible { outline: 2px solid #0b0f19; outline-offset: 0; }
.cta-form .btn { border-radius: 11px; }

.cta-done {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

/* Footer ----------------------------------------------------------------- */

.footer { padding: 72px 0 40px; }
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand p { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-legal p {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

/* Toast ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--yes);
  color: #fff;
}
.toast.no .toast-icon { background: var(--no); }
.toast-icon .i { width: 16px; height: 16px; stroke-width: 2.6; }
.toast-text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; }
.toast-text strong { font-weight: 600; }
.toast-text span { opacity: 0.7; }

/* Reveal on scroll ------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { max-width: 560px; }
  .lb-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 80px 0; }
  .cta-section { padding-top: 80px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 56px; }
  .lede { font-size: 17px; }
  .hero-ctas .btn { flex: 1; }
  .social-proof { align-items: flex-start; }
  .feature-card { padding: 18px; border-radius: 18px; }
  .fc-title { font-size: 18px; }
  .fc-pct { font-size: 32px; }
  .fc-foot { flex-direction: column; gap: 4px; }
  .ticker-label { padding: 0 14px 0 16px; }
  .stat { padding: 0 16px; }
  .stat-num { font-size: 32px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
  .board-list li { gap: 12px; padding: 12px 16px; grid-template-columns: 18px 32px minmax(0, 1fr) auto; }
  .board-head { padding: 16px; }
  .av { width: 32px; height: 32px; }
  .faq-list details p { padding-right: 0; }
  .cta { padding: 56px 20px; border-radius: 22px; }
  .cta-form { flex-direction: column; }
  .cta-form .btn { width: 100%; }
  .footer-legal p { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-items { animation: none; }
  .ticker-track { overflow-x: auto; scrollbar-width: none; }
  .js .reveal { opacity: 1; transform: none; }
}
