:root {
  --ink: #eaf1f8;
  --muted: #92a0b3;
  --line: rgba(234, 241, 248, 0.12);
  --line-strong: rgba(234, 241, 248, 0.24);
  --bg: #060a10;
  --panel: #0a1017;
  --panel-2: #0d141d;
  --blue: #59a7ff;
  --blue-soft: rgba(89, 167, 255, 0.12);
  --amber: #ffc959;
  --amber-soft: rgba(255, 201, 89, 0.11);
  --green: #4ade9c;
  --danger: #ff8a73;
  --surface: #070c13;
  --surface-2: #080d14;
  --wash: rgba(255,255,255,.03);
  --hover: rgba(255,255,255,.05);
  --row-line: rgba(234,241,248,.07);
  --dim-text: #74859c;
  --text-2: #b6c3d4;
  --primary-contrast: #071120;
  --scrim: rgba(2, 4, 8, .82);
  --topbar-bg: rgba(6, 10, 16, .82);
  --nav-bg: rgba(6,10,16,.92);
  --card-grad: linear-gradient(160deg, #0b1220, #080d15);
  --body-glow: radial-gradient(circle at 15% 4%, rgba(64, 96, 138, 0.16), transparent 26%);
  --hero-fade: var(--hero-fade);
  --shadow-panel: 0 40px 90px rgba(0,0,0,.45);
  --panel-grad: linear-gradient(145deg, rgba(255,255,255,.025), transparent);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', sans-serif;
  --mono: 'DM Mono', monospace;
  --sidebar: 310px;
}

:root[data-theme="light"] {
  --ink: #14202f;
  --muted: #5a6b82;
  --line: rgba(20, 32, 47, .13);
  --line-strong: rgba(20, 32, 47, .26);
  --bg: #f3f6fb;
  --panel: #e9eef7;
  --panel-2: #dfe7f2;
  --blue: #1264cf;
  --blue-soft: rgba(18, 100, 207, .10);
  --amber: #8f5f00;
  --amber-soft: rgba(143, 95, 0, .09);
  --green: #0c7c4d;
  --danger: #bb3a24;
  --surface: #ffffff;
  --surface-2: #f5f8fd;
  --wash: rgba(20, 32, 47, .04);
  --hover: rgba(20, 32, 47, .07);
  --row-line: rgba(20, 32, 47, .09);
  --dim-text: #63748c;
  --text-2: #38485f;
  --primary-contrast: #ffffff;
  --scrim: rgba(238, 243, 250, .9);
  --topbar-bg: rgba(243, 246, 251, .86);
  --nav-bg: rgba(255,255,255,.94);
  --card-grad: linear-gradient(160deg, #ffffff, #f2f6fc);
  --body-glow: radial-gradient(circle at 15% 4%, rgba(18, 100, 207, 0.10), transparent 30%);
  --hero-fade: linear-gradient(90deg, var(--bg) 0%, rgba(243,246,251,.88) 34%, rgba(243,246,251,.3) 68%, rgba(243,246,251,.06) 100%);
  --shadow-panel: 0 40px 90px rgba(30, 50, 80, .12);
  --panel-grad: linear-gradient(145deg, rgba(20,32,47,.035), transparent);
}

html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--body-glow), var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--primary-contrast); }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .035;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.topbar.scrolled { background: var(--topbar-bg); border-color: var(--line); backdrop-filter: blur(18px); }
.brand img { display: block; width: 150px; height: 36px; }
.topbar-progress { width: min(240px, 28vw); justify-self: center; }
.topbar-progress > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.progress-track { height: 2px; background: var(--line); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .5s ease; }
.icon-button {
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
  display: none;
  place-items: center;
}
.icon-button span { display: block; width: 15px; height: 1px; background: currentColor; }
.icon-button span + span { margin-top: 5px; width: 10px; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--blue); transform: translateY(-1px); }
.theme-toggle::before { content: '☀'; font-size: 15px; line-height: 1; }
html[data-theme="light"] .theme-toggle::before { content: '☾'; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 900px;
  height: 100svh;
  max-height: 1020px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: 130px clamp(20px, 6.5vw, 110px) 70px;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 78% 30%, rgba(89,167,255,.14), transparent 65%),
    radial-gradient(ellipse 42% 38% at 88% 72%, rgba(255,201,89,.07), transparent 70%),
    var(--hero-fade);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero-glow {
  position: absolute;
  width: 430px;
  height: 430px;
  right: 6%;
  top: 14%;
  border: 1px solid rgba(89,167,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 150px rgba(89,167,255,.12), inset 0 0 120px rgba(89,167,255,.04);
  animation: float 7s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 2; }
.eyebrow, .section-kicker { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(89,167,255,.1); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 24px; font-size: clamp(54px, 6.6vw, 104px); line-height: .92; letter-spacing: -.068em; font-weight: 600; }
.hero h1 em { color: var(--blue); font-family: var(--serif); font-weight: 400; }
.hero-lead { max-width: 600px; color: var(--text-2); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; }
.hero-lead strong { color: var(--ink); font-weight: 600; }

.promo-card {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 560px;
  margin-top: 36px;
  padding: 20px 24px;
  border: 1px solid rgba(255,201,89,.35);
  background: linear-gradient(145deg, rgba(255,201,89,.09), rgba(89,167,255,.06));
}
.promo-price { display: grid; gap: 2px; text-align: center; }
.promo-price s { color: var(--muted); font-size: 15px; font-family: var(--mono); }
.promo-price strong { color: var(--amber); font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.promo-copy { display: grid; gap: 8px; }
.promo-badge {
  width: max-content;
  padding: 4px 9px;
  border: 1px solid rgba(255,201,89,.5);
  color: var(--amber);
  font: 9px var(--mono);
  letter-spacing: .13em;
}
.promo-copy p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.55; }

.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.primary-button {
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: var(--blue);
  color: var(--primary-contrast);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(89,167,255,.22); }
.primary-button span { margin-left: 22px; }
.text-button { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: none; color: var(--ink); cursor: pointer; }
.text-button span { color: var(--blue); margin-left: 8px; }
.hero-meta { display: flex; gap: clamp(26px, 4vw, 62px); margin-top: 56px; flex-wrap: wrap; }
.hero-meta div { display: grid; gap: 3px; }
.hero-meta strong { font-size: 22px; font-weight: 500; }
.hero-meta span { color: var(--muted); font-size: 11px; }

.hero-terminal { position: relative; z-index: 2; }
.term { border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-panel); }
.term-top { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); letter-spacing: .06em; }
.term-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.term-top span { margin-left: 8px; opacity: .8; }
.term-body { padding: 22px 20px 18px; font: 12.5px/2.05 var(--mono); color: var(--text-2); }
.term-line b { font-weight: 500; }
.t-prompt { color: var(--green); }
.t-you { color: var(--blue); }
.t-dim { color: var(--dim-text); }
.t-ok { color: var(--green); }
.t-model { color: var(--amber); }
.term-cursor { display: inline-block; }
.term-cursor span { display: inline-block; width: 8px; height: 15px; background: var(--blue); vertical-align: middle; animation: blink 1.15s steps(1) infinite; }

.appwin { border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-panel); overflow: hidden; }
.appwin-top { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); letter-spacing: .06em; }
.appwin-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.appwin-top i:first-child { background: rgba(255,138,115,.55); }
.appwin-title { margin-left: 6px; margin-right: 10px; color: var(--text-2); }
.appwin-tab { padding: 5px 11px; border: 1px solid transparent; border-radius: 7px 7px 0 0; opacity: .55; }
.appwin-tab--active { border-color: var(--line); border-bottom-color: var(--surface); background: var(--blue-soft); opacity: 1; color: var(--ink); }
.appwin-body { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
.appwin-side { display: grid; align-content: start; gap: 9px; padding: 18px 14px; border-right: 1px solid var(--line); font: 10.5px/1.35 var(--mono); color: var(--dim-text); }
.appwin-side b { margin-top: 6px; color: var(--dim-text); font-size: 8.5px; letter-spacing: .13em; }
.appwin-side span::before { content: '· '; color: var(--blue); }
.appwin-side .side-active { color: var(--blue); }
.appwin-chat { padding: 20px 20px 16px; font: 12.5px/2.05 var(--mono); color: var(--text-2); }
.appwin-input {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--dim-text);
  font-size: 11px;
}
.appwin-input em { font-style: normal; color: var(--green); white-space: nowrap; }
.orbit-note { position: absolute; z-index: 2; color: var(--dim-text); opacity:.65; font: 9px var(--mono); letter-spacing: .13em; writing-mode: vertical-rl; }
.orbit-note-a { right: -3.2vw; top: 8%; }
.orbit-note-b { right: -3.2vw; bottom: 6%; }

.manifesto {
  min-height: 480px;
  padding: 120px clamp(24px, 10vw, 160px);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.manifesto-index { color: var(--blue); font: 13px var(--mono); padding-top: 16px; }
.manifesto p { max-width: 1060px; font-size: clamp(31px, 3.8vw, 62px); line-height: 1.16; letter-spacing: -.045em; }
.manifesto mark { color: var(--amber); background: transparent; font-family: var(--serif); font-style: italic; }

.course-shell { min-height: 900px; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.course-nav {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow-y: auto;
  padding: 34px 22px 24px;
  border-right: 1px solid var(--line);
  background: var(--nav-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.nav-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 8px 26px; color: var(--muted); font: 10px var(--mono); letter-spacing: .16em; }
.nav-close { display: none; border: 0; background: none; color: var(--ink); font-size: 24px; cursor: pointer; }
.nav-progress { display: flex; align-items: center; gap: 16px; padding: 0 8px 24px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav-progress > div:last-child { display: grid; gap: 4px; }
.nav-progress strong { font-size: 13px; }
.nav-progress div > span { color: var(--muted); font-size: 10px; }
.progress-ring { --value: 0deg; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) var(--value), var(--line) 0); position: relative; }
.progress-ring::before { content: ''; position: absolute; inset: 4px; background: var(--bg); border-radius: 50%; }
.progress-ring span { position: relative; z-index: 1; font: 9px var(--mono); }
#module-list { display: grid; }
.module-link {
  position: relative;
  width: 100%;
  padding: 16px 10px 16px 42px;
  border: 0;
  border-bottom: 1px solid var(--row-line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.module-link:hover { color: var(--ink); background: var(--hover); }
.module-link.active { color: var(--ink); background: var(--blue-soft); }
.module-link.active::after { content: ''; position: absolute; inset: 10px auto 10px -22px; width: 2px; background: var(--blue); }
.module-number { position: absolute; left: 10px; top: 17px; font: 10px var(--mono); color: inherit; }
.module-link strong { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; }
.module-link small { display: block; color: inherit; opacity: .68; font: 9px var(--mono); }
.module-link.complete .module-number { color: var(--green); }
.module-link.complete .module-number::after { content: '✓'; }
.module-link.complete .module-number span { display: none; }
.reset-button { margin: 24px 8px 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--muted); font-size: 10px; cursor: pointer; }
.reset-button:hover { color: var(--danger); }

.lesson { padding: clamp(64px, 8vw, 116px) clamp(24px, 8vw, 130px) 100px; overflow: hidden; }
.lesson-inner { max-width: 920px; margin: 0 auto; }
.lesson-header { position: relative; padding-bottom: 52px; margin-bottom: 52px; border-bottom: 1px solid var(--line); }
.lesson-index { color: var(--blue); font: 11px var(--mono); letter-spacing: .13em; }
.lesson h2 { max-width: 780px; margin: 18px 0 24px; font-size: clamp(40px, 4.8vw, 66px); line-height: 1.03; letter-spacing: -.05em; font-weight: 600; }
.lesson-summary { max-width: 690px; color: var(--text-2); font-size: 18px; line-height: 1.75; }
.lesson-duration { position: absolute; top: 3px; right: 0; color: var(--muted); font: 10px var(--mono); }
.objectives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 64px; background: var(--line); border: 1px solid var(--line); }
.objective { min-height: 130px; padding: 20px; background: var(--bg); }
.objective span { color: var(--blue); font: 9px var(--mono); }
.objective p { margin: 32px 0 0; font-size: 13px; line-height: 1.5; }
.content-block { margin: 0 0 62px; }
.content-block h3 { margin-bottom: 20px; font-size: 25px; letter-spacing: -.025em; }
.content-block > p, .content-block li { color: var(--text-2); font-size: 16px; line-height: 1.85; }
.content-block ul, .content-block ol { padding-left: 22px; }
.content-block li { margin-bottom: 10px; padding-left: 6px; }
.content-block strong { color: var(--ink); font-weight: 600; }
.content-block code { padding: 1px 7px; border: 1px solid var(--line); background: var(--panel); color: var(--blue); font: 12.5px var(--mono); }
.plain-definition { margin: 28px 0; padding: 24px 26px; border-left: 2px solid var(--amber); background: var(--amber-soft); }
.plain-definition span { display: block; margin-bottom: 8px; color: var(--amber); font: 9px var(--mono); letter-spacing: .12em; }
.plain-definition p { margin: 0; font-size: 16px; line-height: 1.7; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.flow-step { min-height: 160px; padding: 19px; border: 1px solid var(--line); background: var(--panel-grad); }
.flow-step .flow-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 26px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--blue); font: 12px var(--mono); }
.flow-step strong { display: block; margin-bottom: 6px; font-size: 13px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.prompt-card { margin-top: 26px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.prompt-top { display: flex; justify-content: space-between; align-items: center; padding: 11px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); letter-spacing: .09em; }
.copy-button { padding: 6px 9px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 9px var(--mono); cursor: pointer; }
.copy-button:hover { border-color: var(--blue); color: var(--blue); }
.prompt-card pre { margin: 0; padding: 26px; color: var(--text-2); white-space: pre-wrap; font: 13px/1.8 var(--mono); }
.prompt-card pre b { color: var(--amber); font-weight: 400; }
.callout { display: grid; grid-template-columns: 110px 1fr; gap: 25px; margin: 52px 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.callout > span { color: var(--blue); font: 9px var(--mono); letter-spacing: .1em; }
.callout p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.7; }

.compare-table { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td { padding: 14px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.compare-table th { color: var(--muted); font: 10px var(--mono); letter-spacing: .09em; text-transform: uppercase; background: var(--panel); }
.compare-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.compare-table .col-free { background: rgba(74,222,156,.045); }
.compare-table .col-free em { color: var(--green); font-style: normal; }
.compare-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.verdict { padding: 22px; border: 1px solid var(--line); background: var(--panel-grad); }
.verdict.free-ok { border-color: rgba(74,222,156,.4); }
.verdict.go-paid { border-color: rgba(255,201,89,.4); }
.verdict strong { display: block; margin-bottom: 12px; font-size: 14px; }
.verdict.free-ok strong { color: var(--green); }
.verdict.go-paid strong { color: var(--amber); }
.verdict ul { margin: 0; padding-left: 18px; }
.verdict li { margin-bottom: 8px; color: var(--text-2); font-size: 13px; line-height: 1.6; }

.exercise { margin: 70px 0; padding: 32px; border: 1px solid rgba(89,167,255,.32); background: linear-gradient(145deg, rgba(89,167,255,.08), rgba(255,201,89,.05)); }
.exercise-label { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--blue); font: 10px var(--mono); letter-spacing: .12em; }
.exercise-label::before { content: '✦'; }
.exercise h3 { font-size: 24px; }
.choice-grid { display: grid; gap: 10px; margin-top: 24px; }
.choice-button { padding: 17px 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.choice-button:hover { border-color: var(--line-strong); background: var(--hover); }
.choice-button.correct { border-color: var(--green); background: rgba(74,222,156,.1); }
.choice-button.incorrect { border-color: var(--danger); }
.exercise-feedback { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13px; line-height: 1.65; }
.exercise-feedback.show { display: block; }
.checklist { display: grid; gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); }
.check-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--bg); cursor: pointer; }
.check-item input { position: absolute; opacity: 0; }
.fake-check { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: transparent; font-size: 11px; }
.check-item input:checked + .fake-check { background: var(--green); border-color: var(--green); color: var(--primary-contrast); }
.check-item span:last-child { color: var(--text-2); font-size: 13px; line-height: 1.55; }
.lesson-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.complete-button { min-height: 50px; padding: 0 20px; border: 1px solid var(--blue); background: transparent; color: var(--blue); cursor: pointer; }
.complete-button.done { background: var(--blue); color: var(--primary-contrast); }
.next-button { padding: 13px 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.next-button span { color: var(--blue); margin-left: 12px; }

.proof-section { padding: 130px clamp(24px, 9vw, 150px); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 9vw, 140px); margin-top: 42px; }
.proof-grid h2 { font-size: clamp(46px, 5.6vw, 82px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.proof-grid h2 em { color: var(--blue); font-family: var(--serif); font-weight: 400; }
.outcomes { border-top: 1px solid var(--line); }
.outcomes div { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.outcomes span { color: var(--blue); font: 10px var(--mono); }
.outcomes p { margin: 0; color: var(--text-2); line-height: 1.6; }

.faq-section { padding: 120px clamp(24px, 9vw, 150px); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(50px, 8vw, 120px); margin-top: 42px; }
.faq-grid h2 { font-size: clamp(42px, 5vw, 74px); line-height: 1; letter-spacing: -.055em; font-weight: 600; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 0; list-style: none; color: var(--ink); font-size: 17px; font-weight: 600; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--blue); font-family: var(--mono); }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { margin: 0; padding: 0 40px 24px 0; color: var(--text-2); font-size: 14px; line-height: 1.75; }

.download-strip {
  margin: 0 clamp(24px, 9vw, 150px);
  padding: 56px clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  border: 1px solid rgba(89,167,255,.3);
  background: linear-gradient(145deg, rgba(89,167,255,.09), rgba(255,201,89,.05));
}
.download-copy h2 { margin: 16px 0 14px; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.045em; font-weight: 600; }
.download-copy h2 em { color: var(--blue); font-family: var(--serif); font-weight: 400; }
.md-tip { position: relative; cursor: help; outline-offset: 4px; }
.ox-tip, .oc-tip, .md-term { border-bottom: 1px dashed rgba(89, 167, 255, .55); }
.md-term code { border-bottom: 0; }
.md-cloud {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(300px, 78vw);
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow-panel);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 25;
}
.md-cloud::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: inherit;
  transform: translateX(-50%) rotate(45deg) translateY(-6px);
}
.md-cloud strong { color: var(--blue); }
.md-cloud code { padding: 1px 6px; border: 1px solid var(--line); background: var(--wash); color: var(--ink); font: 11.5px var(--mono); }
.md-cloud-link { display: inline-block; margin-top: 9px; color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; }
.md-cloud-link:hover { opacity: .8; }
.md-cloud--ox { width: min(340px, 80vw); font-family: var(--sans); }
.md-cloud--oc { width: min(330px, 80vw); font-family: var(--sans); }
.md-cloud--oc .md-cloud-link, .md-cloud--oc a { display: block; margin: 7px 0 0; color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; width: max-content; }
.md-cloud--oc a:hover { opacity: .8; }
.md-tip:hover .md-cloud,
.md-tip:focus-visible .md-cloud,
.md-tip:focus-within .md-cloud { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.download-copy p { max-width: 520px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.download-copy code { padding: 1px 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--blue); font: 12.5px var(--mono); }
.download-facts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--text-2); font-size: 13.5px; }
.download-action { display: grid; gap: 12px; justify-items: start; }
.download-button { width: 100%; display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.download-button span { margin-left: 22px; }
.download-size { color: var(--amber); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.download-action small { color: var(--muted); font-size: 11px; }
.download-status { margin: 0; font-size: 12.5px; line-height: 1.5; }
.download-status.err { color: var(--danger); }
.download-status.ok { color: var(--green); }
#md-buy[disabled], #md-dl[disabled] { opacity: .6; cursor: wait; transform: none !important; box-shadow: none !important; }

footer { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 30px; align-items: start; padding: 64px clamp(24px, 5vw, 80px); color: var(--muted); font-size: 11px; }
.footer-mark { display: block; width: max-content; }
.footer-mark img { display: block; width: 150px; height: 36px; }
footer p { max-width: 360px; line-height: 1.6; }
.footer-links { justify-self: end; display: grid; gap: 10px; }
.footer-links a { text-underline-offset: 4px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; padding: 13px 18px; background: var(--ink); color: var(--bg); font-size: 12px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.backdrop { display: none; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }

.gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--scrim);
  backdrop-filter: blur(9px);
}
.gate-backdrop[hidden] { display: none; }
.gate {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(30px, 5vw, 46px);
  border: 1px solid var(--line-strong);
  background: var(--card-grad);
  box-shadow: 0 60px 140px rgba(0,0,0,.6);
}
.gate-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 19px; cursor: pointer; }
.gate-close:hover { color: var(--ink); border-color: var(--line-strong); }
.gate-kicker { margin-bottom: 16px; color: var(--amber); font: 10px var(--mono); letter-spacing: .15em; }
.gate h2 { margin-bottom: 14px; font-size: clamp(34px, 4.6vw, 46px); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.gate h2 em { color: var(--amber); font-family: var(--serif); font-weight: 400; }
.gate-lead { margin-bottom: 28px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
#gate-form { display: grid; gap: 12px; }
#gate-email,
#gate-code {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: var(--wash);
  color: var(--ink);
  font: 15px var(--sans);
}
#gate-email:focus,
#gate-code:focus { outline: none; border-color: var(--blue); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#gate-code { letter-spacing: .35em; text-align: center; font-size: 20px; }
.gate-code-hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gate-code-hint strong { color: var(--ink); }
.gate-links { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.gate-link { background: none; border: none; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gate-link[disabled] { opacity: .5; cursor: wait; }
.gate-submit { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.gate-submit[disabled] { opacity: .6; cursor: wait; transform: none !important; box-shadow: none !important; }
.gate-error { margin: 12px 0 0; color: var(--danger); font-size: 12px; line-height: 1.5; }
.gate-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes hero-drift { to { transform: scale(1.05) translate3d(-.4%, -.4%, 0); } }
@keyframes float { 50% { transform: translateY(-13px) rotate(2deg); } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-terminal { max-width: 640px; }
  .orbit-note { display: none; }
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto auto; gap: 20px; }
  .topbar-progress { width: 140px; }
  .icon-button { display: block; }
  .theme-toggle { width: 38px; height: 38px; }
  .hero { min-height: 0; height: auto; max-height: none; display: block; padding: 150px clamp(20px, 6vw, 60px) 60px; }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(52px, 10.5vw, 88px); }
  .hero-glow { display: none; }
  .course-shell { display: block; }
  .course-nav { position: fixed; z-index: 40; top: 0; left: 0; width: min(360px, 88vw); height: 100vh; transform: translateX(-105%); transition: transform .3s ease; box-shadow: 24px 0 70px rgba(0,0,0,.4); }
  .course-nav.open { transform: none; }
  .nav-close { display: block; }
  .backdrop.show { display: block; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .verdict-grid { grid-template-columns: 1fr; }
  .proof-grid, .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { height: 64px; padding: 0 18px; }
  .brand img { width: 128px; height: auto; }
  .topbar-progress { display: none; }
  .hero { padding: 130px 20px 54px; }
  .hero h1 { font-size: clamp(46px, 14vw, 64px); line-height: .94; }
  .promo-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .promo-price { grid-auto-flow: column; align-items: baseline; gap: 12px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 30px; }
  .primary-button { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .hero-meta { gap: 20px; margin-top: 40px; }
  .manifesto { min-height: 0; grid-template-columns: 1fr; gap: 25px; padding: 80px 22px; }
  .lesson { padding: 64px 20px 70px; }
  .lesson-header { padding-bottom: 36px; margin-bottom: 38px; }
  .lesson-duration { position: static; display: block; margin-top: 20px; }
  .objectives { grid-template-columns: 1fr; }
  .objective { min-height: auto; }
  .objective p { margin-top: 18px; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { min-height: auto; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 9px; }
  .exercise { margin: 50px -4px; padding: 24px 18px; }
  .prompt-card pre { padding: 20px 16px; font-size: 11px; }
  .callout { grid-template-columns: 1fr; gap: 12px; }
  .lesson-footer { align-items: stretch; flex-direction: column; }
  .complete-button { width: 100%; }
  .proof-section, .faq-section { padding: 90px 22px; }
  .download-strip { margin: 0 22px; grid-template-columns: 1fr; padding: 36px 20px; }
  .download-button { justify-content: center; text-align: center; }
  footer { grid-template-columns: 1fr; padding: 48px 22px; }
  .footer-links { justify-self: start; }
  .term-body { font-size: 11px; }
  .appwin-body { grid-template-columns: 1fr; }
  .appwin-side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
