:root {
  --bg: #0B1220;
  --bg-2: #0F1828;
  --card: #131C2E;
  --line: #24304A;
  --line-2: #2A3650;
  --text: #F3F5F9;
  --text-2: #C9D0DD;
  --muted: #A7B0C2;
  --dim: #8E98AC;
  --accent: #C6F432;
  --warn: #FFB547;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.muted { color: #5B6782; }
.body-muted { color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }
.body-light { color: var(--text-2); font-size: 1.1875rem; line-height: 1.6; }
.small-muted { color: var(--muted); font-size: 1rem; line-height: 1.4; }
.narrow { max-width: 380px; }

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

/* ---------- progress + cursor glow ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #5EEAD4);
  transform-origin: 0 50%; transform: scaleX(0); z-index: 100;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(198,244,50,.10), transparent 62%);
  transition: opacity .4s; opacity: 0; will-change: transform;
}
main, .footer, .site-header { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid #1E2A42;
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .4s var(--ease), background .3s;
  animation: dropIn .9s var(--ease) both;
}
.site-header.hide { transform: translateY(-100%); }
.nav {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { font-family: 'Nunito', sans-serif; font-size: 1.125rem; font-weight: 700; }
.logo span { color: var(--accent); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav-links a:not(.btn-pill) { font-size: 1.0625rem; font-weight: 500; color: var(--text-2); position: relative; padding: 6px 0; }
.nav-links a:not(.btn-pill)::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:not(.btn-pill):hover::after { transform: scaleX(1); transform-origin: left; }
.btn-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--accent); color: var(--bg) !important; font-size: 1.0625rem; font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border-radius: 14px; font-size: 1.1875rem; font-weight: 700; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 10px 40px -8px rgba(198,244,50,.6); color: var(--bg); }
.btn-primary::before, .btn-pill::before {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-pill { position: relative; overflow: hidden; }
.btn-primary:hover::before, .btn-pill:hover::before { left: 130%; }
.btn-ghost { border: 2px solid var(--line-2); font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-dark { background: var(--bg); color: var(--text); min-height: 64px; padding: 0 30px; border-radius: 16px; font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 800; letter-spacing: -.01em; }
.magnetic { will-change: transform; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
#bits { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.ring {
  position: absolute; right: -180px; top: -160px; width: 640px; height: 640px;
  border-radius: 50%; border: 2px solid #1A2539;
  animation: spin 40s linear infinite;
}
.ring::after {
  content: ''; position: absolute; top: 40px; left: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 24px var(--accent);
}
.hero-grid {
  position: relative; padding-top: 72px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px;
}
.hero-copy { flex: 999 1 520px; min-width: 0; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--accent); color: var(--accent);
  font-family: 'Nunito', sans-serif; font-size: 0.9375rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  animation: dropIn .8s .2s var(--ease) both;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: ping 1.6s infinite; }
.hero-title {
  font-size: clamp(4rem, 10vw, 9.5rem); line-height: .86; font-weight: 800; letter-spacing: -.05em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .word { display: inline-block; transform: translateY(110%) rotate(6deg); animation: wordUp 1s var(--ease) forwards; }
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: .35s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: .5s; }
.hero-title .line:nth-child(2) .word { animation-delay: .7s; }
.hero-title .word.accent { text-shadow: 0 0 60px rgba(198,244,50,.35); }
.lead { max-width: 560px; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.sub { max-width: 540px; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-photo { flex: 1 1 380px; max-width: 460px; margin: 0 auto; position: relative; aspect-ratio: 460 / 540; animation: riseIn 1.2s .5s var(--ease) both; }
.hero-photo img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; z-index: 2; transition: transform .2s ease-out; }
.blob {
  position: absolute; left: 4%; right: 4%; bottom: 0; aspect-ratio: 1; background: var(--accent);
  border-radius: 50%; animation: morph 9s ease-in-out infinite;
  box-shadow: 0 0 120px -10px rgba(198,244,50,.45);
}
.orbit { position: absolute; left: 50%; bottom: 0; border-radius: 50%; border: 1.5px dashed #2D3B58; transform: translateX(-50%); z-index: 1; }
.orbit-1 { width: 108%; aspect-ratio: 1; animation: spinC 24s linear infinite; }
.orbit-2 { width: 124%; aspect-ratio: 1; animation: spinC 38s linear infinite reverse; border-style: solid; border-color: #1E2A42; }
.orbit i { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #5EEAD4; box-shadow: 0 0 18px #5EEAD4; }
.orbit-2 i { background: var(--warn); box-shadow: 0 0 18px var(--warn); }
.float-chip {
  position: absolute; z-index: 3; padding: 10px 16px; border-radius: 14px;
  background: rgba(19,28,46,.85); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.125rem; color: var(--accent);
  animation: bob 5s ease-in-out infinite;
}
.chip-1 { left: -6%; top: 22%; }
.chip-2 { right: -4%; top: 44%; animation-delay: -1.6s; color: #5EEAD4; }
.chip-3 { left: 2%; bottom: 14%; animation-delay: -3s; color: var(--warn); }

/* ---------- marquee ---------- */
.marquee { background: var(--bg-2); border-block: 1px solid #1E2A42; overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-size: 1.875rem; font-weight: 800; letter-spacing: -.02em; color: transparent;
  -webkit-text-stroke: 1.5px #3A4A6B; white-space: nowrap; display: flex; align-items: center; gap: 48px;
}
.marquee span::after { content: '✦'; -webkit-text-stroke: 0; color: var(--accent); font-size: 1.375rem; }

/* ---------- stats ---------- */
.stats { background: var(--accent); color: var(--bg); position: relative; overflow: hidden; }
.stats::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-100%); animation: sweep 5s 1s infinite;
}
.stats-grid { position: relative; padding-block: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; }
.stat { display: flex; flex-direction: column; gap: 6px; font-size: 1rem; font-weight: 500; line-height: 1.35; }
.num { font-size: 2.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { padding: 120px 0 56px; }
.section.tight { padding: 56px 0 120px; }
.section.alt { background: var(--bg-2); border-block: 1px solid #1E2A42; padding: 120px 0; }
#tutor { padding: 120px 0; }
.stack { display: flex; flex-direction: column; gap: 56px; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.eyebrow { font-family: 'Nunito', sans-serif; font-size: 0.9375rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow.dark { color: var(--bg); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; font-weight: 800; letter-spacing: -.035em; }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px; color: var(--accent); position: relative; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(198,244,50,.13), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: rgba(198,244,50,.55); box-shadow: 0 24px 60px -24px rgba(198,244,50,.3); }
.card:hover::before { opacity: 1; }
.card svg { transition: transform .5s var(--ease); }
.card:hover svg { transform: scale(1.18) rotate(-8deg); }
.card .tag { font-family: 'Nunito', sans-serif; font-size: 0.875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card h3 { font-size: 1.75rem; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.card p { font-size: 1.0625rem; line-height: 1.55; color: var(--muted); }
.card.big { border-radius: 28px; padding: 40px 36px; gap: 20px; }
.card.big h3 { font-size: 2.125rem; font-weight: 800; letter-spacing: -.025em; }
.card.big p { font-size: 1.125rem; }
.arrow-link { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.125rem; font-weight: 700; color: var(--accent); }
.arrow-link svg { transition: transform .35s var(--ease) !important; }
.arrow-link:hover svg { transform: translateX(8px) !important; }
.tilt { transform-style: preserve-3d; }

/* ---------- quiz ---------- */
.quiz-wrap {
  border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 56px); background: var(--bg-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px; position: relative; overflow: hidden;
}
.quiz-wrap::before {
  content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,234,212,.12), transparent 65%); animation: bob 8s ease-in-out infinite;
}
.quiz-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; position: relative; }
.quiz-intro h3 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.quiz-intro .body-muted { font-size: 1.125rem; }
.quiz {
  flex: 1 1 420px; min-width: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px;
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; position: relative;
}
.quiz-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pill { padding: 6px 14px; border-radius: 999px; background: #1E2A42; font-family: 'Nunito', sans-serif; font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.quiz-top .small-muted { font-family: 'Nunito', sans-serif; font-size: 0.875rem; font-weight: 600; color: var(--dim); }
.q-text { font-size: clamp(1.375rem, 2.2vw, 1.625rem); line-height: 1.3; font-weight: 700; }
.mono-accent { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--accent); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.options button {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 18px; border-radius: 14px;
  background: var(--bg-2); border: 2px solid var(--line-2); color: var(--text);
  font-family: inherit; font-size: 1.25rem; font-weight: 700; text-align: left; cursor: pointer;
  transition: transform .2s var(--ease), border-color .25s, background .25s;
}
.options button span { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--dim); }
.options button:hover { transform: translateY(-3px); border-color: #4A5C82; }
.options button.correct { border-color: var(--accent); background: rgba(198,244,50,.09); animation: pop .5s var(--ease); }
.options button.wrong { border-color: var(--warn); animation: shake .45s; }
.feedback { border-radius: 14px; background: #1E2A42; padding: 0 18px; font-size: 1.0625rem; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, padding .4s; }
.feedback.show { max-height: 160px; opacity: 1; padding: 16px 18px; }
.feedback strong.ok { color: var(--accent); }
.feedback strong.no { color: var(--warn); }
.video-note { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--muted); }
.video-note svg { flex: none; color: var(--accent); }

/* ---------- tutor ---------- */
.tutor-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.tutor-photo { flex: 1 1 320px; max-width: 420px; margin: 0 auto; border-radius: 32px; background: var(--accent); overflow: hidden; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; justify-content: center; position: relative; box-shadow: 0 40px 90px -30px rgba(198,244,50,.4); }
.tutor-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.4) 50%, transparent 60%); transform: translateX(-120%); transition: transform 1s var(--ease); }
.tutor-photo:hover::after { transform: translateX(120%); }
.tutor-photo img { display: block; width: 96%; height: auto; }
.tutor-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.tutor-copy h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.02; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.mini-stats > div { display: flex; flex-direction: column; gap: 6px; }

/* ---------- contact ---------- */
.contact { background: var(--accent); color: var(--bg); position: relative; overflow: hidden; }
.shine { position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; border: 2px solid rgba(11,18,32,.15); animation: spin 30s linear infinite; }
.shine::after { content: ''; position: absolute; inset: 60px; border-radius: 50%; border: 2px dashed rgba(11,18,32,.18); }
.contact-grid { position: relative; padding-block: 112px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 48px; }
.contact-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact-main h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: .95; letter-spacing: -.045em; }
.contact-main .btn { margin-top: 12px; }
.pulse { animation: pulseRing 2.2s infinite; }
.contact-links { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.contact-links a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--bg); font-size: 1.25rem; font-weight: 700; transition: transform .3s var(--ease); }
.contact-links a:hover { transform: translateX(10px); }

.footer { border-top: 1px solid #1E2A42; }
.foot { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-family: 'Nunito', sans-serif; font-size: 0.875rem; color: var(--dim); }

/* ---------- scroll reveal ---------- */
/* Content is only hidden when JS is running (html.js), so it can never be stuck invisible. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.from-left { transform: translateX(-32px); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal { opacity: 0; animation: riseIn .9s var(--ease) forwards; transition: none; }
.hero .lead { animation-delay: 1.1s; }
.hero .sub { animation-delay: 1.25s; }
.hero .cta-row { animation-delay: 1.4s; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }

/* ---------- keyframes ---------- */
@keyframes wordUp { to { transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinC { from { transform: translateX(-50%) rotate(0); } to { transform: translateX(-50%) rotate(360deg); } }
@keyframes morph {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  25% { border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; }
  50% { border-radius: 44% 56% 46% 54% / 56% 44% 56% 44%; }
  75% { border-radius: 52% 48% 40% 60% / 48% 52% 48% 52%; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(198,244,50,.7); } 100% { box-shadow: 0 0 0 12px rgba(198,244,50,0); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes sweep { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(11,18,32,.5); } 70%, 100% { box-shadow: 0 0 0 22px rgba(11,18,32,0); } }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

@media (max-width: 640px) {
  .options { grid-template-columns: 1fr; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .section { padding-top: 80px; }
  .section.alt, #tutor { padding-block: 80px; }
  .contact-grid { padding-block: 72px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-title .word { transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- WhatsApp + logos ---------- */
.btn-wa { background: #25D366; color: #06240f; }
.btn-wa:hover { box-shadow: 0 10px 40px -8px rgba(37,211,102,.6); color: #06240f; }
.float-chip { display: grid; place-items: center; padding: 12px; }
.float-chip img { display: block; }
.langs::before { display: none; }
.langs .container { padding-block: 40px; display: flex; flex-direction: column; gap: 24px; position: relative; }
.langs-title { font-family: 'Nunito', sans-serif; font-size: 0.9375rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; }
.logo-tile {
  background: var(--bg); border-radius: 18px; padding: 18px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 0.9375rem; transition: transform .35s var(--ease), opacity .9s var(--ease);
}
.logo-tile img { width: 48px; height: 48px; transition: transform .5s var(--ease); }
.logo-tile:hover { transform: translateY(-8px); }
.logo-tile:hover img { transform: scale(1.2) rotate(-8deg); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { padding-top: 48px; gap: 32px; }
  .hero-copy { padding-bottom: 24px; flex-basis: 100%; }
  .tutor-grid, .contact-grid { gap: 40px; }
  .ring { width: 420px; height: 420px; right: -160px; }
}
@media (max-width: 640px) {
  .container, .nav { padding-inline: 16px; }
  .btn { width: 100%; justify-content: center; font-size: 1.0625rem; min-height: 52px; }
  .cta-row { width: 100%; }
  .hero-photo { max-width: 340px; }
  .float-chip { padding: 8px; }
  .float-chip img { width: 26px; height: 26px; }
  .marquee span { font-size: 1.375rem; }
  .head-row { align-items: flex-start; }
  .card.big { padding: 28px 22px; }
  .card.big h3 { font-size: 1.75rem; }
  .mini-stats .num { font-size: 2.25rem; }
  .btn-dark { width: auto; }
  .contact-links a { font-size: 1.0625rem; word-break: break-word; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .logo-tile { padding: 14px 4px 10px; font-size: 0.75rem; }
  .logo-tile img { width: 36px; height: 36px; }
}
@media (max-width: 380px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } .hero-title { font-size: 3.5rem; } }

/* dark logo band (stats band restored above it) */
.langs { background: var(--bg-2); border-bottom: 1px solid #1E2A42; color: var(--text); }
.langs-title { color: var(--accent); }
.logo-tile { background: var(--card); border: 1px solid var(--line); }

/* icon-only hero buttons */
.btn-icon { width: 56px; padding: 0; justify-content: center; border-radius: 50%; }
.btn-icon svg { width: 24px; height: 24px; }
@media (max-width: 640px) { .btn.btn-icon { width: 52px; } .cta-row .btn-ghost { flex: 1; } }

/* ---------- hamburger ---------- */
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav { flex-wrap: nowrap; }
  .burger { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,18,32,.97); border-bottom: 1px solid #1E2A42; padding: 8px 16px 16px;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; padding-block: 0;
    transition: max-height .45s var(--ease), opacity .3s, visibility .3s, padding .3s;
  }
  .nav-links.open { max-height: 360px; opacity: 1; visibility: visible; padding-block: 8px 16px; }
  .nav-links a:not(.btn-pill) { display: flex; align-items: center; min-height: 48px; font-size: 1.125rem; border-bottom: 1px solid #1E2A42; transform: translateY(-8px); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
  .nav-links a:not(.btn-pill)::after { display: none; }
  .nav-links.open a { transform: none; opacity: 1; }
  .nav-links.open a:nth-child(2) { transition-delay: .05s; } .nav-links.open a:nth-child(3) { transition-delay: .1s; } .nav-links.open a:nth-child(4) { transition-delay: .15s; }
  .nav-links .btn-pill { justify-content: center; margin-top: 12px; }
}

/* ---------- tighter type on small screens ---------- */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(3.25rem, 14vw, 6rem); }
  h2 { font-size: clamp(2rem, 6.5vw, 3rem); }
}
@media (max-width: 640px) {
  .hero-grid { padding-top: 32px; }
  .hero-copy { gap: 18px; }
  .hero-title { font-size: clamp(2.875rem, 15vw, 4rem); }
  .lead { font-size: 1.25rem; }
  .sub, .body-muted, .body-light, .card.big p, .quiz-intro .body-muted { font-size: 1rem; }
  h2, .tutor-copy h2 { font-size: clamp(1.75rem, 8vw, 2.125rem); }
  .quiz-intro h3 { font-size: 1.625rem; }
  .contact-main h2 { font-size: clamp(2.125rem, 10vw, 2.75rem); }
  .section { padding: 56px 0 32px; }
  .section.tight { padding: 32px 0 56px; }
  .section.alt, #tutor { padding-block: 56px; }
  .contact-grid { padding-block: 56px; gap: 32px; }
  .stack { gap: 32px; }
  .card { padding: 22px 20px; gap: 12px; }
  .card h3 { font-size: 1.375rem; }
  .card p { font-size: 0.9375rem; }
  .card.big h3 { font-size: 1.5rem; }
  .num { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding-block: 24px; gap: 18px; }
  .stat { font-size: 0.875rem; }
  .q-text { font-size: 1.1875rem; }
  .options button { font-size: 1.0625rem; min-height: 48px; }
  .quiz-wrap { gap: 28px; }
  .marquee { padding: 12px 0; }
  .btn-dark { font-size: 1.25rem; min-height: 56px; }
  .contact-links a { font-size: 1rem; }
}

/* ---------- overall type scale (all font sizes are rem) ---------- */
@media (max-width: 1100px) { html { font-size: 15.5px; } }
@media (max-width: 900px)  { html { font-size: 15px; } }
@media (max-width: 640px)  { html { font-size: 14.5px; } }
@media (max-width: 380px)  { html { font-size: 13.5px; } }

/* hide hero photo when the layout stacks */
@media (max-width: 900px) {
  .hero-photo { display: none; }
  .hero-copy { padding-bottom: 56px; }
}

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; border-radius: 10px; background: var(--accent); color: var(--bg); font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; color: var(--bg); }
