/* ============ Lexitier ============ */
:root {
  --ink: #14161c;
  --ink-2: #3b3f4a;
  --ink-3: #6b7080;
  --paper: #f6f2ea;
  --paper-2: #efe9dd;
  --line: #ddd5c6;
  --gold: #e2a64b;
  --gold-2: #c8862a;
  --night: #0f1218;
  --night-2: #171b24;
  --cream: #f3eee4;
  --green: #4fae6a;
  --radius: 22px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --jp: 'Noto Serif JP', serif;
  --kr: 'Noto Serif KR', serif;
  --zh: 'Noto Serif SC', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.jp { font-family: var(--jp); }
.kr { font-family: var(--kr); }
.zh { font-family: var(--zh); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-gold { background: var(--gold); color: #1a1206; box-shadow: 0 10px 30px -10px rgba(226, 166, 75, .7); }
.btn-gold:hover { background: #ebb35c; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ghost-light { color: var(--cream); border: 1px solid rgba(243, 238, 228, .25); }
.btn-ghost-light:hover { background: rgba(243, 238, 228, .08); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15, 18, 24, .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--cream); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--serif); letter-spacing: -.01em; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; font-size: 14px; font-weight: 600; color: rgba(243, 238, 228, .72); transition: color .2s; }
.links a:hover { color: var(--cream); }
.menu { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 6px auto; transition: transform .3s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 75% 30%, #2a2414 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: var(--cream); padding: 88px 0 110px; }
.hero-glow { position: absolute; inset: auto -10% -40% auto; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 166, 75, .18), transparent 65%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.eyebrow.dark { color: var(--gold-2); }
h1 { font: 700 clamp(40px, 6vw, 68px)/1.04 var(--serif); letter-spacing: -.02em; margin: 0; }
h1 em { font-style: italic; color: var(--gold); font-weight: 600; }
.lede { font-size: clamp(17px, 2vw, 19px); color: rgba(243, 238, 228, .78); max-width: 34em; margin: 22px 0 0; }
.rotator b { display: inline-block; min-width: 4.2em; color: var(--cream); border-bottom: 2px solid var(--gold); transition: opacity .35s, transform .35s; }
.rotator b.out { opacity: 0; transform: translateY(-6px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 13px; color: rgba(243, 238, 228, .5); }

.tiers { position: relative; height: 440px; }
.tier-stack { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 440px; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; }
.tier { position: relative; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 18px; border-radius: 16px; background: rgba(243, 238, 228, .05); border: 1px solid rgba(243, 238, 228, .1); overflow: hidden; opacity: 0; animation: rise .7s cubic-bezier(.2, .9, .3, 1) forwards; }
.tier i { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(226, 166, 75, .28), rgba(226, 166, 75, 0)); transform-origin: left; transform: scaleX(0); animation: fill 1.2s .6s cubic-bezier(.2, .9, .3, 1) forwards; }
.tier .g { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(226, 166, 75, .15); color: var(--gold); font-size: 19px; font-weight: 700; }
.tier .lv { position: relative; z-index: 1; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.t1 { width: 100%; animation-delay: .05s; } .t1 i { --f: 1; }
.t2 { width: 92%; animation-delay: .15s; }
.t3 { width: 84%; animation-delay: .25s; }
.t4 { width: 76%; animation-delay: .35s; }
.t5 { width: 68%; animation-delay: .45s; }
.t6 { width: 60%; animation-delay: .55s; }
.tier.t1 i { animation-delay: .7s; } .tier.t2 i { animation-delay: .85s; } .tier.t3 i { animation-delay: 1s; }
.tier.t4 i { animation-delay: 1.15s; } .tier.t5 i { animation-delay: 1.3s; } .tier.t6 i { animation-delay: 1.45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fill { to { transform: scaleX(1); } }
.float { position: absolute; font-size: 44px; font-weight: 700; color: rgba(243, 238, 228, .08); animation: drift 9s ease-in-out infinite alternate; }
.f1 { top: 0; left: 6%; } .f2 { top: 8%; right: 4%; animation-delay: -2s; } .f3 { top: 34%; left: -2%; animation-delay: -4s; } .f4 { top: 28%; right: 12%; animation-delay: -6s; font-family: var(--serif); }
@keyframes drift { to { transform: translateY(-16px) rotate(6deg); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section.alt { background: var(--paper-2); }
.head { max-width: 760px; margin-bottom: 52px; }
h2 { font: 700 clamp(30px, 4vw, 46px)/1.1 var(--serif); letter-spacing: -.015em; margin: 0; }
h2.light, .sub.light { color: var(--cream); }
.sub { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; max-width: 40em; }
.sub.light { color: rgba(243, 238, 228, .72); }
h3 { font: 700 21px/1.25 var(--serif); margin: 0; }

/* ---------- languages ---------- */
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lang { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: #fffdf8; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.lang:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(20, 22, 28, .35); border-color: #cdbfa6; }
.lang.live { grid-column: span 1; background: var(--ink); color: var(--cream); border-color: var(--ink); }
.lang-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.glyph { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; font-size: 28px; font-weight: 700; background: var(--paper-2); color: var(--ink); font-family: var(--serif); }
.glyph.jp { font-family: var(--jp); } .glyph.kr { font-family: var(--kr); } .glyph.zh { font-family: var(--zh); }
.lang.live .glyph { background: rgba(226, 166, 75, .16); color: var(--gold); }
.pill { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(79, 174, 106, .16); color: #7fd394; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #7fd394; box-shadow: 0 0 0 0 rgba(127, 211, 148, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(127, 211, 148, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 211, 148, 0); } }
.prod { font: 600 14px var(--sans); color: var(--gold); margin-left: 6px; }
.exam { font-size: 13px; font-weight: 700; color: var(--gold-2); margin: 0; }
.lang.live .exam { color: var(--gold); }
.lang p { margin: 0; color: var(--ink-2); font-size: 15px; }
.lang.live p { color: rgba(243, 238, 228, .72); }
.lang-link { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--gold-2); }
.lang.live .lang-link { color: var(--gold); }

/* ---------- showcase ---------- */
.showcase { background: linear-gradient(180deg, var(--night) 0%, #1a1712 100%); color: var(--cream); }
.jp-title { font: 600 .55em var(--jp); color: var(--gold); margin-left: 8px; vertical-align: middle; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs button { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(243, 238, 228, .16); background: transparent; color: rgba(243, 238, 228, .75); font: 600 14px var(--sans); cursor: pointer; transition: all .2s; }
.tabs button:hover { color: var(--cream); border-color: rgba(243, 238, 228, .35); }
.tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.stage { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.screen { border-radius: 18px; overflow: hidden; border: 1px solid rgba(243, 238, 228, .12); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); background: #0c0b0a; }
.screen-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #1c1916; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a342d; }
.screen-bar span { margin: 0 auto; font-size: 12px; color: rgba(243, 238, 228, .45); }
#shot { width: 100%; transition: opacity .3s; }
#shot.fade { opacity: 0; }
.panel { padding: 8px 4px; }
.panel h3 { font-size: 26px; color: var(--cream); }
.panel p { color: rgba(243, 238, 228, .72); margin: 12px 0 18px; }
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.panel li { position: relative; padding-left: 26px; color: rgba(243, 238, 228, .85); font-size: 15px; }
.panel li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 4px; background: var(--gold); transform: rotate(45deg) scale(.7); }
.phones { display: grid; grid-template-columns: 220px 220px 1fr; gap: 24px; align-items: center; margin-top: 70px; }
.phones img { border-radius: 30px; border: 6px solid #26221d; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.phones img:nth-child(2) { transform: translateY(30px); }
.phones-copy { padding-left: 20px; }
.phones-copy h3 { font-size: 28px; color: var(--cream); }
.phones-copy p { color: rgba(243, 238, 228, .72); margin: 12px 0 22px; }

/* ---------- how ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { padding: 26px; border-radius: var(--radius); background: #fffdf8; border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--gold); font: 700 18px var(--serif); margin-bottom: 18px; }
.steps p { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; }
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 70px; padding: 44px; border-radius: 28px; background: var(--ink); color: var(--cream); }
.profile h3 { font-size: 30px; }
.profile-copy p { color: rgba(243, 238, 228, .72); margin: 12px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li::before { content: '✓'; color: var(--gold); font-weight: 800; margin-right: 10px; }
.profile-card { background: #1d2029; border: 1px solid rgba(243, 238, 228, .08); border-radius: 22px; padding: 22px; display: grid; gap: 16px; }
.pc-head { display: flex; gap: 12px; align-items: center; }
.pc-head small { display: block; color: rgba(243, 238, 228, .55); font-size: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a1206; font-weight: 800; }
.pc-row { display: grid; grid-template-columns: 38px 1fr 44px; gap: 12px; align-items: center; }
.pc-row b { font-size: 13px; text-align: right; }
.pc-row.dim { opacity: .5; }
.pc-g { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(226, 166, 75, .14); color: var(--gold); font-weight: 700; font-family: var(--serif); }
.pc-bar span { display: block; font-size: 13px; margin-bottom: 6px; }
.pc-bar i { display: block; height: 8px; border-radius: 99px; background: rgba(243, 238, 228, .1); position: relative; overflow: hidden; }
.pc-bar i::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .9, .3, 1); }
.profile.in .pc-bar i::after { transform: scaleX(1); }

/* ---------- institutes ---------- */
.inst { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.feat { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.feat li { color: var(--ink-2); font-size: 15px; padding-left: 16px; border-left: 3px solid var(--gold); }
.feat b { display: block; color: var(--ink); font-size: 16px; }
.inst-shot img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(20, 22, 28, .55); }

/* ---------- roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.road-col { padding: 28px; border-radius: var(--radius); background: #fffdf8; border: 1px solid var(--line); }
.road-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.now { background: rgba(79, 174, 106, .14); color: #2f8b4a; }
.next { background: rgba(226, 166, 75, .18); color: var(--gold-2); }
.later { background: var(--paper-2); color: var(--ink-3); }
.road ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.road li { font-size: 15px; color: var(--ink-2); }
.road li b { color: var(--ink); }

/* ---------- waitlist ---------- */
.cta { background: radial-gradient(800px 400px at 80% 0%, #2a2414 0%, transparent 60%), var(--night); }
.cta-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.wait { display: flex; flex-wrap: wrap; gap: 12px; }
.wait select { flex: 1 1 220px; height: 48px; border-radius: 999px; border: 1px solid rgba(243, 238, 228, .2); background: rgba(243, 238, 228, .06); color: var(--cream); padding: 0 18px; font: 600 15px var(--sans); }
.wait select option { color: var(--ink); }
.wait-note { flex-basis: 100%; margin: 0; font-size: 12px; color: rgba(243, 238, 228, .45); }

/* ---------- about ---------- */
.about-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.word { font: 700 clamp(48px, 8vw, 96px)/1 var(--serif); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 10px; }
.word .plus { color: var(--gold); font-size: .6em; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(243, 238, 228, .7); padding: 60px 0 30px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot .brand { color: var(--cream); }
.foot-brand p { margin: 12px 0 0; font-size: 14px; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot h4 { margin: 0 0 12px; color: var(--cream); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.foot-cols a { display: block; text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.foot-cols a:hover { color: var(--gold); }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(243, 238, 228, .1); font-size: 13px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .links, .nav-cta { display: none; }
  .menu { display: block; }
  .mobile-nav { display: grid; gap: 4px; padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height .35s, padding .35s; }
  .mobile-nav.open { max-height: 420px; padding: 8px 16px 20px; }
  .mobile-nav a { padding: 12px 4px; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .mobile-nav .btn { margin-top: 12px; justify-content: center; border: 0; }
  .hero { padding: 60px 0 70px; }
  .hero-in, .stage, .inst, .cta-in, .about-in, .profile { grid-template-columns: 1fr; }
  .tiers { height: 380px; }
  .lang-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr 1fr; }
  .phones-copy { grid-column: 1 / -1; padding: 0; }
  .profile { padding: 28px; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .lang-grid, .steps { grid-template-columns: 1fr; }
  .tiers { height: 340px; }
  .tier { height: 48px; }
  .phones img:nth-child(2) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tier, .reveal { opacity: 1; transform: none; }
  .tier i { transform: scaleX(1); }
}
