:root {
  --bg: #080a08;
  --panel: #0d100d;
  --panel-2: #121612;
  --text: #f0f4eb;
  --muted: #899187;
  --line: rgba(220, 255, 190, 0.14);
  --green: #a9ff3f;
  --green-2: #75c71f;
  --paper: #e7ebdf;
  --dark: #091006;
  --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #e9ede3;
  --panel: #f4f7ef;
  --panel-2: #dfe6d7;
  --text: #11150f;
  --muted: #596255;
  --line: rgba(20, 35, 12, 0.18);
  --green: #5d9f14;
  --green-2: #3f7605;
  --paper: #0b1008;
  --dark: #f4f8ee;
  --shadow: rgba(39, 54, 30, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 78px; background: var(--bg); }
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  transition: background .25s ease, color .25s ease;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: #071004; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section-pad { padding-block: 118px; }

.background-system { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.grid-layer {
  position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(#000, transparent 92%);
  mask-image: linear-gradient(#000, transparent 92%);
}
.glow { position: absolute; border-radius: 50%; background: var(--green); filter: blur(170px); opacity: .08; }
.glow-a { width: 500px; height: 500px; top: -330px; left: 8%; }
.glow-b { width: 430px; height: 430px; top: 42%; right: -260px; }
.scan-line { position: absolute; inset: 0; background: linear-gradient(transparent 49%, rgba(180,255,92,.02) 50%) 0 0 / 100% 5px; }

.topbar {
  position: relative; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(1340px, calc(100% - 40px)); height: 78px; margin: auto; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.brand span {
  display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--green);
  color: var(--green); font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: inset 0 0 16px rgba(169,255,63,.07);
}
.brand b { letter-spacing: .18em; font: 800 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.nav { display: flex; align-items: center; gap: 35px; }
.nav a { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font: 500 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.nav a:hover, .nav a.active { color: var(--green); }
.nav-actions { display: flex; justify-content: flex-end; gap: 9px; }
.theme-toggle { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--panel); }
.theme-toggle:hover { border-color: var(--green); color: var(--green); }
.outline-action {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border: 1px solid rgba(169,255,63,.38); background: rgba(169,255,63,.07); color: var(--green);
  letter-spacing: .1em; text-transform: uppercase; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.outline-action:hover { background: var(--green); color: #091006; }

.hero { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: calc(100vh - 78px); padding-block: 80px; text-align: center; }
.status-badge {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border: 1px solid rgba(169,255,63,.3); background: rgba(169,255,63,.04); color: var(--green);
  letter-spacing: .18em; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.status-badge::before, .status-badge::after { content: ""; position: absolute; width: 8px; height: 8px; border-color: var(--green); border-style: solid; }
.status-badge::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.status-badge::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.status-badge i, .mono-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s ease-in-out infinite; }
.status-badge b { color: var(--muted); font-weight: 500; }
.hero h1 { margin: 42px 0 32px; letter-spacing: -.075em; font-size: clamp(54px, 8vw, 120px); font-weight: 900; line-height: .82; }
.hero h1 span, .hero h1 em, .hero h1 strong { display: block; font-style: normal; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1px rgba(240,244,235,.4); }
.hero h1 strong { color: var(--green); text-shadow: 0 0 60px rgba(169,255,63,.16); }
.terminal-line { margin: 0; color: var(--muted); font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-line span { margin-right: 8px; color: var(--green); }
.terminal-line i { color: var(--green); animation: blink 1s step-end infinite; }
.hero-copy { max-width: 650px; margin: 24px auto 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.primary-action, .secondary-action {
  display: inline-flex; align-items: center; min-height: 49px; padding: 0 18px;
  letter-spacing: .14em; text-transform: uppercase; font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.primary-action { gap: 32px; border: 0; background: var(--green); color: #081004; transition: transform .2s, box-shadow .2s; }
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(169,255,63,.15); }
.secondary-action { border: 1px solid var(--line); }
.secondary-action:hover { border-color: var(--green); color: var(--green); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); width: min(790px, 100%); margin-top: 58px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 75%, transparent); }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { color: var(--green); font: 800 22px ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-stats span { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.ticker { overflow: hidden; padding: 13px 0; border-block: 1px solid var(--line); background: var(--panel); }
.ticker div { width: max-content; animation: ticker 28s linear infinite; }
.ticker span { color: var(--muted); letter-spacing: .2em; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.ticker i { margin-inline: 25px; color: var(--green); font-style: normal; }

.section-label { display: flex; align-items: center; gap: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line); letter-spacing: .15em; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-label span { color: var(--green); }
.section-label p { margin: 0; }
.section-label b { margin-left: auto; color: var(--muted); font-weight: 500; }
.section-title { display: grid; grid-template-columns: 1fr .55fr; align-items: end; gap: 70px; margin: 50px 0; }
.section-title h2, .system-grid h2, .dashboard-note h2 { margin: 0; letter-spacing: -.065em; font-size: clamp(48px, 6vw, 80px); line-height: .87; }
.section-title h2 em, .system-grid h2 em, .dashboard-note h2 em { color: var(--green); font-style: normal; }
.section-title > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.preview-grid article { position: relative; min-height: 265px; padding: 34px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.preview-grid article::after { content: ""; position: absolute; width: 130px; height: 130px; right: -70px; bottom: -70px; border: 1px solid var(--green); border-radius: 50%; opacity: .12; transition: transform .3s; }
.preview-grid article:hover::after { transform: scale(1.5); }
.preview-grid span, .preview-grid b { letter-spacing: .14em; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.preview-grid span { color: var(--green); }
.preview-grid b { float: right; color: var(--muted); }
.preview-grid h3 { max-width: 380px; margin: 54px 0 12px; letter-spacing: -.04em; font-size: 29px; }
.preview-grid p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.wide-action { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 20px 22px; border: 1px solid var(--line); color: var(--green); letter-spacing: .14em; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.wide-action:hover { background: var(--green); color: #091006; }
.learn-system { background: var(--paper); color: var(--dark); }
.learn-system .section-label, .learn-system ol, .learn-system li { border-color: rgba(9,16,6,.18); }
.system-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: start; margin-top: 64px; }
.system-grid > div > p { max-width: 540px; margin-top: 28px; color: color-mix(in srgb, var(--dark) 63%, transparent); line-height: 1.75; }
.system-grid ol { margin: 0; padding: 0; border-top: 1px solid; list-style: none; }
.system-grid li { display: grid; grid-template-columns: 65px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid; }
.system-grid li > span { color: var(--green-2); font: 800 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.system-grid li b { font-size: 21px; }
.system-grid li p { margin: 8px 0 0; opacity: .65; font-size: 13px; line-height: 1.6; }

.dashboard-main { padding-top: 70px; }
.dashboard-hero { display: grid; grid-template-columns: 1fr 310px; align-items: end; gap: 90px; padding-bottom: 70px; }
.mono-label { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--green); letter-spacing: .16em; text-transform: uppercase; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.dashboard-hero h1 { margin: 26px 0 25px; letter-spacing: -.07em; font-size: clamp(52px, 7vw, 94px); line-height: .86; }
.dashboard-hero h1 em { display: block; color: var(--green); font-style: normal; }
.dashboard-hero > div > p:last-child { max-width: 630px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.dashboard-hero aside { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--panel); }
.dashboard-hero aside div { min-width: 0; padding: 18px 13px; border-right: 1px solid var(--line); }
.dashboard-hero aside div:last-child { border: 0; }
.dashboard-hero aside span { display: block; color: var(--muted); letter-spacing: .12em; font: 700 7px ui-monospace, SFMono-Regular, Menlo, monospace; }
.dashboard-hero aside strong { display: block; margin-top: 8px; overflow: hidden; color: var(--green); text-overflow: ellipsis; font: 800 17px ui-monospace, SFMono-Regular, Menlo, monospace; }
.library-toolbar { display: grid; grid-template-columns: 1fr minmax(250px, 360px); align-items: center; min-height: 64px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--panel); }
.library-toolbar > div { display: flex; align-items: center; gap: 13px; height: 100%; padding: 0 18px; letter-spacing: .14em; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.library-toolbar > div span { color: var(--green); }
.library-toolbar > div p { margin: 0; }
.library-toolbar > div b { margin-left: auto; color: var(--muted); font-weight: 500; }
.library-toolbar label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; border-left: 1px solid var(--line); }
.library-toolbar label span { color: var(--muted); letter-spacing: .12em; font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.library-toolbar input { width: 100%; padding: 11px 12px; outline: none; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 12px; }
.library-toolbar input:focus { border-color: var(--green); }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.course-card { position: relative; display: flex; flex-direction: column; min-height: 510px; padding: 30px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s, transform .25s, box-shadow .25s; }
.course-card:hover { transform: translateY(-4px); border-color: rgba(169,255,63,.45); box-shadow: 0 28px 70px var(--shadow); }
.card-topline { display: flex; align-items: center; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid var(--line); letter-spacing: .15em; font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-topline span { color: var(--green); }
.card-topline b { color: var(--muted); }
.card-topline i { margin-left: auto; padding: 5px 7px; border: 1px solid rgba(169,255,63,.28); background: rgba(169,255,63,.06); color: var(--green); font-style: normal; }
.course-mark { position: absolute; top: 72px; right: 22px; color: transparent; opacity: .16; -webkit-text-stroke: 1px var(--green); font-size: 150px; font-weight: 900; line-height: 1; pointer-events: none; }
.course-card h3 { max-width: 420px; margin: 72px 0 18px; letter-spacing: -.05em; font-size: clamp(30px, 4vw, 49px); line-height: .98; }
.course-card > p { max-width: 470px; margin: 0 0 32px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.course-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: auto 0 18px; border-block: 1px solid var(--line); }
.course-card dl div { padding: 14px 10px; border-right: 1px solid var(--line); }
.course-card dl div:last-child { border: 0; }
.course-card dt { color: var(--muted); letter-spacing: .13em; font: 700 7px ui-monospace, SFMono-Regular, Menlo, monospace; }
.course-card dd { margin: 7px 0 0; color: var(--green); font: 800 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.course-action { display: flex; justify-content: space-between; padding: 16px; border: 1px solid var(--line); color: var(--green); letter-spacing: .14em; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.course-action:hover { background: var(--green); color: #091006; }
.empty-state { margin: 0; padding: 45px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.dashboard-note { margin-block: 110px; padding: 65px; border: 1px solid var(--line); background: var(--panel); }
.dashboard-note > p:not(.mono-label) { max-width: 620px; margin: 25px 0 30px; color: var(--muted); line-height: 1.7; }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding-block: 42px; border-top: 1px solid var(--line); }
.footer p { margin: 0; color: var(--muted); font-size: 11px; }
.footer > div { display: flex; justify-content: flex-end; gap: 22px; }
.footer > div a { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.footer > div a:hover { color: var(--green); }

.course-page { background: var(--bg); }
.course-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 66px 0 110px; }
.course-back { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 55px; color: var(--muted); letter-spacing: .13em; text-transform: uppercase; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.course-back:hover { color: var(--green); }
.course-heading { display: grid; grid-template-columns: 1fr 250px; align-items: end; gap: 60px; margin-bottom: 55px; }
.course-heading h1 { margin: 18px 0 0; letter-spacing: -.065em; font-size: clamp(52px, 7vw, 90px); line-height: .88; }
.course-heading h1 em { display: block; color: var(--green); font-style: normal; }
.course-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.video-panel { margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.video-frame { aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-copy { display: grid; grid-template-columns: 1fr .8fr; gap: 40px; padding: 25px 5px 7px; }
.video-copy h2 { margin: 0; letter-spacing: -.035em; font-size: 29px; }
.video-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.module { margin-top: 16px; border: 1px solid var(--line); background: var(--panel); }
.module summary { display: flex; justify-content: space-between; align-items: center; padding: 22px; cursor: pointer; list-style: none; }
.module summary::-webkit-details-marker { display: none; }
.module summary b { font-size: 21px; }
.module summary span { color: var(--green); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 1px; border-top: 1px solid var(--line); background: var(--line); }
.lesson-card { display: block; width: 100%; min-height: 105px; padding: 20px; border: 0; background: var(--panel); color: var(--text); text-align: left; transition: background .2s, color .2s; }
.lesson-card span { display: block; margin-bottom: 11px; color: var(--green); letter-spacing: .14em; font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.lesson-card b { font-size: 15px; }
.lesson-card small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.4; }
.lesson-card:hover, .lesson-card.active { background: var(--green); color: #081004; }
.lesson-card:hover span, .lesson-card:hover small, .lesson-card.active span, .lesson-card.active small { color: #081004; }

.lesson-page { background-color: var(--bg) !important; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px) !important; background-size: 64px 64px !important; }
.lesson-page > div { width: min(1000px, calc(100% - 40px)) !important; }
.lesson-page h1, .lesson-page h2 { color: var(--green) !important; letter-spacing: -.035em; }
.lesson-page section, .lesson-page pre { border-color: var(--line) !important; background-color: var(--panel) !important; border-radius: 0 !important; }
.lesson-page a:hover { color: var(--green) !important; }
.lesson-page code { background: var(--panel-2) !important; }

.error-page { display: grid; place-items: center; min-height: 100vh; }
.error-page main { width: min(760px, calc(100% - 40px)); }
.error-page h1 { margin: 26px 0; letter-spacing: -.07em; font-size: clamp(65px, 12vw, 130px); line-height: .8; }
.error-page h1 em { color: var(--green); font-style: normal; }
.error-page main > p:not(.mono-label) { margin-bottom: 30px; color: var(--muted); }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

@media (max-width: 920px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .section-title, .system-grid, .dashboard-hero, .course-heading { grid-template-columns: 1fr; gap: 35px; }
  .dashboard-hero aside { width: min(420px, 100%); }
  .footer { grid-template-columns: 1fr auto; }
  .footer p { display: none; }
}

@media (max-width: 680px) {
  .shell, .course-shell { width: min(100% - 28px, 1180px); }
  .section-pad { padding-block: 82px; }
  .topbar { width: calc(100% - 28px); height: 68px; }
  .brand b { display: none; }
  .outline-action { padding: 0 10px; font-size: 8px; }
  .hero { min-height: calc(100vh - 68px); padding-block: 58px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .preview-grid, .course-grid, .module-grid { grid-template-columns: 1fr; }
  .section-title { margin-block: 38px; }
  .section-title h2, .system-grid h2, .dashboard-note h2 { font-size: 44px; }
  .library-toolbar { grid-template-columns: 1fr; }
  .library-toolbar > div { min-height: 55px; }
  .library-toolbar label { border-top: 1px solid var(--line); border-left: 0; }
  .course-card { min-height: 480px; padding: 23px; }
  .course-card h3 { margin-top: 65px; }
  .dashboard-note { margin-block: 75px; padding: 35px 24px; }
  .dashboard-hero { padding-bottom: 50px; }
  .dashboard-hero h1 { font-size: 53px; }
  .course-heading h1 { font-size: 52px; }
  .video-copy { grid-template-columns: 1fr; gap: 12px; }
  .footer { grid-template-columns: 1fr; }
  .footer > div { justify-content: flex-start; flex-wrap: wrap; }
}

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