:root {
  --page: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f7;
  --ink: #18202a;
  --muted: #5f6b78;
  --line: #d9e1e7;
  --green: #0a9f7d;
  --green-deep: #08745c;
  --blue: #4868e8;
  --amber: #c78216;
  --coral: #dc684d;
  --shadow: 0 22px 50px rgba(22, 38, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(246,248,251,0.96)),
    radial-gradient(circle at 1px 1px, rgba(72, 104, 232, 0.13) 1px, transparent 0);
  background-size: auto, 28px 28px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(217, 225, 231, 0.88);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(24, 32, 42, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 112px) 0 clamp(38px, 7vw, 80px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(10, 159, 125, 0.12);
}

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

h1 {
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(54px, 10vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 0 0 16px;
  max-width: 760px;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 720;
  color: #243345;
}

.hero-body {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 14px;
}

.primary-button {
  background: var(--ink);
  color: white;
}

.ghost-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.logo-stage {
  border: 1px solid rgba(217, 225, 231, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 159, 125, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(220, 104, 77, 0.10), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 44px);
}

.logo-stage img {
  width: min(280px, 66vw);
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(24, 32, 42, 0.09);
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.signal-panel div {
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.signal-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-panel strong {
  display: block;
  font-size: 14px;
}

.content-band {
  width: 100%;
  padding: clamp(56px, 8vw, 92px) clamp(20px, 4vw, 64px);
}

.content-band:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.68);
}

.intro-band,
.protocol-band,
.outputs-band {
  border-top: 1px solid rgba(217, 225, 231, 0.82);
  border-bottom: 1px solid rgba(217, 225, 231, 0.82);
  background: rgba(255, 255, 255, 0.78);
}

.section-heading,
.intro-grid,
.tracks-grid,
.process-row,
.split-layout,
.leaderboard-shell,
.timeline,
.outputs-grid,
.resource-list {
  width: min(1140px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 30px;
}

.narrow-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker) {
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--muted);
  font-size: 18px;
}

.intro-grid p {
  margin: 0;
}

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

.track-card,
.process-step,
.timeline article,
.outputs-grid article,
.resource-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.track-card {
  display: flex;
  flex-direction: column;
  min-height: 398px;
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.track-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(22, 38, 54, 0.10);
}

.track-card h3 {
  margin: 16px 0 10px;
  font-size: 21px;
  line-height: 1.16;
}

.track-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.track-tag {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.track-green .track-tag {
  color: var(--green-deep);
  background: rgba(10, 159, 125, 0.12);
}

.track-blue .track-tag {
  color: var(--blue);
  background: rgba(72, 104, 232, 0.12);
}

.track-amber .track-tag {
  color: var(--amber);
  background: rgba(199, 130, 22, 0.14);
}

.track-coral .track-tag {
  color: var(--coral);
  background: rgba(220, 104, 77, 0.14);
}

.track-card dl {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: auto 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.track-card dl div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 10px;
  background: #fbfdff;
}

.track-card dt,
.track-card dd {
  margin: 0;
  min-width: 0;
  font-size: 13px;
}

.track-card dt {
  color: var(--muted);
  font-weight: 800;
}

.track-card dd {
  font-weight: 750;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.process-step {
  padding: 24px;
}

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.text-block {
  padding-top: 8px;
}

.text-block h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.text-block p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.firewall-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.firewall-table > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.firewall-table span {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.firewall-table .table-header span {
  background: var(--ink);
  color: #ffffff;
  font-weight: 850;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leaderboard-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(238, 244, 247, 0.72));
}

.leaderboard-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(22, 38, 54, 0.08);
}

.leaderboard-header,
.leaderboard-row summary {
  display: grid;
  grid-template-columns: 76px minmax(160px, 1fr) 140px 126px;
  gap: 14px;
  align-items: center;
}

.leaderboard-header {
  padding: 14px 18px;
  background: var(--ink);
  color: #ffffff;
}

.leaderboard-header span {
  min-width: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.leaderboard-row {
  border-top: 1px solid var(--line);
}

.leaderboard-row summary {
  min-height: 62px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease;
}

.leaderboard-row summary::-webkit-details-marker {
  display: none;
}

.leaderboard-row summary:hover,
.leaderboard-row summary:focus-visible {
  background: #fbfdff;
}

.leaderboard-row summary span {
  min-width: 0;
  font-size: 14px;
  font-weight: 760;
}

.score-placeholder {
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

.expand-label {
  justify-self: start;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px !important;
  font-weight: 850 !important;
}

.leaderboard-row[open] .expand-label {
  color: var(--green-deep);
  border-color: rgba(10, 159, 125, 0.34);
  background: rgba(10, 159, 125, 0.08);
}

.track-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.track-breakdown div {
  min-width: 0;
  padding: 16px 18px;
  background: #fbfdff;
}

.track-breakdown span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.track-breakdown strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timeline-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 244, 247, 0.74));
}

.timeline {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 231, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(22, 38, 54, 0.11);
  backdrop-filter: blur(20px);
  padding: clamp(22px, 4vw, 34px);
}

.timeline-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.timeline-label,
.phase-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(95, 107, 120, 0.10);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-label {
  margin: 0 0 12px;
}

.timeline-status h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
}

.timeline-status p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.timeline-meter {
  flex: 0 0 auto;
  min-width: 126px;
  padding: 16px;
  border: 1px solid rgba(217, 225, 231, 0.88);
  border-radius: 8px;
  background: rgba(251, 253, 255, 0.82);
  text-align: right;
}

.timeline-meter strong {
  display: block;
  color: var(--green-deep);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timeline-meter span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-rail {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ebf0;
  box-shadow: inset 0 1px 2px rgba(22, 38, 54, 0.08);
}

.timeline-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-milestones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-milestone {
  position: relative;
  min-width: 0;
}

.timeline-node {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 0 14px 4px;
  border: 3px solid #d4dee5;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.84);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.timeline-milestone article {
  min-height: 236px;
  padding: 22px;
  border: 1px solid rgba(217, 225, 231, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.timeline-milestone.is-active article {
  border-color: rgba(10, 159, 125, 0.38);
  box-shadow: 0 18px 42px rgba(10, 159, 125, 0.10);
  transform: translateY(-2px);
}

.timeline-milestone.is-active .timeline-node {
  border-color: var(--green);
  background: var(--green);
  transform: scale(1.08);
}

.timeline-milestone.is-complete .timeline-node {
  border-color: var(--green);
  background: var(--green);
}

.timeline-milestone.is-active .phase-state {
  color: var(--green-deep);
  background: rgba(10, 159, 125, 0.12);
}

.timeline-milestone.is-complete .phase-state {
  color: var(--blue);
  background: rgba(72, 104, 232, 0.10);
}

.phase-date {
  display: block;
  margin: 16px 0 10px;
  color: var(--green-deep);
  font-weight: 850;
  font-size: 13px;
}

.timeline h3,
.outputs-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.timeline p,
.outputs-grid p {
  margin: 0;
  color: var(--muted);
}

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

.outputs-grid article {
  padding: 22px;
}

.resources-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(238, 244, 247, 0.76));
}

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

.resource-list a {
  display: block;
  padding: 20px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.resource-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 159, 125, 0.5);
}

.resource-list span {
  display: block;
  margin-bottom: 7px;
  font-weight: 850;
}

.resource-list small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 1040px) {
  .hero-section,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 620px;
  }

  .tracks-grid,
  .outputs-grid,
  .resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .track-card {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 62px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
  }

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

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero-section {
    width: min(100% - 32px, 1140px);
    padding-top: 42px;
  }

  .hero-actions .button {
    flex: 1 1 160px;
  }

  .signal-panel,
  .intro-grid,
  .process-row,
  .leaderboard-header,
  .leaderboard-row summary,
  .timeline-milestones {
    grid-template-columns: 1fr;
  }

  .timeline-status {
    flex-direction: column;
    gap: 18px;
  }

  .timeline-meter {
    width: 100%;
    text-align: left;
  }

  .timeline-milestone article {
    min-height: auto;
  }

  .leaderboard-header {
    display: none;
  }

  .leaderboard-row summary {
    gap: 8px;
  }

  .leaderboard-row summary span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .leaderboard-row summary span:nth-child(1)::before {
    content: "Rank";
    color: var(--muted);
  }

  .leaderboard-row summary span:nth-child(2)::before {
    content: "Team";
    color: var(--muted);
  }

  .leaderboard-row summary span:nth-child(3)::before {
    content: "Total";
    color: var(--muted);
  }

  .expand-label {
    justify-self: stretch;
    justify-content: center !important;
  }

  .track-breakdown {
    grid-template-columns: 1fr;
  }

  .firewall-table > div {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  .tracks-grid,
  .outputs-grid {
    grid-template-columns: 1fr;
  }

  .track-card {
    min-height: auto;
  }

  .track-card dl div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}
