:root {
  --primary: #674bff;
  --primary-dark: #4f35d2;
  --primary-light: #eee9ff;
  --accent: #42d6c5;
  --bg: #f8f6ff;
  --surface: #ffffff;
  --text: #171342;
  --text-2: #6c6685;
  --border: #ddd4f1;
  --speaking: #625bf6;
  --speaking-bg: #f0efff;
  --listening: #d18400;
  --listening-bg: #fff5df;
  --reading: #18a999;
  --reading-bg: #eafbf8;
  --grammar: #ff7a72;
  --grammar-bg: #fff0ef;
  --vocab: #3b82f6;
  --vocab-bg: #ebf3ff;
  --gold: #c77800;
  --gold-bg: #fff3c4;
  --radius: 20px;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 246, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(221, 212, 241, 0.6);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--primary); }
.nav a.btn, .nav a.btn:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(103, 75, 255, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 18px;
  background: #0f0b2e;
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px rgba(15, 11, 46, 0.3);
}
.play-btn:hover { transform: translateY(-2px); }
.play-btn svg { width: 28px; height: 28px; flex: none; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.play-btn small { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.play-btn strong { font-size: 1.2rem; font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 85%, rgba(66, 133, 244, 0.55), transparent 38%),
    radial-gradient(circle at 92% 20%, rgba(150, 120, 255, 0.6), transparent 40%),
    linear-gradient(160deg, #6a4dff 0%, #5a3cf0 55%, #4b2fd6 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding-top: 72px;
  padding-bottom: 0;
}
.hero-copy { padding-bottom: 72px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 20px 0 18px;
}
.hl { color: var(--accent); }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.hero-art {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  filter: drop-shadow(0 30px 40px rgba(20, 10, 80, 0.35));
}
.bubble {
  position: absolute;
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(20, 10, 80, 0.25);
  white-space: nowrap;
}
.bubble b { color: var(--primary); }
.bubble-1 { top: 22%; left: -4%; }
.bubble-2 { top: 48%; right: -2%; }
.bubble-2 b { color: var(--reading); }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  margin-top: -1px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}
.stat span { color: var(--text-2); font-size: 0.92rem; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 10px 0 14px;
}
.section-head p { color: var(--text-2); margin: 0; font-size: 1.05rem; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(103, 75, 255, 0.12);
}
.feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.c-speaking { background: var(--speaking-bg); color: var(--speaking); }
.c-listening { background: var(--listening-bg); color: var(--listening); }
.c-reading { background: var(--reading-bg); color: var(--reading); }
.c-grammar { background: var(--grammar-bg); color: var(--grammar); }
.c-vocab { background: var(--vocab-bg); color: var(--vocab); }
.c-gold { background: var(--gold-bg); color: var(--gold); }

/* ---------- Screenshots ---------- */
.shots-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  padding: 4px 20px 24px;
  margin: 0 -20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.shots img {
  flex: none;
  width: 236px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  scroll-snap-align: start;
  box-shadow: 0 14px 34px rgba(23, 19, 66, 0.14);
  background: var(--primary-light);
}
.shots-hint { text-align: center; color: var(--text-2); font-size: 0.9rem; margin: 8px 0 0; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-2); }

/* ---------- Ellie ---------- */
.meet {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 48px 0;
  overflow: hidden;
}
.meet img { width: 100%; max-width: 360px; margin: 0 auto; align-self: end; }
.meet-copy { padding-bottom: 48px; }
.meet h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 900; line-height: 1.15; margin: 8px 0 16px; }
.meet p { color: var(--text-2); margin: 0 0 16px; font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  color: #fff;
  border-radius: 28px;
  padding: 64px 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(66, 214, 197, 0.35), transparent 40%),
    linear-gradient(140deg, #6a4dff, #4b2fd6);
}
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; margin: 0 0 12px; line-height: 1.15; }
.cta p { margin: 0 auto 28px; max-width: 520px; color: rgba(255, 255, 255, 0.88); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-2);
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal .container { max-width: 820px; }
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; margin: 0 0 6px; line-height: 1.15; }
.legal .updated { color: var(--text-2); margin: 0 0 32px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: #3b3658; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--bg); font-weight: 700; }
.legal .table-wrap { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .hero-copy { padding-bottom: 8px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art img { max-height: 380px; }
  .bubble-1 { left: 2%; }
  .bubble-2 { right: 2%; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .meet { grid-template-columns: 1fr; padding: 36px 28px 0; text-align: center; gap: 8px; }
  .meet-copy { order: -1; padding-bottom: 8px; }
  .checks { justify-items: center; }
  .meet img { max-width: 260px; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .bubble { font-size: 0.8rem; padding: 8px 12px; }
  .shots img { width: 200px; }
  .legal-card { padding: 28px 22px; }
}
