/* =========================================================
   The Sprint - landing page v2.2
   ========================================================= */

/* --- tokens ----------------------------------------------------------- */
:root {
  --bg: #ebe9e5;
  --ink: #101010;
  --ink-60: rgba(16, 16, 16, .6);
  --ink-64: rgba(16, 16, 16, .64);
  --ink-32: rgba(16, 16, 16, .32);
  --ink-08: rgba(16, 16, 16, .08);
  --light-08: rgba(255, 255, 255, .08);
  --light-15: rgba(255, 255, 255, .15);
  --light-64: rgba(255, 255, 255, .64);

  --w-page: 1440px;
  --w-content: 1200px;
  --gutter: 120px;

  --display: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --condensed: 'Roboto Condensed', 'Inter', system-ui, sans-serif;

  --r-card: 12px;
  --r-btn: 6px;
  --r-panel: 10px;
}

/* --- reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--display);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: clip;
  isolation: isolate;
}

/* =========================================================
   AMBIENT GRADIENT BLOOMS
   Faithful replication of Figma "Gradient+Blur" frames:
   4 stacked SVG radial gradients (sand / cyan / purple / peach),
   rotated 90deg + scaleX(-1), blurred, at 20% opacity.
   The pre-rotation SVG dims become the visible H x W after rotate.
   ========================================================= */
.bloom {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: .20;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform-origin: center center;
}
/* Top bloom (Figma 5:693) - visible around the sprint wordmark.
   SVG is 847x1778; after rotate(90) it appears 1778 wide x 847 tall. */
.bloom--top {
  width: 847px;
  height: 1778px;
  top: 85px;
  left: 50%;
  margin-left: -423.5px;
  filter: blur(209.5px);
  transform: rotate(90deg) scaleX(-1);
  background-image: url('assets/bloom-l.svg');
}
/* Mid bloom (Figma 5:507) - visible around the apply CTA.
   SVG is 751x1576; rotated visible 1576 x 752. */
.bloom--mid {
  width: 751px;
  height: 1576px;
  top: 1507px;
  left: 50%;
  margin-left: -375.5px;
  filter: blur(77.45px);
  transform: rotate(90deg) scaleX(-1);
  background-image: url('assets/bloom-s.svg');
}
/* Bot bloom (Figma 5:692) - lives INSIDE the footer (overflow: clip) so
   the bloom centers on the speedrun outline and clips at the page edge,
   matching Figma where the bloom bleeds past the page bottom. */
.bloom--bot {
  width: 847px;
  height: 1778px;
  top: 92%;
  left: 50%;
  filter: blur(209.5px);
  transform: translate(-50%, -50%) rotate(90deg) scaleX(-1);
  background-image: url('assets/bloom-l.svg');
}

/* --- shared atoms ----------------------------------------------------- */
.eyebrow {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .6;
}
.eyebrow--light { color: #fff; opacity: 1; }

.rule {
  border: 0;
  border-top: 1px solid var(--ink-08);
  margin: 0;
  width: 100%;
}

/* Heavy display heading helper */
.h-black {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* --- buttons ---------------------------------------------------------- */
.btn {
  --btn-pl: 56px;
  --btn-pr: 12px;
  --btn-pt: 24px;
  --btn-pb: 8px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--btn-pt) var(--btn-pr) var(--btn-pb) var(--btn-pl);
  border-radius: var(--r-btn);
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  user-select: none;
}
.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--ghost {
  background: var(--light-15);
  color: #fff;
  backdrop-filter: blur(2px);
}
.btn--rainbow {
  color: var(--ink);
  background-image: linear-gradient(
    115deg,
    rgba(248, 220, 187, 1) 0%,
    rgba(161, 98, 255, 0.85) 50%,
    rgba(86, 250, 247, 1) 100%
  );
  box-shadow: 0 4px 24px rgba(255, 255, 255, .18);
}
.btn--soft {
  background: var(--ink-08);
  color: var(--ink);
}
.btn--apply {
  --btn-pl: 78px;
  --btn-pr: 18px;
  --btn-pt: 36px;
  --btn-pb: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  line-height: 24px;
  box-shadow: 0 0 20px 18px rgba(255, 255, 255, .25);
  background-image: url('assets/button-bg.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  transition: transform .2s ease;
}
.btn:hover { filter: brightness(.92); }
.btn--ghost:hover { filter: brightness(1.1); }
.btn--apply:hover { transform: translateY(-1px); filter: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 880px;
  overflow: hidden;
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  /* dark gradient overlay + flat darken (matching Figma spec) */
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(16,16,16,0) 0%, rgba(16,16,16,.64) 100%),
    rgba(16,16,16,.32);
  pointer-events: none;
}

.hero__top,
.hero__copy,
.hero__partner,
.hero__strip {
  position: relative;
  z-index: 2;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 124px var(--gutter) 0;
}
.hero__brand img { height: 20px; width: auto; }
.hero__nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  color: #fff;
}
.hero__nav a:hover { opacity: .8; }

.hero__partner {
  position: absolute;
  right: 90px;
  bottom: 153px;
  width: 124px; height: auto;
}

.hero__copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 24px var(--gutter) 0;
  margin-top: 240px;
}
.hero__main {
  flex: 0 0 auto;
  max-width: 720px;
}
.hero__main h1 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 64px;
  line-height: .9;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero__meta {
  display: flex;
  gap: 24px;
  margin: 0;
  padding-top: 16px;
}
.hero__meta > div { width: 180px; }
.hero__meta dt { margin: 0; }
.hero__meta dd {
  margin: 16px 0 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: #fff;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  margin: 56px 0 0;
}

.hero__strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 84px;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--light-08);
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--light-64);
  white-space: nowrap;
  overflow: hidden;
}
.hero__strip .sep { color: var(--light-08); }

/* =========================================================
   SPONSORS
   ========================================================= */
.sponsors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px var(--gutter) 0;
}
.sponsors img { height: 23px; width: auto; }

/* =========================================================
   SPRINT SECTION (logo composite + hook + white panel)
   ========================================================= */
.sprint {
  position: relative;
  padding: 0 var(--gutter) 0;
  text-align: center;
}
.sprint__wordmark {
  width: min(820px, 100% - 2 * var(--gutter));
  margin: 48px auto 0;
}
.sprint__wordmark img {
  width: 100%;
  height: auto;
}

.sprint__hook {
  margin: 64px auto 96px;
  max-width: var(--w-content);
  font-family: var(--display);
  font-weight: 900;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* white card panel containing stage check + program + apply CTA */
.panel {
  position: relative;
  max-width: 1282px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  border-bottom: 0;
  padding: 80px 80px 96px;
  text-align: left;
  overflow: clip;
}
/* Bottom accent: thin rainbow gradient line, inside the rounded panel */
.panel::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(248, 220, 187, 1) 0%,
    rgba(161, 98, 255, 1) 50%,
    rgba(86, 250, 247, 1) 100%
  );
  pointer-events: none;
}

/* --- stage check ----------------------------------------- */
.stage h3 {
  margin: 16px 0 16px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stage__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 0;
}
.stage__cols li { padding-right: 24px; }
.stage__cols h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stage__cols h4 em {
  font-style: italic;
  font-weight: 900;
}
.stage__cols p {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: .64;
}

/* --- program grid ----------------------------------------- */
.program { margin-top: 96px; }
.program h3 {
  margin: 16px 0 16px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.program__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-card);
  padding: 24px;
  min-height: 220px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--ink-08);
  border-radius: 22px;
  margin-bottom: auto;
}
.card h4 {
  margin: 12px 0 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.04em;
}
.card p {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: .64;
}

/* =========================================================
   APPLY CTA (inside the white panel)
   ========================================================= */
.apply {
  position: relative;
  margin-top: 96px;
  padding: 0;
  text-align: center;
  background: transparent;
}
.apply__headline {
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 900;
  font-size: 60px;
  line-height: .88;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.apply__headline em {
  font-style: italic;
  font-weight: 900;
}
.apply__sub {
  max-width: 588px;
  margin: 32px auto 0;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: .64;
}
.apply .btn {
  margin-top: 40px;
}
.apply__meta {
  margin: 32px auto 0;
  max-width: 588px;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .32;
}
.apply__meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   EVENTS
   ========================================================= */
.events {
  padding: 96px var(--gutter) 80px;
  background: var(--bg);
}
.events__head {
  max-width: var(--w-content);
  margin: 0 auto;
  text-align: center;
}
.events__head .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.events__head h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.events__sub {
  margin: 16px auto 0;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: .64;
}

.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: var(--w-content);
  margin: 56px auto 0;
}

.event { list-style: none; }
.event__link {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-card);
  padding: 24px;
  gap: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.event__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 16, 16, .08);
}
.event__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
}
.event__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.event__meta {
  display: flex;
  gap: 12px;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .6;
}
.event__title {
  margin: 0;
  min-height: 48px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.event__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.event__foot .tag {
  border: 1px solid var(--ink-08);
  border-radius: var(--r-btn);
  padding: 4px 8px;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  opacity: .6;
}

.events__more-wrap {
  max-width: var(--w-content);
  margin: 32px auto 0;
  display: flex;
  justify-content: flex-end;
}
.events__more {
  width: 251px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: 0 var(--gutter) 80px;
  background: var(--bg);
  overflow: clip;
  isolation: isolate;
}
.footer__rule {
  border: 0;
  border-top: 1px solid var(--ink-08);
  margin: 0 calc(-1 * var(--gutter));
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 0 0;
  max-width: var(--w-page);
}
.footer__row--meta {
  padding: 32px 0 32px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-60);
}
.footer__brand { height: 16px; width: auto; }
.footer__social { display: flex; gap: 16px; align-items: center; }
.footer__social img { width: 32px; height: 32px; }
.footer__links { display: flex; gap: 12px; }
.footer__links a { text-decoration: underline; }

.footer__big {
  display: block;
  margin: 32px auto 0;
  width: 100%;
  max-width: 1200px;
}
.footer__big img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   RESPONSIVE - basic graceful degradation below 1100
   ========================================================= */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .hero__copy h1 { font-size: 44px; }
  .sprint__hook { font-size: 56px; }
  .events__head h2 { font-size: 56px; }
  .apply__headline { font-size: 44px; }
  .program__grid { grid-template-columns: repeat(2, 1fr); }
  .events__grid { grid-template-columns: repeat(2, 1fr); }
  .stage__cols { grid-template-columns: 1fr; }
  .panel { padding: 56px 32px; }
  .hero__partner { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .hero { height: auto; padding-bottom: 96px; }
  .hero__copy h1 { font-size: 36px; }
  .sprint__hook { font-size: 36px; }
  .events__head h2 { font-size: 36px; }
  .apply__headline { font-size: 32px; }
  .program__grid { grid-template-columns: 1fr; }
  .events__grid { grid-template-columns: 1fr; }
  .hero__strip { display: none; }
  .hero__top { padding-top: 32px; }
  .hero__copy { margin-top: 64px; }
  .hero__meta { flex-direction: column; gap: 16px; }
}
