/* CrowdPick official site */

:root {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --ink: #0D0F1A;
  --ink-2: #1C2240;
  --muted: #6B7280;
  --muted-2: #8892A4;
  --line: #E8E7E1;
  --line-2: #D8D7D1;

  --accent: #00C853;
  --accent-bright: #00E676;
  --accent-deep: #003322;
  --accent-tint: rgba(0, 200, 83, 0.08);

  --warn: #E65100;
  --gold: #FFB300;
  --red: #FF3D57;

  --dark-bg: #0D0F1A;
  --dark-card: #161B2E;
  --dark-elev: #1C2240;

  --radius-card: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-sans: 'Geist', 'Söhne', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

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

/* utility */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-accent { color: var(--accent); }

.h-display {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.h-card {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0;
}

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.tnum { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }

/* App store badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 12px 18px 12px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1; font-weight: 500;
  transition: transform 0.15s ease;
}
.appstore-badge:hover { transform: translateY(-1px); }
.appstore-badge .apple {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.appstore-badge .label { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; line-height: 1; }
.appstore-badge .small { font-size: 10px; opacity: 0.8; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-ghost:hover { background: rgba(0,0,0,0.03); }

/* ─── Sections ─── */
section { position: relative; }

.divider { border-top: 1px solid var(--line); width: 100%; }
.hairline { height: 1px; background: var(--line); width: 100%; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(232, 231, 225, 0.6);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--ink); color: var(--accent-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: var(--muted);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }

/* ─── Hero ─── */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-deep);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  width: fit-content;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); position: relative;
}
.hero-eyebrow .dot::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--accent); opacity: 0.4;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 24px; align-items: center;
  padding-top: 8px;
  font-size: 13px; color: var(--muted);
}
.hero-meta .check {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-meta .check svg { color: var(--accent); }

.phone-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  height: 720px;
}
.phone-wrap .bg-glow {
  position: absolute; inset: -10% -20%;
  background: radial-gradient(ellipse at 60% 40%, rgba(0, 230, 118, 0.12), transparent 60%);
  pointer-events: none;
}
.phone-scale {
  transform: scale(0.78);
  transform-origin: center center;
}
@media (max-width: 1100px) {
  .phone-scale { transform: scale(0.7); }
  .phone-wrap { height: 640px; }
}

/* ─── Ticker ─── */
.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ticker-track {
  display: flex; gap: 0;
  animation: ticker 60s linear infinite;
  width: max-content;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  font-size: 13px;
  border-right: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
.ticker-item .cat {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent-bright); letter-spacing: 0.08em;
}
.ticker-item .title { color: rgba(255,255,255,0.85); font-weight: 400; }
.ticker-item .pct { font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.ticker-item .delta-up { color: var(--accent-bright); }
.ticker-item .delta-down { color: var(--red); }
.ticker-item .delta-flat { color: rgba(255,255,255,0.5); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Stats strip ─── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.stat { padding: 0 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat-num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  font-feature-settings: 'tnum';
}
.stat-label {
  margin-top: 12px;
  font-size: 13px; color: var(--muted);
  line-height: 1.4;
}

/* ─── Generic section ─── */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head .h-section { margin-top: 16px; }
.section-head .lede { margin-top: 20px; }

/* ─── Feature: aggregation ─── */
.platforms-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.platform-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 140px;
}
.platform-card .name { font-size: 15px; font-weight: 500; }
.platform-card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.platform-card .num { font-family: var(--font-mono); font-size: 24px; font-weight: 500; margin-top: auto; }

/* ─── Dashboard mockup (light) ─── */
.dash {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 15, 26, 0.04), 0 20px 60px -20px rgba(13, 15, 26, 0.12);
}
.dash-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.dash-head .lights { display: flex; gap: 6px; }
.dash-head .lights span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2);
}
.dash-body { padding: 24px; }

/* ─── Feature: alerts ─── */
.alert-mock {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex; gap: 14px; align-items: flex-start;
}
.alert-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-tint); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ─── Sports grid ─── */
.sports-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.sport-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 120px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sport-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sport-card .glyph {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--accent-bright);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.sport-card .name { font-size: 15px; font-weight: 500; }
.sport-card .count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-top: auto; }

/* ─── FAQ ─── */
.faq-row {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.faq-row:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.faq-a { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ─── Final CTA ─── */
.final-cta {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.final-cta .h-section { color: #fff; }
.final-cta .lede { color: rgba(255,255,255,0.65); }
.final-cta-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(0,230,118,0.18), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(0,230,118,0.08), transparent 50%);
}

.appstore-badge.light {
  background: #fff; color: var(--ink);
}

/* ─── Footer ─── */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 500; color: var(--ink);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin: 0 0 16px;
  font-family: var(--font-mono);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { transition: color 0.15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.footer-disclaimer {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 61, 87, 0.04);
  border: 1px solid rgba(255, 61, 87, 0.15);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  display: flex; gap: 10px; align-items: flex-start;
}
.footer-disclaimer svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-wrap { height: 560px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 0; border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child, .stat:nth-child(2) { border-top: none; }
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .final-cta { grid-template-columns: 1fr; }
  .faq-row { grid-template-columns: 1fr; gap: 12px; }
  .nav-links { display: none; }
}

/* ─── Accent theme variants ─── */
[data-accent="blue"] {
  --accent: #2A6FDB;
  --accent-bright: #4D8AED;
  --accent-deep: #0F2C5C;
  --accent-tint: rgba(42, 111, 219, 0.08);
}
[data-accent="amber"] {
  --accent: #E89D00;
  --accent-bright: #FFB300;
  --accent-deep: #3D2700;
  --accent-tint: rgba(232, 157, 0, 0.1);
}

/* ─── Dark page theme ─── */
[data-theme="dark"] {
  --bg: #0A0C14;
  --bg-elev: #14172A;
  --ink: #F5F5F2;
  --ink-2: #E5E7EB;
  --muted: #8892A4;
  --muted-2: #6B7280;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
}
[data-theme="dark"] .nav {
  background: rgba(10, 12, 20, 0.85);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .brand-mark { background: var(--accent-bright); color: var(--ink); }
[data-theme="dark"] .appstore-badge { background: #fff; color: #0D0F1A; }
[data-theme="dark"] .appstore-badge.light { background: var(--accent-bright); color: #0D0F1A; }
[data-theme="dark"] .btn-ghost { border-color: rgba(255,255,255,0.14); color: var(--ink); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .final-cta { background: #14172A; }
[data-theme="dark"] .footer-disclaimer { background: rgba(255, 61, 87, 0.06); border-color: rgba(255, 61, 87, 0.18); color: rgba(255,255,255,0.75); }
