/* =====================================================================
   AEC — English learning website
   Everything visual is CSS / SVG (vector), so it stays sharp at any
   resolution, from phones up to 8K displays.
   ===================================================================== */

:root {
  --bg: #060a1c;
  --bg-2: #0c1331;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f1f3ff;
  --muted: #a9b1d8;
  --brand: #7c86ff;
  --brand-2: #2fd4f0;
  --gold: #ffbf5a;
  --coral: #ff7096;
  --mint: #43e6a8;
  --violet: #b48cff;

  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --max: 1240px;
  --nav-h: 4.75rem;
}

/* Scale the whole UI up on very large screens (1440p, 4K, 8K). */
@media (min-width: 2200px) { html { font-size: 20px; } :root { --max: 1560px; } }
@media (min-width: 3400px) { html { font-size: 28px; } :root { --max: 2200px; } }
@media (min-width: 6800px) { html { font-size: 48px; } :root { --max: 4200px; } }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: rgba(124, 134, 255, 0.45); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 10px; background: #fff; color: #000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------ background */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg__blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
  animation: drift 24s ease-in-out infinite alternate;
}
.bg__blob--1 { width: 55vmax; height: 55vmax; left: -15vmax; top: -22vmax; background: radial-gradient(circle, #4b55ff, transparent 65%); }
.bg__blob--2 { width: 45vmax; height: 45vmax; right: -16vmax; top: 15vh; background: radial-gradient(circle, #13b6d6, transparent 65%); animation-duration: 30s; }
.bg__blob--3 { width: 40vmax; height: 40vmax; left: 30vw; bottom: -22vmax; background: radial-gradient(circle, #c3418f, transparent 65%); animation-duration: 36s; opacity: 0.32; }
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
}
.bg__noise {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@keyframes drift { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }

/* ------------------------------------------------------------ type */

.display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0.5rem 0 1.4rem;
}
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.08; letter-spacing: -0.015em;
  margin: 0.4rem 0 1rem;
}
.grad {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold), var(--coral) 45%, var(--brand));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-right: 0.08em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; margin: 0;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2);
}
.eyebrow .dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--mint);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 230, 168, 0.6); }
  70% { box-shadow: 0 0 0 0.6rem rgba(67, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 230, 168, 0); }
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.muted { color: var(--muted); }
.tiny { font-size: 0.78rem; margin: 0; }

/* ------------------------------------------------------------ buttons */

.btn {
  --h: 3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: var(--h); padding: 0 1.4rem; border-radius: 999px;
  font: 600 0.98rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { --h: 2.5rem; padding: 0 1.05rem; font-size: 0.9rem; }
.btn--lg { --h: 3.5rem; padding: 0 1.7rem; font-size: 1.02rem; }
.btn--primary {
  color: #0a0f2c;
  background: linear-gradient(135deg, #ffd27a, #ffb347 45%, #ff8a5c);
  box-shadow: 0 10px 30px -10px rgba(255, 170, 80, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(255, 170, 80, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--ghost { background: var(--surface); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ------------------------------------------------------------ nav */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: rgba(6, 10, 28, 0.75);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark { width: 2.4rem; height: 2.4rem; filter: drop-shadow(0 6px 16px rgba(124, 134, 255, 0.55)); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.04em; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  position: relative; text-decoration: none; color: var(--muted);
  font-weight: 500; font-size: 0.95rem; transition: color 0.2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 0.6rem; }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 2.75rem; height: 2.75rem; padding: 0 0.7rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; margin: 0;
    flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1.5rem;
    background: rgba(6, 10, 28, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { margin-left: auto; }
  .nav__cta .btn--ghost { display: none; }
}
@media (max-width: 520px) { .nav__cta .btn--primary { display: none; } }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 5rem;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero__copy { animation: hero-in 1s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(1.5rem); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.75rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat > span { color: var(--muted); font-size: 0.88rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem; translate: -50% 0;
  width: 1.6rem; height: 2.6rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.3);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 0.45rem; width: 4px; height: 0.5rem; margin-left: -2px;
  border-radius: 4px; background: var(--ink); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(0.9rem); } }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* ------------------------------------------------------------ 3D scene */

.scene {
  position: relative;
  height: clamp(26rem, 46vw, 40rem);
  perspective: 1200px;
  perspective-origin: 50% 40%;
}
.scene__inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.layer { position: absolute; transform-style: preserve-3d; will-change: transform; }
.layer__body { display: block; animation: float 7s ease-in-out infinite; }
.pos-e .layer__body, .pos-bubble2 .layer__body { animation-delay: -2.3s; animation-duration: 8s; }
.pos-c .layer__body, .pos-word .layer__body { animation-delay: -4.1s; animation-duration: 9s; }
@keyframes float { 50% { transform: translate3d(0, -14px, 0); } }

.orb { border-radius: 50%; }
.orb--1 {
  width: 64%; aspect-ratio: 1; left: 18%; top: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(124, 134, 255, 0.85), rgba(60, 40, 180, 0.3) 55%, transparent 70%);
  filter: blur(24px);
}
.orb--2 {
  width: 32%; aspect-ratio: 1; right: 0; bottom: 4%;
  background: radial-gradient(circle at 35% 35%, rgba(47, 212, 240, 0.8), transparent 68%);
  filter: blur(18px);
}
.globe { width: 62%; left: 19%; top: 12%; overflow: visible; }

.glyph {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(5rem, 10vw, 9.5rem);
  user-select: none;
}
.glyph--indigo {
  color: #eef0ff;
  text-shadow: 0 1px 0 #c3c8ff, 0 2px 0 #aab0ff, 0 3px 0 #9199f6, 0 4px 0 #7a82ea, 0 5px 0 #666ed8,
    0 6px 0 #545cc4, 0 7px 0 #444bad, 0 8px 0 #363c95, 0 20px 30px rgba(8, 10, 40, 0.6), 0 34px 60px rgba(8, 10, 40, 0.45);
}
.glyph--gold {
  color: #fff4dd;
  text-shadow: 0 1px 0 #ffe2a6, 0 2px 0 #ffd488, 0 3px 0 #f7c26c, 0 4px 0 #eaae55, 0 5px 0 #d99a42,
    0 6px 0 #c48633, 0 7px 0 #ab7128, 0 8px 0 #915d1f, 0 20px 30px rgba(40, 20, 5, 0.55), 0 34px 60px rgba(8, 10, 40, 0.45);
}
.glyph--cyan {
  color: #e6fbff;
  text-shadow: 0 1px 0 #b5f1fb, 0 2px 0 #95e8f6, 0 3px 0 #74dcef, 0 4px 0 #57cde5, 0 5px 0 #40bbd6,
    0 6px 0 #30a6c2, 0 7px 0 #258fab, 0 8px 0 #1b7792, 0 20px 30px rgba(5, 30, 40, 0.55), 0 34px 60px rgba(8, 10, 40, 0.45);
}

.pos-a { left: 6%; top: 2%; }
.pos-e { right: 10%; top: 30%; }
.pos-c { left: 40%; top: 48%; }
.pos-bubble1 { left: 0; top: 40%; }
.pos-bubble2 { right: 0; top: 3%; }
.pos-progress { left: 5%; bottom: 4%; width: min(15rem, 46%); }
.pos-word { right: 0; bottom: 8%; width: min(16.5rem, 50%); }

.card {
  background: linear-gradient(160deg, rgba(40, 48, 110, 0.92), rgba(16, 22, 58, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 1rem 1.15rem;
}
.bubble { font-weight: 700; font-size: 1.05rem; padding: 0.85rem 1.2rem; border-radius: 20px 20px 20px 6px; white-space: nowrap; }
.bubble--right { border-radius: 20px 20px 6px 20px; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }

.progress-card__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.progress-card__row strong { font-family: var(--font-display); font-size: 1.5rem; }
.pill { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.pill--mint { background: rgba(67, 230, 168, 0.15); color: var(--mint); }
.meter { height: 0.5rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-bottom: 0.6rem; }
.meter span {
  display: block; height: 100%; width: 72%; border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--brand-2));
  animation: fill 2.4s var(--ease) both 0.6s;
}
@keyframes fill { from { width: 0; } }

.eyebrow-mini { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--gold); margin-bottom: 0.35rem; }
.word-mini__term { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; margin: 0; }
.word-mini__ipa { color: var(--brand-2); font-size: 0.9rem; margin: 0.2rem 0 0.4rem; }

@media (max-width: 600px) {
  .scene { height: 24rem; }
  .glyph { font-size: 4.5rem; }
  .bubble { font-size: 0.9rem; }
  .pos-word { width: 56%; bottom: 4%; }
  .pos-progress { width: 46%; bottom: 22%; }
  .word-mini__term { font-size: 1.2rem; }
  .card { padding: 0.75rem 0.85rem; }
}

/* ------------------------------------------------------------ marquee */

.hello {
  overflow: hidden; padding: 1.4rem 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hello__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.hello:hover .hello__track { animation-play-state: paused; }
.hello__group { display: flex; }
.hello__group span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem;
  color: var(--muted); white-space: nowrap; padding: 0 1.6rem; position: relative;
}
.hello__group span::after { content: "✦"; position: absolute; right: -0.35rem; top: 50%; translate: 0 -50%; font-size: 0.8rem; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections */

.section { position: relative; padding: clamp(5rem, 10vw, 8.75rem) 0; }
.section__head { max-width: 46rem; margin: 0 auto 3.5rem; text-align: center; }

/* reveal on scroll (uses `translate`, so it never fights `transform` effects) */
.reveal { opacity: 0; translate: 0 2.25rem; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: none; }

/* 3D tilt cards */
.tilt {
  position: relative;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.3s, opacity 0.9s var(--ease), translate 0.9s var(--ease);
}
.tilt.is-tilting { transition: transform 0.08s linear, border-color 0.3s, box-shadow 0.3s, opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(28rem circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.13), transparent 40%);
  opacity: 0; transition: opacity 0.3s;
}
.tilt:hover::after { opacity: 1; }

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------ courses */

.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.4rem; }
.course {
  --accent: var(--brand);
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.8rem; border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  overflow: hidden;
}
.course::before {
  content: ""; position: absolute; right: -4rem; top: -4rem; width: 11rem; height: 11rem; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 70%); opacity: 0.22; filter: blur(10px);
}
.course:hover { border-color: rgba(255, 255, 255, 0.25); box-shadow: var(--shadow); }
.course__top { display: flex; align-items: center; justify-content: space-between; }
.course__icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 16px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateZ(40px);
}
.course__icon svg { width: 1.6rem; height: 1.6rem; }
.badge {
  font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.course__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin: 0.3rem 0 0; transform: translateZ(30px); }
.course__desc { color: var(--muted); margin: 0; flex: 1; }
.course__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.course__meta li { font-size: 0.8rem; color: var(--muted); padding: 0.25rem 0.65rem; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.course__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
.course__price { color: var(--muted); font-size: 0.9rem; }
.course__price strong { color: var(--ink); font-size: 1.3rem; font-family: var(--font-display); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

.course--skeleton { min-height: 22rem; position: relative; }
.course--skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------------ method */

.method {
  position: relative; overflow: hidden;
  padding: clamp(6rem, 12vw, 11rem) 0;
  background: linear-gradient(180deg, transparent, rgba(124, 134, 255, 0.08) 30%, rgba(47, 212, 240, 0.05) 70%, transparent);
}
.method__words {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-around;
}
.method__words span {
  font-family: var(--font-display); font-weight: 800; line-height: 0.9;
  font-size: clamp(5rem, 16vw, 15rem); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  will-change: transform;
}
.method__words span:nth-child(even) { align-self: flex-end; }
.method .container { position: relative; z-index: 1; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step {
  padding: 2rem 1.6rem; border-radius: var(--radius);
  background: rgba(10, 15, 42, 0.78); border: 1px solid var(--line);
  will-change: transform;
}
.step__num {
  display: block; margin-bottom: 1rem;
  font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ level test */

.test { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.cefr { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.cefr span {
  padding: 0.45rem 0.9rem; border-radius: 12px; font-weight: 700; font-size: 0.9rem;
  background: var(--surface); border: 1px solid var(--line);
}
.cefr span:nth-child(1), .cefr span:nth-child(2) { color: var(--mint); }
.cefr span:nth-child(3), .cefr span:nth-child(4) { color: var(--brand-2); }
.cefr span:nth-child(5), .cefr span:nth-child(6) { color: var(--gold); }

.quiz { padding: clamp(1.5rem, 3vw, 2.5rem); min-height: 28rem; display: flex; flex-direction: column; }
.quiz__top { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.6rem; }
.quiz__bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 0.5s var(--ease); }
.quiz__body { flex: 1; display: flex; flex-direction: column; }
.quiz__body.is-entering { animation: enter 0.45s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateX(1.5rem); } }
.quiz__q { font-family: var(--font-display); font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 600; line-height: 1.3; margin-bottom: 1.4rem; }
.quiz__options { display: grid; gap: 0.75rem; }
.option {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: left;
  padding: 0.95rem 1.1rem; border-radius: 16px; cursor: pointer;
  font: 500 1rem/1.4 var(--font-body); color: var(--ink);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.option:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); transform: translateX(4px); }
.option:disabled { cursor: default; }
.option__key {
  flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 9px;
  background: rgba(255, 255, 255, 0.08); font-weight: 700; font-size: 0.85rem;
}
.option.is-correct { border-color: var(--mint); background: rgba(67, 230, 168, 0.13); }
.option.is-wrong { border-color: var(--coral); background: rgba(255, 112, 150, 0.13); }

.result { text-align: center; margin: auto 0; }
.result__label { color: var(--muted); margin-bottom: 0.3rem; }
.result__level {
  font-family: var(--font-display); font-size: clamp(4.5rem, 9vw, 6.5rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--coral), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0;
}
.result__name { font-size: 1.3rem; font-weight: 700; margin: 0.4rem 0 0.8rem; }
.result__text { color: var(--muted); max-width: 30rem; margin: 0 auto 1.4rem; }
.result__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.result__note { margin-top: 1.2rem; }
@media (max-width: 980px) { .test { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ daily */

.daily__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.word { padding: clamp(1.8rem, 3.5vw, 3rem); }
.word__term {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(2.8rem, 5.5vw, 4.4rem); margin: 0.8rem 0 0.6rem;
  transform: translateZ(40px);
}
.word__meta { color: var(--brand-2); margin-bottom: 1rem; }
.word__def { font-size: 1.15rem; margin-bottom: 1rem; }
.word__example {
  margin: 0 0 1.6rem; padding: 0.9rem 1.2rem; border-left: 3px solid var(--gold);
  background: rgba(255, 191, 90, 0.07); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--muted);
}
.cache-note { margin-top: 1rem; }
.features__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.features__list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.features__list h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.features__list p { color: var(--muted); margin: 0; }
.feature__icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; }
.feature__icon svg { width: 1.4rem; height: 1.4rem; }
.feature__icon--indigo { color: var(--brand); background: rgba(124, 134, 255, 0.14); }
.feature__icon--cyan { color: var(--brand-2); background: rgba(47, 212, 240, 0.14); }
.feature__icon--gold { color: var(--gold); background: rgba(255, 191, 90, 0.14); }
.feature__icon--coral { color: var(--coral); background: rgba(255, 112, 150, 0.14); }
@media (max-width: 980px) { .daily__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ teachers */

.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.4rem; }
.teacher {
  text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.teacher h3 { font-size: 1.2rem; margin: 1.2rem 0 0.2rem; }
.teacher .muted { margin: 0; }
.teacher__from { font-size: 0.85rem; color: var(--muted); opacity: 0.8; margin: 0.2rem 0 1rem; }
.avatar {
  position: relative; display: grid; place-items: center; margin: 0 auto;
  width: 6rem; height: 6rem; border-radius: 50%;
  font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #fff;
  transform: translateZ(50px);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}
.avatar::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.25); animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar--1 { background: linear-gradient(135deg, #7c86ff, #4a3fd6); }
.avatar--2 { background: linear-gradient(135deg, #ffbf5a, #ff7a59); }
.avatar--3 { background: linear-gradient(135deg, #2fd4f0, #2577e8); }
.avatar--4 { background: linear-gradient(135deg, #ff7096, #b04ad8); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 0.5rem; }
.tags li { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

/* ------------------------------------------------------------ testimonials */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { margin: 0; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.65; position: relative; }
.quote blockquote::before {
  content: "\201C"; position: absolute; left: -0.3rem; top: -2.2rem;
  font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--brand); opacity: 0.35;
}
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 980px) { .quotes { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ pricing */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 2.2rem 2rem; border-radius: 26px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.plan h3 { font-size: 1.15rem; color: var(--muted); font-weight: 600; margin-bottom: 0.6rem; }
.plan__price { margin-bottom: 0.4rem; }
.plan__price strong { font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; line-height: 1; }
.plan__price span { color: var(--muted); margin-left: 0.25rem; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured {
  background:
    linear-gradient(165deg, #182056, #0e1438) padding-box,
    linear-gradient(135deg, var(--gold), var(--coral), var(--brand)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 90px -40px rgba(255, 140, 120, 0.45);
}
.plan__badge {
  position: absolute; top: -0.85rem; left: 50%; translate: -50% 0;
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
  color: #0a0f2c; background: linear-gradient(135deg, #ffd27a, #ff8a5c);
}
.checks { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: rgba(67, 230, 168, 0.15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2343e6a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 80% no-repeat;
}
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 28rem; margin-inline: auto; } }

/* ------------------------------------------------------------ FAQ */

.faq { max-width: 52rem; }
.faq__list { display: grid; gap: 0.8rem; }
.faq details {
  border-radius: 18px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035); transition: background 0.3s, border-color 0.3s;
}
.faq details[open] { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 3.5rem 1.2rem 1.4rem;
  font-weight: 600; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; translate: 0 -50%;
  width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); font-size: 1.2rem; transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }

/* ------------------------------------------------------------ contact */

.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.contact__info { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__info li { display: flex; flex-direction: column; }
.contact__info span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-2); font-weight: 700; }
.contact__info a { text-decoration: none; }
.contact__info a:hover { text-decoration: underline; }

.form { padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: 0.45rem; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 14px;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: rgba(6, 10, 28, 0.55); border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%23a9b1d8' stroke-width='1.8' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1rem; padding-right: 2.5rem; }
.form select option { background: var(--bg-2); }
.form textarea { resize: vertical; min-height: 7rem; }
.form input::placeholder, .form textarea::placeholder { color: rgba(169, 177, 216, 0.55); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 134, 255, 0.2);
}
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form__status.is-success { color: var(--mint); }
.form__status.is-error { color: var(--coral); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 980px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; background: rgba(0, 0, 0, 0.2); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__tag { margin: 0.8rem 0 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }
.footer__links a { text-decoration: none; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.85rem;
}
.footer__bottom p { margin: 0; }
.cache-status::before {
  content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  margin-right: 0.5rem; background: var(--muted); vertical-align: middle;
}
.cache-status.is-redis::before { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.cache-status.is-memory::before { background: var(--gold); }

/* ------------------------------------------------------------ accessibility */

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