:root {
  --bg: #f5f7ff;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --text: #0e1830;
  --muted: #64708b;
  --line: #e4e9f5;
  --primary: #3f5efb;
  --primary-2: #6b50ff;
  --accent: #ffb31a;
  --soft-blue: #eaf1ff;
  --shadow: 0 20px 60px rgba(43, 61, 117, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fcfdff 0%, #f5f7ff 100%);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(63, 94, 251, 0.08), transparent 22%),
    radial-gradient(circle at 90% 12%, rgba(107, 80, 255, 0.08), transparent 18%),
    radial-gradient(circle at 88% 80%, rgba(255, 179, 26, 0.08), transparent 16%);
  z-index: -1;
}

.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(228,233,245,0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 10px 28px rgba(77, 103, 255, 0.35);
}
.brand-text { font-size: 2rem; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; flex-shrink: 0; }
.main-nav a {
  font-weight: 600;
  color: #25314f;
  position: relative;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.lang-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 999px;
  color: #32405d;
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 12px 20px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 18px 34px rgba(80, 96, 255, 0.25);
}
.btn-outline {
  color: var(--primary);
  border: 1px solid rgba(63,94,251,0.25);
  background: rgba(255,255,255,0.9);
}
.btn-light,
.btn-light-alt,
.btn-white {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(223, 229, 245, 0.9);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(45,64,110,0.08);
}
.btn-accent {
  background: linear-gradient(135deg, #ffbf2b, #ff9b16);
  color: #251800;
  box-shadow: 0 18px 34px rgba(255, 169, 27, 0.35);
}

.hero { padding: 54px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.75fr;
  align-items: center;
  gap: 28px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--primary);
  background: var(--soft-blue);
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero-copy h1 span {
  background: linear-gradient(135deg, var(--primary), #7b5dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  max-width: 560px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 24px 0 0;
}
.hero-actions, .store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-actions { margin-top: 30px; }
.store-badges { margin-top: 24px; }
.store-badge { display: inline-flex; align-items: center; }
.store-badge img { height: 50px; width: auto; display: block; }

.hero-visual, .hero-mascot { position: relative; }
.phone-shell {
  width: 360px;
  margin: 0 auto;
  background: #111827;
  border: 10px solid #1d2029;
  border-radius: 48px;
  padding: 20px 12px 16px;
  box-shadow: 0 34px 90px rgba(20, 32, 61, 0.22);
  position: relative;
}
.phone-shell img {
  width: 100%;
  border-radius: 34px;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  border-radius: 0 0 20px 20px;
  background: #0b111b;
  z-index: 2;
}
.floating {
  position: absolute;
  z-index: 4;
  filter: drop-shadow(0 18px 25px rgba(34, 52, 102, 0.18));
}
.float-book { width: 90px; left: -40px; top: 40px; }
.float-trophy { width: 105px; left: -20px; bottom: 180px; }
.float-chest { width: 110px; right: -30px; top: 120px; }
.streak-card {
  right: -40px;
  bottom: 120px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.streak-card img { width: 34px; height: 34px; }
.streak-card strong { font-size: 1.8rem; line-height: 1; display: block; }
.streak-card span { color: #db6d1c; font-weight: 700; }
.hero-mascot { min-height: 690px; display: flex; align-items: flex-end; justify-content: center; }
.hero-mascot .boy { max-width: 350px; position: relative; z-index: 4; }
.dots {
  position: absolute;
  right: 24px;
  top: 100px;
  width: 110px;
  height: 180px;
  background-image: radial-gradient(circle, rgba(113,130,221,0.45) 2px, transparent 2px);
  background-size: 18px 18px;
}
.coin-float {
  position: absolute;
  left: 0;
  bottom: 180px;
  width: 88px;
  transform: rotate(-10deg);
  filter: drop-shadow(0 16px 25px rgba(242, 177, 31, 0.18));
}

.section-title { margin-bottom: 30px; }
.section-title.small-center { text-align: center; }
.section-title h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 12px; }
.section-title p { color: var(--muted); font-size: 1.06rem; max-width: 800px; margin: 0 auto; }

.steps { padding: 24px 0 40px; }
.steps-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 28px;
  align-items: stretch;
  padding-top: 28px;
}
.steps-wave {
  position: absolute;
  inset: 34px 4% auto 4%;
  height: 60px;
  width: 92%;
  z-index: 0;
  pointer-events: none;
}
.step-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px 26px 26px;
  box-shadow: 0 24px 50px rgba(43, 61, 117, 0.1);
  overflow: visible;
}
.step-badge {
  position: absolute;
  top: -16px;
  left: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(63, 94, 251, 0.35);
}
.step-icon-wrap {
  position: absolute;
  top: -30px;
  right: -18px;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.step-icon-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
}
.step-icon-wrap--blue::before { background: radial-gradient(circle, rgba(63,94,251,0.55), transparent 70%); }
.step-icon-wrap--pink::before { background: radial-gradient(circle, rgba(214,80,180,0.5), transparent 70%); }
.step-icon-wrap--gold::before { background: radial-gradient(circle, rgba(255,179,26,0.55), transparent 70%); }
.step-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(43, 61, 117, 0.25));
}
.step-text { padding-right: 70px; }
.step-text h4 { margin: 0 0 6px; font-size: 1.2rem; }
.step-text p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.96rem; }

.screenshots { padding: 28px 0 46px; }
.phone-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: end;
}
.gallery-item {
  text-align: center;
}
.gallery-item img {
  border-radius: 28px;
  background: #fff;
  border: 8px solid #fff;
  box-shadow: 0 28px 50px rgba(43,61,117,0.12);
}
.gallery-item:nth-child(odd) img { transform: rotate(-4deg); }
.gallery-item:nth-child(even) img { transform: rotate(4deg); }
.gallery-item span {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  color: #334264;
}

.learn-language { padding: 14px 0 36px; }
.language-panel {
  display: grid;
  grid-template-columns: 540px 1fr 260px;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #dfe8fd;
  border-radius: 34px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.language-mascot img {
  width: 100%;
  max-width: 100%;
}
.language-copy h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 12px; }
.language-copy p { margin: 0; font-size: 1.05rem; line-height: 1.85; color: var(--muted); }
.benefits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.benefits-list li {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 700;
  color: #31415f;
}

.battle-banner { padding: 12px 0 36px; }
.battle-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  color: white;
  border-radius: 30px;
  padding: 34px 40px;
  background: linear-gradient(120deg, #4b3fe0 0%, #6c49ff 45%, #8a4be0 100%);
  box-shadow: 0 30px 60px rgba(90, 82, 255, 0.32);
  overflow: hidden;
}
.battle-copy h2 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); margin: 0 0 10px; line-height: 1.15; font-weight: 800; }
.battle-copy p { margin: 0 0 20px; color: rgba(255,255,255,0.78); line-height: 1.6; font-size: 0.94rem; max-width: 320px; }
.battle-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.battle-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.battle-actions .btn-light-alt { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: white; }

.battle-versus { display: flex; align-items: center; justify-content: center; gap: 22px; }
.vs-avatar { text-align: center; }
.vs-ring {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 5px;
  margin: 0 auto 10px;
}
.vs-ring--blue { background: linear-gradient(135deg, #6ea8ff, #3f5efb); }
.vs-ring--light { background: linear-gradient(135deg, #f1f3ff, #d7dcff); }
.vs-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid rgba(255,255,255,0.9); display: block; }
.vs-avatar strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.vs-score { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.vs-bolt { position: relative; display: grid; place-items: center; width: 96px; height: 96px; }
.vs-bolt-icon { position: absolute; width: 68px; height: 68px; color: var(--accent); opacity: 0.9; filter: drop-shadow(0 0 16px rgba(255,179,26,0.75)); }
.vs-text { position: relative; font-weight: 900; font-size: 1.9rem; letter-spacing: 0.02em; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }

.battle-board { position: relative; display: flex; flex-direction: column; gap: 12px; }
.battle-top {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 14px 18px;
  gap: 16px;
}
.battle-stat { display: flex; align-items: center; gap: 10px; flex: 1; }
.battle-stat svg { flex: 0 0 auto; opacity: 0.9; }
.battle-stat small { display: block; color: rgba(255,255,255,0.72); font-size: 0.78rem; }
.battle-stat strong { font-size: 1.1rem; }
.battle-stat--rewards { justify-content: flex-end; text-align: right; }
.battle-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.22); }
.reward-pills { display: flex; gap: 8px; margin-top: 2px; }
.reward-pills em { font-style: normal; background: rgba(255,255,255,0.14); border-radius: 999px; padding: 3px 9px; font-size: 0.82rem; font-weight: 700; }

.mini-ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-ranking li {
  display: grid;
  grid-template-columns: 24px 26px 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 8px 12px;
}
.mini-ranking li.is-you { background: rgba(255,255,255,0.2); }
.mini-ranking .rank-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.2); display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; }
.mini-ranking img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.mini-ranking b { font-weight: 700; font-size: 0.9rem; }
.mini-ranking em { font-style: normal; color: rgba(255,255,255,0.82); font-size: 0.85rem; }

.person { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: #ffe4ec; color: #ca2f61; flex: 0 0 42px;
}
.avatar.blue { background: #dfe9ff; color: #3758fb; }
.avatar.orange { background: #fff0d7; color: #d98b00; }
.avatar.large { width: 58px; height: 58px; flex-basis: 58px; }
.person strong { display: block; }
.person small { display: block; color: var(--muted); margin-top: 2px; }

.testimonials { padding: 0 0 38px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.testimonial-card p { line-height: 1.8; color: #243252; }
.stars { color: #f4b317; letter-spacing: 2px; font-weight: 800; }

.final-cta { padding: 10px 0 28px; }
.final-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 380px 1fr 200px;
  gap: 20px;
  align-items: center;
  border-radius: 30px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #2d48ff 0%, #5f4dff 55%, #6042da 100%);
  color: white;
  box-shadow: 0 38px 70px rgba(76, 87, 240, 0.34);
  overflow: visible;
}
.cta-mascots { display: flex; align-items: end; justify-content: center; gap: 10px; min-width: 0; overflow: hidden; }
.cta-mascots img {
  max-height: 300px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 90% 98% at 50% 52%, black 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 98% at 50% 52%, black 78%, transparent 100%);
}
.cta-copy h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 2.8vw, 2.7rem); }
.cta-copy p { margin: 0 0 24px; color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.final-cta .btn-white { background: white; color: #263255; border: 0; }
.cta-dots {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.cta-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.cta-dots span.active { background: #fff; width: 16px; border-radius: 4px; }
.cta-phone { position: relative; }
.cta-phone img {
  width: 112%;
  max-width: none;
  margin: -80px 0 -60px -12%;
  transform: rotate(5deg);
  filter: drop-shadow(0 24px 44px rgba(10, 14, 40, 0.45));
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  background: rgba(255,255,255,0.65);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-inner p { color: var(--muted); margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: #334264; font-weight: 600; }
.footer-brand .brand-text { font-size: 1.5rem; }

@media (max-width: 1280px) {
  .hero-grid,
  .battle-inner,
  .language-panel,
  .final-cta-inner { grid-template-columns: 1fr; }
  .hero-mascot { min-height: 0; }
  .hero-mascot .boy { max-width: 260px; }
  .hero-copy { text-align: center; }
  .hero-copy p, .language-copy p, .section-title p { margin-left: auto; margin-right: auto; }
  .hero-actions, .store-badges, .battle-actions { justify-content: center; }
  .battle-inner { text-align: center; }
  .battle-copy p { margin-left: auto; margin-right: auto; }
  .final-cta-inner { text-align: center; }
  .cta-mascots, .cta-copy .store-badges { justify-content: center; }
  .cta-phone { max-width: 240px; margin: 0 auto; }
  .cta-phone img { width: 100%; margin: 0; transform: none; }
  .cta-mascots img { max-height: 220px; }
}

@media (max-width: 1240px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 14px;
    font-size: 1.5rem;
  }
  .main-nav.open,
  .header-actions.open {
    display: flex;
    position: absolute;
    left: 24px;
    right: 24px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 20px;
    z-index: 99;
  }
  .main-nav.open {
    top: 78px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .header-actions.open {
    top: 352px;
    flex-direction: column;
    align-items: stretch;
  }
  .phone-gallery,
  .testimonial-grid,
  .steps-row { grid-template-columns: 1fr; gap: 44px; }
  .steps-wave { display: none; }
  .step-icon-wrap { width: 88px; height: 88px; top: -24px; right: -12px; }
  .step-text { padding-right: 56px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 100%); }
  .brand-text { font-size: 1.55rem; }
  .phone-shell { width: min(100%, 260px); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .phone-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-item img { border-width: 5px; }
  .language-panel { padding: 22px 18px; }
  .language-mascot img { max-height: 220px; margin: 0 auto; }
  .battle-versus { flex-direction: column; }
  .hero { padding-top: 34px; }
  .hero-mascot { min-height: 260px; }
  .hero-mascot .boy { max-width: 200px; }
  .float-book { left: -6px; width: 60px; top: 20px; }
  .float-chest { right: -8px; width: 68px; }
  .float-trophy { left: 0; width: 66px; }
  .streak-card { right: -4px; bottom: 75px; transform: scale(0.8); }
  .final-cta-inner { padding: 22px 20px; }
  .cta-mascots img { max-height: 170px; }
  .cta-phone { max-width: 190px; }
  .step-card { padding: 26px 18px 18px; }
  .step-icon-wrap { width: 72px; height: 72px; top: -18px; right: -8px; }
  .step-text { padding-right: 44px; }
  .testimonial-card { padding: 20px; }
  .battle-inner { padding: 24px 20px; }
  .battle-top { flex-wrap: wrap; gap: 10px; }
  .vs-ring { width: 72px; height: 72px; }
  .vs-bolt { width: 70px; height: 70px; }
  .vs-bolt-icon { width: 50px; height: 50px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
