:root {
  --primary: #6B4EE6;
  --primary-soft: #8B73F4;
  --primary-dark: #5137C5;
  --crown: #32A8F8;
  --crown-soft: #78C8FF;
  --gold: #F3C64E;
  --green: #37C982;
  --coral: #FF7588;
  --bg: #F8F6FF;
  --bg-soft: #EFEAFF;
  --white: #FFFFFF;
  --text: #1D1734;
  --muted: #6D6681;
  --border: #E5DFF7;
  --shadow: 0 18px 45px rgba(82, 55, 197, 0.13);
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Nunito", sans-serif; }
*::before, *::after, button, input, textarea, select, a, span, p, h1, h2, h3, h4, h5, h6 { font-family: "Nunito", sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.page { position: relative; min-height: 100vh; overflow: hidden; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

.blob { position: absolute; border-radius: 999px; filter: blur(10px); opacity: .17; z-index: 0; pointer-events: none; }
.blob.purple { width: 480px; height: 480px; background: var(--primary-soft); top: -210px; left: -180px; }
.blob.blue { width: 560px; height: 560px; background: var(--crown); right: -250px; bottom: -230px; }
.blob.gold { width: 250px; height: 250px; background: var(--gold); top: 48%; left: 2%; opacity: .10; }

header { padding: 26px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 25px; letter-spacing: -.04em; }
.brand-icon img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 10px 22px rgba(107,78,230,.18); }
.brand-name { color: var(--primary-dark); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 800; color: var(--muted); }
.nav-links a:hover { color: var(--primary-dark); }

.hero { padding: 72px 0 88px; display: grid; grid-template-columns: 1.03fr .97fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(107,78,230,.22); border-radius: 999px; background: rgba(255,255,255,.8); color: var(--primary-dark); font-weight: 900; font-size: 14px; box-shadow: 0 10px 30px rgba(82,55,197,.06); }
h1 { margin-top: 24px; font-size: clamp(48px, 7vw, 82px); line-height: .95; letter-spacing: -.08em; font-weight: 900; }
.gradient-text { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-soft) 48%, var(--crown) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 24px; max-width: 590px; font-size: 20px; line-height: 1.7; color: var(--muted); font-weight: 600; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 18px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-soft) 55%, var(--crown) 100%); box-shadow: 0 18px 34px rgba(107,78,230,.26); }
.btn-secondary { background: var(--white); color: var(--text); border: 1px solid var(--border); box-shadow: 0 14px 30px rgba(82,55,197,.07); }

.store-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.store-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 15px; border-radius: 14px; background: #1D1734; color: white; font-size: 14px; font-weight: 900; box-shadow: 0 12px 24px rgba(29,23,52,.14); }
.store-btn.light { background: white; color: var(--text); border: 1px solid var(--border); }
.store-btn.disabled { opacity: .58; pointer-events: none; }
.store-icon { font-size: 17px; line-height: 1; }

.hero-card { min-height: 540px; border-radius: 42px; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow); position: relative; padding: 34px; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 22% 18%, rgba(107,78,230,.20), transparent 31%), radial-gradient(circle at 82% 82%, rgba(50,168,248,.22), transparent 33%); }
.phone-showcase { position: relative; z-index: 1; min-height: 472px; display: grid; place-items: center; }
.phone { width: min(292px, 80%); min-height: 505px; border-radius: 42px; background: linear-gradient(180deg, #FFFFFF 0%, #F2EEFF 100%); border: 10px solid #1D1734; box-shadow: 0 30px 40px rgba(29,23,52,.18); padding: 24px 18px 22px; position: relative; display: flex; flex-direction: column; align-items: center; }
.phone::before { content: ""; width: 72px; height: 6px; border-radius: 999px; background: #312A4A; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); }
.phone-top { width: 100%; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 900; color: var(--muted); }
.resource { padding: 6px 9px; border-radius: 999px; background: white; border: 1px solid var(--border); }
.mascot-mark { width: 138px; height: 138px; margin-top: 23px; border-radius: 34px; box-shadow: 0 18px 28px rgba(107,78,230,.20); }
.speech { margin-top: 12px; padding: 10px 13px; background: var(--primary); color: white; border-radius: 18px 18px 18px 6px; font-size: 13px; font-weight: 900; }
.level-progress { width: 100%; margin-top: 22px; }
.level-line { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 900; }
.level-line strong { color: var(--primary-dark); }
.progress-track { height: 13px; margin-top: 8px; border-radius: 999px; background: #E4DFFA; overflow: hidden; }
.progress-fill { width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--crown)); }
.start-game { width: 100%; margin-top: 20px; padding: 15px 16px 13px; border-radius: 18px; text-align: center; background: var(--green); color: white; font-weight: 900; box-shadow: 0 7px 0 #249A61; }
.start-game small { display: block; margin-top: 2px; opacity: .9; letter-spacing: .04em; }
.floating-pill { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 17px; background: rgba(255,255,255,.93); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(82,55,197,.10); color: var(--muted); font-weight: 900; font-size: 14px; }
.floating-pill span { width: 31px; height: 31px; border-radius: 11px; display: grid; place-items: center; background: rgba(107,78,230,.10); }
.pill-1 { top: 48px; right: 24px; }
.pill-2 { bottom: 70px; left: 20px; }
.pill-3 { bottom: 42px; right: 30px; }

.section { padding: 80px 0; }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.section-title h2 { font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -.06em; font-weight: 900; }
.section-title p { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.65; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); box-shadow: 0 14px 35px rgba(82,55,197,.07); }
.card-icon { width: 56px; height: 56px; border-radius: 19px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(107,78,230,.12), rgba(50,168,248,.15)); font-size: 25px; }
.card h3 { font-size: 22px; letter-spacing: -.04em; margin-bottom: 10px; }
.card p { color: var(--muted); line-height: 1.65; font-weight: 600; }

.feature-band { margin-top: 36px; padding: 34px; border-radius: 36px; background: linear-gradient(135deg, #FFFFFF 0%, #F0ECFF 100%); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.feature-band h3 { font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: -.06em; font-weight: 900; }
.feature-band p { margin-top: 14px; color: var(--muted); font-size: 18px; line-height: 1.65; font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { padding: 20px; border-radius: 24px; background: white; border: 1px solid var(--border); }
.stat strong { display: block; font-size: 25px; letter-spacing: -.05em; color: var(--primary-dark); }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-weight: 800; }

.cta { margin: 60px 0 90px; padding: 54px; border-radius: 42px; text-align: center; color: white; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-soft) 55%, var(--crown) 100%); box-shadow: 0 28px 60px rgba(107,78,230,.26); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 999px; background: rgba(255,255,255,.16); top: -180px; left: -120px; }
.cta h2 { position: relative; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.07em; font-weight: 900; }
.cta p { position: relative; max-width: 650px; margin: 18px auto 28px; font-size: 19px; line-height: 1.6; opacity: .94; font-weight: 700; }
.cta .store-actions { position: relative; justify-content: center; margin-top: 0; }
.cta .store-btn { background: white; color: var(--text); }

footer { padding: 32px 0 44px; color: var(--muted); font-weight: 800; text-align: center; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--primary-dark); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-card { display: none; }
  .cards, .feature-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  .hero p { font-size: 18px; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 22px; }
  .footer-meta { justify-content: center; }
}
