:root {
  --blue: #0796d7;
  --orange: #f16c00;
  --green: #20a67a;
  --rose: #dd3c6a;
  --ink: #14213d;
  --muted: #607088;
  --line: #e3eaf0;
  --paper: #ffffff;
  --surface: #f6f9fc;
  --soft-blue: #eaf7fd;
  --shadow: 0 18px 50px rgba(20, 33, 61, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(227, 234, 240, 0.85);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 190px;
  padding: 7px 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(20, 33, 61, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
}

.nav-action {
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(7, 150, 215, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 45%, rgba(255, 255, 255, 0.64) 100%),
    #f7fbfd;
  border-bottom: 1px solid var(--line);
}

#learning-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.score-board,
.challenge-tile,
.recognition-strip {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(227, 234, 240, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.score-board {
  right: max(28px, calc((100vw - 1120px) / 2));
  top: 116px;
  width: 330px;
  border-radius: 22px;
  padding: 16px;
}

.board-top,
.season-head,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.board-top span,
.season-head span,
.panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.board-top strong,
.season-head strong,
.panel-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.rank-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.rank-row.active {
  background: rgba(7, 150, 215, 0.09);
  border-color: rgba(7, 150, 215, 0.18);
}

.rank-row b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  font-size: 12px;
}

.rank-row span {
  font-size: 13px;
  font-weight: 900;
}

.rank-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.challenge-tile {
  right: max(72px, calc((100vw - 1060px) / 2));
  bottom: 78px;
  width: 270px;
  padding: 18px;
  border-radius: 20px;
  border-left: 4px solid var(--orange);
}

.challenge-tile span,
.recognition-strip span {
  display: block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 6px;
}

.challenge-tile strong,
.recognition-strip strong {
  display: block;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.challenge-tile p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.recognition-strip {
  right: max(340px, calc((100vw - 720px) / 2));
  top: 390px;
  width: 225px;
  padding: 15px 17px;
  border-radius: 18px;
  border-left: 4px solid var(--green);
}

.recognition-strip span {
  color: var(--green);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 112px 0 86px;
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
}

.hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: 68px;
  line-height: 0.94;
  font-weight: 950;
  color: var(--ink);
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(20, 33, 61, 0.72);
  font-size: 19px;
  font-weight: 650;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 14px 28px rgba(7, 150, 215, 0.24);
}

.button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-metrics div {
  min-width: 136px;
  padding: 12px 14px;
  border: 1px solid rgba(227, 234, 240, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section {
  padding: 78px 0;
  background: var(--surface);
}

.platform-band,
.recognition-band {
  background: white;
}

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

.section-heading.compact {
  max-width: 500px;
  margin-bottom: 0;
}

.section-heading h2,
.final-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: 40px;
  line-height: 1.08;
  font-weight: 950;
}

.section-heading p:not(.eyebrow),
.final-cta p {
  margin: 14px 0 0;
  color: rgba(20, 33, 61, 0.62);
  font-size: 16px;
  font-weight: 650;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pillar-card,
.matrix-column,
.season-card,
.leaderboard-panel,
.school-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.06);
}

.pillar-card {
  padding: 20px;
}

.icon-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  font-size: 18px;
  font-weight: 950;
}

.icon-mark.blue {
  background: var(--blue);
}

.icon-mark.orange {
  background: var(--orange);
}

.icon-mark.green {
  background: var(--green);
}

.icon-mark.rose {
  background: var(--rose);
}

.pillar-card h3,
.matrix-column h3,
.process-list h3,
.school-grid h3 {
  margin: 16px 0 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}

.pillar-card p,
.process-list p,
.school-grid p {
  margin: 0;
  color: rgba(20, 33, 61, 0.58);
  font-size: 14px;
  font-weight: 650;
}

.split-section,
.recognition-layout,
.school-layout,
.championship-layout,
.cta-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.subject-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.matrix-column {
  padding: 22px;
}

.matrix-column.accent {
  background: #fff7ef;
  border-color: rgba(241, 108, 0, 0.18);
}

.matrix-column h3 {
  margin-top: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span,
.badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  color: rgba(20, 33, 61, 0.68);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 850;
}

.matrix-column.accent .tag-cloud span {
  background: white;
  border-color: rgba(241, 108, 0, 0.18);
}

.championships {
  background: #f9fbfd;
}

.championship-layout {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

.season-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(7, 150, 215, 0.08), rgba(255, 255, 255, 0) 60%),
    white;
}

.season-bars {
  display: grid;
  gap: 16px;
}

.season-bars div {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 12px;
}

.season-bars span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.season-bars b {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0f5;
}

.season-bars b::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.process-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(7, 150, 215, 0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

.process-list h3 {
  margin: 0 0 5px;
}

.recognition-layout {
  grid-template-columns: 1fr 0.95fr;
}

.leaderboard-panel {
  padding: 22px;
}

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

.leader-list li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.leader-list li.current {
  background: rgba(32, 166, 122, 0.09);
  border-color: rgba(32, 166, 122, 0.2);
}

.leader-list b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  font-size: 13px;
}

.leader-list span {
  font-size: 14px;
  font-weight: 950;
}

.leader-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.badge-row span {
  background: rgba(32, 166, 122, 0.08);
  border-color: rgba(32, 166, 122, 0.18);
  color: #137f5e;
}

.school-section {
  background: var(--surface);
}

.school-layout {
  grid-template-columns: 0.85fr 1.15fr;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.school-grid article {
  padding: 18px;
}

.school-grid h3 {
  margin-top: 0;
}

.final-cta {
  padding: 64px 0;
  background: var(--ink);
  color: white;
}

.cta-shell {
  grid-template-columns: 1fr auto;
}

.final-cta h2,
.final-cta p,
.final-cta .eyebrow {
  color: white;
}

.final-cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  background: white;
  border-top: 1px solid var(--line);
}

.footer-shell {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.footer-shell img {
  width: 168px;
}

.footer-shell p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 74px 20px auto 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-action {
    margin-top: 4px;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 88px 0 46px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-copy {
    max-width: 640px;
    font-size: 17px;
  }

  .score-board,
  .challenge-tile,
  .recognition-strip {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .hero-scene {
    position: relative;
    display: grid;
    gap: 12px;
    width: min(100% - 40px, 680px);
    margin: 0 auto 44px;
    padding-top: 8px;
  }

  .score-board,
  .challenge-tile,
  .recognition-strip {
    width: 100%;
  }

  .pillar-grid,
  .split-section,
  .recognition-layout,
  .school-layout,
  .championship-layout,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading.compact {
    max-width: none;
  }

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

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

  .brand {
    width: 162px;
  }

  .hero-content {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .hero-metrics {
    flex-direction: column;
  }

  .button,
  .hero-metrics div {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: 30px;
  }

  .pillar-grid,
  .subject-matrix {
    grid-template-columns: 1fr;
  }

  .season-bars div {
    grid-template-columns: 78px 1fr;
  }

  .leader-list li {
    grid-template-columns: 34px 1fr;
  }

  .leader-list em {
    grid-column: 2;
  }

  .footer-shell {
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

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