:root {
  color-scheme: dark;
  --black: #050505;
  --surface: #0c0e0d;
  --surface-raised: #111412;
  --white: #fff;
  --green: #42db80;
  --green-dim: #193b29;
  --text-muted: #a3aaa5;
  --text-soft: #737b75;
  --border: #242925;
  --border-strong: #343c36;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;
  --content: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, iframe { max-width: 100%; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
::selection { color: var(--black); background: var(--green); }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 50; padding: .7rem 1rem; background: var(--green); color: var(--black); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.container { width: min(var(--content), calc(100% - 3rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(255 255 255 / 7%); background: rgb(5 5 5 / 94%); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.15rem; font-weight: 760; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); border-radius: 8px; font: 700 .78rem var(--mono); }
.brand-copy { display: flex; align-items: baseline; gap: .72rem; }
.brand-name { line-height: 1.2; }
.brand-tagline { color: var(--text-muted); font-size: .66rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.nav-right, .nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: #c7ccc8; font-size: .9rem; transition: color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); }
.menu-toggle { display: none; border: 1px solid var(--border-strong); border-radius: 8px; padding: .55rem .7rem; color: var(--white); background: var(--surface); cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.15rem; border-radius: 9px; border: 1px solid transparent; font-weight: 680; font-size: .93rem; transition: background .18s ease, border-color .18s ease, transform .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #06120a; }
.button-primary:hover { background: #5be793; }
.button-secondary { border-color: var(--border-strong); background: transparent; color: var(--white); }
.button-secondary:hover { border-color: #657168; background: var(--surface-raised); }
.button-small { min-height: 40px; padding: .55rem .9rem; font-size: .86rem; }
main { min-height: 60vh; }
.eyebrow { display: inline-flex; align-items: center; color: var(--green); text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 750; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.04em; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.7rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: .65rem; }
.lead { color: #c1c7c2; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.7; max-width: 620px; }
.muted { color: var(--text-muted); }
.section { padding-block: var(--space-8); }
.section-head { max-width: 700px; margin-bottom: 2.7rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.hero { padding-block: clamp(4.3rem, 9vw, 7.4rem) var(--space-8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(430px, 1.06fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero-copy h1 { max-width: 650px; }
.hero-copy h1 span { color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { display: flex; align-items: center; gap: .65rem; margin-top: 1.4rem; color: var(--text-soft); font-size: .82rem; }
.hero-note i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.editor-window { overflow: hidden; border: 1px solid #303732; border-radius: var(--radius); background: #0b0e0c; box-shadow: 0 26px 85px rgb(0 0 0 / 38%); }
.editor-top { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); background: #0e110f; }
.editor-dots { display: flex; gap: 6px; }
.editor-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #465049; }
.editor-file { color: #b9c1bb; font: .76rem var(--mono); }
.editor-language { color: var(--text-soft); font: .72rem var(--mono); }
.code-area { display: grid; grid-template-columns: 40px 1fr; padding: 1.4rem 1.1rem 1.2rem; overflow-x: auto; font: clamp(.75rem, 1vw, .86rem)/1.9 var(--mono); }
.line-numbers { color: #59625c; text-align: right; user-select: none; padding-right: 1rem; }
.code-lines { white-space: pre; color: #dfe5e0; }
.syntax-key { color: #c792ea; }.syntax-name { color: #82aaff; }.syntax-string { color: #c3e88d; }.syntax-fn { color: var(--green); }.syntax-comment { color: #66736a; }
.output { border-top: 1px solid var(--border); padding: .85rem 1.25rem 1rem; }
.output-label { display: flex; justify-content: space-between; color: #89918b; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .09em; margin-bottom: .5rem; }
.output pre { color: var(--green); font: .78rem/1.6 var(--mono); margin: 0; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, #101311, #090a09); }
.feature-card { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); }
.course-label { display: inline-block; border: 1px solid #355843; border-radius: 999px; color: var(--green); font-size: .74rem; padding: .28rem .65rem; margin-bottom: 1.15rem; }
.feature-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); }
.feature-card p { color: var(--text-muted); max-width: 650px; margin-bottom: 0; }
.feature-symbol { width: 92px; height: 92px; display: grid; place-items: center; border: 1px solid #31513c; border-radius: 22px; color: var(--green); font: 2rem var(--mono); background: #0d1a12; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-card { padding: 1.5rem; }
.info-icon { color: var(--green); font: 700 1.1rem var(--mono); margin-bottom: 1.4rem; }
.info-card p { color: var(--text-muted); font-size: .94rem; margin-bottom: 0; }
.future-strip { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.4rem 0; }
.future-strip p { margin: 0; color: var(--text-muted); }
.future-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.future-tags span { color: #929a94; border: 1px solid var(--border); border-radius: 999px; padding: .32rem .7rem; font-size: .76rem; }
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #294433; border-radius: var(--radius); background: #0b130e; }
.cta-panel h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: .55rem; }
.cta-panel p { color: var(--text-muted); margin-bottom: 0; }
.page-hero { padding-block: clamp(4rem, 8vw, 6.5rem) 3.5rem; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.page-hero .lead { max-width: 710px; }
.catalogue { padding-block: 1.2rem var(--space-8); }
.catalogue-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(1.5rem, 4vw, 2.6rem); }
.catalogue-card p { color: var(--text-muted); max-width: 650px; margin-bottom: 1.2rem; }
.card-kicker { color: var(--green); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.lesson-main { min-width: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #111; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-heading { padding: 1.4rem .25rem 0; }
.lesson-heading h2 { font-size: 1.45rem; margin-bottom: .45rem; }
.lesson-heading p { color: var(--text-muted); margin-bottom: 0; }
.lesson-list { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #0b0d0c; }
.lesson-list-head { padding: 1rem 1rem .8rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #0b0d0c; z-index: 1; }
.lesson-list-head strong { display: block; font-size: .95rem; }.lesson-list-head span { color: var(--text-soft); font-size: .78rem; }
.lesson-button { display: grid; width: 100%; grid-template-columns: 32px 1fr; gap: .65rem; align-items: center; padding: .8rem 1rem; text-align: left; color: #d9dedb; background: transparent; border: 0; border-bottom: 1px solid #1a1e1b; cursor: pointer; transition: background .15s ease; }
.lesson-button:hover { background: #121713; }.lesson-button[aria-current="true"] { background: #122117; box-shadow: inset 3px 0 var(--green); color: var(--white); }
.lesson-number { display: grid; place-items: center; height: 28px; border: 1px solid var(--border-strong); border-radius: 7px; color: #9aa29c; font: .72rem var(--mono); }
.lesson-button[aria-current="true"] .lesson-number { color: var(--green); border-color: #3c684b; }
.lesson-title { font-size: .84rem; line-height: 1.3; }
.practice-section { margin-top: 2.25rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.practice-intro { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.practice-intro p { color: var(--text-muted); margin-bottom: 0; }
.practice-panel { margin-top: 1.2rem; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.practice-panel[hidden] { display: none; }
.practice-panel-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.practice-panel-head strong { display: block; }.practice-panel-head p { margin: .3rem 0 0; color: var(--text-muted); font-size: .87rem; }
.editor-status { padding: 1rem 1.2rem; color: var(--text-muted); font-size: .9rem; }
.editor-status a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.practice-embed { display: block; width: 100%; height: 520px; border: 0; background: #0a0a0a; }
.empty-state { max-width: 760px; padding: clamp(2rem, 6vw, 4rem); border: 1px dashed #39423c; border-radius: var(--radius); background: #0b0e0c; }
.empty-mark { color: var(--green); font: 1rem var(--mono); margin-bottom: 1.3rem; }
.about-copy { max-width: 760px; color: #c1c7c2; font-size: 1.15rem; line-height: 1.85; }
.site-footer { border-top: 1px solid var(--border); margin-top: var(--space-7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem; }
.footer-blurb { max-width: 340px; color: var(--text-muted); font-size: .9rem; margin: 1rem 0 0; }
.footer-title { display: block; color: #e6eae7; font-size: .81rem; margin-bottom: .85rem; }
.footer-links { display: grid; justify-items: start; gap: .55rem; color: var(--text-muted); font-size: .86rem; }
.footer-links a:hover { color: var(--green); }
.copyright { padding: 1.15rem 0 1.5rem; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .78rem; }
@media (max-width: 900px) {
 .hero-grid { grid-template-columns: 1fr; gap: 3rem; }.hero-copy { max-width: 720px; }.hero-visual { max-width: 700px; }
 .course-layout { grid-template-columns: minmax(0, 1fr) 290px; }.lesson-list { top: 92px; }
}
@media (max-width: 680px) {
 .container { width: min(100% - 2rem, var(--content)); }.nav-wrap { min-height: 66px; }.brand-copy { align-items: flex-start; flex-direction: column; gap: 0; }.brand-tagline { font-size: .59rem; line-height: 1.2; }.menu-toggle { display: inline-flex; align-items: center; gap: .5rem; }
 .nav-right { position: absolute; display: none; top: 65px; left: 0; right: 0; align-items: stretch; padding: 1rem; border-bottom: 1px solid var(--border); background: #080908; }
 .nav-right[data-open="true"] { display: flex; flex-direction: column; gap: 1rem; }.nav-links { align-items: stretch; flex-direction: column; gap: 0; }.nav-links a { padding: .7rem .4rem; border-bottom: 1px solid #171b18; }
 .nav-right .button { width: 100%; }.hero { padding-top: 3.5rem; }.hero-grid { gap: 2.5rem; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .button { width: 100%; }
 .section { padding-block: 4rem; }.grid-3 { grid-template-columns: 1fr; }.feature-card, .catalogue-card { grid-template-columns: 1fr; }.feature-symbol { display: none; }
 .future-strip, .cta-panel, .practice-intro { align-items: flex-start; flex-direction: column; }.cta-panel .button { width: 100%; }
 .course-layout { display: flex; flex-direction: column; }.lesson-main, .lesson-list { width: 100%; }.lesson-list { position: static; max-height: none; order: 2; }.practice-section { order: 3; width: 100%; }.course-layout { gap: 1.5rem; }
 .practice-embed { height: 480px; }.footer-grid { grid-template-columns: 1fr 1fr; }.footer-branding { grid-column: 1 / -1; }.page-hero { padding-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
