/* Dumb Brain Sports — site styles
   Palette pulled from the app's brand colors:
   primary navy #162C5B, accent blue #1E90FF, background #0B0B0D / surface #1C1C1E */

:root {
  --bg: #0b0b0d;
  --bg-elevated: #141417;
  --surface: #1c1c1e;
  --surface-2: #232327;
  --primary: #162c5b;
  --accent: #1e90ff;
  --accent-soft: rgba(30, 144, 255, 0.12);
  --orange: #f5821f;
  --purple: #a855f7;
  --green: #22c55e;
  --text: #f5f5f7;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
  box-shadow: 0 10px 28px rgba(30, 144, 255, 0.35);
}

.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

.btn.disabled {
  background: var(--surface-2);
  color: var(--text-dim);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      900px 420px at 50% -10%,
      rgba(30, 144, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(700px 360px at 80% 10%, rgba(168, 85, 247, 0.1), transparent 60%),
    radial-gradient(700px 360px at 15% 20%, rgba(245, 130, 31, 0.08), transparent 60%);
  z-index: -1;
}

.hero img.hero-logo {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  margin: 0 auto 28px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 auto 20px;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.sub {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 34px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */
section.block {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 64ch;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ---------- The Idea steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.step .num {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}

.step:nth-child(1) .num {
  background: var(--accent-soft);
  color: var(--accent);
}

.step:nth-child(2) .num {
  background: rgba(168, 85, 247, 0.14);
  color: var(--purple);
}

.step:nth-child(3) .num {
  background: rgba(34, 197, 94, 0.14);
  color: var(--green);
}

.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}

.feature.reverse .feature-media {
  order: 2;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-media img {
  width: 100%;
  max-width: 300px;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.feature-text .eyebrow {
  margin-bottom: 14px;
}

.feature-text h3 {
  font-size: clamp(24px, 3.4vw, 33px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 14px;
}

.feature-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-text li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 16px;
}

.feature-text li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Token strip ---------- */
.token-strip {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}

.token-strip h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.token-strip p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 60px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- Legal / content pages ---------- */
.legal {
  padding: 56px 0 40px;
  max-width: 800px;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 34px 0 12px;
}

.legal h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 8px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal a {
  text-decoration: underline;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0;
  }
  .feature.reverse .feature-media {
    order: 0;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .token-strip {
    padding: 28px 20px;
  }
  .wrap {
    padding: 0 18px;
  }
}
