:root {
  --bg: #17181d;
  --bg-soft: #212227;
  --panel: rgba(33, 34, 39, 0.82);
  --panel-strong: rgba(42, 43, 50, 0.96);
  --line: rgba(193, 227, 255, 0.14);
  --text: #fafafa;
  --text-dim: rgba(250, 250, 250, 0.72);
  --text-soft: rgba(250, 250, 250, 0.54);
  --accent: #c1e3ff;
  --accent-2: #7dd3ff;
  --accent-dim: rgba(193, 227, 255, 0.1);
  --warning: #ffd59b;
  --success: #bfffd3;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --max: 1180px;
  --ease: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 20%, rgba(193, 227, 255, 0.1) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 10%, rgba(125, 211, 255, 0.12) 0 1px, transparent 1.8px),
    radial-gradient(ellipse at top, rgba(125, 211, 255, 0.12), transparent 38%),
    linear-gradient(180deg, #191a1f 0%, #212227 42%, #17181d 100%);
  background-size: 220px 220px, 280px 280px, 100% 100%, 100% 100%;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 20px;
  box-shadow: inset 0 0 26px rgba(125, 211, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 15, 20, 0.82) 0%, rgba(23, 24, 29, 0.72) 34%, rgba(23, 24, 29, 0.9) 100%),
    radial-gradient(circle at 68% 18%, rgba(193, 227, 255, 0.12), transparent 28%),
    url("../../Images/ML_Poster.png") center center / cover no-repeat;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

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

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

.shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: rgba(23, 24, 29, 0.78);
  border-bottom: 1px solid rgba(193, 227, 255, 0.1);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.brand-copy strong,
.hero-copy h1,
.section-card h2,
.section-card h3 {
  font-family: "League Spartan", system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.brand-copy strong {
  display: block;
  font-size: 1.1rem;
}

.brand-copy span {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ecf8ff 100%);
  color: #17181d;
  box-shadow: 0 14px 30px rgba(193, 227, 255, 0.18);
}

.btn-secondary {
  background: rgba(193, 227, 255, 0.06);
  border-color: rgba(193, 227, 255, 0.18);
  color: var(--text);
}

.hero {
  padding: 64px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.toc-card,
.section-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background:
    linear-gradient(120deg, rgba(12, 14, 18, 0.36), rgba(12, 14, 18, 0.08) 48%, transparent 72%),
    linear-gradient(145deg, rgba(193, 227, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(42, 43, 50, 0.96) 0%, rgba(33, 34, 39, 0.92) 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(193, 227, 255, 0.16);
  background: rgba(193, 227, 255, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  line-height: 0.94;
  max-width: 10ch;
}

.hero-copy p {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: 1.02rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.meta-chip {
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(193, 227, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.meta-chip strong {
  display: block;
  font-size: 0.82rem;
  color: var(--accent);
}

.meta-chip span {
  display: block;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.toc-card {
  padding: 26px 24px;
  background: linear-gradient(180deg, rgba(33, 34, 39, 0.96) 0%, rgba(26, 27, 33, 0.96) 100%);
}

.toc-card h2 {
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.toc-card p {
  color: var(--text-dim);
  margin-bottom: 18px;
}

.toc-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.toc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-dim);
  background: rgba(193, 227, 255, 0.03);
  border: 1px solid transparent;
}

.toc-list a:hover {
  color: var(--text);
  border-color: rgba(193, 227, 255, 0.18);
  background: rgba(193, 227, 255, 0.06);
}

.content {
  display: grid;
  gap: 22px;
  padding-bottom: 56px;
}

.section-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(33, 34, 39, 0.96) 0%, rgba(28, 29, 35, 0.96) 100%);
}

.section-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-card h3 {
  font-size: 1.18rem;
  margin: 22px 0 8px;
}

.section-card p + p,
.section-card ul + p,
.section-card p + ul,
.section-card ul + ul {
  margin-top: 12px;
}

.section-card p,
.section-card li {
  color: var(--text-dim);
}

.section-card ul {
  padding-left: 20px;
}

.section-card li + li {
  margin-top: 8px;
}

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

.note-card {
  padding: 18px;
  background: var(--panel-strong);
}

.note-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.note-card p {
  color: var(--text-dim);
  font-size: 0.96rem;
}

.badge-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-warning {
  color: #2d2200;
  background: var(--warning);
}

.badge-success {
  color: #062311;
  background: var(--success);
}

.placeholder {
  color: var(--warning);
  font-weight: 700;
}

footer {
  padding: 56px 28px 40px;
  border-top: 1px solid rgba(193, 227, 255, 0.08);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 255, 0.55), transparent);
  box-shadow: 0 0 18px rgba(125, 211, 255, 0.22);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color var(--ease);
}

.footer-logo:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(193, 227, 255, 0.06);
  border: 1px solid rgba(193, 227, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all var(--ease);
}

.social-link:hover {
  background: var(--accent-dim);
  border-color: rgba(193, 227, 255, 0.3);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link--youtube svg {
  width: 18px;
  height: 18px;
}

.social-link--tiktok svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(193, 227, 255, 0.06);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(250, 250, 250, 0.45);
  transition: color var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(250, 250, 250, 0.28);
}

@media (max-width: 920px) {
  .topbar-inner,
  .hero-grid,
  .callout-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    display: grid;
    padding: 16px 0;
  }

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

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body::before {
    inset: 8px;
  }

  .shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero {
    padding-top: 34px;
  }

  .hero-card,
  .toc-card,
  .section-card {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .footer-links {
    width: 100%;
    gap: 12px 20px;
  }
}
