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

:root {
  --bg-deep:    #0a1628;
  --bg-card:    #0f1e37;
  --bg-card2:   #0d1a30;
  --blue-700:   #1d4ed8;
  --blue-600:   #2563eb;
  --blue-400:   #60a5fa;
  --blue-300:   #93c5fd;
  --blue-200:   #bfdbfe;
  --text-main:  #e2e8f0;
  --text-muted: #64748b;
  --text-dim:   #334155;
  --accent-hit: #f97316;
  --border:     rgba(59, 130, 246, 0.15);
  --glow:       rgba(59, 130, 246, 0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

nav.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue-300);
}

.nav-logo .plane { font-size: 18px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

/* ── HERO ── */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 48px 64px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 60%, rgba(29, 78, 216, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--blue-600);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #f1f5f9;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--blue-400);
  text-shadow: 0 0 32px rgba(96, 165, 250, 0.35);
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-600);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--blue-400);
  border: 1px solid var(--blue-600);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-ghost:hover { background: rgba(37, 99, 235, 0.1); transform: translateY(-1px); }

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-400);
  line-height: 1;
}

.stat-lbl {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero phone */
.hero-phone-wrap { display: flex; justify-content: center; }

.phone-frame {
  background: var(--bg-card2);
  border: 2px solid rgba(96, 165, 250, 0.3);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 0 48px rgba(59, 130, 246, 0.12), 0 24px 64px rgba(0, 0, 0, 0.5);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1000px;
  margin: 0 auto;
}

/* ── SECTION SHARED ── */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 48px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--blue-600);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.section h2 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
}

/* ── GAME MODES ── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  transition: border-color 0.2s, transform 0.15s;
}

.mode-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
}

.mode-icon { font-size: 28px; margin-bottom: 14px; }

.mode-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.mode-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.badge-blue  { background: rgba(37,99,235,0.2);  color: var(--blue-400); }
.badge-teal  { background: rgba(20,184,166,0.15); color: #5eead4; }
.badge-amber { background: rgba(217,119,6,0.15);  color: #fbbf24; }

/* ── SCREENSHOTS ── */
.screenshots-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
}

.screenshot-wrap { flex-shrink: 0; }

.screenshot-wrap .phone-frame { width: 180px; }
.screenshot-wrap.center .phone-frame {
  width: 210px;
  transform: translateY(-16px);
  box-shadow: 0 0 48px rgba(59,130,246,0.2), 0 32px 80px rgba(0,0,0,0.6);
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}

.feature:hover { border-color: rgba(96, 165, 250, 0.3); }

.feature-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.feature h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: 4px;
}

.feature p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── DOWNLOAD CTA ── */
.cta-section {
  text-align: center;
  padding: 72px 48px 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 30, 65, 0.3) 100%);
  border-top: 1px solid var(--border);
}

.cta-tag {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--blue-600);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 12px;
  padding: 14px 24px;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  min-width: 180px;
}

.store-btn:hover {
  border-color: var(--blue-400);
  background: rgba(15, 30, 55, 0.9);
  transform: translateY(-2px);
}

.store-icon { font-size: 24px; }

.store-text .line1 {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.store-text .line2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

/* ── FOOTER ── */
footer {
  padding: 24px 48px;
  border-top: 1px solid rgba(59,130,246,0.07);
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ── MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.modal.hidden { display: none; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.8);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  max-height: calc(100vh - 96px);
  width: 100%;
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 1px rgba(96,165,250,0.1), 0 0 60px rgba(59,130,246,0.35), 0 32px 80px rgba(0,0,0,0.9);
}

.modal-content video {
  width: 100%;
  max-height: calc(100vh - 96px);
  display: block;
  background: #000;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover { background: rgba(220,38,38,0.7); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    text-align: center;
  }

  .hero::before { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone-wrap { display: none; }

  .section { padding: 48px 24px; }

  .modes-grid { grid-template-columns: 1fr; }

  .screenshots-row { flex-direction: column; align-items: center; }
  .screenshot-wrap .phone-frame { width: 200px; }
  .screenshot-wrap.center .phone-frame { width: 220px; transform: none; }

  .features-grid { grid-template-columns: 1fr; }

  .cta-section { padding: 56px 24px 64px; }
  .cta-section h2 { font-size: 28px; }
}
