@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --purple: #6b45f0;
  --purple-deep: #3e1ea8;
  --purple-soft: #efe9ff;
  --navy: #141a5c;
  --ink: #0f1230;
  --muted: #5b5f80;
  --bg: #fbfaff;
  --card: #ffffff;
  --line: #e6e2f7;
  --gold: #ffb830;
  --green: #1f9d55;
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f1ff;
    --muted: #b7b3d6;
    --bg: #0d0b1f;
    --card: #17142e;
    --line: #2a2550;
    --purple-soft: #221c48;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); }
h1, h2, h3, .brand { font-family: "Fredoka", ui-rounded, sans-serif; font-weight: 600; line-height: 1.1; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 24px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary svg { width: 20px; height: 20px; fill: currentColor; }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); }
.soon { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #7b4dff 0%, #5a35e0 45%, #3e1ea8 100%); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; padding-top: 64px; padding-bottom: 0; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -0.5px; }
.hero p.lead { font-size: 20px; color: #e8e2ff; max-width: 520px; margin: 18px 0 28px; }
.hero .btn-primary { background: #fff; color: var(--purple-deep); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .soon { color: #d8d0ff; }
.hero-art { position: relative; align-self: end; }
.hero-art .jag { width: min(420px, 100%); margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); animation: bob 3.2s ease-in-out infinite; transform-origin: bottom center; }
.bubble { position: absolute; z-index: 2; top: 4%; right: 0; background: #fff; color: var(--purple-deep); font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 22px; padding: 10px 18px; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.bubble::after { content: ""; position: absolute; left: 24px; bottom: -12px; border: 8px solid transparent; border-top-color: #fff; border-left-color: #fff; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-bottom: 50px; }
.chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .jag, .float { animation: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .cta, .hero .badges { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art .jag { width: auto; height: 230px; }
  .hero .badges { padding-bottom: 40px; }
  .bubble { font-size: 18px; top: 0; right: 14%; }
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section.block { padding: 84px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.6px; font-weight: 800; font-size: 13px; color: var(--purple); }
h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 8px 0 14px; }
.sub { color: var(--muted); font-size: 19px; max-width: 640px; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

/* Worlds strip */
.worlds { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 36px; }
.world { border-radius: 18px; padding: 16px 12px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; font-weight: 700; font-size: 14px; line-height: 1.25; position: relative; overflow: hidden; }
.world b { font-family: "Fredoka", sans-serif; font-size: 26px; opacity: .9; position: absolute; top: 10px; left: 14px; }
.world span { font-weight: 500; opacity: .9; font-size: 12.5px; }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .worlds { grid-template-columns: repeat(2, 1fr); } .world { min-height: 110px; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature img { height: 120px; width: auto; margin-bottom: 14px; }
.feature h3 { font-size: 23px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Screens */
.screens { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px 20px 10px; margin: 0 -20px; }
.screens img { width: 240px; flex: 0 0 auto; border-radius: 30px; box-shadow: 0 14px 30px rgba(20,16,60,.18); scroll-snap-align: center; border: 1px solid var(--line); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .art img { width: min(360px, 100%); margin: 0 auto; }
ul.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
ul.ticks li { padding-left: 34px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .art { order: -1; } }

/* Pricing */
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; max-width: 820px; margin-left: auto; margin-right: auto; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: left; }
.price.pro { border: 2px solid var(--purple); }
.price h3 { font-size: 26px; }
.price .tag { display: inline-block; background: var(--gold); color: #3a2400; font-weight: 800; font-size: 12px; border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 700px) { .price-cards { grid-template-columns: 1fr; } }

/* Teacher */
.teacher { background: var(--purple-soft); border-radius: 30px; padding: 40px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; }
.teacher img { width: 200px; margin: 0 auto; }
@media (max-width: 760px) { .teacher { grid-template-columns: 1fr; text-align: center; padding: 28px; } .teacher ul.ticks { text-align: left; } }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--purple); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); margin: 12px 0 0; }

/* Final CTA + footer */
.final { background: linear-gradient(160deg, #7b4dff, #3e1ea8); color: #fff; border-radius: 34px; padding: 50px 30px; text-align: center; position: relative; overflow: hidden; }
.final h2 { color: #fff; }
.final .btn-primary { background: #fff; color: var(--purple-deep); }
.final img { width: 170px; margin: 0 auto 10px; }
footer { padding: 40px 0 60px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Document pages (privacy, support) */
.doc { max-width: 780px; margin: 0 auto; padding: 50px 20px 30px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 6px 0 14px; }
.doc .updated { color: var(--purple); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.doc section { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; margin-top: 18px; }
.doc section h2 { font-size: 24px; margin: 0 0 8px; }
.doc section ul { margin: 0; padding-left: 20px; color: var(--muted); }
.doc section li { margin: 6px 0; }
.doc .contact { display: flex; gap: 20px; align-items: center; background: var(--purple-soft); border-radius: 24px; padding: 22px; margin-top: 24px; }
.doc .contact img { width: 110px; }
@media (max-width: 560px) { .doc .contact { flex-direction: column; text-align: center; } }
