/* =====================================================================
   LearnWith home — one clear journey — think in pseudocode, speak a language, build & get hired.
   Deep-space sections alternate with the warm paper sections of the rest of the site.
   ===================================================================== */

:root {
	--space-0: #0b0824;
	--space-1: #170f45;
	--space-2: #2a1a74;
	--neon-pink: #ff7ad9;
	--neon-cyan: #6ff3ff;
	--neon-sun: #ffd84d;
	--neon-lime: #a6ff6f;
}

/* ---------- Header floats over the dark hero until you scroll ---------- */
@media (min-width: 1280px) {
	.is-home .site-header { background: transparent; box-shadow: none; }
	.is-home .site-header.is-scrolled { padding-top: 10px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
	.is-home .header-inner {
		padding: 8px 12px 8px 16px;
		border-radius: 999px;
		background: rgba(11, 8, 36, .62);
		border: 1px solid rgba(111, 243, 255, .38);
		box-shadow: 0 16px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
	}
	.is-home .site-header.is-scrolled .header-inner {
		background: rgba(255, 250, 240, .92);
		border-color: rgba(31, 37, 68, .12);
		box-shadow: 0 10px 28px rgba(31, 37, 68, .12);
	}
}
.is-home .site-header:not(.is-scrolled) .nav-link,
.is-home .site-header:not(.is-scrolled) .logo-with { color: #fff; }
.is-home .site-header:not(.is-scrolled) .nav-link:hover,
.is-home .site-header:not(.is-scrolled) .has-menu.is-open > .nav-link { background: rgba(255, 255, 255, .14); box-shadow: none; color: #fff; }
.is-home .site-main { margin-top: calc(-1 * var(--header-h) - 8px); }
/* The drawer sits on paper. Keep its labels dark even while the bar floats over the hero. */
@media (max-width: 1279px) {
	.is-home .site-header:not(.is-scrolled) .main-nav .nav-link,
	.is-home .site-header:not(.is-scrolled) .main-nav .nav-link:hover,
	.is-home .site-header:not(.is-scrolled) .main-nav .has-menu.is-open > .nav-link { color: var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink); }
	.is-home.nav-open .site-header .logo-with { color: var(--grape-d); }
}

.eyebrow--dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: var(--neon-cyan); box-shadow: 0 3px 0 var(--neon-cyan), 0 0 24px rgba(111, 243, 255, .35); }

/* ---------- Shared space background ---------- */
.sx-hero, .jr, .tk-section, .sx-final {
	position: relative; color: #eef0ff; overflow: hidden; isolation: isolate;
	background: radial-gradient(1200px 700px at 70% 10%, var(--space-2), transparent 60%), radial-gradient(900px 600px at 10% 90%, #3b1170, transparent 60%), linear-gradient(180deg, var(--space-1), var(--space-0));
}
.sx-hero h1, .sx-hero h2, .jr h2, .jr h3, .tk-section h2, .sx-final h2 { color: #fff; }
.jr p, .tk-section .section-head p, .sx-final p { color: #c9ccf5; }
.sx-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.sx-shoot { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sx-shoot i { position: absolute; top: var(--y); left: -15%; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff); animation: sx-shoot 8s linear infinite; animation-delay: var(--d); opacity: 0; }
.sx-shoot i::after { content: ''; position: absolute; right: 0; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff, 0 0 22px var(--neon-cyan); }
@keyframes sx-shoot { 0% { transform: translateX(0) rotate(-16deg); opacity: 0; } 6% { opacity: .9; } 28% { transform: translateX(130vw) rotate(-16deg); opacity: 0; } 100% { opacity: 0; } }
.sx-comet { position: absolute; top: 12%; left: -10%; width: 180px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--neon-pink), #fff); filter: drop-shadow(0 0 8px var(--neon-pink)); animation: sx-comet 14s linear infinite; pointer-events: none; z-index: 0; }
.sx-comet::after { content: ''; position: absolute; right: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px var(--neon-pink); }
@keyframes sx-comet { 0% { transform: translate(0, 0) rotate(-12deg); opacity: 0; } 8% { opacity: 1; } 40% { transform: translate(120vw, 28vh) rotate(-12deg); opacity: 0; } 100% { opacity: 0; } }

/* =================== 1. Hero =================== */
.sx-hero { min-height: max(720px, 100svh); padding: calc(var(--header-h) + 40px) 0 110px; display: flex; align-items: center; }
.sx-nebula i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -1; animation: sx-drift 18s ease-in-out infinite alternate; }
.sx-nebula i:nth-child(1) { width: 480px; height: 480px; left: -120px; top: 10%; background: #7c3aed; }
.sx-nebula i:nth-child(2) { width: 420px; height: 420px; right: 8%; top: -120px; background: #ec4899; opacity: .35; animation-delay: -6s; }
.sx-nebula i:nth-child(3) { width: 520px; height: 360px; right: -140px; bottom: -120px; background: #0ea5e9; opacity: .35; animation-delay: -11s; }
@keyframes sx-drift { to { transform: translate(60px, 40px) scale(1.12); } }


.sx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.sx-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 16px; border-radius: 99px; font: 700 .85rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.08); border: 1.5px solid rgba(111, 243, 255, .55); color: var(--neon-cyan); box-shadow: 0 0 22px rgba(111, 243, 255, .25); }
.sx-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--neon-lime); box-shadow: 0 0 10px var(--neon-lime); animation: sx-blink 1.4s ease-in-out infinite; }
@keyframes sx-blink { 50% { opacity: .25; } }
.sx-title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; margin: 0 0 22px; letter-spacing: -.02em; }
.sx-line { display: block; }
.sx-glow { background: linear-gradient(90deg, var(--neon-sun), var(--neon-pink), var(--neon-cyan), var(--neon-lime), var(--neon-sun)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sx-shine 7s linear infinite; filter: drop-shadow(0 0 24px rgba(255, 122, 217, .45)); }
@keyframes sx-shine { to { background-position: 300% 0; } }
.sx-lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: #cfd2f7; max-width: 620px; }
.sx-lead strong { color: #fff; }
.sx-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 30px; }
.sx-ghost { --t: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 5px 0 rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.sx-ghost:hover { color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 8px 0 rgba(255,255,255,.35); }
.sx-launch { position: relative; overflow: hidden; }
.sx-launch::after { content: ''; position: absolute; inset: -40% auto -40% -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: sx-sweep 3.2s ease-in-out infinite; }
@keyframes sx-sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.sx-rocket { display: inline-block; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.sx-launch:hover .sx-rocket { transform: translate(4px, -6px) rotate(-10deg) scale(1.25); }
.sx-proof { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sx-proof li { padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .92rem; color: #cfd2f7; animation: sx-pop .6s cubic-bezier(.2,.9,.3,1.2) both; }
.sx-proof li:nth-child(1) { animation-delay: .45s; } .sx-proof li:nth-child(2) { animation-delay: .58s; }
.sx-proof li:nth-child(3) { animation-delay: .71s; } .sx-proof li:nth-child(4) { animation-delay: .84s; }
@keyframes sx-pop { from { opacity: 0; transform: translateY(14px) scale(.86); } to { opacity: 1; transform: none; } }
.sx-proof b { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-right: 2px; }
.sx-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: #aab0ee; font: 600 .82rem var(--font-head); text-decoration: none; letter-spacing: .06em; }
.sx-scroll i { width: 26px; height: 42px; border-radius: 16px; border: 2px solid currentColor; position: relative; }
.sx-scroll i::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: currentColor; animation: sx-wheel 1.6s ease-in-out infinite; }
@keyframes sx-wheel { 60% { transform: translateY(12px); opacity: 0; } }
.sx-scroll:hover { color: #fff; }

/* =================== 2. Thought translator =================== */
.sx-translator { background: radial-gradient(900px 400px at 50% 0, #efe8ff, transparent 70%), var(--paper); }
.sx-missions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.sx-mission { font: 700 1rem var(--font-head); padding: 12px 18px; border-radius: 18px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 5px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .15s; }
.sx-mission:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.sx-mission[aria-selected="true"] { background: var(--grape); color: #fff; transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.sx-tr { position: relative; }
.sx-thought { display: flex; align-items: center; gap: 16px; max-width: 720px; margin: 0 auto; padding: 18px 24px; border-radius: 30px; background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); position: relative; }
.sx-thought::after { content: ''; position: absolute; left: 50%; bottom: -22px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.sx-thought-ico { font-size: 2.4rem; animation: sx-float 3s ease-in-out infinite; }
.sx-thought p { margin: 0; }
.sx-thought small { display: block; font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--grape-d); }
.sx-thought strong { font: 600 clamp(1.1rem, 2vw, 1.35rem)/1.35 var(--font-head); }
.sx-beams { display: grid; grid-template-columns: repeat(4, 1fr); height: 50px; margin: 10px 0 0; }
.sx-beams i { justify-self: center; width: 4px; border-radius: 4px; background: linear-gradient(180deg, transparent, var(--grape)); background-size: 100% 200%; animation: sx-beam 1.6s linear infinite; opacity: .7; }
.sx-beams i:nth-child(2) { animation-delay: .2s; } .sx-beams i:nth-child(3) { animation-delay: .4s; } .sx-beams i:nth-child(4) { animation-delay: .6s; }
@keyframes sx-beam { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.sx-tr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sx-tr-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #1d2140; box-shadow: 0 8px 0 #0f1230, 0 0 0 3px var(--c), 0 22px 40px -16px color-mix(in srgb, var(--c) 60%, transparent); transition: transform .25s cubic-bezier(.3,1.5,.5,1); animation: sx-card-glow 4.5s ease-in-out infinite; }
.sx-tr-card:nth-child(2) { animation-delay: .6s; } .sx-tr-card:nth-child(3) { animation-delay: 1.2s; } .sx-tr-card:nth-child(4) { animation-delay: 1.8s; }
@keyframes sx-card-glow { 50% { box-shadow: 0 8px 0 #0f1230, 0 0 0 3px var(--c), 0 0 28px color-mix(in srgb, var(--c) 55%, transparent); } }
.sx-tr-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.sx-tr-card.is-typing .sx-tr-code { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 50%, transparent); }
.sx-tr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #272c55; }
.sx-tr-badge { font: 700 .86rem var(--font-head); padding: 5px 10px; border-radius: 99px; background: var(--c); color: #fff; }
.c-sun .sx-tr-badge { color: #3a2a00; }
.sx-run { font: 700 .84rem var(--font-head); border: 0; border-radius: 12px; padding: 7px 12px; background: var(--grass); color: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--grass-d); transition: transform .12s; }
.sx-run:hover { transform: translateY(-1px); } .sx-run:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--grass-d); }
.sx-run.is-busy { opacity: .7; pointer-events: none; }
.sx-tr-code { margin: 0; padding: 12px 14px; min-height: 190px; flex: 1; overflow: auto; font: 500 13.5px/1.65 'JetBrains Mono', monospace; color: #eef0ff; font-variant-ligatures: none; white-space: pre; }
.sx-tr-code code { background: none; color: inherit; padding: 0; font: inherit; }
.sx-tr-code .cur { display: inline-block; width: .55em; height: 1.1em; vertical-align: -2px; background: var(--c); animation: sx-blink .8s steps(1) infinite; }
.sx-tr-out { padding: 10px 14px 12px; background: #151935; border-top: 1px dashed #353b70; font: 500 13px/1.6 'JetBrains Mono', monospace; color: #b8f28a; min-height: 64px; }
.sx-tr-out-label { display: block; font: 700 .66rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #7e86c2; margin-bottom: 2px; }
.sx-tr-out .is-err { color: #ff9a9e; } .sx-tr-out .is-dim { color: #7e86c2; }
.sx-tr-out.is-flash { animation: sx-flash .7s ease; }
@keyframes sx-flash { 0% { background: color-mix(in srgb, var(--c) 45%, #151935); } }
.sx-tr-note { text-align: center; margin: 28px auto 0; max-width: 760px; color: var(--ink-soft); font-size: 1.08rem; }
.sx-link { font: 700 1rem var(--font-head); color: var(--grape-d); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* =================== 7. Game =================== */
.sx-game { border-color: var(--grape); }

/* =================== 9. Steps =================== */
.sx-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.sx-step { position: relative; padding: 26px 18px 20px; border-radius: 26px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); text-align: center; transition: transform .2s; }
.sx-step-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font: 700 1rem var(--font-head); border: 3px solid var(--ink); }
.sx-step-ico { display: block; font-size: 2.4rem; margin-bottom: 6px; animation: sx-wiggle 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes sx-wiggle { 0%, 100% { transform: rotate(0) translateY(0); } 40% { transform: rotate(-8deg) translateY(-4px); } 70% { transform: rotate(6deg) translateY(-1px); } }
.sx-step:hover { transform: translateY(-6px) rotate(-.4deg); }
.sx-step h3 { font-size: 1.2rem; }
.sx-step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* =================== 11. Final countdown =================== */
.sx-final { text-align: center; padding: clamp(80px, 10vw, 130px) 0 clamp(90px, 10vw, 140px); }
.sx-final-inner { position: relative; max-width: 760px; }
.sx-final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.sx-final-pad { position: relative; height: 130px; margin-bottom: 10px; }
.sx-final-rocket { position: absolute; left: 50%; bottom: 10px; font-size: 5rem; transform: translateX(-50%) rotate(-45deg); transition: transform 1.4s cubic-bezier(.6,0,.9,.4); filter: drop-shadow(0 0 20px rgba(255, 216, 77, .6)); }
.sx-final-rocket.is-shake { animation: sx-shake .12s linear infinite; }
@keyframes sx-shake { 50% { margin-left: 3px; } }
.sx-final-rocket.is-gone { transform: translate(-50%, -140vh) rotate(-45deg); }
.sx-final-smoke { position: absolute; left: 50%; bottom: 0; width: 160px; height: 30px; margin-left: -80px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent); }
.sx-countdown { min-width: 280px; font-size: 1.3rem; }
.sx-final-alt { margin-top: 18px; }
.sx-final-alt a { color: var(--neon-cyan); }

/* =================== Hero: words, steps, 3D art =================== */
.hx-title { perspective: 800px; }
.hx-word { display: inline-block; transform-origin: 50% 100%; animation: hx-rise .9s cubic-bezier(.2, .9, .25, 1.2) both; animation-delay: calc(var(--w) * .12s + .1s); }
@keyframes hx-rise { from { opacity: 0; transform: translateY(60%) rotateX(-80deg); } }
.hx-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; counter-reset: none; }
.hx-steps li { position: relative; }
.hx-steps li + li::before { content: '→'; position: absolute; left: -9px; top: 50%; translate: -50% -50%; color: #8d93d6; font-weight: 800; animation: sx-nudge 1.6s ease-in-out infinite; }
.hx-steps li + li { margin-left: 14px; }
.hx-steps a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent); color: #fff; font: 700 .95rem var(--font-head); text-decoration: none; transition: background .2s, transform .2s; }
.hx-steps a:hover { background: color-mix(in srgb, var(--c) 30%, transparent); transform: translateY(-2px); }
.hx-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: .85rem; }
@keyframes sx-nudge { 50% { transform: translateX(3px); } }

.hx-art { position: relative; height: 580px; }
.hx-canvas { position: absolute; inset: -40px -40px 0; width: calc(100% + 80px); height: calc(100% + 40px); display: block; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1s ease; }
.hx-canvas:active { cursor: grabbing; }
.hx-fallback { position: absolute; left: 50%; top: 50%; width: min(280px, 70%); height: auto; translate: -50% -50%; animation: sx-float 5s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(111, 243, 255, .35)); transition: opacity .6s; }
@keyframes sx-float { 50% { transform: translateY(-16px); } }
.hx-hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font: 600 .85rem var(--font-head); color: #aab0ee; opacity: 0; transition: opacity 1s .8s; pointer-events: none; }
.is-3d .hx-canvas, .is-3d .hx-hint { opacity: 1; }
.is-3d .hx-fallback { opacity: 0; pointer-events: none; }

/* =================== Keyword marquee =================== */
.hx-marquee { background: var(--space-0); padding: 14px 0; overflow: hidden; border-block: 1px solid rgba(111, 243, 255, .18); }
.hx-marquee-row { display: flex; width: max-content; animation: hx-marquee 60s linear infinite; }
.hx-marquee-row span { display: flex; gap: 12px; padding-right: 12px; }
.hx-marquee:hover .hx-marquee-row { animation-play-state: paused; }
.hx-marquee i { font: 700 1rem 'JetBrains Mono', monospace; font-style: normal; padding: 8px 16px; border-radius: 12px; color: #fff; background: var(--c); box-shadow: 0 4px 0 var(--cd); }
.hx-marquee i.c-sun { color: #3a2a00; }
@keyframes hx-marquee { to { transform: translateX(-50%); } }

/* =================== Journey: sticky 3D stage + scrolling step cards =================== */
.jr { padding: 0; overflow: clip; }
.jr-stage { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 0; }
.jr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.jr.is-3d .jr-canvas { opacity: 1; }
.jr-cards { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; padding: 22vh 0 30vh; pointer-events: none; }
.jr-card { pointer-events: auto; max-width: 470px; margin: 0 0 70vh; padding: 28px 30px; border-radius: var(--radius); background: rgba(14, 10, 44, .72); border: 2px solid color-mix(in srgb, var(--c, var(--neon-cyan)) 75%, transparent); box-shadow: 0 8px 0 color-mix(in srgb, var(--c, var(--neon-cyan)) 55%, #000), 0 30px 80px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .25, 1.15); }
.js .jr-card:not(.is-active) { opacity: .35; transform: translateY(24px) scale(.97); }
.jr-card:last-child { margin-bottom: 0; }
.jr-card h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 12px; }
.jr-card h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 6px 0 10px; }
.jr-card p strong { color: #fff; }
.jr-num { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 .85rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--c) !important; }
.jr-num b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-size: 1.1rem; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); animation: jr-ping 2.4s ease-out infinite; }
@keyframes jr-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.jr-courses { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.jr-courses a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); color: #fff; font: 600 1rem var(--font-head); text-decoration: none; transition: background .2s, transform .2s; }
.jr-courses a:hover { background: color-mix(in srgb, var(--c) 35%, transparent); transform: translateX(4px); }
.jr-courses small { margin-left: auto; font: 600 .78rem var(--font-body); color: #aab0ee; }
.jr-tip { font-size: .95rem; margin: 0; }
.jr-scrollhint { font: 700 1rem var(--font-head); color: var(--neon-cyan) !important; animation: sx-bounce 1.6s ease-in-out infinite; }
@keyframes sx-bounce { 50% { transform: translateY(8px); } }
.jr-rail { position: absolute; right: max(20px, calc(50% - 600px)); top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; z-index: 2; }
.jr-rail::before { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: linear-gradient(var(--neon-cyan) calc(var(--p, 0) * 100%), rgba(255, 255, 255, .15) 0); }
.jr-rail li { position: relative; }
.jr-rail b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--space-1); border: 2px solid rgba(255, 255, 255, .25); color: #fff; font: 700 1rem var(--font-head); transition: transform .35s cubic-bezier(.2, .9, .25, 1.4), background .3s, border-color .3s; }
.jr-rail li.is-on b { background: var(--c, var(--neon-cyan)); border-color: #fff; }
.jr-rail li.is-active b { transform: scale(1.35); box-shadow: 0 0 24px var(--c, var(--neon-cyan)); }

/* =================== Step 1 up close: milestones =================== */
.ms-section { background: linear-gradient(180deg, var(--paper), #f3ecff); position: relative; overflow: hidden; }
.ms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.ms::before { content: ''; position: absolute; left: 6%; right: 6%; top: 34px; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--grape) 0 14px, transparent 14px 24px); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.6, 0, .2, 1); z-index: 0; }
.ms.is-drawn::before { transform: none; }
.ms-card { position: relative; z-index: 1; padding: 64px 22px 22px; margin-top: 8px; border-radius: var(--radius); background: #fff; border: 2px solid var(--ink); box-shadow: 0 7px 0 var(--cd); }
.ms-pin { position: absolute; top: -8px; left: 50%; translate: -50% 0; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c); border: 3px solid var(--ink); font-size: 1.8rem; box-shadow: 0 5px 0 var(--ink); animation: ms-bob 3s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * 4); }
@keyframes ms-bob { 50% { transform: translateY(-6px) rotate(-6deg); } }
.ms-kicker { margin: 0; font: 700 .78rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--cd); }
.ms-card h3 { margin: 4px 0 12px; font-size: 1.3rem; }
.ms-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ms-phases a { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .95rem; transition: background .2s; }
.ms-phases a:hover { background: color-mix(in srgb, var(--c) 18%, #fff); }
.ms-phases b { font: 700 .8rem 'JetBrains Mono', monospace; color: var(--cd); }
.ms-exit { margin: 14px 0 0; padding-top: 12px; border-top: 2px dashed var(--line); font-size: .88rem; color: var(--ink-soft); }
.ms-cta { justify-content: center; margin-top: 40px; }

/* =================== Tracks after pseudocode =================== */
.tk-section { padding: clamp(80px, 9vw, 120px) 0; }
.tk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tk-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--cd), 0 24px 60px rgba(0, 0, 0, .35); }
.tk-card p { color: var(--ink-soft); }
.tk-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 2rem; background: color-mix(in srgb, var(--c) 22%, #fff); border: 2px solid var(--c); animation: ms-bob 3.4s ease-in-out infinite; }
.tk-card h3 { margin: 14px 0 6px; }
.tk-route { list-style: none; margin: 8px 0 16px; padding: 0 0 0 22px; position: relative; display: grid; gap: 8px; }
.tk-route::before { content: ''; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--c) 0 8px, transparent 8px 14px); background-size: 3px 14px; animation: tk-flow 1s linear infinite; }
@keyframes tk-flow { to { background-position: 0 14px; } }
.tk-route li { position: relative; }
.tk-route li::before { content: ''; position: absolute; left: -21px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: #fff; border: 3px solid var(--c); }
.tk-route a, .tk-done { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; font: 600 .98rem var(--font-head); transition: transform .2s, background .2s; }
.tk-route a:hover { transform: translateX(5px); background: color-mix(in srgb, var(--c) 20%, #fff); }
.tk-route small { margin-left: auto; font: 700 .7rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.tk-done { opacity: .6; }
.tk-done::after { content: '✓'; margin-left: 4px; color: var(--grass-d); font-weight: 800; }
.tk-route li.tk-done::before, .tk-route li:has(.tk-done)::before { background: var(--c); }
.tk-time { font-size: .9rem; margin-top: auto; }
.tk-card .btn { align-self: flex-start; }
.tk-all { text-align: center; margin: 36px 0 0; }
.tk-all a { color: var(--neon-cyan); font: 700 1.1rem var(--font-head); }

/* =================== 3D rocket =================== */
.fx-canvas { position: absolute; left: 50%; bottom: 0; width: 420px; height: 320px; translate: -50% 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.sx-final-pad.is-3d { height: 280px; }
.sx-final-pad.is-3d .fx-canvas { opacity: 1; }
.sx-final-pad.is-3d .sx-final-rocket, .sx-final-pad.is-3d .sx-final-smoke { display: none; }

/* =================== Responsive =================== */
@media (max-width: 1100px) {
	.sx-tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sx-beams { display: none; }
	.sx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
	.ms { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.ms::before { display: none; }
	.tk-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
}
@media (max-width: 900px) {
	.sx-hero-grid { grid-template-columns: 1fr; }
	.hx-art { height: 420px; max-width: 520px; margin: 0 auto; width: 100%; }
	.sx-hero { padding-bottom: 90px; }
	.sx-thought { margin: 0 0 26px; }
	.jr-cards { padding-top: 38vh; }
	.jr-card { max-width: none; margin-bottom: 80vh; padding: 22px; background: rgba(14, 10, 44, .84); }
	.jr-rail { right: auto; left: 50%; top: calc(var(--header-h) + 6px); translate: -50% 0; display: flex; gap: 16px; }
	.jr-rail::before { left: 10px; right: 10px; top: 50%; bottom: auto; width: auto; height: 3px; margin: -1.5px 0 0; background: linear-gradient(90deg, var(--neon-cyan) calc(var(--p, 0) * 100%), rgba(255, 255, 255, .15) 0); }
	.jr-rail b { width: 30px; height: 30px; font-size: .85rem; }
}
@media (max-width: 600px) {
	.sx-tr-grid, .sx-steps, .ms { grid-template-columns: 1fr; }
	.sx-hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); }
	.sx-title { font-size: clamp(2.4rem, 13vw, 3.2rem); }
	.sx-ctas .btn { flex: 1 1 100%; justify-content: center; }
	.hx-art { height: 340px; }
	.hx-steps li + li { margin-left: 10px; }
	.hx-steps a { font-size: .85rem; padding-right: 10px; }
	.sx-scroll span { display: none; }
	.sx-final-rocket { font-size: 3.6rem; }
	.fx-canvas { width: 320px; height: 260px; }
	.sx-final-pad.is-3d { height: 230px; }
	.jr-courses small { display: none; }
	.jr-cards { padding-top: 55vh; }
	.jr-card { padding: 18px; }
	.jr-card h3 { font-size: 1.35rem; }
	.jr-card p { font-size: .95rem; margin: 0 0 10px; }
	.jr-courses { grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
	.jr-courses li:only-child { grid-column: 1 / -1; }
	.jr-courses a { padding: 8px 10px; font-size: .84rem; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.sx-hero *, .sx-hero *::before, .sx-hero *::after, .sx-translator *, .sx-final *, .sx-steps *, .hx-marquee *, .jr *, .ms *, .tk-section *, .ms::before { animation: none !important; transition: none !important; }
	.ms::before { transform: none; }
	.sx-shoot, .sx-comet { display: none; }
}
