:root {
  --ink: #071820;
  --deep: #0c3340;
  --brand: #2587b4;
  --brand-bright: #4eb6df;
  --mist: #e8f3f7;
  --paper: #f4f9fb;
  --text: #132029;
  --muted: #5b717c;
  --line: rgba(37, 135, 180, 0.22);
  --radius-phone: 2.1rem;
  --shadow-phone: 0 28px 60px rgba(7, 24, 32, 0.35);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: #fff;
  border-radius: 0.4rem;
  font-weight: 600;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.15rem 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #f4fbfd;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
}

.lang-link {
  text-decoration: none;
  color: rgba(244, 251, 253, 0.72);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.45rem;
  border-radius: 0.35rem;
  transition: background 180ms ease, color 180ms ease;
}

.lang-link:hover,
.lang-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.lang-link.is-active {
  color: #071820;
  background: rgba(244, 251, 253, 0.92);
}

.header-nav {
  display: flex;
  gap: 0.35rem;
}

.nav-link {
  text-decoration: none;
  color: rgba(244, 251, 253, 0.86);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.45rem;
  transition: background 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f4fbfd;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(78, 182, 223, 0.28), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(37, 135, 180, 0.35), transparent 50%),
    linear-gradient(160deg, #071820 0%, #0c3340 48%, #134a5c 100%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -12vmax;
  top: -18vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 182, 223, 0.35), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-waves {
  position: absolute;
  inset: 18% 0 0;
  width: 100%;
  height: 70%;
  color: rgba(180, 224, 240, 0.18);
}

.wave {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-wave 4.8s ease forwards;
}

.wave-b {
  animation-delay: 0.35s;
  color: rgba(180, 224, 240, 0.12);
}

.wave-c {
  animation-delay: 0.7s;
  color: rgba(180, 224, 240, 0.1);
}

.hero-staff {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  display: grid;
  gap: 1.15rem;
  opacity: 0.08;
}

.hero-staff span {
  display: block;
  height: 1px;
  background: #fff;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: 7.5rem 0 4rem;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-headline {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: rgba(244, 251, 253, 0.94);
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.hero-support {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: rgba(220, 236, 243, 0.82);
  font-size: 1.08rem;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}

.store-row-center {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  transition: transform 200ms ease, filter 200ms ease;
}

.store-badge img {
  width: 148px;
  height: auto;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  outline: none;
}

.hero-visual {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(1.6rem) scale(0.98);
  animation: rise-scale 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.phone-stage {
  position: relative;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 12% -18% -8%;
  background: radial-gradient(ellipse at center, rgba(78, 182, 223, 0.35), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

.phone {
  position: relative;
  margin: 0;
  border-radius: var(--radius-phone);
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.phone img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.phone-primary {
  width: min(100%, 320px);
  animation: float-y 5.5s ease-in-out infinite;
}

.phone-secondary {
  width: min(100%, 280px);
  justify-self: center;
}

/* —— Sections —— */
.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
}

.section-lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.curriculum {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--mist);
  border-block: 1px solid var(--line);
}

.topic-rail {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
}

.topic-rail li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: -0.02em;
  color: var(--deep);
  padding-bottom: 0.15rem;
  border-bottom: 2px solid rgba(37, 135, 180, 0.45);
}

.feature {
  padding: clamp(3.75rem, 9vw, 6.5rem) 0;
}

.feature-guided {
  background:
    linear-gradient(180deg, rgba(232, 243, 247, 0.7), rgba(244, 249, 251, 0.2));
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.feature-split-reverse {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
}

.feature-split-reverse .feature-copy {
  order: 2;
}

.feature-split-reverse .phone {
  order: 1;
}

.voices {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--deep);
  color: #eef7fa;
}

.seo-depth {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--paper);
}

.seo-body {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.faq {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
  background: var(--mist);
  border-block: 1px solid var(--line);
}

.faq-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.faq-item {
  border-bottom: 1px solid rgba(12, 51, 64, 0.14);
  padding-bottom: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 0.35rem 0;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 700;
}

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

.faq-item p {
  margin: 0.45rem 0 0.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.voices .section-title {
  color: #f4fbfd;
  margin-bottom: 2rem;
}

.quote-stack {
  display: grid;
  gap: 1.5rem;
}

.quote-stack blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 46rem;
}

.quote-stack p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(244, 251, 253, 0.92);
}

.quote-stack blockquote + blockquote {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(180, 224, 240, 0.18);
}

.closing {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(78, 182, 223, 0.22), transparent 55%),
    linear-gradient(180deg, #0c3340, #071820);
  color: #f4fbfd;
  text-align: center;
}

.closing-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.035em;
}

.closing-copy {
  margin: 0 0 1.75rem;
  color: rgba(220, 236, 243, 0.82);
}

.site-footer {
  padding: 2.25rem 0 2.75rem;
  background: #06141a;
  color: rgba(210, 228, 236, 0.72);
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #eef7fa;
}

.footer-meta,
.footer-copy {
  margin: 0;
  font-size: 0.92rem;
}

.footer-copy {
  margin-top: 1rem;
  opacity: 0.7;
}

/* —— Motion helpers —— */
.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero-headline,
  .hero-support,
  .store-row,
  .hero-visual,
  .wave,
  .phone-primary,
  .hero-glow,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-scale {
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes draw-wave {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 6%, 0) scale(1.08);
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .feature-split,
  .feature-split-reverse {
    grid-template-columns: 1fr;
  }

  .feature-split-reverse .feature-copy,
  .feature-split-reverse .phone {
    order: initial;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 6.5rem 0 3.25rem;
    text-align: center;
  }

  .hero-headline,
  .hero-support {
    margin-inline: auto;
  }

  .hero-headline {
    max-width: 18ch;
  }

  .store-row {
    justify-content: center;
  }

  .phone-primary {
    width: min(100%, 260px);
  }

  .feature-copy {
    text-align: center;
  }

  .section-lede {
    margin-inline: auto;
  }

  .topic-rail {
    justify-content: center;
  }

  .voices .section-title,
  .quote-stack {
    text-align: center;
  }

  .quote-stack blockquote {
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .brand-name {
    font-size: 1rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .lang-link {
    padding: 0.3rem 0.35rem;
    font-size: 0.7rem;
  }

  .phone-primary,
  .phone-secondary {
    width: min(100%, 230px);
  }
}
