:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #0a2c6c;
  --muted: #52627f;
  --accent: #ec3d37;
  --accent-deep: #0a2c6c;
  --teal: #16a4d8;
  --green: #15b94d;
  --gold: #f4c919;
  --orange: #f78b15;
  --violet: #7d31f5;
  --line: rgba(10, 44, 108, 0.12);
  --line-soft: rgba(10, 44, 108, 0.08);
  --panel-text: #ffffff;
  --panel-muted: rgba(255, 255, 255, 0.82);
  --card-bg: rgba(255, 255, 255, 0.94);
  --hero-bg: linear-gradient(145deg, #ffffff, #ffffff);
  --section-bg: rgba(255, 255, 255, 0.86);
  --alt-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.94)),
    linear-gradient(90deg, rgba(244, 201, 25, 0.05), rgba(125, 49, 245, 0.035));
  --spotlight-bg:
    radial-gradient(circle at top right, rgba(244, 201, 25, 0.12), transparent 25%),
    radial-gradient(circle at bottom left, rgba(125, 49, 245, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.88);
  --page-bg:
    radial-gradient(circle at 88% 18%, rgba(22, 164, 216, 0.08), transparent 18%),
    radial-gradient(circle at 22% 86%, rgba(125, 49, 245, 0.06), transparent 16%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 42%, #f7fbff 100%);
  --grid-line: rgba(10, 44, 108, 0.04);
  --ghost-bg: rgba(255, 255, 255, 0.84);
  --secondary-bg: rgba(255, 255, 255, 0.9);
  --metrics-bg: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 60px rgba(20, 40, 90, 0.12);
  --wheel-shadow: 0 18px 34px rgba(10, 44, 108, 0.18);
  --footer-wheel-shadow: 0 10px 18px rgba(10, 44, 108, 0.14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --surface: rgba(10, 20, 39, 0.82);
  --surface-strong: #0d1a30;
  --text: #edf4ff;
  --muted: #acc0de;
  --accent: #ff6b5f;
  --accent-deep: #ffd54d;
  --teal: #4bc7ff;
  --green: #4ce082;
  --gold: #ffd84e;
  --orange: #ff9f43;
  --violet: #a97bff;
  --line: rgba(183, 214, 255, 0.14);
  --line-soft: rgba(183, 214, 255, 0.1);
  --panel-text: #f8fbff;
  --panel-muted: rgba(248, 251, 255, 0.86);
  --card-bg: rgba(12, 24, 45, 0.9);
  --hero-bg: linear-gradient(145deg, rgba(9, 18, 34, 0.98), rgba(14, 28, 50, 0.92));
  --section-bg: rgba(9, 19, 36, 0.84);
  --alt-bg:
    linear-gradient(180deg, rgba(11, 22, 41, 0.96), rgba(10, 29, 52, 0.94)),
    linear-gradient(90deg, rgba(255, 216, 78, 0.08), rgba(169, 123, 255, 0.06));
  --spotlight-bg:
    radial-gradient(circle at top right, rgba(255, 216, 78, 0.12), transparent 25%),
    radial-gradient(circle at bottom left, rgba(75, 199, 255, 0.08), transparent 24%),
    rgba(10, 22, 41, 0.9);
  --page-bg:
    radial-gradient(circle at top left, rgba(255, 216, 78, 0.08), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(75, 199, 255, 0.08), transparent 20%),
    radial-gradient(circle at 18% 82%, rgba(169, 123, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #07111f 0%, #09182c 55%, #0d2139 100%);
  --grid-line: rgba(255, 255, 255, 0.035);
  --ghost-bg: rgba(12, 24, 45, 0.72);
  --secondary-bg: rgba(12, 24, 45, 0.86);
  --metrics-bg: rgba(10, 20, 39, 0.84);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --wheel-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  --footer-wheel-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #07111f;
    --surface: rgba(10, 20, 39, 0.82);
    --surface-strong: #0d1a30;
    --text: #edf4ff;
    --muted: #acc0de;
    --accent: #ff6b5f;
    --accent-deep: #ffd54d;
    --teal: #4bc7ff;
    --green: #4ce082;
    --gold: #ffd84e;
    --orange: #ff9f43;
    --violet: #a97bff;
    --line: rgba(183, 214, 255, 0.14);
    --line-soft: rgba(183, 214, 255, 0.1);
    --panel-text: #f8fbff;
    --panel-muted: rgba(248, 251, 255, 0.86);
    --card-bg: rgba(12, 24, 45, 0.9);
    --hero-bg: linear-gradient(145deg, rgba(9, 18, 34, 0.98), rgba(14, 28, 50, 0.92));
    --section-bg: rgba(9, 19, 36, 0.84);
    --alt-bg:
      linear-gradient(180deg, rgba(11, 22, 41, 0.96), rgba(10, 29, 52, 0.94)),
      linear-gradient(90deg, rgba(255, 216, 78, 0.08), rgba(169, 123, 255, 0.06));
    --spotlight-bg:
      radial-gradient(circle at top right, rgba(255, 216, 78, 0.12), transparent 25%),
      radial-gradient(circle at bottom left, rgba(75, 199, 255, 0.08), transparent 24%),
      rgba(10, 22, 41, 0.9);
    --page-bg:
      radial-gradient(circle at top left, rgba(255, 216, 78, 0.08), transparent 28%),
      radial-gradient(circle at 85% 20%, rgba(75, 199, 255, 0.08), transparent 20%),
      radial-gradient(circle at 18% 82%, rgba(169, 123, 255, 0.08), transparent 18%),
      linear-gradient(180deg, #07111f 0%, #09182c 55%, #0d2139 100%);
    --grid-line: rgba(255, 255, 255, 0.035);
    --ghost-bg: rgba(12, 24, 45, 0.72);
    --secondary-bg: rgba(12, 24, 45, 0.86);
    --metrics-bg: rgba(10, 20, 39, 0.84);
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    --wheel-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    --footer-wheel-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.28;
  pointer-events: none;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 40px;
}

.hero,
.section,
.footer,
.metrics {
  backdrop-filter: blur(12px);
}

.hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--hero-bg);
  box-shadow: var(--shadow);
}

.topbar,
.hero-grid,
.metrics,
.feature-grid,
.course-grid,
.spotlight-grid {
  display: grid;
}

.topbar {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 44, 108, 0.08);
  box-shadow: 0 12px 24px rgba(10, 44, 108, 0.08);
}

.brand img,
.eyebrow,
.ghost-link,
.hero-points,
.course-card span,
.panel-label {
  margin: 0;
}

h1,
h2,
h3,
.panel-stat strong {
  font-family: "Space Grotesk", sans-serif;
}

.brand img {
  width: clamp(170px, 24vw, 260px);
  height: auto;
  display: block;
  flex: 0 1 auto;
}

.hero-text,
.feature-grid p,
.course-card p,
.formats-list p,
.spotlight-grid p,
.footer p,
.footer h2,
.panel-label,
.panel-stat span {
  color: var(--muted);
}

.ghost-link,
.theme-toggle,
.secondary-btn,
.primary-btn {
  text-decoration: none;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ghost-link {
  padding: 12px 18px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--ghost-bg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: var(--ghost-bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  min-height: 42px;
  box-shadow: 0 6px 18px rgba(10, 44, 108, 0.08);
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 180ms ease, opacity 180ms ease;
}

.theme-toggle__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.theme-toggle__track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 164, 216, 0.2), rgba(125, 49, 245, 0.16));
  border: 1px solid var(--line);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  box-shadow: 0 4px 10px rgba(10, 44, 108, 0.18);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle__thumb {
  transform: translateX(20px);
  background: linear-gradient(135deg, #d7e5ff, #ffffff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.theme-toggle[aria-pressed="false"] .theme-toggle__icon--sun,
.theme-toggle[aria-pressed="true"] .theme-toggle__icon--moon {
  color: var(--text);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__track {
  background: linear-gradient(135deg, rgba(255, 216, 78, 0.24), rgba(75, 199, 255, 0.22));
}

.hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 28px;
  margin-top: 34px;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}

h1 {
  margin: 14px 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  max-width: 11ch;
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 20px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-weight: 700;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--orange));
  color: #fff;
  box-shadow: 0 14px 30px rgba(236, 61, 55, 0.24);
}

.secondary-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--secondary-bg);
}

.hero-points {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.hero-panel {
  display: flex;
  align-items: stretch;
  position: relative;
}

.panel-card,
.metrics,
.alt-section,
.section,
.footer {
  border: 1px solid var(--line);
  border-radius: 28px;
}

.panel-card {
  width: 100%;
  padding: 92px 24px 24px;
  background:
    linear-gradient(160deg, rgba(10, 44, 108, 0.98), rgba(22, 164, 216, 0.84)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  color: var(--panel-text);
  box-shadow: var(--shadow);
}

.wheel-badge {
  position: absolute;
  top: -18px;
  right: 22px;
  width: 116px;
  height: 116px;
  padding: 6px;
  filter: drop-shadow(var(--wheel-shadow));
}

.panel-label {
  color: var(--panel-muted);
}

.panel-stat {
  margin: 24px 0;
}

.panel-stat strong {
  display: block;
  font-size: 5rem;
  line-height: 0.9;
}

.panel-stat span {
  color: var(--panel-muted);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
}

.metrics {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 14px;
  background: var(--metrics-bg);
}

.metrics article,
.feature-grid article,
.course-card,
.formats-list article,
.spotlight-grid article {
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
}

.metrics article {
  padding: 18px;
}

.metrics strong,
.feature-grid h3,
.course-card h3,
.formats-list h3,
.spotlight-grid h3 {
  display: block;
  margin-bottom: 6px;
}

.section,
.footer {
  margin-top: 24px;
  padding: 30px;
  background: var(--section-bg);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

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

.feature-grid article,
.course-card,
.formats-list article,
.spotlight-grid article {
  padding: 22px;
}

.alt-section {
  background: var(--alt-bg);
}

.course-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.course-card span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 164, 216, 0.12);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.formats-list,
.spotlight-grid {
  display: grid;
  gap: 16px;
}

.formats-list {
  grid-template-columns: repeat(3, 1fr);
}

.spotlight {
  background: var(--spotlight-bg);
}

.spotlight-grid {
  grid-template-columns: repeat(3, 1fr);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 66px;
  height: 66px;
  filter: drop-shadow(var(--footer-wheel-shadow));
}

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

.footer-contact,
.footer-contact a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.ghost-link:hover,
.theme-toggle:hover,
.secondary-btn:hover,
.primary-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .hero-grid,
  .course-grid,
  .feature-grid,
  .formats-list,
  .spotlight-grid,
  .two-column,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    margin: 10px auto 24px;
  }

  .hero,
  .section,
  .footer {
    padding: 22px;
    border-radius: 24px;
  }

  .topbar,
  .metrics,
  .feature-grid,
  .course-grid,
  .formats-list,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    width: 100%;
    align-items: flex-start;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar,
  .footer {
    gap: 12px;
  }

  .wheel-badge {
    width: 92px;
    height: 92px;
    top: -14px;
    right: 14px;
  }

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

  h1 {
    max-width: none;
  }
}
