:root {
  --ink: #07080c;
  --ink-soft: #11131c;
  --paper: #f7f8fb;
  --white: #ffffff;
  --blue: #516eee;
  --blue-dark: #314ed1;
  --red: #ff5636;
  --yellow: #ffd23f;
  --muted: #a9adbb;
  --line: rgba(255, 255, 255, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.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;
}
.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 8px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 8, 12, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: block; width: 92px; }
.brand img { width: 100%; }
nav { display: flex; align-items: center; gap: 30px; }
nav a {
  color: #f1f2f6;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
nav a:hover, nav a:focus-visible { color: var(--yellow); }
.nav-cta {
  padding: 10px 18px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
}
nav .nav-cta:hover, nav .nav-cta:focus-visible { color: var(--ink); background: #ffe170; }
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: 720px;
  padding: 120px max(24px, calc((100vw - var(--max)) / 2)) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 16%, rgba(81, 110, 238, 0.34), transparent 29rem),
    radial-gradient(circle at 18% 88%, rgba(255, 86, 54, 0.2), transparent 25rem),
    var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.eyebrow, .section-label {
  margin: 0 0 20px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3, .event-kicker {
  margin: 0;
  font-family: "Archivo Black", "Inter", sans-serif;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h1 { max-width: 820px; font-size: clamp(3.2rem, 7.7vw, 6.75rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4.3rem); }
h3 { font-size: 1.5rem; }
.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: #d1d4df;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}
.hero-actions, .event-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--yellow); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: #ffe278; }
.button-secondary { border-color: rgba(255,255,255,.3); color: var(--white); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--white); }
.button-dark { background: var(--ink); color: var(--white); }
.hero-mark {
  position: absolute;
  z-index: 1;
  right: -3vw;
  top: 70px;
  width: min(41vw, 550px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: .33;
}
.hero-mark img { width: 86%; filter: saturate(1.2) drop-shadow(0 30px 50px rgba(0,0,0,.4)); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.orbit-one { inset: 6%; animation: spin 24s linear infinite; border-top-color: var(--yellow); }
.orbit-two { inset: 16%; animation: spin 18s linear reverse infinite; border-right-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.impact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: var(--max);
  margin: 86px auto 0;
  border-top: 1px solid var(--line);
}
.impact-strip div { display: flex; flex-direction: column; gap: 4px; padding: 24px 24px 28px 0; }
.impact-strip strong { color: var(--yellow); font-size: 1.35rem; }
.impact-strip span { color: var(--muted); font-size: .9rem; }

.section { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); }
.about { background: var(--paper); color: var(--ink); }
.about .section-label, .programs .section-label { color: var(--red); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; }
.about-copy { border-left: 4px solid var(--blue); padding-left: 30px; }
.about-copy p { margin: 0 0 18px; color: #3c404d; font-size: 1.1rem; }
.vision-statement {
  margin-top: 30px;
  padding: 24px;
  color: var(--white);
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 10px 10px 0 var(--yellow);
}
.vision-statement span {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.vision-statement p { margin: 0; color: var(--white); font-size: 1rem; }
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 50px;
}
.section-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 1.05rem; }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.program-card {
  min-height: 285px;
  padding: 32px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.program-card.featured { background: var(--blue); border-color: transparent; }
.card-number { display: block; margin-bottom: 58px; color: var(--yellow); font-size: .8rem; font-weight: 800; }
.program-card p { max-width: 520px; margin: 16px 0 0; color: #c9ccd6; }
.program-card.featured p { color: #f2f4ff; }
.program-card a { display: inline-block; margin-top: 22px; color: var(--yellow); font-weight: 800; text-decoration: none; }

.event-section {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: center;
  color: var(--ink);
  background: var(--yellow);
}
.event-poster { position: relative; max-width: 500px; }
.event-poster::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  background: var(--blue);
  border-radius: 14px;
}
.event-poster img { position: relative; width: 100%; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.event-details .section-label { color: var(--blue-dark); }
.event-kicker { color: var(--red); font-size: clamp(2.5rem, 6vw, 5rem); text-transform: uppercase; }
.event-details h2 { margin-top: 4px; font-size: clamp(2rem, 4vw, 3.6rem); }
.event-intro { max-width: 680px; margin: 22px 0 0; font-size: 1.08rem; }
.event-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 30px 0; }
.event-facts div { padding-top: 16px; border-top: 2px solid rgba(7,8,12,.16); }
.event-facts dt { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event-facts dd { margin: 5px 0 0; font-weight: 600; line-height: 1.45; }
.prize-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prize-row div { padding: 15px; color: var(--white); background: var(--ink); border-radius: 8px; }
.prize-row span { display: block; color: var(--yellow); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.prize-row strong { display: block; font-size: 1.35rem; }
.categories { margin: 20px 0 0; font-size: .83rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.event-actions .button-primary { background: var(--blue); color: var(--white); }
.event-rules-button { color: var(--ink); border-color: var(--ink); }
.event-rules-button:hover, .event-rules-button:focus-visible { color: var(--white); background: var(--ink); }

.rules-section { color: var(--ink); background: var(--paper); }
.rules-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 42px;
}
.rules-heading .section-label { color: var(--red); }
.rules-heading > p { margin: 0 0 8px; color: #3c404d; font-size: 1.05rem; }
.official-rules { display: grid; gap: 10px; }
.official-rules details { background: var(--white); border: 1px solid #dde0e8; border-radius: 10px; }
.official-rules summary { display: flex; gap: 14px; align-items: center; padding: 18px 20px; font-weight: 800; cursor: pointer; }
.official-rules summary span { color: var(--red); font-size: .78rem; }
.official-rules details > p, .official-rules details > div { margin: 0; padding: 0 20px 20px 58px; color: #3c404d; }
.official-rules details > div p { margin: 0 0 12px; }
.official-rules details > div p:last-child { margin-bottom: 0; }
.official-rules ul { margin: 0 0 16px; padding-left: 20px; }
.official-rules li { margin: 7px 0; }
.official-rules a { color: var(--blue-dark); font-weight: 800; }
.rules-actions { margin-top: 30px; }
.rules-actions .button-primary { background: var(--blue); color: var(--white); }
.rules-actions .button-primary:hover, .rules-actions .button-primary:focus-visible { background: var(--blue-dark); }

.sponsors {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  background: var(--red);
}
.sponsor-copy p { max-width: 650px; margin: 24px 0 30px; font-size: 1.1rem; }
.sponsor-copy .sponsor-note { margin: 16px 0 0; font-size: .92rem; font-weight: 700; }
.sponsors .section-label { color: var(--yellow); }
.sponsor-panel {
  align-self: center;
  padding: 36px;
  color: var(--ink);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 14px 14px 0 var(--yellow);
}
.sponsor-panel > p { margin: 0; font-family: "Archivo Black", sans-serif; font-size: 1.4rem; }
.sponsor-panel ul { margin: 20px 0 26px; padding-left: 20px; }
.sponsor-panel li { margin: 9px 0; }
.sponsor-panel a { color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.sponsor-panel small { display: block; margin-top: 16px; color: #5f6470; font-size: .84rem; }
.sponsor-panel small a { color: inherit; text-decoration: underline; }

footer {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 50px;
  padding: 64px max(24px, calc((100vw - var(--max)) / 2)) 28px;
  color: #d6d8df;
  background: #030407;
}
.footer-brand img { width: 140px; }
.footer-brand p { margin: 8px 0 0; color: var(--muted); }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { font-weight: 700; text-decoration: none; }
.footer-contact p { margin: 0; color: var(--yellow); font-weight: 800; }
.footer-contact span { color: var(--muted); }
.copyright { grid-column: 1 / -1; margin: 32px 0 0; padding-top: 24px; color: #777d8c; border-top: 1px solid var(--line); font-size: .82rem; }

@media (max-width: 900px) {
  .site-header { min-height: 72px; }
  .brand { width: 78px; }
  .menu-button {
    display: grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--white);
    background: transparent;
  }
  .menu-button span:not(.sr-only) { width: 20px; height: 2px; background: currentColor; }
  nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: #090b11;
    border-bottom: 1px solid var(--line);
  }
  nav.open { display: flex; }
  nav a { padding: 13px 4px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: auto; padding-top: 90px; }
  .hero-mark { right: -22vw; top: 130px; width: 80vw; opacity: .2; }
  .about-grid, .section-heading, .event-section, .rules-heading, .sponsors { grid-template-columns: 1fr; gap: 46px; }
  .about-copy { border-left: 0; border-top: 4px solid var(--blue); padding: 24px 0 0; }
  .event-poster { max-width: 430px; margin: 0 auto; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .hero { padding-top: 72px; }
  .hero-actions .button { width: 100%; }
  .official-rules details > p, .official-rules details > div { padding-left: 20px; }
  .impact-strip { grid-template-columns: 1fr; margin-top: 58px; }
  .impact-strip div { border-top: 1px solid var(--line); padding: 16px 0; }
  .impact-strip div:first-child { border-top: 0; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .program-grid, .event-facts { grid-template-columns: 1fr; }
  .program-card { min-height: auto; }
  .card-number { margin-bottom: 34px; }
  .prize-row strong { font-size: 1rem; }
  footer { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
