:root {
	--bg: #05080a;
	--bg-alt: #0a1210;
	--card: #0e1614;
	--card-border: #1c2b27;
	--accent: #2fe6b0;
	--accent-light: #5fdcc2;
	--accent-dark: #16332b;
	--text: #f3f6f5;
	--text-muted: #8fa39c;
	--radius: 14px;
	--container: 1140px;
}

* { box-sizing: border-box; }

html, body {
	background: var(--bg);
	color: var(--text);
	margin: 0;
	font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.5;
	letter-spacing: 1px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.text-accent { color: var(--accent); }

.eyebrow {
	display: inline-block;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 16px;
	border: 1px solid transparent;
	cursor: pointer;
}
.btn--primary { background: var(--accent); color: #06110d; }
.btn--primary:hover { background: #29cf9c; }
.btn--ghost { background: transparent; color: var(--text); border-color: #2a3733; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--secondary { background: rgba(255,255,255,0.1); color: var(--text); }
.btn--secondary:hover { background: rgba(255,255,255,0.16); }
.btn--sm { padding: 9px 18px; font-size: 16px; }
.btn--block { width: auto; align-self: flex-start; justify-content: center; }
.link-btn { font-weight: 500; color: var(--text-muted); }
.link-btn:hover { color: var(--text); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: linear-gradient(180deg, rgba(3,21,15,0.65) 0%, rgba(2,15,11,0.5) 100%);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav__list { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-nav__list a { color: var(--text); font-size: 16px; font-weight: 500; }
.main-nav__list a:hover { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero scene (pinned scroll-driven canvas hero) */
.hero-scene { position: relative; height: 340vh; }
.hero-scene__pin {
	position: sticky; top: 0; height: 100vh; overflow: hidden;
	background:
		radial-gradient(70% 42% at 50% 44%, rgba(18,132,111,0.17) 0%, transparent 72%),
		linear-gradient(180deg, #03150f 0%, #020f0b 52%, #010807 100%);
}

.hero__grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
	background-size: 78px 78px;
	-webkit-mask-image: radial-gradient(115% 85% at 50% 42%, #000 0%, rgba(0,0,0,0.5) 58%, transparent 88%);
	mask-image: radial-gradient(115% 85% at 50% 42%, #000 0%, rgba(0,0,0,0.5) 58%, transparent 88%);
	pointer-events: none;
}

.hero-scene__strings { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__string {
	position: absolute; top: 0; width: 1px;
	background: linear-gradient(180deg, rgba(140,238,216,0) 0%, rgba(118,200,182,0.3) 70%, rgba(146,214,198,0.58) 100%);
	animation: hero-drop 7s ease-in-out infinite;
}
.hero__string::after {
	content: ''; position: absolute; left: 50%; bottom: -3px;
	width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
	background: #9adcc9;
	box-shadow: 0 0 7px 2px rgba(64,178,154,0.42), 0 0 18px 6px rgba(20,140,118,0.2);
}
@keyframes hero-drop {
	0%, 100% { transform: translateY(-14px); opacity: 0.32; }
	50% { transform: translateY(14px); opacity: 0.72; }
}
.hero__star {
	position: absolute; width: 2px; height: 2px; border-radius: 50%;
	background: #fff; opacity: 0.4;
	animation: hero-twinkle 4s ease-in-out infinite;
}
@keyframes hero-twinkle {
	0%, 100% { opacity: 0.12; }
	50% { opacity: 0.7; }
}

.hero-scene__glyphs { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero__gl {
	position: absolute; display: block; color: var(--accent-light);
	opacity: var(--o, 0.08);
	animation: hero-bob 12s ease-in-out infinite;
	will-change: transform;
}
.hero__gl svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hero-bob {
	0%, 100% { transform: translateY(calc(var(--py, 0px) - 9px)) rotate(var(--r, 0deg)); }
	50% { transform: translateY(calc(var(--py, 0px) + 9px)) rotate(var(--r, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
	.hero__string, .hero__star, .hero__gl { animation: none; }
}

.hero-scene__inner {
	position: relative; z-index: 5; height: 100%;
	max-width: var(--container); margin: 0 auto; padding: 84px 24px 116px;
	display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 36px;
}

.hero__badge {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 9px 19px; border-radius: 999px;
	font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.92);
	background: rgba(22,178,150,0.1); border: 1px solid rgba(70,216,190,0.34);
	backdrop-filter: blur(10px);
}
.hero__badge svg { width: 15px; height: 15px; stroke: var(--accent-light); }

.hero-scene__title { margin-top: 24px; font-size: clamp(36px, 4.1vw, 54px); line-height: 1.09; font-weight: 800; letter-spacing: 1px; }
.hero__accent {
	background: linear-gradient(90deg, #68e0c6 0%, #16b296 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-scene__sub { margin-top: 22px; max-width: 440px; font-size: 16px; line-height: 1.7; color: var(--text-muted); }

.hero-scene__cta { margin-top: 34px; }
.hero__cta-arrow { display: inline-block; transition: transform 0.2s; }
.hero-scene__cta .btn:hover .hero__cta-arrow { transform: translateX(4px); }
.btn--pill { border-radius: 999px; padding: 15px 30px; font-size: 16px; }
.btn--lg { padding: 18px 32px; font-size: 16.5px; }
.btn--pill.btn--primary {
	color: #04231d;
	background: linear-gradient(180deg, #2ee0ba 0%, #16b296 100%);
	box-shadow: 0 6px 26px rgba(22,178,150,0.42), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn--pill.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(22,178,150,0.58), inset 0 1px 0 rgba(255,255,255,0.35); }

.hero-scene__viz { position: relative; justify-self: center; width: 100%; max-width: 540px; aspect-ratio: 1; }
.hero-scene__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-scene__hint {
	position: absolute; left: 50%; transform: translateX(-50%);
	width: 100%; max-width: var(--container); padding: 0 24px; bottom: 88px; z-index: 8;
	font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
	color: rgba(255,255,255,0.3); transition: opacity 0.35s;
}

.hero-scene__marquee {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
	padding: 21px 0; border-top: 1px solid rgba(255,255,255,0.08);
	background: linear-gradient(180deg, rgba(1,8,7,0) 0%, rgba(1,8,7,0.6) 55%);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.hero-scene__marquee-track { display: flex; width: max-content; animation: hero-marquee-slide 34s linear infinite; }
.hero-scene__marquee-track span {
	padding: 0 32px; font-size: 16px; font-weight: 700; letter-spacing: 1px;
	text-transform: uppercase; color: rgba(255,255,255,0.3); white-space: nowrap;
}
@keyframes hero-marquee-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.hero-scene__marquee-track { animation: none; }
}

@media (max-width: 940px) {
	.hero-scene { height: 280vh; }
	.hero-scene__inner { grid-template-columns: 1fr; gap: 12px; align-content: center; padding-top: 92px; padding-bottom: 108px; text-align: center; }
	.hero-scene__sub { margin-left: auto; margin-right: auto; }
	.hero-scene__viz { max-width: 350px; }
	.hero-scene__hint { display: none; }
}

@media (max-width: 560px) {
	.hero__cta { flex-direction: column; align-items: stretch; }
}

/* Ticker */
.ticker { border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); overflow: hidden; padding: 18px 0; background: var(--bg-alt); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker-scroll 30s linear infinite; }
.ticker__item { font-size: 16px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 64px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__title { font-size: 36px; font-weight: 800; margin: 0 0 14px; letter-spacing: 1px; }
.section__subtitle { color: var(--text-muted); font-size: 16px; margin: 0; }

/* Courses */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.course-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.course-card__media { aspect-ratio: 16/9; overflow: hidden; background: #000; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; }
.course-card__body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.course-card__body h3 { margin: 0; font-size: 20px; }
.course-card__body p { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.6; flex: 1; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 20px; align-items: stretch; }
.why-col { display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 16px; }
.why-image { border-radius: var(--radius); overflow: hidden; }
.why-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-box { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px; }
.feature-box__icon { width: 32px; height: 32px; margin-bottom: 14px; }
.feature-box h3 { margin: 0 0 8px; font-size: 16px; }
.feature-box p { margin: 0; color: var(--text-muted); font-size: 16px; }

/* Steps */
.steps-tabs__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.step-tab { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 18px; text-align: left; color: var(--text-muted); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.step-tab__num { font-size: 16px; font-weight: 700; color: var(--text-muted); }
.step-tab__title { font-size: 16px; font-weight: 600; color: var(--text); }
.step-tab.is-active { border-color: var(--accent); background: var(--accent-dark); }
.step-tab.is-active .step-tab__num,
.step-tab.is-active .step-tab__title { color: var(--accent); }
.steps-tabs__panels { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 40px; min-height: 160px; }
.step-panel { display: none; }
.step-panel.is-active { display: block; }
.step-panel__meta { font-size: 16px; letter-spacing: 1px; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.step-panel h3 { margin: 0 0 10px; font-size: 22px; }
.step-panel p { margin: 0; color: var(--text-muted); max-width: 640px; }

/* FAQ */
.faq__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.faq__head { text-align: left; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.faq-item__q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: none; border: none; color: var(--text); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.faq-item__icon { color: var(--accent); font-size: 18px; }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item__a p { margin: 0; padding: 0 20px 18px; color: var(--text-muted); font-size: 16px; }
.faq-item.is-open .faq-item__a { max-height: 240px; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

/* CTA */
.cta__inner { text-align: center; max-width: 620px; }
.cta__title { font-size: 40px; font-weight: 800; margin: 0 0 16px; }
.cta .btn { margin-top: 24px; }

/* Contact Support */
.contact-support__inner { max-width: 640px; }
.contact-support__form { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.contact-support__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-field { display: flex; flex-direction: column; gap: 10px; }
.form-field label { font-size: 16px; font-weight: 600; }
.form-field input,
.form-field textarea {
	background: var(--card); border: 1px solid var(--card-border); border-radius: 10px;
	padding: 14px 16px; font-size: 16px; font-family: inherit; color: var(--text);
	letter-spacing: 1px; resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.contact-support__submit { display: flex; justify-content: flex-end; }
.contact-support__submit .btn { border: none; cursor: pointer; }
.contact-support__notice { border-radius: 10px; padding: 16px 20px; margin: 24px 0 0; font-size: 16px; }
.contact-support__notice--success { background: rgba(47,230,176,0.12); border: 1px solid rgba(47,230,176,0.4); color: var(--accent-light); }
.contact-support__notice--error { background: rgba(230,80,47,0.12); border: 1px solid rgba(230,80,47,0.4); color: #ff8a70; }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 32px 0; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer__copy { color: var(--text-muted); font-size: 16px; margin: 0; }
.footer-nav__list { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-nav__list a { color: var(--text-muted); font-size: 16px; }
.footer-nav__list a:hover { color: var(--text); }

@media (max-width: 960px) {
	.course-grid { grid-template-columns: repeat(2, 1fr); }
	.why-grid { grid-template-columns: 1fr; }
	.steps-tabs__nav { grid-template-columns: repeat(2, 1fr); }
	.faq__inner { grid-template-columns: 1fr; }

	.nav-toggle { display: flex; }
	.main-nav {
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--bg-alt);
		border-bottom: 1px solid var(--card-border);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}
	.main-nav.is-open { max-height: 400px; }
	.main-nav__list { display: flex; flex-direction: column; gap: 0; padding: 8px 24px 0; }
	.main-nav__list li { border-top: 1px solid var(--card-border); }
	.main-nav__list li:first-child { border-top: none; }
	.main-nav__list a { display: block; padding: 14px 0; }
	.main-nav__cta { align-self: flex-start; margin: 16px 24px 20px; }
}
@media (max-width: 600px) {
	.hero__title { font-size: 38px; }
	.course-grid { grid-template-columns: 1fr; }
}
