:root {
  --bg: #05040c;
  --bg-2: #0d0a1f;
  --panel: rgba(13, 10, 31, 0.7);
  --panel-strong: rgba(13, 10, 31, 0.9);
  --line: rgba(152, 146, 255, 0.18);
  --text: #f3f4ff;
  --muted: rgba(243, 244, 255, 0.74);
  --blue: #53d8ff;
  --purple: #a855f7;
  --pink: #ff5bf7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(168, 85, 247, 0.2), transparent 35%),
    radial-gradient(circle at 20% 20%, rgba(83, 216, 255, 0.12), transparent 20%),
    linear-gradient(180deg, #04030a 0%, #090716 50%, #04030a 100%);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#spark-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
  opacity: 0.3;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  animation: float 10s ease-in-out infinite;
}

.hero__glow--left {
  width: 420px;
  height: 420px;
  top: -100px;
  left: -120px;
  background: rgba(83, 216, 255, 0.12);
}

.hero__glow--right {
  width: 520px;
  height: 520px;
  right: -120px;
  top: 40px;
  background: rgba(168, 85, 247, 0.14);
  animation-delay: -3s;
}

.nav,
.glass {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(83, 216, 255, 0.16), transparent 34%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.glass:hover::before {
  opacity: 1;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand__text {
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 28px rgba(83, 216, 255, 0.4);
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav__toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  box-shadow: 0 0 10px rgba(83, 216, 255, 0.35);
}

.nav__links a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
  text-shadow: 0 0 16px rgba(83, 216, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);
  gap: 18px;
  align-items: center;
  min-height: calc(100vh - 104px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 0 24px;
}

.hero__copy {
  max-width: 760px;
  text-align: center;
  justify-self: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.77rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7.7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-shadow:
    0 0 18px rgba(83, 216, 255, 0.25),
  0 0 42px rgba(168, 85, 247, 0.22);
}

.hero__title.is-flickering {
  animation: textJitter 0.18s linear 1;
}

.hero__title span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue) 45%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__tagline {
  margin: 18px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: #d8dcff;
  font-weight: 600;
}

.hero__lede {
  max-width: 60ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.16), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #04030a;
  background: linear-gradient(135deg, var(--blue), #c4f4ff 45%, #ffffff);
  box-shadow: 0 0 34px rgba(83, 216, 255, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 0 44px rgba(83, 216, 255, 0.4);
}

.btn--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn--secondary:hover {
  border-color: rgba(83, 216, 255, 0.48);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.22);
}

.btn--large {
  min-width: 190px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero__stats strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.hero__stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__panel {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 88px;
  overflow: hidden;
  transform: none;
  align-self: start;
}

.logo-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 540px;
  border-radius: 88px;
  background:
    radial-gradient(circle at 50% 40%, rgba(83, 216, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.logo-orb::before,
.logo-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-orb::after {
  border-color: rgba(83, 216, 255, 0.12);
}

.logo-orb__ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(83, 216, 255, 0.2);
  box-shadow: inset 0 0 40px rgba(168, 85, 247, 0.18);
  animation: spin 18s linear infinite;
}

.logo-orb__ring::before,
.logo-orb__ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.logo-orb__ring::after {
  inset: 16px;
}

.logo-orb__core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(83, 216, 255, 0.95), rgba(168, 85, 247, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 36px rgba(83, 216, 255, 0.45),
    0 0 90px rgba(168, 85, 247, 0.32);
}

.logo-orb__core img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter:
    brightness(1.1)
    contrast(1.12)
    saturate(1.1)
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.14))
    drop-shadow(0 0 28px rgba(83, 216, 255, 0.14));
}

.hero__panel-copy h2 {
  margin: 0;
  font-size: 1.18rem;
  padding: 0 24px;
}

.hero__panel-copy p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 44ch;
  padding: 0 24px 24px;
}

.panel-kicker {
  margin: 0 0 10px;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 0;
  scroll-margin-top: 120px;
}

.section__heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section__heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.section__card {
  padding: 28px;
  border-radius: var(--radius);
}

.rules-card {
  padding: 28px 30px;
}

.rule-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.section__card--wide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 80ch;
}

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

.track-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.track-card:hover,
.rule-card:hover,
.timeline__item:hover,
.faq__item:hover,
.registration:hover {
  transform: translateY(-5px);
  border-color: rgba(83, 216, 255, 0.36);
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(83, 216, 255, 0.12);
}

.track-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.btn:hover,
.track-card:hover,
.timeline__item:hover,
.faq__item:hover,
.registration:hover {
  border-color: rgba(83, 216, 255, 0.5);
}

.track-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(83, 216, 255, 0.25), rgba(168, 85, 247, 0.28));
}

.track-card h3,
.rule-card p,
.timeline__item h3,
.faq__item summary,
.registration h2 {
  margin: 0;
}

.track-card p,
.timeline__item p,
.registration p,
.faq__item p {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.timeline__item {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 24px rgba(83, 216, 255, 0.7);
  margin-bottom: 18px;
}

.timeline__time {
  margin: 0 0 10px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq__item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 0 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
}

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

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  content: "-";
}

.faq__item p {
  margin: 0 0 20px;
  padding-top: 4px;
}

.registration {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand strong {
  display: block;
  color: var(--text);
}

.footer__brand p {
  margin: 4px 0 0;
}

.footer__links {
  display: flex;
  gap: 18px;
}

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

.social-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text);
  background: linear-gradient(135deg, rgba(83, 216, 255, 0.16), rgba(168, 85, 247, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 18px rgba(83, 216, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer__links a:hover .social-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 24px rgba(83, 216, 255, 0.3);
  border-color: rgba(83, 216, 255, 0.4);
}

.flicker {
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow:
      0 0 18px rgba(83, 216, 255, 0.25),
      0 0 42px rgba(168, 85, 247, 0.22);
  }
  20%, 24%, 55% {
    opacity: 0.84;
    text-shadow: none;
  }
}

@keyframes textJitter {
  0% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  50% { transform: translateX(1px); }
  75% { transform: translateX(-0.5px); }
  100% { transform: translateX(0); }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 18px, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1100px) {
  .hero__content,
  .tracks,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__content {
    min-height: auto;
    padding-top: 36px;
  }
}

@media (max-width: 720px) {
  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    border-radius: 24px;
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .nav__links {
    display: none;
    width: 100%;
    gap: 12px 16px;
    padding-top: 10px;
  }

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

  .nav__toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero__content {
    padding-top: 24px;
  }

  .hero__copy {
    max-width: 100%;
  }

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

  .hero__panel {
    transform: none;
    padding: 0;
  }

  .logo-orb {
    min-height: 420px;
  }

  .hero__panel-copy h2,
  .hero__panel-copy p:last-child {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .footer__links {
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
