/* ThavionAI site design system — shared by the landing page and the Education hub.
   Lesson pages use lesson.css, which shares these tokens. */
:root {
  --bg: #06060c; --bg2: #0a0a14; --surface: #0f0f1b; --surface2: #15152a;
  --border: rgba(255,255,255,0.08); --border2: rgba(255,255,255,0.14);
  --text: #eceef6; --text2: #a4a9be; --text3: #6c718a;
  --accent: #a78bfa; --accent2: #e879f9; --blue: #60a5fa; --green: #34d399; --rose: #fb7185; --amber: #fbbf24; --cyan: #22d3ee;
  --grad: linear-gradient(92deg, #8b5cf6 0%, #d946ef 100%);
  --grad-text: linear-gradient(92deg, #c4b5fd 0%, #f0abfc 55%, #fda4af 100%);
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: rgba(167,139,250,0.35); }
.max-w { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- nav ---- */
nav.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(6,6,12,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.nav-logo img { width: 32px; height: 32px; display: block; border-radius: 8px; }
.nav-logo small { display: block; font-size: 11px; font-weight: 500; color: var(--text3); letter-spacing: 0; line-height: 1; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text2); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #fff !important; background: var(--grad); box-shadow: 0 6px 22px rgba(168,85,247,0.35); transition: transform .15s, box-shadow .15s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(168,85,247,0.45); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 8px 0 12px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; }
  .nav-links .nav-cta { margin: 8px 24px 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* ---- buttons, chips, labels ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-size: 15px; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; cursor: pointer; border: 1px solid transparent; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 8px 28px rgba(168,85,247,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(168,85,247,0.5); }
.btn-secondary { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--border2); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #d8ccff; background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.35); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.12; margin-bottom: 14px; }
.section-sub { font-size: 16.5px; color: var(--text2); max-width: 640px; }
.centered { text-align: center; } .centered .section-sub { margin: 0 auto; }
section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---- cards ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--border2); box-shadow: var(--shadow); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text2); }
.icon-box { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.3); }

/* ---- hero ---- */
.hero { padding: 80px 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle at center, rgba(139,92,246,0.35), rgba(217,70,239,0.12) 40%, transparent 70%); filter: blur(30px); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -200px; bottom: -200px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(59,130,246,0.22), transparent 65%); filter: blur(30px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -2px; line-height: 1.04; margin: 22px 0 18px; }
.hero h1 .grad { display: block; }
.hero p.lead { font-size: 18px; color: var(--text2); max-width: 560px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--text2); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--accent2); }
.hero-visual { position: relative; }
.panel { background: linear-gradient(160deg, rgba(21,21,42,0.95), rgba(10,10,20,0.95)); border: 1px solid var(--border2); border-radius: 18px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.panel-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--green); letter-spacing: 0; text-transform: none; font-weight: 600; }
.panel-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.panel-body { padding: 14px 10px 6px; color: var(--text2); }
.panel-body svg { width: 100%; height: auto; display: block; font-family: 'Inter', system-ui, sans-serif; color: var(--text2); }
.float { position: absolute; background: rgba(15,15,27,0.92); border: 1px solid var(--border2); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.float strong { display: block; font-size: 15px; letter-spacing: -0.3px; line-height: 1.1; }
.float small { font-size: 11.5px; color: var(--text3); }
.float .icon-box { margin: 0; width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
.float-a { top: -56px; left: -8px; animation: bob 6s ease-in-out infinite; }
.float-b { bottom: -56px; right: -8px; animation: bob 7s ease-in-out 1s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero-visual { max-width: 640px; } .float-a { left: 0; } .float-b { right: 0; } }
@media (max-width: 720px) { .float { display: none; } }

/* ---- stats strip ---- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: -10px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; text-align: center; }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.stat-label { font-size: 12.5px; color: var(--text3); margin-top: 6px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats > .stat:last-child:nth-child(odd) { grid-column: span 2; } }

/* ---- track tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.tile { --tc: var(--accent); position: relative; display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.tile::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--tc); opacity: .9; }
.tile::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--tc); opacity: .08; filter: blur(30px); transition: opacity .2s; }
.tile:hover { transform: translateY(-4px); border-color: var(--border2); box-shadow: var(--shadow); } .tile:hover::after { opacity: .16; }
.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tile .icon-box { margin: 0; background: color-mix(in srgb, var(--tc) 16%, transparent); border-color: color-mix(in srgb, var(--tc) 40%, transparent); }
.tile h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.tile p { font-size: 14px; color: var(--text2); min-height: 44px; }
.tile-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 13px; color: var(--text3); }
.tile-meta b { color: var(--text); font-weight: 600; }
.tile-arrow { color: var(--tc); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.badge-live { color: var(--green); background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); }
.badge-building { color: var(--amber); background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.3); }
.badge-soon { color: var(--text3); background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ---- bento ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; } .bento .span-4 { grid-column: span 4; } .bento .span-6 { grid-column: span 6; }
.bento .card { display: flex; flex-direction: column; }
.mock { margin-top: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 12.5px; }
.mock-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text3); font-size: 11px; }
.mock-head i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #3a3a4a; } .mock-head i:nth-child(1) { background: #ff5f57; } .mock-head i:nth-child(2) { background: #febc2e; } .mock-head i:nth-child(3) { background: #28c840; }
.mock-head span { margin-left: 8px; }
.mock pre { margin: 0; padding: 12px 14px; font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.6; color: #c9d1e3; overflow-x: auto; white-space: pre; }
.mock pre .p { color: var(--green); } .mock pre .c { color: var(--text3); } .mock pre .k { color: #f0abfc; } .mock pre .ok { color: var(--green); } .mock pre .warn { color: var(--amber); }
.mock-quiz { padding: 14px; display: grid; gap: 8px; }
.mock-quiz .q { font-weight: 600; color: var(--text); font-size: 13px; margin-bottom: 4px; }
.mock-quiz .opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--text2); }
.mock-quiz .opt i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--text3); display: inline-block; flex: none; }
.mock-quiz .opt.right { border-color: rgba(52,211,153,0.45); background: rgba(52,211,153,0.08); color: var(--text); } .mock-quiz .opt.right i { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--bg); }
.mock-cheat { padding: 12px 14px; display: grid; gap: 7px; }
.mock-cheat div { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; font-size: 12px; color: var(--text2); border-bottom: 1px dashed var(--border); padding-bottom: 7px; }
.mock-cheat code { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #c4b5fd; font-size: 11.5px; }
.mock-steps { padding: 12px 14px; display: grid; gap: 8px; font-size: 12.5px; color: var(--text2); }
.mock-steps div { display: flex; gap: 10px; align-items: flex-start; }
.mock-steps b { flex: none; width: 20px; height: 20px; border-radius: 6px; background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.35); color: #d8ccff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.mock-diagram { padding: 10px 6px 2px; color: var(--text2); }
.mock-diagram svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; } }
@media (max-width: 600px) { .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 6; } }

/* ---- diagram showcase ---- */
.showcase { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.showcase a.card { display: grid; grid-template-columns: 1fr 260px; align-items: center; }
.showcase .mock-diagram { border-bottom: 0; border-right: 1px solid var(--border); height: 100%; display: flex; align-items: center; }
@media (max-width: 900px) { .showcase a.card { grid-template-columns: 1fr; } .showcase .mock-diagram { border-right: 0; border-bottom: 1px solid var(--border); } }
.showcase a.card { padding: 0; overflow: hidden; }
.showcase .mock-diagram { padding: 14px 10px 4px; background: var(--bg); border-bottom: 1px solid var(--border); }
.showcase .cap { padding: 16px 20px 20px; }
.showcase .cap small { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.showcase .cap h3 { font-size: 15.5px; margin: 0; }

/* ---- projects & certs lists ---- */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.list-grid .card { --tc: var(--accent); border-top: 3px solid var(--tc); }
.list-grid .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--text3); }
.list-grid .meta span { display: inline-flex; align-items: center; gap: 5px; }
.list-grid .card .badge { align-self: flex-start; margin-bottom: 12px; }
@media (max-width: 900px) { .list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .list-grid { grid-template-columns: 1fr; } }

/* ---- apps ---- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.app { display: flex; flex-direction: column; }
.app ul { list-style: none; margin: 14px 0 18px; display: grid; gap: 7px; }
.app li { font-size: 13.5px; color: var(--text2); padding-left: 20px; position: relative; }
.app li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.dl { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.dl a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border2); background: rgba(255,255,255,0.03); font-size: 13.5px; font-weight: 600; transition: background .15s, border-color .15s; }
.dl a:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.25); }
.dl a small { font-weight: 400; color: var(--text3); font-size: 11.5px; }
.soon { margin-top: auto; padding: 16px; border: 1px dashed var(--border2); border-radius: 12px; text-align: center; color: var(--text3); font-size: 13px; }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band { position: relative; border-radius: 22px; padding: 56px 40px; text-align: center; overflow: hidden; background: linear-gradient(140deg, rgba(139,92,246,0.22), rgba(217,70,239,0.12) 50%, rgba(59,130,246,0.16)); border: 1px solid rgba(167,139,250,0.3); }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.cta-band p { color: var(--text2); max-width: 560px; margin: 0 auto 26px; }

/* ---- footer ---- */
footer.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { font-size: 13.5px; color: var(--text3); margin-top: 12px; max-width: 300px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text3); padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text3); }
.footer-bottom a { color: var(--text3); margin-left: 16px; } .footer-bottom a:hover { color: var(--text); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: span 1; } }

/* ---- reveal on scroll (no-JS safe) ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in, html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } .float-a, .float-b, .panel-live::before { animation: none; } html { scroll-behavior: auto; } }

/* ================= Education hub ================= */
.hub-hero { padding: 64px 0 36px; }
.hub-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.06; margin: 18px 0 14px; }
.hub-hero p.lead { font-size: 17px; color: var(--text2); max-width: 680px; }
.track-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 36px 0 28px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.track-tab { --tc: var(--accent); flex: 1 1 150px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.track-tab:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.track-tab[aria-selected="true"] { background: color-mix(in srgb, var(--tc) 16%, transparent); border-color: color-mix(in srgb, var(--tc) 45%, transparent); color: var(--text); }
.track-tab .n { font-size: 11.5px; font-weight: 600; color: var(--text3); background: rgba(255,255,255,0.06); padding: 2px 7px; border-radius: 999px; }
.track-tab[aria-selected="true"] .n { color: var(--tc); }
.track-panel { --tc: var(--accent); }
.track-head { display: flex; gap: 22px; align-items: flex-start; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); border-top: 3px solid var(--tc); margin-bottom: 22px; }
.track-logo { flex: none; width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); }
.track-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 8px; }
.track-head p { font-size: 15px; color: var(--text2); max-width: 760px; }
.track-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.track-meta .chip { color: var(--text2); background: rgba(255,255,255,0.04); border-color: var(--border); }
.progress { margin-top: 18px; max-width: 460px; }
.progress-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text3); margin-bottom: 6px; }
.progress-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--tc); border-radius: 999px; transition: width .4s; }
.stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stage-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.stage-num { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tc); }
.stage-level { font-size: 11.5px; color: var(--text3); }
.stage h4 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.modules { list-style: none; display: grid; gap: 8px; }
.module { display: flex; align-items: flex-start; gap: 10px; }
.module input { margin-top: 15px; width: 16px; height: 16px; flex: none; accent-color: var(--tc); cursor: pointer; }
.module-body { flex: 1; min-width: 0; display: block; padding: 11px 14px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,0.02); transition: border-color .15s, background .15s, transform .15s; }
a.module-body:hover { border-color: color-mix(in srgb, var(--tc) 50%, transparent); background: rgba(255,255,255,0.04); transform: translateX(2px); }
.module-title { display: block; font-size: 14.5px; font-weight: 600; }
.module-desc { display: block; font-size: 13px; color: var(--text2); margin-top: 2px; }
.module-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 7px; font-size: 12px; font-weight: 600; color: var(--tc); }
.module-quiz { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--green); background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); }
.module.soon .module-body { opacity: .62; border-style: dashed; }
.module.soon .module-cta { color: var(--text3); }
.module.soon input { visibility: hidden; }
.track-foot { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-top: 18px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.box-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tc); margin-bottom: 12px; }
.proj-list { display: grid; gap: 10px; }
.proj-list a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; transition: border-color .15s, background .15s; }
.proj-list a:hover { border-color: color-mix(in srgb, var(--tc) 50%, transparent); background: rgba(255,255,255,0.04); }
.proj-list .t { display: block; font-size: 14px; font-weight: 600; } .proj-list .d { display: block; font-size: 12.5px; color: var(--text2); margin-top: 2px; }
.proj-list .m { flex: none; font-size: 11.5px; color: var(--text3); text-align: right; }
.proj-list .soon-item { opacity: .6; border-style: dashed; cursor: default; }
.res-list { display: grid; gap: 6px; }
.res-list a { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.res-list a:hover { color: var(--tc); }
.res-list span { font-size: 12px; color: var(--text3); flex: none; }
@media (max-width: 900px) { .stages, .track-foot { grid-template-columns: 1fr; } .track-head { flex-direction: column; } }
@media (max-width: 640px) { .track-tab { flex: 1 1 calc(50% - 8px); } }
html.js .track-panel[hidden] { display: none; }
html:not(.js) .track-tabs { display: none; }
html:not(.js) .track-panel + .track-panel { margin-top: 40px; }

/* ---- progress backup panel (hub) ---- */
.progress-panel { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 22px; border-radius: 14px; background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.28); scroll-margin-top: 90px; }
.progress-panel-text { font-size: 13.5px; color: var(--text2); line-height: 1.55; max-width: 720px; }
.progress-panel-text strong { color: var(--text); display: block; margin-bottom: 2px; }
.progress-panel-hint { display: block; color: var(--text3); font-size: 12.5px; margin-top: 2px; }
.progress-panel-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; cursor: pointer; }
.btn-link { background: none; border: 0; color: var(--text3); font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px 8px; }
.btn-link:hover { color: var(--rose); }

/* ---- study planner (education hub) ---- */
.plan-panel { --tc: var(--accent); border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.24); scroll-margin-top: 90px; }
.plan-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.plan-title { font-size: 15px; color: var(--text2); display: flex; flex-direction: column; gap: 2px; max-width: 640px; }
.plan-title strong { color: var(--text); font-size: 16px; }
.plan-title span { font-size: 13px; color: var(--text3); }
.plan-track-pick { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.plan-track-pick select { font: inherit; font-size: 13px; color: var(--text); background: var(--surface2); border: 1px solid var(--border2); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.plan-lead { font-size: 13.5px; color: var(--text2); margin: 0 0 12px; }
.plan-ints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plan-int { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.plan-int:hover { border-color: var(--tc); background: rgba(139,92,246,0.06); transform: translateY(-1px); }
.plan-int-label { font-weight: 700; color: var(--text); font-size: 14px; }
.plan-int-days { font-size: 15px; color: var(--tc); font-weight: 700; }
.plan-int-blurb { font-size: 11.5px; color: var(--text3); }
.plan-active-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.plan-day-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tc); }
.plan-active-head h4 { margin: 3px 0 0; font-size: 18px; color: var(--text); }
.plan-overall { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.plan-overall-bar { flex: 1; height: 7px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.plan-overall-bar span { display: block; height: 100%; background: var(--tc); border-radius: 99px; transition: width .3s; }
.plan-overall-txt { font-size: 12px; color: var(--text3); white-space: nowrap; }
.plan-items { list-style: none; display: grid; gap: 8px; margin: 0 0 14px; padding: 0; }
.plan-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); }
.plan-item.done { border-color: rgba(52,211,153,0.32); background: rgba(52,211,153,0.05); }
.plan-item > a { flex: 1; min-width: 0; color: var(--text); font-weight: 600; font-size: 14.5px; }
.plan-item > a:hover { color: var(--tc); }
.plan-item.done > a { color: var(--text3); }
.plan-item-tag { font-family: var(--mono, monospace); font-size: 10.5px; color: var(--text3); border: 1px solid var(--border2); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.plan-item-state { font-size: 12px; color: var(--text3); white-space: nowrap; }
.plan-item-state.on { color: var(--green); }
.plan-item-tick { font-size: 12px; color: var(--text3); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.plan-item-tick input { width: 15px; height: 15px; accent-color: var(--green); cursor: pointer; }
.plan-eod { padding: 13px 15px; border-radius: 11px; background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.3); font-size: 14px; color: var(--text2); line-height: 1.6; }
.plan-eod strong { color: var(--text); }
.plan-eod .btn { margin-left: 6px; vertical-align: middle; }
.plan-done-msg { font-size: 14px; color: var(--text2); background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.3); border-radius: 11px; padding: 13px 15px; margin: 0; }
.plan-hint { font-size: 12.5px; color: var(--text3); margin: 0; }
.plan-foot { display: flex; gap: 16px; margin-top: 12px; }
@media (max-width: 640px) { .plan-ints { grid-template-columns: repeat(2, 1fr); } }

/* ---- buy me a coffee ---- */
.btn-coffee { color: #2a1e08; background: linear-gradient(92deg, #fbbf24 0%, #f59e0b 100%); border-color: rgba(251,191,36,0.5); box-shadow: 0 8px 26px rgba(245,158,11,0.28); font-weight: 700; }
.btn-coffee:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(245,158,11,0.42); color: #2a1e08; }
.coffee-line { margin: 16px auto 0; max-width: 560px; font-size: 13px; color: var(--text3); line-height: 1.6; }

/* ============ per-world theming: light palette for Home / Exams / School ============ */
body.theme-light {
  --bg: #f6f7fb; --bg2: #eef1f8; --surface: #ffffff; --surface2: #f2f4fb;
  --border: rgba(15,23,42,0.09); --border2: rgba(15,23,42,0.16);
  --text: #0f1729; --text2: #48506a; --text3: #8a91a8;
  --accent: #7c3aed; --accent2: #db2777;
  --grad: linear-gradient(92deg, #7c3aed 0%, #db2777 100%);
  --grad-text: linear-gradient(92deg, #7c3aed 0%, #c026d3 55%, #e11d48 100%);
  --shadow: 0 18px 50px rgba(15,23,42,0.10);
  background: var(--bg); color: var(--text);
}
body.theme-light nav.site-nav { background: rgba(255,255,255,0.82); border-bottom-color: var(--border); }
body.theme-light .btn-secondary { background: #fff; border-color: var(--border2); color: var(--text); }
body.theme-light .btn-secondary:hover { background: var(--surface2); }
body.theme-light .chip { color: #6d28d9; background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.26); }
body.theme-light .chip .dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,0.16); }
body.theme-light .icon-box { background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.24); }
body.theme-light ::selection { background: rgba(124,58,237,0.20); }
body.theme-light .badge-soon { background: rgba(15,23,42,0.04); border-color: var(--border); }
body.theme-light .site-footer { background: var(--bg2); border-top-color: var(--border); }
body.theme-exams { --accent: #0284c7; --accent2: #0ea5e9; --grad: linear-gradient(92deg, #0369a1 0%, #0ea5e9 100%); --grad-text: linear-gradient(92deg, #0369a1 0%, #0891b2 55%, #2563eb 100%); }
body.theme-exams .chip { color: #0369a1; background: rgba(14,165,233,0.10); border-color: rgba(14,165,233,0.28); }
body.theme-school { --accent: #16a34a; --accent2: #22c55e; --grad: linear-gradient(92deg, #15803d 0%, #22c55e 100%); --grad-text: linear-gradient(92deg, #15803d 0%, #0d9488 55%, #2563eb 100%); }
body.theme-school .chip { color: #15803d; background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.30); }

/* ============ home router ============ */
.home-hero { padding: 92px 0 40px; text-align: center; position: relative; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 620px; background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.16), rgba(219,39,119,0.06) 45%, transparent 70%); pointer-events: none; }
.home-hero .chip { margin-bottom: 22px; }
.home-hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.06; margin-bottom: 20px; position: relative; }
.home-hero .lead { font-size: 18px; color: var(--text2); max-width: 660px; margin: 0 auto 30px; position: relative; }
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.world-card { --wc: var(--accent); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.world-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--wc); opacity: .9; }
a.world-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--wc) 45%, var(--border)); box-shadow: 0 20px 50px rgba(15,23,42,0.12); }
.world-card.static { cursor: default; }
.world-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.world-emoji { font-size: 34px; line-height: 1; }
.world-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.world-card p { font-size: 14.5px; color: var(--text2); line-height: 1.6; flex: 1; }
.world-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.world-meta span { font-size: 12px; color: var(--text3); background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px; }
.world-go { margin-top: 16px; font-weight: 700; font-size: 14.5px; color: var(--wc); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.why-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.why-item h3 { font-size: 16px; font-weight: 700; margin: 12px 0 6px; }
.why-item p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ============ world hubs (exams / school) ============ */
.world-hero { padding: 84px 0 48px; position: relative; overflow: hidden; }
.world-hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 620px; height: 620px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%); pointer-events: none; }
.world-hero .crumbs, .crumbs { font-size: 13px; color: var(--text3); margin-bottom: 18px; }
.crumbs a { color: var(--accent); }
.world-hero h1 { font-size: clamp(32px, 4.8vw, 54px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.08; margin: 16px 0 18px; max-width: 820px; }
.world-hero .lead { font-size: 17.5px; color: var(--text2); max-width: 720px; margin-bottom: 28px; }
.exam-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.exam-fact { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center; }
.exam-fact-num { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.exam-fact-label { font-size: 12.5px; color: var(--text2); line-height: 1.5; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.guide-card h3 { font-size: 17px; font-weight: 700; margin: 12px 0 8px; }
.guide-card p { font-size: 14.5px; color: var(--text2); line-height: 1.62; }
.guide-soon { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--text3); font-family: var(--mono, monospace); }
.cta-note { margin-top: 30px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 20px; }
.cta-note p { font-size: 14.5px; color: var(--text2); line-height: 1.65; margin: 0; }
.cta-note a, .cta-note-center a { color: var(--accent); font-weight: 600; }
.cta-note-center { text-align: center; margin-top: 30px; font-size: 15px; color: var(--text2); max-width: 640px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) {
  .worlds, .why-grid, .guide-grid { grid-template-columns: 1fr; }
  .exam-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---- world-card illustrated covers ---- */
.world-card { padding: 18px; }
.world-card::before { display: none; }
.world-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; color: var(--wc); background: #f2f4fb; background: linear-gradient(155deg, color-mix(in srgb, var(--wc) 18%, #fff), color-mix(in srgb, var(--wc) 4%, #fff)); border: 1px solid var(--border); }
.world-cover svg { width: 68%; height: auto; transition: transform .32s cubic-bezier(.2,.7,.3,1); }
a.world-card:hover .world-cover svg { transform: scale(1.05) translateY(-3px); }
.world-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,0.86); backdrop-filter: blur(4px); }
.world-card .world-top { margin-bottom: 8px; }

/* ---- careers / path map ---- */
body.theme-careers { --accent: #6366f1; --accent2: #8b5cf6; --grad: linear-gradient(92deg, #4f46e5 0%, #8b5cf6 100%); --grad-text: linear-gradient(92deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%); }
body.theme-careers .chip { color: #4f46e5; background: rgba(99,102,241,0.10); border-color: rgba(99,102,241,0.28); }
.shape-flow { display: flex; justify-content: center; margin-top: 30px; color: var(--accent); }
.shape-flow svg { width: 100%; max-width: 720px; height: auto; }
.paths { display: grid; gap: 16px; margin-top: 34px; }
.path-lane { --wc: var(--accent); display: grid; grid-template-columns: 1fr auto 1.2fr auto 1.1fr; gap: 14px; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--wc); border-radius: 14px; padding: 18px 20px; }
.path-stage { min-width: 0; }
.path-emoji { font-size: 26px; line-height: 1; }
.path-stage h4 { font-size: 15.5px; margin: 6px 0 4px; color: var(--text); }
.path-stage p { font-size: 13px; color: var(--text2); line-height: 1.55; margin: 0; }
.path-stage a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--wc); }
.path-label { font-family: var(--mono, monospace); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--wc); margin-bottom: 6px; }
.path-arrow { display: flex; align-items: center; justify-content: center; color: var(--wc); font-size: 20px; font-weight: 700; }
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.role-chips span { font-size: 12px; color: var(--text2); background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px; }
@media (max-width: 820px) { .path-lane { grid-template-columns: 1fr; } .path-arrow { transform: rotate(90deg); } }

/* ---- careers promo band (home) ---- */
.careers-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 30px; border-radius: 18px; border: 1px solid rgba(99,102,241,0.3); background: linear-gradient(120deg, rgba(99,102,241,0.12), rgba(139,92,246,0.06)); transition: transform .2s, border-color .2s; }
.careers-band:hover { transform: translateY(-2px); border-color: rgba(99,102,241,0.55); }
.careers-band-text { max-width: 680px; }
.careers-band-text h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; margin: 8px 0 8px; }
.careers-band-text p { font-size: 14.5px; color: var(--text2); line-height: 1.6; }
.careers-band-go { font-weight: 700; font-size: 15px; color: #a5b4fc; white-space: nowrap; }
