:root {
  --bg: #030303;
  --panel: #0b0b0b;
  --panel-soft: #111111;
  --text: #ffffff;
  --accent: #cce7ff;
  --accent-soft: rgba(204, 231, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --font-display: "Space Grotesk", "Avenir Next", sans-serif;
  --font-body: "Inter", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #050505;
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  padding: 18px 18px 42px;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero,
.info-card,
.step-card,
.cta,
.story-card,
.contest-card,
.track-card,
.topbar {
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.92);
  box-shadow: var(--shadow);
}

.topbar {
  --topbar-progress: 0;
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: calc(100% - 64px - (var(--topbar-progress) * 42px));
  margin: 4px auto 22px;
  padding:
    calc(12px - (var(--topbar-progress) * 2px))
    calc(18px - (var(--topbar-progress) * 2.5px));
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, calc(0.58 + (var(--topbar-progress) * 0.08)));
  box-shadow:
    0 calc(12px - (var(--topbar-progress) * 4px))
    calc(26px - (var(--topbar-progress) * 8px))
    rgba(0, 0, 0, calc(0.1 + (var(--topbar-progress) * 0.04)));
  backdrop-filter: blur(14px);
  transform:
    translateY(calc(var(--topbar-progress) * -1.5px))
    scale(calc(1 - (var(--topbar-progress) * 0.035)));
  transform-origin: top center;
  transition:
    width 220ms ease,
    padding 220ms ease,
    background 220ms ease,
    transform 240ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: calc(13.5px - (var(--topbar-progress) * 0.5px));
  font-weight: 700;
  letter-spacing: 0.09em;
  transition: font-size 220ms ease, opacity 220ms ease;
}

.brand-mark-text {
  white-space: nowrap;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px calc(16px - (var(--topbar-progress) * 3px));
  transition: gap 220ms ease;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: calc(12px - (var(--topbar-progress) * 0.25px));
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 160ms ease, opacity 160ms ease, font-size 220ms ease;
}

.topnav-contest {
  display: none;
}

.topnav-contest:hover {
  color: #ff6b6b;
}

.topnav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.eyebrow,
.card-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

h1 {
  max-width: 700px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 span {
  display: inline-block;
  margin-top: 0.06em;
}

h2 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 0.96;
}

h3 {
  font-size: 26px;
  line-height: 1;
}

.lead,
.step-card p,
.cta p,
.info-card li,
.story-card p,
.contest-card p,
.faq-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.lead {
  max-width: 560px;
  margin: 16px 0 0;
}

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

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.landing-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.12);
}

.landing-button:active {
  transform: translateY(-1px);
}

.landing-button-white {
  background: #ffffff;
  color: #000000;
}

.landing-button-white:hover {
  background: #dcdcdc;
  color: #000000;
}

.landing-button-dark {
  border-color: var(--line-strong);
  background: #0e0e0e;
  color: #ffffff;
}

.landing-button-dark:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: #1a1a1a;
  color: #ffffff;
}

.hero-visual {
  display: flex;
  align-items: stretch;
}

.hero-image-wrap {
  overflow: hidden;
  width: 100%;
  min-height: 360px;
  border-radius: calc(var(--radius-xl) - 8px);
  background: #0e0e0e;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.08);
}

.story-section,
.contest-section,
.tracks-section,
.video-section {
  margin-top: 16px;
}

.story-card,
.contest-card,
.track-card,
.video-card {
  padding: 24px 20px;
  border-radius: var(--radius-xl);
}

.story-card h2,
.contest-card h2,
.video-card h2 {
  max-width: 720px;
}

.story-card p,
.contest-card p,
.video-card p {
  margin: 16px 0 0;
  max-width: 760px;
}

.story-layout {
  display: grid;
  gap: 20px;
}

.contest-layout {
  display: grid;
  gap: 18px;
}

.video-layout {
  display: grid;
  gap: 22px;
}

.story-copy {
  max-width: 760px;
}

.video-copy {
  max-width: 620px;
}

.contest-copy {
  max-width: 680px;
  padding-left: 18px;
  padding-top: 22px;
}

.contest-label {
  position: absolute;
  top: 46px;
  left: 52px;
  margin: 0;
  color: #d64949;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-copy h2 {
  max-width: 100%;
}

.contest-copy h2 {
  max-width: 100%;
}

.story-copy p {
  max-width: 100%;
}

.contest-copy p {
  max-width: 100%;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.story-media {
  display: flex;
  justify-content: flex-start;
}

.video-media {
  display: flex;
  align-items: stretch;
}

.contest-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-image-wrap {
  overflow: hidden;
  width: 100%;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) - 10px);
  background: #0e0e0e;
  max-width: 360px;
}

.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.08);
}

.contest-image-wrap {
  overflow: hidden;
  width: 100%;
  min-height: 228px;
  max-width: 252px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius-xl) - 8px);
  background: rgba(14, 14, 14, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contest-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: grayscale(1) contrast(1.06);
}

.contest-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(214, 73, 73, 0.22);
  background: rgba(8, 8, 8, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 64px rgba(0, 0, 0, 0.28);
}

.contest-card::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 22px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(214, 73, 73, 0.9), rgba(214, 73, 73, 0.15));
  pointer-events: none;
}

.contest-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: calc(var(--radius-xl) - 12px);
  pointer-events: none;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.video-card {
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.92);
  box-shadow: var(--shadow);
}

.video-frame-wrap {
  overflow: hidden;
  width: 100%;
  min-height: 280px;
  border: 1px solid rgba(204, 231, 255, 0.14);
  border-radius: calc(var(--radius-xl) - 10px);
  background:
    radial-gradient(circle at top, rgba(204, 231, 255, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(14, 17, 20, 0.96), rgba(6, 6, 6, 0.98));
}

.video-frame-wrap iframe {
  width: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-frame-wrap-poster {
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.video-poster-copy {
  max-width: 320px;
}

.video-poster-copy span {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(204, 231, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.video-poster-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.tracks-grid,
.tracks-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.track-card {
  position: relative;
  overflow: hidden;
}

.track-card p,
.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.tracks-section {
  padding: 6px 0 0;
}

.contest-section {
  margin-top: 34px;
  margin-bottom: 36px;
}

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

.track-card h3 {
  font-size: 30px;
}

.info-grid,
.steps,
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.info-card,
.step-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
}

.info-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.info-card li + li {
  margin-top: 8px;
}

.faq-section {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.faq-copy {
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 8, 8, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 20px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  transition: background 160ms ease, color 160ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.faq-item p:first-of-type {
  padding-top: 18px;
}

.steps,
.tracks-grid,
.tracks-grid {
  grid-template-columns: 1fr;
}

.steps {
  margin-top: 16px;
}

.step-card span {
  display: inline-block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  font-weight: 800;
}

.step-card p {
  margin: 14px 0 0;
}

.cta {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 24px 20px;
  border-radius: var(--radius-xl);
}

@media (max-width: 819px) {
  html,
  body {
    background: #020202;
  }

  .contest-copy {
    padding-top: 0;
    padding-left: 16px;
  }

  .contest-label {
    position: static;
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .contest-copy h2 {
    max-width: 100%;
    font-size: 28px;
    line-height: 0.98;
  }

  .contest-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .contest-card::before {
    top: 22px;
    bottom: 22px;
    left: 16px;
  }

  .topbar {
    width: min(248px, calc(100% - 28px - (var(--topbar-progress) * 28px)));
    gap: calc(5px - (var(--topbar-progress) * 1.5px));
    margin: 0 auto 10px;
    padding:
      calc(7px - (var(--topbar-progress) * 1.2px))
      calc(10px - (var(--topbar-progress) * 1.2px))
      calc(7px - (var(--topbar-progress) * 1.2px));
    border-radius: calc(18px - (var(--topbar-progress) * 5px));
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
  }

  .brand-mark {
    justify-content: center;
    width: 100%;
    font-size: calc(10px - (var(--topbar-progress) * 0.3px));
    letter-spacing: calc(0.1em - (var(--topbar-progress) * 0.015em));
    text-align: center;
  }

  .topnav-contest {
    display: flex;
  }

  .topnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 3px 8px;
    width: 100%;
    max-height: 44px;
    overflow: hidden;
    transition:
      max-height 70ms ease-out,
      opacity 60ms linear,
      transform 70ms ease-out,
      margin 70ms ease-out;
  }

  .topnav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    padding: 0;
    font-size: calc(9px - (var(--topbar-progress) * 0.18px));
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
    background: transparent;
  }

  .topbar.topbar-collapsed {
    width: 116px;
    gap: 0;
    padding: 8px 12px;
    border-radius: 999px;
  }

  .topbar.topbar-collapsed .brand-mark {
    width: auto;
  }

  .topbar.topbar-collapsed .topnav {
    max-height: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-3px);
    pointer-events: none;
  }

  .hero,
  .info-card,
  .step-card,
  .cta,
  .faq-item,
  .story-card,
  .contest-card,
  .track-card,
  .topbar {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }
}

@media (min-width: 820px) {
  body {
    padding: 24px 24px 56px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: center;
    padding: 28px;
  }

  .topnav-contest {
    display: inline-flex;
    color: #d64949;
  }

  h1 {
    max-width: 760px;
  }

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

  .story-layout {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 36px;
  }

  .contest-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.62fr);
    align-items: center;
    gap: 42px;
  }

  .video-layout {
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: 36px;
  }

  .story-copy {
    order: 2;
    max-width: none;
  }

  .video-copy {
    max-width: none;
  }

  .contest-copy {
    max-width: none;
    padding-left: 24px;
  }

  .story-media {
    order: 1;
  }

  .story-card,
  .contest-card,
  .track-card,
  .video-card {
    padding: 34px;
  }

  .story-image-wrap {
    min-height: 280px;
    max-width: 380px;
  }

  .contest-image-wrap {
    min-height: 292px;
    max-width: 272px;
  }

  .video-frame-wrap {
    min-height: 320px;
  }

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

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

  .cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 28px;
  }
}
