:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #1d4ed8;
  --primary-bright: #0088ff;
  --primary-dark: #1e3a8a;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --gold: #f59e0b;
  --green: #16a34a;
  --red: #dc2626;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(30, 58, 138, 0.12);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--surface-alt);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-bright), var(--indigo));
  color: #ffffff !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary), var(--violet)) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}

/* Main */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  padding: 52px 0 64px;
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 70, 229, 0.12), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(0, 136, 255, 0.14), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

/* Logo + Download Spotlight Card */
.download-spotlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.logo-above-download {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.logo-hd-img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
  flex-shrink: 0;
}

.logo-meta .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo);
  background: rgba(79, 70, 229, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.logo-meta h2 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.logo-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-bright), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 540px;
}

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-bright), var(--indigo));
  border-radius: var(--radius-md);
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(29, 78, 216, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: #cbd5e1;
}

.referral-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px dashed #93c5fd;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.referral-pill strong {
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
}

.copy-btn {
  border: none;
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #dbeafe;
}

/* Phone Mockup Showcase for First Image */
.preview-showcase {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 340px;
  background: #0f172a;
  padding: 14px;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  border: 3px solid #1e293b;
  position: relative;
}

.phone-notch {
  width: 110px;
  height: 18px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
}

.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
}

.phone-screen img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Highlights / Game Modes Section */
.section {
  padding: 56px 0;
}

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

.section-header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-dot {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.dot-green { background: var(--green); }
.dot-violet { background: var(--violet); }
.dot-red { background: var(--red); }
.dot-blue { background: var(--primary-bright); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Bottom Download Banner */
.download-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 55%, #0284c7 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.download-banner .banner-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.download-banner h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
}

.download-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
}

.btn-download-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.02rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.btn-download-light:hover {
  transform: translateY(-2px);
}

/* Content Pages (About & Privacy Policy) */
.page-hero {
  background: linear-gradient(135deg, #1e3a8a, #4f46e5);
  color: #ffffff;
  padding: 48px 0;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 650px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin: 36px auto 56px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
}

.content-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
}

.content-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text);
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.content-card ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.custom-content-slot {
  background: var(--surface-alt);
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
}

.custom-content-slot .slot-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: #dbeafe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 32px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 0.88rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-spotlight {
    align-items: center;
  }

  .cta-stack {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    text-align: center;
  }

  .content-card {
    padding: 22px;
  }
}
