:root {
  --bg: #11100f;
  --panel: #191715;
  --panel-2: #211e1b;
  --line: #39332d;
  --muted: #a9a097;
  --text: #f5f0e9;
  --rust: #e65f2b;
  --rust-2: #ff8a4c;
  --green: #63d391;
  --yellow: #f4c35b;
  --radius: 18px;
  --mono: "Roboto Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: "Manrope", Arial, sans-serif; font-size: 16px; }
button, textarea { font: inherit; }
button { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .022; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.topbar { height: 74px; padding: 0 max(24px, calc((100% - 1180px)/2)); border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 48px; position: relative; z-index: 10; background: rgba(17,16,15,.9); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.5px; }
.brand-mark { width: 34px; height: 34px; border: 2px solid var(--rust); color: var(--rust-2); border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-weight: 700; }
.brand-dot { color: var(--rust); }
.top-nav { display: flex; align-self: stretch; gap: 4px; }
.nav-link { border: 0; background: transparent; padding: 0 15px; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.nav-link.active, .nav-link:hover { color: var(--text); border-color: var(--rust); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.streak { color: var(--muted); font-size: 14px; }.streak span { color: var(--rust-2); }.streak b { color: var(--text); }
.avatar { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 50%; cursor: pointer; font-weight: 700; }

.hero { min-height: 640px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; padding-block: 70px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; color: var(--rust-2); display: flex; align-items: center; gap: 9px; }.eyebrow span { width: 22px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(52px, 6vw, 82px); line-height: .98; letter-spacing: -4px; margin: 25px 0; }.hero h1 em { color: var(--rust); font-style: normal; }
.hero-copy>p { max-width: 625px; color: #bbb2a9; font-size: 19px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; margin: 34px 0; }
.button { border: 1px solid var(--line); border-radius: 10px; padding: 14px 21px; font-weight: 800; cursor: pointer; transition: .2s ease; }.button:hover { transform: translateY(-2px); }.button.primary { background: var(--rust); border-color: var(--rust); color: #170a04; }.button.primary:hover { background: var(--rust-2); }.button.ghost { background: transparent; }
.hero-meta { border-top: 1px solid var(--line); padding-top: 24px; display: flex; gap: 30px; color: var(--muted); font-size: 13px; }.hero-meta b { display: block; color: var(--text); font-size: 18px; }
.hero-visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.code-window { position: relative; z-index: 3; width: min(100%, 500px); border: 1px solid #49423b; background: #171513; border-radius: 14px; box-shadow: 0 35px 100px rgba(0,0,0,.5); transform: rotate(1.5deg); overflow: hidden; }
.window-bar { height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #211e1b; border-bottom: 1px solid #37312d; color: #8d847b; font: 12px var(--mono); }.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #514a43; }.window-bar i:first-child { background: var(--rust); }.window-bar span { margin-left: 9px; }
.code-window pre { margin: 0; padding: 35px 28px; min-height: 245px; font: 15px/1.85 var(--mono); overflow: auto; }.kw { color: #e783bd; }.fn { color: #82c7ff; }.ty { color: #edcc75; }.str { color: #9ed57f; }
.code-result { border-top: 1px solid #37312d; padding: 15px 20px; color: #a9a097; font: 13px var(--mono); }.code-result span { color: var(--green); margin-right: 8px; }
.rust-badge { width: 110px; height: 110px; border-radius: 50%; background: var(--rust); color: #24100a; display: grid; place-content: center; text-align: center; font: 800 17px/1.1 var(--mono); position: absolute; z-index: 4; right: -25px; bottom: 45px; transform: rotate(-9deg); box-shadow: 0 12px 35px rgba(230,95,43,.35); }.rust-badge small { font-size: 8px; letter-spacing: 1px; }
.orbit { position: absolute; border: 1px solid #3b342f; border-radius: 50%; }.orbit-one { width: 430px; height: 430px; }.orbit-two { width: 330px; height: 330px; border-color: rgba(230,95,43,.25); }

.path-section { padding: 80px 0 100px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }.kicker { color: var(--rust-2); font-size: 12px; font-weight: 800; letter-spacing: 1.8px; }.section-heading h2, .why h2 { margin: 9px 0 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.7px; }
.overall-progress { width: 220px; text-align: right; color: var(--muted); font-size: 13px; }.overall-progress div, .sidebar-progress div { height: 5px; background: #2e2925; border-radius: 10px; margin-top: 9px; overflow: hidden; }.overall-progress i, .sidebar-progress i { display: block; height: 100%; width: 0; background: var(--rust); transition: width .4s ease; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card { min-height: 245px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: .2s ease; position: relative; overflow: hidden; }.module-card.available { cursor: pointer; }.module-card.available:hover { transform: translateY(-4px); border-color: #78503e; }.module-card.locked { opacity: .57; }.module-number { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--rust-2); font: 700 14px var(--mono); }.module-card h3 { font-size: 21px; margin: 23px 0 8px; }.module-card p { color: var(--muted); line-height: 1.55; margin: 0; }.module-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; color: #8e867e; font-size: 13px; }.module-foot b { color: var(--rust-2); }.module-card.completed:after { content: "✓"; position: absolute; right: 20px; top: 20px; color: var(--green); font-weight: 800; }
.why { border-top: 1px solid var(--line); padding: 90px 0 110px; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 40px; }.why-intro p, .feature p { color: var(--muted); line-height: 1.65; }.feature { border-left: 1px solid var(--line); padding-left: 25px; }.feature>span { font: 12px var(--mono); color: var(--rust-2); }.feature h3 { margin-top: 55px; }

.lesson-layout { min-height: 100vh; display: grid; grid-template-columns: 285px 1fr; }.lesson-layout~* { display:none; }
.lesson-sidebar { position: sticky; top: 0; height: 100vh; background: #141210; border-right: 1px solid var(--line); padding: 24px 18px; display: flex; flex-direction: column; }.brand.compact { margin: 0 8px 26px; }.back-link { text-align: left; background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 10px 12px; }.back-link:before { content: "‹"; margin-right: 9px; color: var(--rust-2); }.sidebar-label { padding: 28px 12px 12px; color: #746c65; font-size: 11px; letter-spacing: 1.5px; border-top: 1px solid var(--line); }
#lessonNav { display: grid; gap: 4px; }.lesson-nav-item { border: 0; background: transparent; border-radius: 9px; padding: 12px; display: grid; grid-template-columns: 28px 1fr; text-align: left; gap: 8px; cursor: pointer; color: var(--muted); line-height: 1.35; }.lesson-nav-item span { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 11px; }.lesson-nav-item.active { background: #28231f; color: var(--text); }.lesson-nav-item.active span { border-color: var(--rust); color: var(--rust-2); }.lesson-nav-item.done span { border-color: var(--green); color: var(--green); }
.sidebar-progress { margin-top: auto; padding: 18px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.sidebar-progress b { float: right; color: var(--text); }
.lesson-content { width: min(860px, calc(100% - 60px)); margin: 0 auto; padding: 70px 0 120px; }.lesson-content .crumb { color: var(--rust-2); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; }.lesson-content h1 { font-size: clamp(39px, 5vw, 60px); letter-spacing: -2.5px; margin: 15px 0 20px; }.lead { color: #bcb3aa; font-size: 19px; line-height: 1.7; margin-bottom: 48px; }.lesson-content h2 { margin-top: 48px; font-size: 28px; }.lesson-content p, .lesson-content li { color: #c4bbb2; line-height: 1.78; }.lesson-content code:not(pre code) { background: #29241f; color: var(--rust-2); padding: 2px 6px; border-radius: 5px; font: .9em var(--mono); }
.note { border-left: 3px solid var(--rust); background: #201b18; padding: 18px 21px; margin: 28px 0; border-radius: 0 10px 10px 0; }.note strong { color: var(--rust-2); }.lesson-code { border: 1px solid var(--line); background: #151311; border-radius: 12px; overflow: hidden; margin: 24px 0; }.lesson-code .window-bar { height: 38px; }.lesson-code pre { margin: 0; padding: 24px; font: 14px/1.75 var(--mono); overflow: auto; }
.task-card { margin-top: 55px; border: 1px solid #574237; border-radius: 16px; overflow: hidden; background: var(--panel); }.task-head { padding: 22px 24px; background: #241d19; border-bottom: 1px solid var(--line); }.task-head span { color: var(--rust-2); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; }.task-head h3 { margin: 8px 0 0; font-size: 21px; }.task-body { padding: 24px; }.options { display: grid; gap: 10px; margin: 22px 0; }.option { width: 100%; text-align: left; border: 1px solid var(--line); background: #171513; padding: 14px 16px; border-radius: 9px; cursor: pointer; }.option:hover, .option.selected { border-color: var(--rust); background: #281c17; }.option.correct { border-color: var(--green); background: rgba(99,211,145,.08); }.option.wrong { border-color: #e26666; background: rgba(226,102,102,.08); }
.editor { width: 100%; min-height: 180px; resize: vertical; border: 1px solid var(--line); background: #0e0d0c; color: #e7ddd3; border-radius: 10px; padding: 17px; font: 14px/1.7 var(--mono); outline: none; }.editor:focus { border-color: var(--rust); }.task-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }.feedback { min-height: 24px; margin-top: 15px; font-size: 14px; }.feedback.success { color: var(--green); }.feedback.error { color: #f08383; }
.lesson-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }.lesson-footer .button[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.toast { position: fixed; right: 24px; bottom: 24px; background: #27221e; border: 1px solid #5b4b41; padding: 14px 18px; border-radius: 10px; transform: translateY(100px); opacity: 0; transition: .25s ease; z-index: 50; }.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 960px) { .hero { grid-template-columns: 1fr; }.hero-visual { min-height: 390px; }.module-grid { grid-template-columns: repeat(2, 1fr); }.why { grid-template-columns: 1fr 1fr; }.lesson-layout { grid-template-columns: 235px 1fr; } }
@media (max-width: 700px) { .shell { width: min(100% - 30px, 1180px); }.topbar { padding: 0 15px; gap: 12px; }.top-nav { display: none; }.streak { display: none; }.hero { padding-block: 45px; min-height: auto; }.hero h1 { letter-spacing: -2.8px; }.hero-copy>p { font-size: 17px; }.hero-buttons { flex-direction: column; }.hero-meta { display: grid; grid-template-columns: 1fr 1fr; }.rust-badge { right: 0; }.section-heading { align-items: stretch; flex-direction: column; }.overall-progress { width: 100%; text-align: left; }.module-grid { grid-template-columns: 1fr; }.why { grid-template-columns: 1fr; }.feature { padding-bottom: 25px; }.feature h3 { margin-top: 20px; }.lesson-layout { display: block; }.lesson-sidebar { position: relative; width: 100%; height: auto; }.lesson-sidebar .brand, .lesson-sidebar .back-link, .sidebar-label, .sidebar-progress { display: none; } #lessonNav { display: flex; overflow-x: auto; padding-bottom: 8px; }.lesson-nav-item { min-width: 180px; }.lesson-content { width: calc(100% - 30px); padding-top: 35px; }.lesson-content h1 { letter-spacing: -1.5px; }.task-actions, .lesson-footer { align-items: stretch; flex-direction: column; }.task-actions .button, .lesson-footer .button { width: 100%; } }
