/* BetThat — landing page styles.
   Palette mirrors the app (theme/tokens.ts): near-black bg, one bold red accent. */

:root {
  --accent: #ff4d4d;
  --accent-dark: #e03a3a;
  --bg: #0b0b0f;
  --surface: #16161d;
  --surface-alt: #1f1f29;
  --border: #2a2a36;
  --text: #ffffff;
  --muted: #9a9aa8;
  --gold: #f2c037;
  --radius: 16px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo { width: 32px; height: 32px; border-radius: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-dark); }

/* ---------- hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px 72px;
  flex-wrap: wrap;
}

.hero-text { max-width: 520px; }

.hero h1 {
  font-size: clamp(44px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* phone frame around the hero screenshot */
.phone {
  width: 280px;
  border-radius: 40px;
  border: 3px solid var(--border);
  background: var(--surface);
  padding: 10px;
  overflow: hidden;
}

.phone .shot {
  display: block;
  width: 100%;
  border-radius: 30px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s, background 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-ghost:hover { border-color: var(--muted); }

.btn-big { font-size: 18px; padding: 16px 34px; }

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.section h2 {
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
  text-align: left;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- screenshots ---------- */
.section-shots { padding-bottom: 24px; }

.shots-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 28px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots-row img {
  height: 480px;
  border-radius: 24px;
  border: 2px solid var(--border);
  scroll-snap-align: center;
  flex: 0 0 auto;
}

/* ---------- feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
  text-align: left;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--accent); }

.card-icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- pro ---------- */
.pro-box {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 24px;
  padding: 44px 36px;
}

.pro-crown { font-size: 40px; margin-bottom: 10px; }
.pro-box h2 { color: var(--gold); }
.pro-box p { color: var(--muted); margin-top: 10px; }
.pro-price { font-weight: 700; color: var(--text) !important; }

/* ---------- download ---------- */
.section-download p { color: var(--muted); margin-bottom: 26px; }
.download-note { font-size: 14px; margin-top: 18px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 48px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--muted); font-size: 14px; }
.footer-fine { color: var(--border); font-size: 12px; margin-top: 8px; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 56px; gap: 40px; }
  .shots-row img { height: 380px; }
}
