/* Xelmo.online — Landing Page Styles */

:root {
  --bg: #ffffff;
  --section: #f5faff;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #14b8a6;
  --highlight: #facc15;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 12px 32px rgba(30, 41, 59, 0.08);
  --shadow-sm: 0 4px 14px rgba(30, 41, 59, 0.06);
  --radius: 1.25rem;
  --radius-sm: 0.875rem;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.35rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1rem; color: var(--muted); }

ul { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, 92%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: #eef2ff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--section);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 0.9rem 1.55rem;
  font-size: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo:hover { text-decoration: none; }

.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
}

.logo-dot { color: var(--accent); }

.nav-list {
  display: flex;
  gap: 0.15rem 1.35rem;
  flex-wrap: wrap;
}

.nav-list a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(79, 70, 229, 0.12), transparent 60%),
    radial-gradient(ellipse 45% 40% at 10% 80%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 30% 30% at 50% 0%, rgba(250, 204, 21, 0.14), transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Chat scene */
.chat-scene {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.chat-card {
  width: min(100%, 380px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--section);
}

.chat-header strong { display: block; font-size: 0.95rem; }
.chat-header .online {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.avatar.tutor {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.chat-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}

.bubble {
  max-width: 88%;
  padding: 0.75rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.tutor-bubble {
  background: #eef2ff;
  color: var(--text);
  border-bottom-left-radius: 0.3rem;
  align-self: flex-start;
}

.user-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 0.3rem;
  align-self: flex-end;
}

.feedback {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.feedback .score {
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 1rem 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

.mic-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: var(--highlight);
  font-size: 0.95rem;
}

.float-bubble {
  position: absolute;
  padding: 0.45rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  animation: float 4.5s ease-in-out infinite;
  white-space: nowrap;
}

.b1 { top: 8%; left: 0; animation-delay: 0s; }
.b2 { top: 18%; right: 0; animation-delay: 0.6s; }
.b3 { bottom: 28%; left: -2%; animation-delay: 1.2s; }
.b4 { bottom: 12%; right: 4%; animation-delay: 1.8s; }
.b5 { top: 48%; right: -4%; animation-delay: 0.9s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-sky {
  background: var(--section);
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

/* Language cards */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.lang-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}

.lang-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.lang-flag {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.85rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  background: color-mix(in srgb, var(--accent) 14%, white);
  border: 2px solid color-mix(in srgb, var(--accent) 30%, white);
}

.lang-card h3 { margin-bottom: 0.85rem; }

.progress {
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 1.2s var(--ease);
}

.progress.animate span {
  width: var(--p);
}

.progress-label {
  font-size: 0.8rem;
  margin: 0;
  color: var(--muted);
}

/* Modules */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.module-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.35rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.module-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--section);
  margin-bottom: 1rem;
}

.module-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #fef9c3;
  color: #854d0e;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  list-style: none;
  padding: 0;
  counter-reset: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 6%;
  right: 6%;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  z-index: 0;
}

.timeline.animate::before {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--highlight));
  animation: progressLine 1.4s var(--ease) both;
}

@keyframes progressLine {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.timeline-item {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.milestone {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 3px solid var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.timeline-item strong {
  font-family: var(--font-head);
  font-size: 0.98rem;
}

.timeline-item > span:last-child {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 11rem;
}

/* Lesson mock */
.lesson-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.lesson-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.streak,
.xp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--section);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}

.xp-pill {
  background: #fef9c3;
  border-color: #fde68a;
}

.lesson-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.95fr;
  gap: 1rem;
}

.vocab-panel,
.speak-panel,
.quiz-panel {
  background: var(--section);
  border-radius: var(--radius);
  padding: 1.15rem;
  border: 1px solid var(--border);
}

.vocab-panel h3,
.speak-panel h3,
.quiz-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.vocab-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vocab-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vocab-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.vocab-word {
  font-weight: 700;
  color: var(--text);
}

.vocab-meaning {
  color: var(--muted);
  font-size: 0.85rem;
}

.audio-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2ff;
}

.speak-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.prompt {
  margin-bottom: 1.25rem;
}

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 2.5rem;
  margin-bottom: 1.25rem;
}

.waveform span {
  width: 5px;
  border-radius: 999px;
  background: var(--accent);
  animation: wave 1s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 90%; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 50%; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 75%; animation-delay: 0.15s; }
.waveform span:nth-child(6) { height: 40%; animation-delay: 0.25s; }
.waveform span:nth-child(7) { height: 65%; animation-delay: 0.05s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.quiz-score strong {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.quiz-score span {
  font-size: 1.1rem;
  color: var(--muted);
}

.quiz-score p {
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
}

.quiz-list li {
  padding: 0.45rem 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.quiz-list li.ok::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.quiz-list li.miss::before {
  content: "→ ";
  color: #f59e0b;
  font-weight: 700;
}

/* Achievements */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.achieve-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  box-shadow: var(--shadow-sm);
}

.achieve-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow);
}

.achieve-card:hover .achieve-badge {
  animation: badgeBounce 0.55s var(--ease);
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.15) rotate(-6deg); }
  70% { transform: scale(1.05) rotate(4deg); }
}

.achieve-badge {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.9rem;
  border-radius: 1.15rem;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}

.streak-badge { background: #ffedd5; }
.talk-badge { background: #e0e7ff; }
.vocab-badge { background: #ccfbf1; }
.grammar-badge { background: #fce7f3; }
.pronounce-badge { background: #fef9c3; }

.achieve-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.achieve-card p {
  font-size: 0.85rem;
  margin: 0;
}

/* Stories */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.story-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.story-photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--photo);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 1rem;
}

.story-meta h3 { margin-bottom: 0.25rem; }
.story-meta p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.story-card blockquote {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.55;
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.resource-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: #ccfbf1;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.resource-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.resource-card p {
  flex: 1;
  font-size: 0.92rem;
}

.resource-card a {
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card.featured {
  border: 3px solid var(--primary);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.15);
  position: relative;
  background: linear-gradient(180deg, #eef2ff 0%, #fff 35%);
}

.popular {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--highlight);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.35rem 0;
  line-height: 1;
}

.price span:first-child {
  font-size: 1.4rem;
  vertical-align: super;
}

.price .per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-desc {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.price-card ul {
  margin-bottom: 1.5rem;
  flex: 1;
}

.price-card li {
  padding: 0.45rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.price-card .btn {
  width: 100%;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.15rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 500;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.1rem;
  padding-right: 1.5rem;
}

/* CTA */
.cta-section {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 70% at 85% 40%, rgba(79, 70, 229, 0.2), transparent 50%),
    radial-gradient(ellipse 30% 50% at 50% 100%, rgba(250, 204, 21, 0.25), transparent 45%),
    linear-gradient(135deg, #eef2ff, #f0fdfa);
  text-align: center;
}

.cta-inner {
  max-width: 40rem;
}

.cta-inner p {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.cta-inner .hero-ctas {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
}

.site-footer .logo { color: #fff; margin-bottom: 0.85rem; }
.site-footer .logo-dot { color: var(--accent); }

.footer-brand p {
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 18rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 2rem 1.25rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.02em;
}

.site-footer a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
}

.footer-bottom p { margin: 0; color: #64748b; }

.legal,
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.social a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
}

.social a:hover {
  background: var(--primary);
  color: #fff;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas, .hero-stats { justify-content: center; }

  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .achieve-grid { grid-template-columns: repeat(3, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-body { grid-template-columns: 1fr; }
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 1.3rem;
    right: auto;
    width: 4px;
    height: auto;
  }
  .timeline-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
  }
  .timeline-item > span:last-child { max-width: none; }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 4%;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-list a {
    display: block;
    padding: 0.7rem 0.5rem;
  }

  .nav-toggle { display: flex; }

  .header-actions .btn-ghost { display: none; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

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

  .b5 { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 2.5rem 0 3rem; }

  .lang-grid,
  .module-grid,
  .resource-grid,
  .achieve-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .float-bubble { font-size: 0.78rem; padding: 0.35rem 0.65rem; }
  .b3, .b4 { display: none; }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .lang-grid,
  .module-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-primary {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }
}
