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

:root {
  --navy: #1a2b4a;
  --navy-dark: #0f1d35;
  --navy-light: #2c4470;
  --cream: #f5efe3;
  --cream-soft: #faf7f0;
  --accent: #c8a96a;
  --accent-light: #e0c48a;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --radius: 14px;
  --font: 'Nunito', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(26, 43, 74, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 12px;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.nav-links a.cta {
  background: var(--accent);
  color: var(--navy-dark);
}
.nav-links a.cta:hover {
  background: var(--accent-light);
}

/* ─── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(200, 169, 106, 0.18);
  border: 1px solid rgba(200, 169, 106, 0.5);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 44px;
  font-weight: 600;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}
.btn-store {
  display: inline-block;
  transition:
    transform 0.2s,
    filter 0.2s;
}
.btn-store:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}
.btn-store img {
  display: block;
  width: auto;
}
.badge-apple,
.badge-google {
  height: 52px;
}

/* Phone screenshots */
.hero-phones {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.phone-frame {
  width: 200px;
  border-radius: 32px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-dark);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s;
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.phone-frame.featured {
  width: 230px;
  transform: translateY(-16px);
  border-color: rgba(200, 169, 106, 0.45);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

/* ─── SECTION SHARED ──────────────────────────────── */
section {
  padding: 96px 24px;
}
.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-sub {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 60px;
  line-height: 1.7;
  font-weight: 600;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── FEATURES ────────────────────────────────────── */
.features {
  background: var(--cream);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(26, 43, 74, 0.08);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26, 43, 74, 0.15);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-mid);
  font-weight: 600;
}

/* ─── GAMES ───────────────────────────────────────── */
.games {
  background: var(--cream-soft);
}
.games-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}
.game-chip {
  background: var(--white);
  border: 2px solid #e3dccb;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 100px;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
  cursor: default;
}
.game-chip:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: scale(1.04);
}
.game-chip.more {
  background: transparent;
  border-style: dashed;
  color: var(--text-mid);
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  padding: 32px 24px;
  text-align: center;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-logo span {
  color: var(--accent);
}
footer p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
footer a {
  color: rgba(255, 255, 255, 0.5);
}

/* ─── INFO PAGES (privacy, support) ───────────────── */
.page-hero {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 120px 24px 64px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 600;
}
.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-body h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
  margin: 40px 0 12px;
}
.page-body p,
.page-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
  font-weight: 600;
}
.page-body p {
  margin-bottom: 16px;
}
.page-body ul {
  margin: 0 0 16px 24px;
}
.page-body strong {
  color: var(--text-dark);
}
.page-body a {
  color: var(--navy);
  font-weight: 700;
}
.page-body a:hover {
  color: var(--navy-light);
}
.page-body .last-updated {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e8e0f0;
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 600;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 640px) {
  nav {
    padding: 16px 20px;
  }
  .nav-links a:not(.cta) {
    display: none;
  }
  .hero-phones .phone-frame:not(.featured) {
    display: none;
  }
  .feature-card {
    padding: 24px 20px;
  }
}
