/* ==============================
   FILE: web/landing/landing.css
   PURPOSE: The design system and every section style of the MoonLearn
            marketing site (/, /about, /korea). One file, no framework —
            it is ~30 KB, cached for a day, and shared by every static page.
   PRINCIPLES:
     * Neutral warm base, ONE accent (indigo) reserved for actions, progress
       and highlights. Each exam keeps its own hue only inside its own UI.
     * Motion is done with transform/opacity only (GPU-friendly) and is
       switched off wholesale under prefers-reduced-motion.
     * Mobile first: every layout below is single-column until 760px.
   ============================== */

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --bg: #FAF9F6;            /* warm off-white page */
  --bg-2: #F1EFEA;          /* sunken surfaces */
  --ink: #14161A;           /* charcoal text */
  --ink-2: #4B4F5A;         /* secondary text */
  --muted: #7A7E8A;         /* captions */
  --line: rgba(20, 22, 26, .09);
  --navy: #0B1230;          /* moon-night sections */
  --navy-2: #131B3F;
  --accent: #5B54F0;        /* the one accent */
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(91, 84, 240, .10);
  --topik: #3B82F6;
  --eps: #F59E0B;
  --kiip: #10B981;
  --ok: #10B981;
  --no: #EF4444;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(11, 18, 48, .25), 0 2px 6px rgba(11, 18, 48, .06);
  --shadow-sm: 0 8px 24px -12px rgba(11, 18, 48, .18);
  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ko: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ko { font-family: var(--font-ko); }

/* ── Layout helpers ───────────────────────────────────────────────────── */
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 96px) 0; }
.section--dark { background: var(--navy); color: #fff; }
.section--dark .eyebrow { color: rgba(255,255,255,.55); }
.section--dark .lede { color: rgba(255,255,255,.72); }
.section--sunken { background: var(--bg-2); }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.eyebrow--accent { color: var(--accent); }
.h-display { font-size: clamp(40px, 6.6vw, 88px); font-weight: 800; letter-spacing: -.035em; }
.h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; letter-spacing: -.03em; max-width: 18ch; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 56ch; margin-top: 20px; line-height: 1.55; }
.head { margin-bottom: clamp(36px, 5vw, 64px); }
.head--center { text-align: center; }
.head--center .h2, .head--center .lede { margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s;
  will-change: transform; white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(91,84,240,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(91,84,240,.8); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(20,22,26,.25); }
.section--dark .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
.section--dark .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.link { font-family: var(--font-display); font-weight: 700; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.link .arr { transition: transform .35s var(--ease); }
.link:hover .arr { transform: translateX(4px); }
/* ── "Start a Test" menu: one click shows all three centres ───────────── */
.tmenu { position: relative; }
.tmenu .chev { font-size: 12px; margin-left: 2px; transition: transform .25s var(--ease); }
.tmenu.is-open .chev { transform: rotate(180deg); }
/* A section with overflow:hidden (hero, final) would clip the list — the
   KIIP row was cut off on 2026-09-19 — so the section lifts the clip while
   a menu inside it is open (.has-menu, set by landing.js). */
.has-menu { overflow: visible !important; }
.tmenu__list {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 280px;
  max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(20,22,26,.25);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.tmenu.is-open .tmenu__list { opacity: 1; transform: none; pointer-events: auto; }
.nav__cta .tmenu__list { left: auto; right: 0; }
.tmenu__list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 11px; color: var(--ink); text-decoration: none; }
.tmenu__list a:hover, .tmenu__list a:focus-visible { background: var(--bg-2); outline: none; }
.tmenu__list b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.tmenu__list span { font-size: 13px; color: var(--ink-2); }
/* Inside the phone drawer there is room: show the list inline, always open. */
.menu .tmenu__list { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; margin-top: 8px; }
.menu .tmenu > .btn { display: none; }
@media (prefers-reduced-motion: reduce) { .tmenu__list, .tmenu .chev { transition: none; } }

/* ── Signed-in progress strip (hero) + nav pill ──────────────────────── */
.me { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding: 14px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(20,22,26,.25); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.me:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -24px rgba(91,84,240,.35); }
.me__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; flex: none; }
.me__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.me__text b { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.me__text span { font-size: 13px; color: var(--muted); }
.me__stats { display: flex; gap: 20px; margin-left: auto; }
.me__stat { display: flex; flex-direction: column; align-items: flex-start; }
.me__stat b { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.me__stat span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.me .arr { font-size: 18px; color: var(--accent); }
.me[hidden] { display: none; }
.nav__auth--me { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.nav__auth--me .me__avatar { width: 26px; height: 26px; font-size: 11px; }
.nav__auth--me .fire { color: var(--ink-2); font-weight: 600; }
@media (max-width: 720px) { .me__stats { margin-left: 0; width: 100%; justify-content: space-between; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Navigation ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250, 249, 246, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 249, 246, .88); }
.nav__in { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.brand__moon { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--accent) 19% 100%); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav__links { display: none; gap: 4px; margin-left: 8px; }
.nav__links a { padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background .25s, color .25s; }
.nav__links a:hover { background: var(--bg-2); color: var(--ink); }
.nav__cta { display: none; margin-left: auto; gap: 8px; align-items: center; }
/* "Log in" is a text link, not a third button: the bar already carries two. */
.nav__auth { font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 0 10px; text-decoration: none; white-space: nowrap; }
.nav__auth:hover { color: var(--ink); }
.menu a.menu__link--sm { font-size: 20px; font-weight: 700; }
.nav__burger { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--bg);
  padding: 20px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.menu a.menu__link { font-family: var(--font-display); font-size: 28px; font-weight: 800; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu .cta-row { margin-top: 24px; }
@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger, .menu { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero__grid { display: grid; gap: 44px; align-items: center; }
.hero__copy .h-display { max-width: 12ch; }
.hero__copy .lede { max-width: 44ch; }
.hero .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero .word > span { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { transform: none; } }
.hero__meta { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 36px; color: var(--muted); font-size: 14px; }
.hero__meta b { color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 18px; display: block; letter-spacing: -.02em; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

/* Hero visual: a stage where product scenes morph into each other. */
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; width: 100%; }
.stage__glow { position: absolute; inset: 10% 8%; border-radius: 40%; background: radial-gradient(closest-side, rgba(91,84,240,.18), transparent 70%); filter: blur(10px); }
.stage__orbit { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(20,22,26,.12); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene {
  position: absolute; left: 50%; top: 50%; width: min(86%, 420px);
  transform: translate(-50%, -50%) scale(.92); opacity: 0; will-change: transform, opacity;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line);
}
.scene.is-on { opacity: 1; transform: translate(-50%, -50%); }
.scene__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scene__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.scene__tag.t-topik i { background: var(--topik); }
.scene__tag.t-eps i { background: var(--eps); }
.scene__tag.t-kiip i { background: var(--kiip); }
.scene__q { font-family: var(--font-ko); font-size: 18px; font-weight: 600; margin: 14px 0 12px; line-height: 1.45; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); font-family: var(--font-ko); font-size: 15px; transition: border-color .25s, background .25s, transform .25s; text-align: left; width: 100%; }
.opt b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 12px; background: var(--bg-2); flex: none; }
.opt.is-pick { border-color: var(--accent); background: var(--accent-soft); }
.opt.is-ok { border-color: var(--ok); background: rgba(16,185,129,.10); }
.opt.is-ok b { background: var(--ok); color: #fff; }
.opt.is-no { border-color: var(--no); background: rgba(239,68,68,.08); }
.opt.is-no b { background: var(--no); color: #fff; }
.scene__ok { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--font-display); font-weight: 800; color: var(--ok); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.scene__ok.is-on { opacity: 1; transform: none; }
.bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 1.1s var(--ease); }
.bar.b-topik > i { background: var(--topik); } .bar.b-eps > i { background: var(--eps); } .bar.b-kiip > i { background: var(--kiip); }
.scene__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); margin: 14px 0 8px; }
.scene__row b { color: var(--ink); font-family: var(--font-display); }
.scene__uni h4 { font-size: 22px; margin: 10px 0 4px; }
.scene__uni .sub { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.chip--accent { background: var(--accent-soft); color: var(--accent); }
.scene__logo { display: grid; place-items: center; gap: 14px; padding: 40px 0; text-align: center; }
.scene__logo .brand__moon { width: 64px; height: 64px; box-shadow: 0 0 0 12px var(--accent-soft), 0 0 0 28px rgba(91,84,240,.05); }
.scene__logo .brand { font-size: 20px; }
.stage__note { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.stage__dots { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); display: flex; gap: 6px; }
.stage__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(20,22,26,.15); transition: background .3s, transform .3s; }
.stage__dots i.is-on { background: var(--accent); transform: scale(1.3); }

/* ── Pillars ──────────────────────────────────────────────────────────── */
.pillars { display: grid; gap: 40px; }
.pillars__list { display: grid; gap: 8px; }
.pillar {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 26px 22px;
  border-radius: var(--radius); border: 1px solid transparent; transition: background .4s, border-color .4s, opacity .4s, transform .5s var(--ease);
  background: #fff; border-color: var(--line);
}
@media (min-width: 900px) {
  .pillar { opacity: .55; transform: scale(.985); background: transparent; border-color: transparent; }
  .pillar.is-active { opacity: 1; transform: none; background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
}
.pillar__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); }
.pillar h3 { font-size: 26px; }
.pillar .sub { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.pillar p { color: var(--ink-2); }
.pillar .link { margin-top: 12px; }
/* Tests pillar: three centre links side by side, wrapping on narrow cards */
.pillar__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.pillar__links .link { margin-top: 0; }
.pillars__visual { display: none; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.pv { position: relative; aspect-ratio: 4 / 4.4; }
.pv__card { position: absolute; inset: 0; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .5s, transform .6s var(--ease); display: flex; flex-direction: column; }
.pv__card.is-on { opacity: 1; transform: none; }
.pv__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pv__body { flex: 1; display: grid; align-content: center; gap: 12px; }
.pv__num { font-family: var(--font-display); font-size: clamp(48px, 5vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pv__row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pv__row span:last-child { font-family: var(--font-display); font-weight: 700; }
@media (min-width: 900px) {
  .pillars { grid-template-columns: 1fr .9fr; gap: 64px; }
  .pillars__visual { display: block; }
}

/* ── Experience (scroll story + live demo) ────────────────────────────── */
.exp { display: grid; gap: 40px; }
.steps { display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); opacity: .4; transition: opacity .4s; }
.step.is-active { opacity: 1; }
.step__n { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .1em; color: var(--accent); padding-top: 8px; white-space: nowrap; }
.step h3 { font-size: clamp(24px, 2.6vw, 34px); }
.step p { color: var(--ink-2); margin-top: 6px; font-size: 16px; }
.demo-wrap { order: -1; }
@media (min-width: 900px) { .demo-wrap { order: 0; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; } }
.demo { background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px; min-height: 420px; display: flex; flex-direction: column; }
.demo__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--muted); }
.demo__top .t { display: flex; align-items: center; gap: 8px; }
.demo__top .t i { width: 8px; height: 8px; border-radius: 50%; background: var(--topik); }
.demo__timer { font-variant-numeric: tabular-nums; }
.demo__topics { display: grid; gap: 8px; margin-top: 16px; }
.topic { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); font-family: var(--font-display); font-weight: 700; transition: border-color .25s, background .25s; }
.topic small { font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.topic.is-pick { border-color: var(--topik); background: rgba(59,130,246,.07); }
.demo__q { font-family: var(--font-ko); font-size: 18px; font-weight: 600; margin: 16px 0 14px; line-height: 1.5; }
.demo__q small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.demo__status { margin-top: 14px; min-height: 28px; font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.demo__status.ok { color: var(--ok); }
.demo__status.no { color: var(--no); }
.xp { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.xp.is-on { opacity: 1; transform: none; }
.why { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); font-size: 15px; line-height: 1.5; display: none; }
.why.is-on { display: block; animation: fade .4s var(--ease); }
.why b { font-family: var(--font-display); display: block; margin-bottom: 4px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.demo__progress { margin-top: auto; padding-top: 18px; }
.demo__progress .scene__row { margin-top: 0; }
.demo__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.demo__hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (min-width: 900px) { .exp { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ── Tests ────────────────────────────────────────────────────────────── */
.tests { display: grid; gap: 16px; }
.test { border-radius: 28px; padding: 30px 26px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.test:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.test::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.test--topik { --c: var(--topik); } .test--eps { --c: var(--eps); } .test--kiip { --c: var(--kiip); }
.test__k { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--c); }
.test h3 { font-size: 30px; }
.test p { color: var(--ink-2); font-size: 15px; }
.test ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.test li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.test li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; margin-top: 3px; background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--c) 14%, #fff); border: 1.5px solid var(--c); }
.test .link { margin-top: auto; color: var(--c); }
.test__mini { margin-top: 6px; padding: 14px; border-radius: 16px; background: var(--bg-2); font-size: 13px; }
.test__mini .bar { margin-top: 8px; }
@media (min-width: 760px) { .tests { grid-template-columns: repeat(3, 1fr); } }

/* ── Results ──────────────────────────────────────────────────────────── */
.result { display: grid; gap: 40px; align-items: center; }
.rcard { background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: 28px; padding: 28px; color: #fff; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.rcard__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.rcard__big { display: flex; align-items: center; gap: 22px; margin: 20px 0 8px; }
.ring { width: 96px; height: 96px; position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: rgba(255,255,255,.12); }
.ring .val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 1.4s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.rcard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.rcard__stats div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
.rcard__stats b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.rcard__stats span { font-size: 12px; color: rgba(255,255,255,.6); }
.rcard__bars { display: grid; gap: 12px; margin-top: 22px; }
.rcard__bars .scene__row { color: rgba(255,255,255,.65); margin: 0 0 6px; }
.rcard__bars .scene__row b { color: #fff; }
.rcard .bar { background: rgba(255,255,255,.1); }
.num { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .result { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ── Universities (horizontal) ────────────────────────────────────────── */
.uni-section { overflow: hidden; }
.uni-track { display: flex; gap: 16px; padding: 4px var(--gutter) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.uni-track::-webkit-scrollbar { display: none; }
.uni { flex: 0 0 min(82vw, 340px); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform .5s var(--ease), box-shadow .5s; text-align: left; }
.uni:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.uni__rank { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .1em; color: var(--muted); display: flex; justify-content: space-between; }
.uni__rank b { color: var(--accent); }
.uni h3 { font-size: 22px; line-height: 1.15; }
.uni .ko { color: var(--muted); font-size: 14px; }
.uni__loc { font-size: 14px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.uni__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.uni__more > div { overflow: hidden; }
.uni.is-open .uni__more { grid-template-rows: 1fr; }
.uni__facts { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.uni__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.uni__facts span:last-child { font-family: var(--font-display); font-weight: 700; text-align: right; }
.uni__toggle { margin-top: 8px; align-self: flex-start; padding: 0; }
.uni .link { margin-top: 6px; }
.uni-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (min-width: 900px) {
  .uni-track { padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
}

/* ── Scholarships ─────────────────────────────────────────────────────── */
.grants { display: grid; gap: 14px; }
.grant { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 10px; opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .7s var(--ease), box-shadow .5s; }
.grant.is-in { opacity: 1; transform: none; }
.grant:hover { box-shadow: var(--shadow); }
.grant__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grant__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--bg-2); }
.grant h3 { font-size: 20px; line-height: 1.2; }
.grant p { color: var(--ink-2); font-size: 15px; }
.grant__meta { display: grid; gap: 6px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.grant__meta div { display: flex; justify-content: space-between; gap: 12px; }
.grant__meta span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
@media (min-width: 760px) { .grants { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grants { grid-template-columns: repeat(3, 1fr); } }

/* ── Korea editorial ──────────────────────────────────────────────────── */
.korea { display: grid; gap: 14px; }
.kcard { position: relative; border-radius: 26px; padding: 28px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #fff; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease); }
.kcard:hover { transform: translateY(-4px); }
.kcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--g); transition: transform 1.2s var(--ease); }
.kcard:hover::before { transform: scale(1.04); }
.kcard__n { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.kcard h3 { font-size: clamp(24px, 2.4vw, 34px); }
.kcard p { font-size: 15px; opacity: .85; max-width: 40ch; }
.kcard--lg { min-height: 340px; }
.kcard .glyph { position: absolute; right: 20px; top: 18px; font-family: var(--font-ko); font-weight: 900; font-size: clamp(64px, 9vw, 120px); opacity: .12; line-height: 1; z-index: -1; }
@media (min-width: 760px) {
  .korea { grid-template-columns: repeat(6, 1fr); }
  .kcard--lg { grid-column: span 4; }
  .kcard--md { grid-column: span 2; }
  .kcard--sm { grid-column: span 2; }
}

/* ── Everything connects ──────────────────────────────────────────────── */
.chain { display: grid; gap: 40px; align-items: start; }
.chain__svg { display: none; }
.chain__list { display: grid; gap: 0; position: relative; }
.chain__list::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: rgba(255,255,255,.12); }
.chain__list .line { position: absolute; left: 21px; top: 24px; width: 2px; height: 0; background: var(--accent); box-shadow: 0 0 16px rgba(91,84,240,.8); }
.node { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: center; padding: 16px 0; opacity: .45; transition: opacity .4s; }
.node.is-on { opacity: 1; }
.node i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-2); border: 1.5px solid rgba(255,255,255,.14); font-family: var(--font-display); font-weight: 800; font-size: 12px; transition: background .4s, border-color .4s, transform .4s var(--ease); }
.node.is-on i { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.node b { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.02em; display: block; }
.node span { color: rgba(255,255,255,.62); font-size: 15px; }
.chain__copy { position: sticky; top: calc(var(--nav-h) + 40px); }
@media (min-width: 900px) { .chain { grid-template-columns: .9fr 1.1fr; gap: 80px; } }

/* ── Journey ──────────────────────────────────────────────────────────── */
.journey { display: grid; gap: 10px; position: relative; }
.jstage { padding: 22px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; transition: transform .5s var(--ease), box-shadow .5s; }
.jstage:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.jstage b { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.jstage h3 { font-size: 24px; }
.jstage p { font-size: 14px; color: var(--ink-2); }
.jstage a, .jstage .link { font-size: 14px; justify-self: start; }
.journey__path { display: none; }
@media (min-width: 760px) { .journey { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) {
  .journey { grid-template-columns: repeat(6, 1fr); gap: 12px; padding-top: 44px; }
  .journey__path { display: block; position: absolute; left: 4%; right: 4%; top: 0; height: 40px; }
  .journey__path path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2000; stroke-dashoffset: 2000; }
  .journey.is-in .journey__path path { animation: draw 2.2s var(--ease) forwards; }
  .journey__path circle { fill: var(--accent); opacity: 0; }
  .journey.is-in .journey__path circle { animation: pop .5s var(--ease) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { opacity: 1; } }
}

/* ── Dashboard preview ────────────────────────────────────────────────── */
.dash { background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); overflow: hidden; }
.dash__bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--muted); }
.dash__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-2); }
.dash__bar .pill { margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.dash__grid { display: grid; gap: 14px; padding: 20px; }
.dcard { border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.dcard--hero { background: linear-gradient(135deg, #0B1230, #1E2A6E); color: #fff; border-color: transparent; }
.dcard--hero .bar { background: rgba(255,255,255,.14); }
.dcard__k { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dcard--hero .dcard__k { color: rgba(255,255,255,.65); }
.dcard__big { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.dcard__sub { font-size: 14px; color: var(--muted); }
.dcard--hero .dcard__sub { color: rgba(255,255,255,.7); }
.dcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.dcard li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.dcard li span:last-child { font-family: var(--font-display); font-weight: 700; }
@media (min-width: 760px) { .dash__grid { grid-template-columns: repeat(3, 1fr); } .dcard--hero { grid-column: span 2; } }

/* ── Final CTA ────────────────────────────────────────────────────────── */
.final { text-align: center; padding: clamp(96px, 14vw, 180px) 0; position: relative; overflow: hidden; }
.final .h-display { max-width: 16ch; margin-inline: auto; font-size: clamp(38px, 6.4vw, 84px); }
.final .lede { margin-inline: auto; }
.final .cta-row { justify-content: center; }
.final__moon { position: absolute; left: 50%; top: 50%; width: min(120vw, 1100px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -30%); background: radial-gradient(closest-side, rgba(91,84,240,.14), transparent 68%); pointer-events: none; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; color: var(--ink-2); }
.footer__grid { display: grid; gap: 28px; }
.footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }

/* ── Article / hub pages ──────────────────────────────────────────────── */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.page-hero .h-display { font-size: clamp(38px, 6.4vw, 84px); max-width: 14ch; }
.prose { max-width: 68ch; font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 48px 0 16px; letter-spacing: -.025em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }
.prose p + p { margin-top: 16px; }
.prose ul { padding-left: 22px; margin: 12px 0; } .prose li + li { margin-top: 8px; }
.prose .note { margin: 28px 0; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 14px 14px 0; font-size: 16px; }
.prose a { color: var(--accent); font-weight: 600; }
.hub { display: grid; gap: 14px; }
@media (min-width: 760px) { .hub { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .hub { grid-template-columns: repeat(3, 1fr); } }
.hub .kcard { min-height: 220px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 20px; }
.crumbs a:hover { color: var(--accent); }
.next { display: grid; gap: 12px; margin-top: 56px; }
@media (min-width: 760px) { .next { grid-template-columns: repeat(3, 1fr); } }
.next a { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-family: var(--font-display); font-weight: 700; display: flex; justify-content: space-between; transition: transform .4s var(--ease), box-shadow .4s; }
.next a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.values { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.value b { font-family: var(--font-display); font-size: 20px; display: block; margin-bottom: 8px; }
.value p { font-size: 15px; color: var(--ink-2); }

/* ── Reveal on scroll (generic) ───────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; }

/* ── Reduced motion: everything settles to its final state ────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv, .grant, .hero .word > span { opacity: 1; transform: none; }
  .stage__orbit { animation: none; }
  .scene { opacity: 0; } .scene.is-static { opacity: 1; }
  .pillar { opacity: 1; transform: none; }
  .step { opacity: 1; }
  .node { opacity: 1; }
  .journey__path { display: none; }
}
