:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #111927;
  --paper: #161b22;
  --ink: #f0f6fc;
  --muted: #8b949e;
  --soft: #7d8590;
  --line: #30363d;
  --line-strong: #484f58;
  --accent: #2ea043;
  --accent-ink: #58a6ff;
  --accent-soft: rgba(46, 160, 67, 0.13);
  --danger: #ff7b72;
  --warning: #d29922;
  --purple: #bc8cff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(48, 54, 61, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 61, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, #0d1117 0%, #0d1117 58%, #10151f 100%);
  background-size: 44px 44px, 44px 44px, auto;
  font-family: "Fira Sans", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(88, 166, 255, 0.45);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.86);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.brand span {
  letter-spacing: 0;
}

.links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.links a:hover,
.links a[aria-current="page"] {
  color: var(--ink);
  background: #21262d;
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-ink);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: 4.25rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  margin: 20px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #21262d;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.button:hover {
  border-color: #8b949e;
  background: #30363d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.button.primary {
  border-color: rgba(35, 134, 54, 0.95);
  background: #238636;
  color: #ffffff;
}

.button.primary:hover {
  border-color: #2ea043;
  background: #2ea043;
}

.button.gold {
  border-color: var(--warning);
  background: rgba(210, 153, 34, 0.14);
  color: #f0f6fc;
}

.button.text {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.button.text:hover {
  color: var(--ink);
  background: #21262d;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.signal-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.signal {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--accent-ink);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.signal-title {
  display: block;
  font-weight: 800;
}

.signal-copy {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
}

.section-title {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-desc {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.page-head,
.course-hero {
  border-bottom: 1px solid var(--line);
}

.page-head h1,
.course-hero h1 {
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
}

.page-head .lead,
.course-hero .lead {
  color: #c9d1d9;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.course-card,
.resource-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 27, 34, 0.92);
}

.course-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.course-card:hover {
  border-color: var(--accent-ink);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}

.course-code {
  color: var(--accent-ink);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.course-card h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.2;
}

.course-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(13, 17, 23, 0.38);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 650;
}

.compact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.compact-course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 27, 34, 0.92);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.compact-course:hover {
  border-color: var(--accent-ink);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}

.compact-course h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1.15;
}

.compact-course p {
  margin: 8px 0 0;
  color: var(--muted);
}

.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.page-head {
  padding: 56px 0 42px;
}

.page-head h1 {
  max-width: 980px;
}

.course-hero {
  padding: 56px 0 48px;
}

.course-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 44px;
  align-items: start;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.fact strong {
  display: block;
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: var(--soft);
  text-transform: uppercase;
}

.fact span {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-weight: 750;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.note-card {
  padding: 20px;
}

.note-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.note-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.resource-card {
  padding: 20px;
}

.resource-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.resource-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.resource-links .button {
  min-height: 38px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.home-page {
  --home-bg: #0d1117;
  --home-panel: #161b22;
  --home-panel-2: #0f1623;
  --home-line: #30363d;
  --home-text: #f0f6fc;
  --home-muted: #8b949e;
  --home-green: #2ea043;
  --home-blue: #58a6ff;
  --home-purple: #bc8cff;
  color: var(--home-text);
  background:
    linear-gradient(rgba(48, 54, 61, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 61, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, #0d1117 0%, #0d1117 65%, #10151f 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.home-page .site-header {
  border-bottom-color: var(--home-line);
  background: rgba(13, 17, 23, 0.86);
}

.home-page .brand,
.home-page .links a {
  color: var(--home-text);
}

.home-page .links a {
  color: var(--home-muted);
}

.home-page .links a:hover,
.home-page .links a[aria-current="page"] {
  color: var(--home-text);
  background: #21262d;
}

.home-page .footer {
  border-top-color: var(--home-line);
  color: var(--home-muted);
}

.home-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.repo-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
  padding: 62px 0 42px;
}

.repo-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--home-muted);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
}

.repo-owner,
.repo-slash {
  color: #7d8590;
}

.repo-path strong {
  color: var(--home-blue);
  font-weight: 700;
}

.repo-pill {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  color: var(--home-muted);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.repo-copy h1 {
  margin-top: 18px;
  color: var(--home-text);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 6.5rem;
  line-height: 0.92;
}

.repo-desc {
  margin: 22px 0 0;
  max-width: 620px;
  color: #c9d1d9;
  font-size: 1.35rem;
}

.repo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.repo-stats span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: rgba(22, 27, 34, 0.72);
  color: var(--home-muted);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.repo-stats strong {
  color: var(--home-text);
}

.home-page .repo-action {
  border-color: rgba(35, 134, 54, 0.95);
  background: #238636;
  color: #ffffff;
}

.home-page .repo-action:hover {
  border-color: #2ea043;
  background: #2ea043;
}

.home-page .repo-secondary {
  border-color: var(--home-line);
  background: #21262d;
  color: var(--home-text);
}

.home-page .repo-secondary:hover {
  border-color: #8b949e;
  background: #30363d;
}

.repo-window {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.repo-window-top {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--home-line);
  background: #161b22;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff7b72;
}

.dot:nth-child(2) {
  background: #d29922;
}

.dot:nth-child(3) {
  background: #3fb950;
}

.window-title {
  margin-left: 8px;
  color: var(--home-muted);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.repo-readme {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.readme-line {
  color: var(--home-text);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
}

.token-dim {
  color: var(--home-muted);
}

.readme-copy {
  margin: 0;
  padding: 12px 13px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: var(--home-bg);
  color: #c9d1d9;
  font-size: 14px;
  line-height: 1.7;
}

.repo-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: var(--home-bg);
  color: var(--home-text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.repo-row:hover {
  border-color: var(--home-blue);
  background: #111927;
  transform: translateY(-1px);
}

.file-icon {
  width: 14px;
  height: 18px;
  border: 1px solid var(--home-muted);
  border-radius: 2px;
  position: relative;
}

.file-icon::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-left: 1px solid var(--home-muted);
  border-bottom: 1px solid var(--home-muted);
  background: var(--home-bg);
}

.repo-row strong,
.repo-row small {
  display: block;
}

.repo-row strong {
  color: var(--home-blue);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
}

.repo-row small {
  margin-top: 2px;
  color: var(--home-muted);
  font-size: 13px;
}

.repo-row code {
  color: var(--home-muted);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.terminal-card {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(46, 160, 67, 0.45);
  border-radius: 6px;
  background: #05080d;
  color: #c9d1d9;
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}

.prompt {
  color: var(--home-green);
  font-weight: 800;
}

.cursor {
  width: 8px;
  height: 17px;
  display: inline-block;
  background: var(--home-green);
  opacity: 0.9;
}

.repo-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 0 74px;
}

.repo-tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.82);
  color: var(--home-text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.repo-tile:hover {
  border-color: var(--home-blue);
  background: #161b22;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.repo-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.repo-tile-head strong {
  color: var(--home-blue);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 18px;
}

.repo-tile-head span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  color: var(--home-muted);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.repo-tile p {
  margin: 16px 0 0;
  color: #c9d1d9;
}

.lang-bar {
  overflow: hidden;
  display: flex;
  height: 8px;
  margin-top: auto;
  border-radius: 999px;
  background: #30363d;
}

.lang-bar span:nth-child(1) {
  background: var(--home-blue);
}

.lang-bar span:nth-child(2) {
  background: var(--home-green);
}

.lang-bar span:nth-child(3) {
  background: var(--home-purple);
}

.repo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.repo-tags span {
  color: var(--home-muted);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .course-hero-grid {
    grid-template-columns: 1fr;
  }

  .repo-hero,
  .repo-board {
    grid-template-columns: 1fr;
  }

  .repo-copy h1 {
    font-size: 5.25rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  .section-title {
    font-size: 2.35rem;
  }

  .hero {
    min-height: auto;
  }

  .course-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    width: min(100% - 28px, 1120px);
    min-height: auto;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .links a {
    white-space: nowrap;
  }

  .site-shell,
  .narrow-shell {
    width: min(100% - 28px, 1120px);
  }

  .hero,
  .section,
  .page-head,
  .course-hero {
    padding-top: 42px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .lead {
    font-size: 1.02rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .compact-course h2 {
    font-size: 1.45rem;
  }

  .compact-course {
    grid-template-columns: 1fr;
  }

  .compact-meta {
    justify-content: flex-start;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .actions,
  .resource-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .home-shell {
    width: min(100% - 28px, 1180px);
  }

  .repo-hero {
    min-height: auto;
    padding: 42px 0 34px;
  }

  .repo-copy h1 {
    font-size: 3.75rem;
  }

  .repo-desc {
    font-size: 1.05rem;
  }

  .repo-row {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .repo-row code {
    display: none;
  }

  .repo-board {
    padding-bottom: 48px;
  }
}

/* Unified premium technology theme */
:root {
  --bg: #050711;
  --surface: rgba(12, 18, 34, 0.82);
  --surface-2: rgba(18, 28, 52, 0.78);
  --paper: rgba(255, 255, 255, 0.06);
  --ink: #f4f8ff;
  --muted: #9fb0c8;
  --soft: #6f829f;
  --line: rgba(146, 178, 255, 0.18);
  --line-strong: rgba(124, 218, 255, 0.38);
  --accent: #64f4d7;
  --accent-ink: #78d8ff;
  --accent-soft: rgba(100, 244, 215, 0.13);
  --warning: #ffd27a;
  --purple: #ad8cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

body,
.home-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(100, 244, 215, 0.17), transparent 28%),
    radial-gradient(circle at 86% 6%, rgba(120, 216, 255, 0.19), transparent 28%),
    radial-gradient(circle at 55% 78%, rgba(173, 140, 255, 0.13), transparent 34%),
    linear-gradient(rgba(146, 178, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 178, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #050711 0%, #09111f 48%, #050711 100%);
  background-size: auto, auto, auto, 56px 56px, 56px 56px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(120, 216, 255, 0.08) 48%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 68%);
}

.site-header,
.home-page .site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 17, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand img {
  box-shadow: 0 0 26px rgba(120, 216, 255, 0.35);
}

.links a,
.home-page .links a {
  border: 1px solid transparent;
  color: var(--muted);
}

.links a:hover,
.links a[aria-current="page"],
.home-page .links a:hover,
.home-page .links a[aria-current="page"] {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.site-shell,
.home-shell {
  width: min(1180px, calc(100% - 40px));
}

.footer,
.home-page .footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(5, 7, 17, 0.82);
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-head,
.course-hero {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 68px 38px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(12, 18, 34, 0.88), rgba(18, 28, 52, 0.62));
  box-shadow: var(--shadow);
}

.page-head::after,
.course-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 216, 255, 0.2), transparent 68%);
}

.page-head h1,
.course-hero h1,
.section-title {
  color: var(--ink);
  font-family: "Fira Sans", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.04em;
}

.lead,
.page-head .lead,
.course-hero .lead,
.section-desc {
  color: #bed0e7;
}

.button,
.home-page .repo-action,
.home-page .repo-secondary,
.tech-action,
.tech-secondary {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button.primary,
.home-page .repo-action,
.tech-action {
  border-color: rgba(100, 244, 215, 0.72);
  background: linear-gradient(135deg, #64f4d7, #78d8ff);
  color: #031019;
}

.button:hover,
.button.primary:hover,
.home-page .repo-action:hover,
.home-page .repo-secondary:hover,
.tech-action:hover,
.tech-secondary:hover {
  border-color: rgba(120, 216, 255, 0.85);
  background: linear-gradient(135deg, rgba(100, 244, 215, 0.2), rgba(120, 216, 255, 0.2));
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(58, 175, 255, 0.18);
}

.button.primary:hover,
.tech-action:hover {
  color: #031019;
  background: linear-gradient(135deg, #7cffdf, #8ee2ff);
}

.tech-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 46px;
  align-items: center;
  padding: 76px 0 52px;
}

.hero-copy h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #bed0e7;
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.command-panel,
.feature-card,
.track-card,
.compact-course,
.hero-panel,
.note-card,
.resource-card,
.course-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px) saturate(130%);
}

.command-panel {
  overflow: hidden;
  border-radius: 30px;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6a8a;
}

.panel-top span:nth-child(2) {
  background: #ffd27a;
}

.panel-top span:nth-child(3) {
  background: #64f4d7;
}

.panel-top strong {
  margin-left: 10px;
  color: var(--muted);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.panel-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 7, 17, 0.42);
}

.metric-row span {
  color: var(--muted);
}

.metric-row strong {
  color: var(--accent);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
}

.scan-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(100, 244, 215, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(rgba(100, 244, 215, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 244, 215, 0.11) 1px, transparent 1px),
    rgba(5, 7, 17, 0.62);
  background-size: 22px 22px;
}

.scan-card p {
  position: relative;
  margin: 72px 0 0;
  color: #d7e6f8;
  font-size: 14px;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #64f4d7, transparent);
  box-shadow: 0 0 24px rgba(100, 244, 215, 0.8);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 0 74px;
}

.trust-strip div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--ink);
  font-size: 18px;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.feature-section,
.course-showcase {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-headline {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-headline h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.section-headline.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
}

.feature-grid,
.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.track-card {
  min-height: 230px;
  padding: 24px;
  border-radius: 26px;
  text-decoration: none;
}

.feature-card span,
.track-card span,
.course-code {
  color: var(--accent);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3,
.track-card strong {
  display: block;
  margin: 42px 0 12px;
  color: var(--ink);
  font-size: 24px;
}

.feature-card p,
.track-card p,
.compact-course p,
.note-card p,
.resource-card p,
.course-card p,
.signal-copy {
  color: var(--muted);
}

.track-card {
  min-height: 210px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.track-card:hover,
.compact-course:hover,
.course-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(120, 216, 255, 0.13), rgba(100, 244, 215, 0.06));
  box-shadow: 0 28px 80px rgba(58, 175, 255, 0.18);
  transform: translateY(-2px);
}

.compact-list {
  display: grid;
  gap: 16px;
  padding: 54px 0 82px;
}

.compact-course {
  border-radius: 26px;
  padding: 24px;
}

.compact-course h2 {
  color: var(--ink);
  letter-spacing: -0.03em;
}

.tag,
.fact {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  color: #d7e6f8;
}

.hero-panel {
  border-radius: 26px;
  padding: 24px;
}

.fact strong {
  color: var(--accent);
}

.fact span {
  color: #d7e6f8;
}

.section {
  border-top-color: var(--line);
}

.path-grid,
.course-grid,
.resource-grid {
  gap: 16px;
}

.note-card,
.resource-card,
.course-card {
  border-radius: 24px;
}

@media (max-width: 900px) {
  .tech-hero,
  .trust-strip,
  .feature-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .tech-hero {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .site-shell,
  .home-shell,
  .narrow-shell {
    width: min(100% - 28px, 1180px);
  }

  .page-head,
  .course-hero {
    margin-top: 18px;
    padding: 38px 22px;
    border-radius: 24px;
  }

  .tech-hero {
    padding: 48px 0 34px;
  }

  .trust-strip,
  .feature-section,
  .course-showcase {
    padding-bottom: 48px;
  }

  .section-headline.compact {
    display: block;
  }
}
