/* ============================================================
   UPredict — shared stylesheet (index, privacy, terms, disclaimer)
   ============================================================ */

:root {
  --accent: #00FF99;
  --accent-ink: #003D26;
  --bg: #222428;
  --surface: #2C2F35;
  --surface-2: #34373d;
  --fg: #FFFFFF;
  --muted: #8A8F96;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;

  /* Light theme reference values (app also ships a light theme; the site stays dark-only) */
  --light-accent: #007A4D;
  --light-bg: #F2F2F7;
  --light-surface: #FFFFFF;
  --light-fg: #000000;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

h1, h2, h3 { font-family: 'Inter', sans-serif; margin: 0; }

h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
  font-weight: 700;
}

p { margin: 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

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

section { padding: 96px 0; }

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  height: 28px;
}

.logo svg { height: 100%; width: auto; display: block; }

footer .logo { height: 24px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #06110c;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 255, 153, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}

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

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- Chip (100% free callout) ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 255, 153, 0.1);
  border: 1px solid rgba(0, 255, 153, 0.35);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.chip svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- App Store badge ---------- */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 11px 22px 11px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.appstore-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.appstore-badge svg { width: 26px; height: 26px; flex-shrink: 0; }

.appstore-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.appstore-badge .badge-text small {
  font-size: 11px;
  font-weight: 400;
  color: #cfcfcf;
}

.appstore-badge .badge-text strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.badge-lg .badge-text strong { font-size: 22px; }
.badge-lg { padding: 14px 26px 14px 20px; }
.badge-lg svg { width: 30px; height: 30px; }

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(34, 36, 40, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow { display: block; }

.hero h1 { margin-bottom: 20px; }

.hero-copy p.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-note {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 255, 153, 0.35) 0%, rgba(0, 255, 153, 0) 70%);
  filter: blur(10px);
  z-index: 0;
}

/* ---------- Device mockup images ----------
   The source PNGs already render a full phone bezel on a transparent
   background, so these are presented directly (no extra CSS frame/border) —
   only a drop-shadow is added for depth against the dark page. */

.phone-frame {
  position: relative;
  z-index: 1;
  width: 280px;
}

.phone-frame img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.phone-frame.phone-frame-sm {
  width: 220px;
}

/* ---------- Screenshot thumbnails (How It Works) ---------- */

.shot-thumb {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.shot-thumb img {
  width: 100%;
  max-width: 220px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4));
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 18px;
  display: inline-block;
}

.feature-card h3 { margin-bottom: 10px; }

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

/* ---------- How it works ---------- */

.steps-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step h3 { margin-bottom: 10px; }

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

/* ---------- Fan Pulse ---------- */

.fanpulse {
  position: relative;
  padding: 110px 0;
  background: #101114;
  overflow: hidden;
}

.fanpulse-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/stadium.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.75;
}

.fanpulse-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 17, 20, 0.35) 0%, rgba(16, 17, 20, 0.85) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(16, 17, 20, 0.88) 0%, rgba(16, 17, 20, 0.15) 60%);
}

.fanpulse .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

.fanpulse h2 { margin-bottom: 18px; }

.fanpulse p.lead {
  color: #d3d6da;
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 30px;
}

.fanpulse-visual { display: flex; justify-content: center; }

/* ---------- Download section ---------- */

.download-section {
  text-align: center;
  padding: 130px 0;
}

.download-section h2 { margin-bottom: 14px; }

.download-section p.lead {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 36px;
}

.download-section .hero-note { margin-top: 20px; }

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-trademark {
  font-size: 12px;
  color: #64686f;
  max-width: 720px;
}

/* ---------- Legal pages ---------- */

.legal-page main {
  padding: 150px 0 100px;
}

.legal-page h1 { margin-bottom: 8px; }

.legal-effective {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-page section,
.legal-page .legal-intro {
  padding: 0;
  margin-bottom: 36px;
  max-width: 760px;
}

.legal-page h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.legal-page p {
  color: #c7cad0;
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-page a.inline-link {
  color: var(--accent);
  text-decoration: underline;
}

.legal-page ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #c7cad0;
  font-size: 16px;
}

.legal-page ul li {
  margin-bottom: 6px;
}

.legal-page .contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.legal-page .contact-block p {
  margin-bottom: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (min-width: 768px) {
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }

  .fanpulse .container { grid-template-columns: 1.1fr 0.9fr; }
}

@media (min-width: 1024px) {
  h1 { font-size: 60px; }

  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
  .hero-copy { text-align: left; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
