/* =====================================================
   TOKENS
   ===================================================== */
:root {
  --bg:          #08080F;
  --surface:     #0F0E1C;
  --surface2:    #171626;
  --card:        rgba(15, 14, 28, 0.95);
  --purple:      #7F77DD;
  --purple-l:    #AFA9EC;
  --purple-dim:  rgba(127,119,221,0.12);
  --gold:        #FAC775;
  --gold-dim:    rgba(250,199,117,0.12);
  --green:       #1FAE82;
  --green-dim:   rgba(31,174,130,0.12);
  --danger:      #e05c6a;
  --text:        #FFFFFF;
  --text-2:      rgba(255,255,255,0.55);
  --text-3:      rgba(255,255,255,0.25);
  --border:      rgba(255,255,255,0.07);
  --border-acc:  rgba(127,119,221,0.25);
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm:  8px;
  --r-xs:  6px;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* =====================================================
   STAR FIELD (fixed, full-page)
   ===================================================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at  8% 12%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 38%  8%, rgba(255,255,255,.50) 0%, transparent 100%),
    radial-gradient(1px 1px at 52% 58%, rgba(255,255,255,.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 22%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 68%, rgba(255,255,255,.40) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 42%, rgba(255,255,255,.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 14% 78%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 33% 88%, rgba(255,255,255,.28) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 82%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 46% 48%, rgba(255,255,255,.20) 0%, transparent 100%),
    radial-gradient(1px 1px at  4% 52%, rgba(255,255,255,.38) 0%, transparent 100%),
    radial-gradient(1px 1px at 91%  6%, rgba(255,255,255,.50) 0%, transparent 100%),
    radial-gradient(1px 1px at 73% 91%, rgba(255,255,255,.28) 0%, transparent 100%),
    radial-gradient(2px 2px at 18%  4%, rgba(175,169,236,.40) 0%, transparent 100%),
    radial-gradient(2px 2px at 83% 28%, rgba(250,199,117,.28) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 16%, rgba(175,169,236,.28) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 70%, rgba(255,255,255,.22) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 60%, rgba(255,255,255,.20) 0%, transparent 100%);
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* =====================================================
   GLOW ORBS
   ===================================================== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 320px; height: 320px;
  background: rgba(127,119,221,0.18);
  top: -80px; right: -60px;
}
.orb-2 {
  width: 240px; height: 240px;
  background: rgba(250,199,117,0.10);
  bottom: 40px; left: -40px;
}
.orb-cta {
  width: 400px; height: 400px;
  background: rgba(127,119,221,0.14);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,15,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon { font-size: 18px; }
.logo-gold { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-select {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border-acc);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23AFA9EC' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  transition: border-color .2s;
}
.lang-select:hover { border-color: var(--purple); }

.nav-cta {
  display: none;
  background: var(--purple);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}
.nav-cta:hover { background: var(--purple-l); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}
.hero-text {
  text-align: center;
  max-width: 520px;
}

/* eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--purple-l);
  background: rgba(127,119,221,0.1);
  border: 1px solid rgba(127,119,221,0.2);
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

/* hero title */
.hero-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 10vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.title-gold { color: var(--gold); }

.hero-sub {
  font-size: clamp(15px, 3.5vw, 18px);
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.65;
}

/* store buttons */
.store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.store-btns--center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border-acc);
  border-radius: var(--r-md);
  padding: 11px 18px;
  transition: border-color .2s, transform .15s, background .2s;
  min-width: 150px;
}
.store-btn:hover {
  border-color: var(--purple);
  background: rgba(127,119,221,0.1);
  transform: translateY(-2px);
}
.store-btn svg { flex-shrink: 0; }
.store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.store-label small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-2);
}
.store-label strong { font-size: 14px; font-weight: 800; }
.store-btn--large { padding: 13px 22px; }
.store-btn--large .store-label strong { font-size: 15px; }

/* =====================================================
   PHONE MOCKUP
   ===================================================== */
.phone-outer {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-glow {
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(127,119,221,0.35) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
.phone-frame {
  position: relative;
  z-index: 1;
  width: min(292px, 88vw);
  background: var(--surface);
  border-radius: 44px;
  border: 1.5px solid rgba(127,119,221,0.45);
  box-shadow:
    0 0 0 1px rgba(127,119,221,0.08),
    0 32px 80px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 24px 12px 18px;
  overflow: hidden;
}
.phone-pill {
  width: 72px; height: 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  margin: 0 auto 16px;
}
.phone-screen { width: 100%; }

/* =====================================================
   DEMO GAME (inside phone)
   ===================================================== */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 12px;
}
.demo-img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* slots */
.demo-slots {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.slot {
  width: 32px; height: 36px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1.5px solid rgba(127,119,221,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .2s;
}
.slot.filled  { border-color: var(--purple); background: rgba(127,119,221,0.15); }
.slot.correct { border-color: var(--green);  background: rgba(31,174,130,0.2); color: var(--green); }
.slot.wrong   { border-color: var(--danger); background: rgba(224,92,106,0.12); animation: shake .4s; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* keyboard */
.demo-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}
.key-btn {
  width: 30px; height: 33px;
  border-radius: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transition: background .12s, transform .1s, opacity .2s;
}
.key-btn:hover:not(:disabled) {
  background: rgba(127,119,221,0.22);
  transform: scale(1.08);
}
.key-btn:disabled { opacity: 0.22; cursor: default; }

/* fact reveal */
.demo-fact-block {
  display: none;
  background: rgba(31,174,130,0.08);
  border: 1px solid rgba(31,174,130,0.25);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  animation: fadeUp .35s ease;
}
.demo-fact-block.visible { display: block; }
.demo-correct-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 5px;
}
.demo-fact-block p {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   HOW IT WORKS — steps
   ===================================================== */
.steps-section {
  padding: 72px 0 64px;
}
.section-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--purple-l);
  text-align: center;
  margin-bottom: 12px;
  opacity: 0.7;
}
.section-heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 5vw, 40px);
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}
.section-sub {
  color: var(--text-2);
  font-size: clamp(14px, 2.5vw, 17px);
  line-height: 1.7;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 48px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
}
.step-divider {
  height: 1px;
  background: var(--border);
  margin: 0 4px;
}
.step-badge {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.step:hover .step-badge { transform: scale(1.08); }
.step-badge--purple {
  background: rgba(127,119,221,0.15);
  border: 1px solid rgba(127,119,221,0.35);
  color: var(--purple-l);
}
.step-badge--gold {
  background: rgba(250,199,117,0.12);
  border: 1px solid rgba(250,199,117,0.35);
  color: var(--gold);
}
.step-badge--green {
  background: rgba(31,174,130,0.12);
  border: 1px solid rgba(31,174,130,0.35);
  color: var(--green);
}
.step-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* =====================================================
   STATS
   ===================================================== */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 20px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1;
}
.stat-num.gold   { color: var(--gold);   text-shadow: 0 0 32px rgba(250,199,117,0.4); }
.stat-num.purple { color: var(--purple); text-shadow: 0 0 32px rgba(127,119,221,0.4); }
.stat-lbl { font-size: 13px; color: var(--text-2); font-weight: 600; }

/* =====================================================
   FACTS
   ===================================================== */
.facts-section { padding: 72px 0 64px; }
.facts-scroll-wrap {
  margin-top: 40px;
  overflow: hidden;
}
.facts-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 20px;
  scrollbar-width: none;
}
.facts-scroll::-webkit-scrollbar { display: none; }

.fact-card {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  transition: border-color .2s, transform .2s;
}
.fact-card:hover { transform: translateY(-4px); }
.fact-card--gold  { border-top-color: var(--gold); }
.fact-card--purple { border-top-color: var(--purple); }

.fact-word {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 10px;
}
.fact-card--gold  .fact-word  { color: var(--gold); }
.fact-card--purple .fact-word { color: var(--purple-l); }
.fact-text { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* =====================================================
   CTA
   ===================================================== */
.cta-section {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
  text-align: center;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 7vw, 52px);
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.cta-sub {
  font-size: clamp(15px, 3vw, 18px);
  color: var(--text-2);
  margin-bottom: 36px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 13px; color: var(--text-2); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color .2s; }
.footer-links a:hover { color: var(--purple-l); }

/* =====================================================
   DESKTOP (≥ 900px)
   ===================================================== */
@media (min-width: 900px) {
  /* nav */
  .nav-cta { display: block; }

  /* hero */
  .hero { padding: 80px 0 72px; }
  .hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  }
  .hero-text {
    text-align: left;
    max-width: 480px;
    flex-shrink: 0;
  }
  .eyebrow { margin-bottom: 24px; }
  .hero-text .store-btns { justify-content: flex-start; }
  .phone-outer { flex: 1; display: flex; justify-content: center; }
  .phone-frame { width: 310px; }

  /* steps */
  .steps {
    flex-direction: row;
    max-width: 100%;
    gap: 0;
    align-items: stretch;
  }
  .step {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    gap: 16px;
    transition: border-color .2s, transform .2s;
  }
  .step:hover { border-color: var(--border-acc); transform: translateY(-4px); }
  .step-divider { display: none; }
  .steps { gap: 16px; }

  /* stats */
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .stat-item { border-right: 1px solid var(--border); padding: 0 32px; }
  .stat-item:last-child { border-right: none; }

  /* facts */
  .facts-scroll { justify-content: center; overflow-x: visible; padding: 4px 0 20px; }
  .fact-card { min-width: 0; max-width: none; flex: 1; }
  .facts-scroll-wrap { overflow: visible; }

  /* footer */
  .footer-inner { flex-wrap: nowrap; }
}

@media (min-width: 1100px) {
  .hero-title { font-size: 64px; }
  .phone-frame { width: 330px; }
}
