* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #081523;
  --bg-2: #0b1d31;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-2: rgba(255, 255, 255, 0.085);
  --border: rgba(148, 163, 184, 0.24);
  --text: #e8f0fb;
  --muted: rgba(232, 240, 251, 0.8);
  --subtle: rgba(232, 240, 251, 0.64);
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --fresh: #7dd3c7;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
  --radius: 12px;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  color: var(--text);
  background:
    linear-gradient(180deg, #081523 0%, #0b1d31 45%, #081523 100%),
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(125, 211, 199, 0.035) 46%, transparent 75%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

img,
svg {
  display: block;
  max-width: 100%;
}

main {
  position: relative;
  z-index: 2;
}

#snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(to bottom, rgba(12, 30, 58, 0.92), rgba(12, 30, 58, 0.62));
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  font-weight: 850;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand small {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

.logo {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.navlinks,
.navcta,
.hero-ctas,
.cta-actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.navlinks {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.navlinks a {
  border-radius: 10px;
  padding: 8px 10px;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, 0.055);
}

.navcta {
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.07);
}

.btn.primary {
  border-color: rgba(56, 189, 248, 0.48);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(125, 211, 199, 0.14));
  box-shadow: 0 18px 48px rgba(56, 189, 248, 0.1);
}

.hero,
.article-hero,
.page-hero {
  padding: 64px 0 30px;
}

.badge,
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(232, 240, 251, 0.9);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.badge {
  margin-bottom: 16px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(56, 189, 248, 0.08);
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.65);
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--accent-2);
  text-transform: uppercase;
}

.hero-grid,
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

h1,
.page-hero h1 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

.page-hero h1 {
  max-width: 16ch;
}

.hero-copy,
.lead,
.section-sub {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.6;
}

.lead {
  margin-bottom: 28px;
  color: rgba(232, 240, 251, 0.9);
}

.subhero {
  margin-top: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.hero-ctas {
  margin-top: 18px;
}

.hero-card,
.card,
.step,
.library-card,
.side-panel,
.path,
.system-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.hero-card,
.system-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.hero-card p,
.system-card p,
.card p,
.step p,
.path p,
.library-card p,
.side-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.panel-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 900;
}

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

.stat,
.signal-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.stat strong,
.signal-grid strong {
  color: rgba(232, 240, 251, 0.96);
  font-size: 14px;
  font-weight: 900;
}

.stat span,
.signal-grid span {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 42px 0;
}

.dark-band {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 8, 23, 0.24);
}

.section-title {
  max-width: 20ch;
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.06;
}

.section-sub {
  margin-bottom: 18px;
}

.cards,
.article-grid,
.paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card,
.step,
.library-card,
.path {
  padding: 16px;
}

.card h3,
.step h3,
.library-card h2,
.library-card h3,
.path h2,
.path h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.pill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill span,
.card-meta,
.library-card > span,
.path > span {
  color: rgba(232, 240, 251, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.pill span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.035);
}

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

.step .n {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  font-weight: 900;
}

.library-card h2,
.library-card h3 {
  margin-top: 8px;
}

.section-actions {
  margin-top: 18px;
}

.path {
  display: grid;
  align-content: space-between;
  min-height: 220px;
}

.path a,
.library-card a {
  color: #fff;
}

a.library-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.path a:last-child {
  margin-top: 14px;
  color: var(--accent-2);
  font-weight: 850;
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 8, 23, 0.3);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 12px 0;
  animation: ticker 34s linear infinite;
}

.ticker span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.ticker b {
  color: #fff;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.system-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(125, 211, 199, 0.78);
}

.system-body {
  display: grid;
  gap: 10px;
}

.system-kicker {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.system-body > strong {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.flow-lines {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
}

.flow-lines span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(125, 211, 199, 0.54), rgba(255, 255, 255, 0.08));
}

.flow-lines span:nth-child(2) {
  width: 82%;
}

.flow-lines span:nth-child(3) {
  width: 62%;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  list-style: none;
}

.article-meta li {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.article-main {
  padding: 44px 0;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.article-body {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.04);
}

.article-body h2 {
  margin: 30px 0 10px;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
}

.article-body p,
.article-body li {
  color: rgba(232, 240, 251, 0.88);
  font-size: 16px;
  line-height: 1.72;
}

.article-body p + p {
  margin-top: 12px;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 20px;
}

.ice-text {
  color: var(--accent-2);
}

.callout {
  margin: 20px 0;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(56, 189, 248, 0.075);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.inline-link-list a {
  color: #fff;
  font-weight: 850;
}

.lesson-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--text);
}

.lesson-table th,
.lesson-table td {
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.lesson-table th {
  background: rgba(56, 189, 248, 0.12);
}

.sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.side-panel {
  padding: 16px;
}

.side-panel.dark {
  background: rgba(2, 8, 23, 0.34);
}

.side-panel h2 {
  margin-bottom: 8px;
  font-size: 17px;
}

.toc,
.takeaway-list {
  display: grid;
  gap: 8px;
  margin-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.takeaway-list {
  margin: 12px 0 0;
  list-style: none;
}

.takeaway-list li {
  display: flex;
  gap: 8px;
}

.check {
  color: var(--fresh);
  font-weight: 900;
}

.cta {
  padding: 36px 0 58px;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 14px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(125, 211, 199, 0.055)), rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.cta-box p {
  color: var(--muted);
  line-height: 1.55;
}

.cta-actions {
  justify-content: flex-end;
}

footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 18px 0 26px;
  color: var(--subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
  }

  .navlinks {
    display: none;
  }

  .hero-grid,
  .article-hero,
  .article-shell,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cards,
  .article-grid,
  .paths {
    grid-template-columns: 1fr;
  }

  .steps,
  .statline,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1100px);
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand strong {
    font-size: 14px;
    line-height: 1.1;
  }

  .brand small {
    display: none;
  }

  .logo {
    width: 32px;
    height: 32px;
  }

  .navcta {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 4px;
    margin-left: auto;
  }

  .navcta .btn {
    min-height: 36px;
    padding: 8px 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero,
  .article-hero,
  .page-hero {
    padding-top: 42px;
  }

  .article-body {
    padding: 18px;
  }

  .lesson-table {
    display: block;
    overflow-x: auto;
  }
}
