:root {
  --purple: #a855f7;
  --blue: #3b82f6;
  --cyan: #06d6d6;
  --gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 30%, #3b82f6 60%, #06d6d6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(168,85,247,0.08) 0%, rgba(59,130,246,0.08) 50%, rgba(6,214,214,0.06) 100%);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.08), 0 4px 12px rgba(15,23,42,0.04);
  --shadow-xl: 0 24px 64px rgba(15,23,42,0.12), 0 8px 24px rgba(15,23,42,0.06);
  --max-width: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ─── NAVIGATION ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.5rem 0.625rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  min-width: 7rem;
}
.lang-trigger:hover {
  background-color: var(--bg-light);
  border-color: #cbd5e1;
}
.lang-trigger:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.lang-trigger[aria-expanded="true"] {
  background-color: var(--bg-light);
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(168,85,247,0.15);
}

.lang-trigger-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.lang-trigger-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-trigger-chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: var(--text-tertiary);
  transition: transform 0.2s;
}
.lang-trigger[aria-expanded="true"] .lang-trigger-chevron {
  transform: rotate(180deg);
}

.lang-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 12rem;
  max-height: 20rem;
  overflow-y: auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.375rem;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.lang-dropdown.open .lang-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s;
}
.lang-option:hover {
  background: var(--bg-light);
}
.lang-option[aria-selected="true"] {
  background: rgba(168,85,247,0.1);
  color: var(--purple);
}

.lang-option-flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ─── SHARED ─── */

.section {
  padding: 5rem 1.5rem;
}

.section-alt { background: var(--bg-light); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(168,85,247,0.08);
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ─── PHONE MOCKUP ─── */

.phone-mockup {
  width: 260px;
  aspect-ratio: 9 / 19.5;
  background: var(--bg-light);
  border: 3px solid var(--border);
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 19px;
  background: var(--border);
  border-radius: 100px;
  z-index: 2;
}

.phone-mockup-placeholder {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  padding: 1.5rem;
  line-height: 1.5;
}

.phone-mockup img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
  display: block;
}

.phone-mockup-lg {
  width: 300px;
}

/* Dark-mode screenshot: dark bezel and notch so frame matches the screen */
.phone-mockup-dark {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.2);
}
.phone-mockup-dark::before {
  background: #334155;
}

/* ─── HERO ─── */

.hero {
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 520px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(168,85,247,0.08);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.hero-social-proof {
  display: none; /* hidden for now */
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-stars {
  display: flex;
  gap: 2px;
  color: #facc15;
  font-size: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.hero-phone-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-visual .phone-mockup { z-index: 1; }

/* ─── HOW IT WORKS ─── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step-card {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.step-phone {
  width: 200px;
  aspect-ratio: 9 / 19.5;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.step-phone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 18px;
  background: var(--border);
  border-radius: 100px;
}

.step-phone-placeholder {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  padding: 1rem;
  line-height: 1.4;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── FEATURES GRID ─── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(168,85,247,0.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: var(--gradient-subtle);
}

.feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── SPLIT SECTIONS (Learning Experience, Languages, Progress) ─── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-content { max-width: 480px; }

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.split-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  text-wrap: pretty;
}

.split-list-text {
  flex: 1;
  min-width: 0;
}

.split-list-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 0.2em;
}

.split-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.split-visual.split-visual-left {
  justify-content: flex-start;
}

.split-visual.split-visual-right {
  justify-content: flex-end;
}

.split-visual .phone-mockup { z-index: 1; }

.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  z-index: 0;
}

.glow-purple { background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%); }
.glow-blue { background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%); }
.glow-cyan { background: radial-gradient(circle, rgba(6,214,214,0.1) 0%, transparent 70%); }

/* ─── WHO IT'S FOR ─── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.audience-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.audience-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.audience-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.audience-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── FINAL CTA ─── */

.cta-section {
  padding: 6rem 1.5rem;
  text-align: center;
  background: var(--gradient-subtle);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(168,85,247,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(6,214,214,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.store-btn {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  line-height: 0;
}

.store-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-btn img {
  display: block;
  height: 40px;
  width: auto;
}

/* ─── PAGE HERO (FAQ, etc.) ─── */

.page-hero {
  padding: 7rem 1.5rem 3rem;
  text-align: center;
  background: var(--bg-light);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero .section-badge {
  margin-bottom: 1rem;
}

.page-hero .section-title {
  margin-bottom: 0.5rem;
}

.page-hero .section-subtitle {
  margin: 0 auto;
  max-width: 480px;
}

/* ─── FAQ ─── */

.faq-section {
  padding: 4rem 1.5rem 5rem;
}

.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(168,85,247,0.25);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.faq-a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.faq-a a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

.faq-a a:hover {
  text-decoration: underline;
}

.faq-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.faq-cta p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

.faq-cta a {
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
}

.faq-cta a:hover {
  text-decoration: underline;
}

/* ─── FOOTER ─── */

.footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-primary); }

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { margin-top: 1rem; }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .split .split-content { order: 1; }
  .split .split-visual { order: 2; }
  .split-reverse { direction: ltr; }
  .split-content { max-width: 100%; margin: 0 auto; }
  .split-list { align-items: stretch; }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-visual.split-visual-left {
    justify-content: center;
  }
  
  .split-visual.split-visual-right {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: auto;
    min-height: 64px;
    padding: 0.875rem 1.25rem;
  }
  .nav-brand { order: 1; }
  .nav-actions {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .section { padding: 3.5rem 1.25rem; }
  .hero { padding: 5.5rem 1.25rem 3rem; }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .phone-mockup { width: 220px; }
  .phone-mockup-lg { width: 260px; }
  .step-phone { width: 180px; }

  .cta-section { padding: 4rem 1.25rem; }
}

/* ─── ANIMATIONS ─── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
  