:root {
  --bg: #fffdf7;
  --bg-soft: #f4faff;
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #ffffff;
  --text: #062c70;
  --muted: #536b88;
  --line: rgba(13, 112, 225, .14);
  --blue: #0877e8;
  --cyan: #19bdf2;
  --lime: #8edb38;
  --navy: #061c49;
  --shadow: 0 22px 60px rgba(5, 64, 145, .13);
  --glow: rgba(21, 180, 244, .28);
}

:root[data-theme="dark"] {
  --bg: #03122d;
  --bg-soft: #071d42;
  --surface: rgba(9, 35, 76, .78);
  --surface-solid: #0a2651;
  --text: #f7fbff;
  --muted: #a9bed8;
  --line: rgba(72, 177, 255, .2);
  --blue: #15c8ff;
  --cyan: #1be0f2;
  --lime: #9be447;
  --navy: #f7fbff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --glow: rgba(21, 200, 255, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  height: 94px;
  width: min(1420px, calc(100% - 72px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.brand img { width: 154px; height: 86px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 42px; font-weight: 670; }
.nav a, .login { transition: color .2s, transform .2s; }
.nav a:hover, .login:hover { color: var(--blue); transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.theme-toggle {
  width: 58px; height: 32px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--text); display: flex; align-items: center;
  justify-content: space-around; cursor: pointer; box-shadow: 0 8px 20px rgba(6, 54, 114, .1);
}
.theme-toggle .moon { opacity: .45; }
[data-theme="dark"] .theme-toggle .sun { opacity: .35; }
[data-theme="dark"] .theme-toggle .moon { opacity: 1; color: #7bdfff; }
.menu-button { display: none; border: 0; background: none; color: var(--text); font-size: 26px; }

.primary, .secondary {
  min-height: 58px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 17px; font-weight: 760; transition: transform .2s, box-shadow .2s;
}
.primary {
  color: white; background: linear-gradient(135deg, #0877e8, #0aa9f4);
  box-shadow: 0 15px 34px rgba(8, 119, 232, .28);
}
[data-theme="dark"] .primary { background: linear-gradient(135deg, #0e9ff2, #16d2ec); color: #001a3a; }
.primary:hover, .secondary:hover { transform: translateY(-3px); }
.primary:hover { box-shadow: 0 18px 40px var(--glow); }
.primary.small { min-height: 48px; padding: 0 24px; border-radius: 15px; }
.secondary { border: 1px solid rgba(39, 131, 220, .32); background: var(--surface); }
.secondary i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: white; font-size: 12px; margin-right: 12px; font-style: normal; }

.hero {
  min-height: 735px; width: min(1450px, calc(100% - 72px)); margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px;
  position: relative; isolation: isolate;
}
.world-map {
  position: absolute; inset: 10px -120px auto 28%; height: 540px; z-index: -2; opacity: .43;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(59, 183, 237, .18), transparent 24%),
    radial-gradient(ellipse at 56% 18%, rgba(59, 183, 237, .13), transparent 26%),
    radial-gradient(ellipse at 78% 50%, rgba(59, 183, 237, .15), transparent 23%);
  filter: blur(1px);
}
[data-theme="dark"] .hero::before {
  content: ""; position: absolute; inset: -100px -80px; z-index: -3;
  background: radial-gradient(circle at 70% 52%, rgba(0, 118, 255, .26), transparent 36%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 99px;
  border: 1px solid rgba(42, 152, 236, .32); background: var(--surface); font-weight: 730;
}
.hero h1 {
  font-size: clamp(54px, 5.1vw, 82px); line-height: .98; letter-spacing: -.055em;
  margin: 24px 0; max-width: 700px; color: var(--navy);
}
.hero h1 span {
  background: linear-gradient(90deg, #17b8f2, #0877e8 60%, #8edb38);
  -webkit-background-clip: text; color: transparent;
}
.hero-copy > p { font-size: 20px; line-height: 1.65; color: var(--muted); max-width: 650px; }
.hero-actions { display: flex; gap: 18px; margin-top: 28px; }
.proof { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.avatars { display: flex; }
.avatars span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 3px solid var(--bg); margin-left: -8px; font-size: 24px; }
.avatars span:first-child { margin-left: 0; }
.proof strong { display: block; letter-spacing: 3px; color: #ffb800; }
.proof small { color: var(--muted); }

.hero-visual { height: 660px; position: relative; display: grid; place-items: center; }
.mascot { width: min(610px, 88%); position: relative; z-index: 2; animation: float 5s ease-in-out infinite; }
[data-theme="dark"] .mascot { filter: drop-shadow(0 0 34px rgba(0, 166, 255, .45)); }
.orbit { position: absolute; border: 1px dashed rgba(32, 154, 238, .28); border-radius: 50%; z-index: 0; }
.orbit-one { width: 610px; height: 380px; transform: rotate(-13deg); }
.orbit-two { width: 500px; height: 500px; }
.bubble { position: absolute; z-index: 4; color: white; padding: 15px 22px; border-radius: 26px 26px 26px 8px; font-size: 22px; font-weight: 750; box-shadow: 0 14px 25px rgba(20, 65, 132, .18); animation: bob 5s ease-in-out infinite; }
.b1 { top: 90px; left: 13%; background: linear-gradient(135deg,#d937e7,#7d22cf); }
.b2 { top: 280px; left: 2%; background: linear-gradient(135deg,#4fd34c,#0c9a42); animation-delay: .7s; }
.b3 { top: 120px; right: 0; background: linear-gradient(135deg,#ffc125,#ff7c09); animation-delay: 1.2s; }
.b4 { top: 350px; right: -4%; background: linear-gradient(135deg,#ff3566,#e30c50); animation-delay: 1.8s; }
.spark { position: absolute; z-index: 5; color: #ffb600; font-size: 32px; animation: pulse 2s ease-in-out infinite; }
.s1 { top: 210px; right: 18%; } .s2 { bottom: 112px; left: 18%; color: #20bdf1; }
.float-card {
  position: absolute; z-index: 6; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--shadow);
  padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
}
.float-card > span { font-size: 28px; color: var(--blue); }
.float-card small, .float-card strong { display: block; }
.float-card small { color: var(--muted); }.float-card strong { font-size: 24px; }
.streak { left: 2%; bottom: 42px; transform: rotate(3deg); width: 225px; }
.target { right: -2%; bottom: 40px; transform: rotate(-3deg); width: 225px; }
.word-card { display: none; right: -1%; bottom: 130px; width: 230px; }
[data-theme="dark"] .word-card { display: grid; }
.word-card b { grid-column: 2; color: var(--lime); font-size: 12px; }
.mini-progress { display: flex; gap: 4px; grid-column: 1/-1; }.mini-progress i { width: 22px; height: 7px; border-radius: 99px; background: var(--lime); }.mini-progress i:last-child { background: var(--line); }
.progress { grid-column: 1/-1; height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }.progress i { display: block; width: 80%; height: 100%; background: var(--blue); }

.feature-rail {
  width: min(1320px, calc(100% - 72px)); margin: -14px auto 0; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 12px; position: relative; z-index: 10;
}
.feature-rail article { display: flex; align-items: center; gap: 16px; padding: 0 28px; border-right: 1px solid var(--line); }
.feature-rail article:last-child { border: 0; }
.feature-rail h3 { margin: 0 0 4px; }.feature-rail p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.feature-icon.blue { background: #e7f3ff; color: #167ce5; }.feature-icon.purple { background: #f4eaff; color: #ad43df; }
.feature-icon.green { background: #eaf8df; color: #2a9e27; }.feature-icon.orange { background: #fff3d9; color: #f29809; }

.section { width: min(1280px, calc(100% - 72px)); margin: 0 auto; padding: 120px 0; }
.section-heading { max-width: 680px; margin-bottom: 52px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { color: var(--blue); font-size: 13px; letter-spacing: .18em; font-weight: 800; }
.section h2, .download h2 { font-size: clamp(38px, 4vw, 58px); line-height: 1.05; letter-spacing: -.04em; margin: 14px 0 18px; }
.section-heading p, .review-info > p, .about-card p, .download p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps article { padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 14px 42px rgba(7, 74, 150, .08); position: relative; }
.steps article > b { position: absolute; right: 26px; top: 22px; font-size: 40px; color: var(--line); }
.steps article > span { font-size: 36px; }.steps h3 { font-size: 22px; margin: 24px 0 8px; }.steps p { color: var(--muted); line-height: 1.6; }

.review { padding-top: 30px; }
.review-card {
  border-radius: 38px; padding: 72px; display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: center;
  background: linear-gradient(135deg, rgba(9,123,232,.09), rgba(142,219,56,.08)); border: 1px solid var(--line);
}
.review-info ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.review-info li span { width: 27px; height: 27px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--lime); color: #103f13; margin-right: 10px; font-weight: 900; }
.phone-card { width: min(390px, 100%); margin: auto; padding: 28px; border-radius: 34px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.phone-card > small { color: var(--muted); font-weight: 700; }.phone-card > p { text-align: center; font-size: 13px; font-weight: 700; margin-top: 28px; }
.word { margin: 24px 0; border: 2px solid rgba(40,148,60,.3); border-radius: 24px; padding: 25px; text-align: center; }
.word span, .word strong { display: block; }.word span { color: var(--muted); font-size: 12px; }.word strong { font-size: 36px; margin: 14px 0; }.word button { border: 0; background: none; color: var(--blue); font-weight: 700; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-grid button { border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: transparent; color: var(--text); font-weight: 750; }
.answer-grid button:nth-child(3), .answer-grid button:nth-child(4) { background: #2f8d39; color: white; }
.answer-grid small { display: block; opacity: .65; margin-top: 3px; }

.languages { padding-top: 100px; }
.language-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.language-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; align-items: center; gap: 14px; transition: transform .2s; }
.language-grid article:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.language-grid article > span { font-size: 34px; }.language-grid h3,.language-grid p { margin: 0; }.language-grid p { color: var(--muted); margin-top: 4px; }.language-grid b { margin-left: auto; color: var(--blue); }

.about { padding-top: 30px; }
.about-card { display: grid; grid-template-columns: .65fr 1fr; align-items: center; gap: 70px; padding: 60px 80px; border-radius: 40px; background: var(--bg-soft); overflow: hidden; }
.about-card img { width: 100%; max-width: 390px; }

.download {
  width: min(1320px, calc(100% - 72px)); margin: 40px auto 90px; border-radius: 42px;
  background: linear-gradient(135deg, #0757c3, #0aa9ed); color: white; padding: 76px 90px;
  display: grid; grid-template-columns: 1fr .65fr; align-items: center; overflow: hidden; position: relative;
}
.download::after { content: ""; position: absolute; width: 420px; height: 420px; right: -80px; top: -120px; border-radius: 50%; background: rgba(255,255,255,.1); }
.download .kicker, .download p { color: rgba(255,255,255,.82); }.download img { width: 100%; max-width: 410px; position: relative; z-index: 1; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.store-buttons a { min-width: 190px; background: #071225; color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 13px; padding: 10px 18px; display: flex; align-items: center; gap: 12px; }
.store-buttons span { font-size: 30px; }.store-buttons small,.store-buttons strong { display: block; }.store-buttons small { font-size: 10px; }.store-buttons strong { font-size: 20px; line-height: 1; }
.play-triangle { color: #63d977; text-shadow: -4px -3px #35b9f5, 4px 2px #ffdf3c; }.store-note { display: block; margin-top: 14px; color: rgba(255,255,255,.7); }

footer { width: min(1280px, calc(100% - 72px)); margin: 0 auto; padding: 38px 0 52px; border-top: 1px solid var(--line); color: var(--muted); }
footer img { width: 110px; height: 70px; object-fit: contain; }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.site-footer-grid h4 { color: var(--text); margin: 0 0 12px; font-size: 1rem; }
.site-footer-grid a, .site-footer-grid p { display: block; color: var(--muted); margin-bottom: 8px; font-size: .92rem; }
.site-footer-grid a:hover { color: var(--blue); }
.footer-tagline { color: var(--text); font-weight: 750; margin: 8px 0 0; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  box-shadow: 0 14px 42px rgba(7, 74, 150, .06); transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px 22px;
  box-shadow: 0 14px 42px rgba(7, 74, 150, .06);
}
.tier.featured { border-color: rgba(8, 119, 232, .45); box-shadow: var(--shadow); transform: translateY(-4px); }
.tier-badge {
  display: inline-block; padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: .82rem; margin-bottom: 12px;
}
.tier.free .tier-badge { background: rgba(8, 119, 232, .12); color: var(--blue); }
.tier.plus .tier-badge { background: rgba(231, 76, 60, .12); color: #e74c3c; }
.tier.premium .tier-badge { background: rgba(142, 68, 173, .12); color: #8e44ad; }
.tier h3 { margin: 0 0 8px; font-size: 1.35rem; }
.tier > p { color: var(--muted); margin: 0 0 16px; font-size: .92rem; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li { padding: 7px 0; font-size: .92rem; border-bottom: 1px solid var(--line); }
.tier li:last-child { border-bottom: 0; }
.tier li::before { content: '✓ '; color: var(--lime); font-weight: 900; }

.family-band {
  border-radius: 38px; padding: 56px 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #0757c3, #0aa9ed); color: white; box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.family-band::after { content: ""; position: absolute; width: 320px; height: 320px; right: -60px; bottom: -120px; border-radius: 50%; background: rgba(255,255,255,.08); }
.family-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; position: relative; z-index: 1; }
.family-band > div > p { opacity: .92; margin: 0 0 18px; position: relative; z-index: 1; }
.family-list { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.family-list li { padding: 8px 0; font-weight: 700; display: flex; gap: 10px; }
.family-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.family-pill {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 16px;
  padding: 16px; text-align: center; font-weight: 800;
}
.family-pill span { display: block; font-size: 1.8rem; margin-bottom: 6px; }

.lang-extra { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.lang-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; font-weight: 800; font-size: .95rem;
}

.section.soft-bg {
  background: linear-gradient(180deg, transparent, rgba(8, 119, 232, .06));
  width: 100%; max-width: none; padding-left: 0; padding-right: 0;
}
.section.soft-bg > .section-inner { width: min(1280px, calc(100% - 72px)); margin: 0 auto; padding: 120px 0; }

@media (max-width: 1100px) {
  .tiers { grid-template-columns: 1fr; }.tier.featured { transform: none; }
  .family-band { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}

@keyframes float { 50% { transform: translateY(-13px) rotate(1deg); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes pulse { 50% { transform: scale(1.28); opacity: .7; } }

@media (max-width: 1100px) {
  .nav { gap: 20px; }.login { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }.hero-actions,.proof { justify-content: center; }
  .hero-visual { height: 610px; }.feature-rail { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .feature-rail article:nth-child(2) { border-right: 0; }
  .review-card { grid-template-columns: 1fr; }.about-card { grid-template-columns: .7fr 1fr; }
  .language-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 32px); height: 78px; }.brand img { width: 112px; height: 66px; }
  .header-actions .small, .header-actions .login { display: none; }.menu-button { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 20px; flex-direction: column; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .hero { width: calc(100% - 32px); min-height: auto; padding: 50px 0 20px; gap: 8px; }
  .hero h1 { font-size: 49px; }.hero-copy > p { font-size: 17px; }.hero-actions { flex-direction: column; }
  .hero-visual { height: 480px; }.mascot { width: 95%; }.bubble { font-size: 15px; padding: 10px 14px; }
  .b1 { left: 2%; }.b2 { top: 215px; }.b3 { right: 0; }.b4 { top: 270px; }
  .streak { left: 0; bottom: 10px; transform: scale(.82); transform-origin: left bottom; }
  .target { right: 0; bottom: 22px; transform: scale(.82); transform-origin: right bottom; }
  [data-theme="dark"] .word-card { display: none; }
  .feature-rail { width: calc(100% - 32px); grid-template-columns: 1fr; margin-top: 18px; }
  .feature-rail article { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }.feature-rail article:last-child { border: 0; padding-bottom: 0; }
  .section { width: calc(100% - 32px); padding: 84px 0; }.steps { grid-template-columns: 1fr; }
  .review-card { padding: 34px 18px; gap: 45px; border-radius: 28px; }
  .language-grid { grid-template-columns: 1fr; }.about-card { grid-template-columns: 1fr; padding: 35px 24px; text-align: center; }.about-card img { max-width: 260px; margin: auto; }
  .download { width: calc(100% - 32px); grid-template-columns: 1fr; padding: 48px 24px; text-align: center; }.download img { margin: 30px auto -40px; }
  .store-buttons { justify-content: center; }.store-buttons a { min-width: 215px; }
  footer { width: calc(100% - 32px); grid-template-columns: 1fr; text-align: center; } footer img { margin: auto; }
  .site-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { justify-content: center; }
  .family-visual { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
