:root {
  color-scheme: dark;
  --bg: #050509;
  --bg-soft: #0a0a11;
  --surface: rgba(16, 16, 24, 0.72);
  --surface-strong: rgba(18, 18, 28, 0.92);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(168, 155, 255, 0.22);
  --text: #f4f4f7;
  --muted: #a7a8b5;
  --soft: #d6d7de;
  --accent: #8f78ff;
  --accent-soft: rgba(143, 120, 255, 0.14);
  --accent-glow: rgba(143, 120, 255, 0.35);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(143, 120, 255, 0.15), transparent 32%),
    radial-gradient(circle at 80% 12%, rgba(90, 76, 177, 0.2), transparent 26%),
    linear-gradient(180deg, #050509 0%, #07070d 48%, #050508 100%);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
  opacity: 0.2;
}

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

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

.site-shell {
  position: relative;
  isolation: isolate;
}

.ambient,
.grid-overlay,
.hero-background {
  pointer-events: none;
}

.ambient {
  position: fixed;
  filter: blur(64px);
  opacity: 0.65;
  z-index: -1;
}

.ambient-one {
  top: 16vh;
  left: -8vw;
  width: 26vw;
  height: 26vw;
  background: rgba(143, 120, 255, 0.18);
}

.ambient-two {
  top: 40vh;
  right: -8vw;
  width: 30vw;
  height: 30vw;
  background: rgba(255, 255, 255, 0.08);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0 68%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -2;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(7, 7, 13, 0.68);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.brand,
.footer-brand,
.mobile-menu__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark,
.loader-logo,
.hero-logo,
.footer-mark,
.mobile-menu__mark {
  object-fit: contain;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-name,
.brand-sub {
  line-height: 1;
}

.brand-name,
.footer-brand strong,
.mobile-menu__header span {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name {
  font-size: 0.9rem;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--soft);
}

.nav-links a,
.secondary-link,
.sponsor-contact a,
.footer-links a {
  transition: color 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.secondary-link:hover,
.sponsor-contact a:hover,
.footer-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta,
.cta-small,
.cta-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(151, 131, 255, 0.95), rgba(111, 90, 245, 0.92));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(111, 90, 245, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta:hover,
.cta-small:hover,
.cta-full:hover {
  transform: translateY(-1px);
}

.cta-small {
  min-height: 42px;
  padding: 0 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.menu-toggle span {
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  border-radius: 999px;
  background: #f4f4f7;
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  z-index: 40;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(9, 9, 15, 0.96);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  padding: 14px 10px;
  border-radius: 14px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-menu__header {
  justify-content: flex-start;
  padding-bottom: 6px;
  color: #fff;
}

.mobile-menu__mark {
  width: 34px;
  height: 34px;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 100px);
  display: grid;
  place-items: center;
  padding: 72px 0 56px;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 40px;
}

.rift {
  position: absolute;
  inset: auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 120, 255, 0.18), transparent 58%);
  filter: blur(4px);
  animation: drift 15s ease-in-out infinite alternate;
}

.rift-one {
  width: 68vw;
  height: 68vw;
  top: -28vw;
  left: -16vw;
}

.rift-two {
  width: 54vw;
  height: 54vw;
  right: -18vw;
  bottom: -22vw;
  animation-duration: 19s;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.04) 48%, transparent 52%);
  background-size: 100% 180px;
  mix-blend-mode: screen;
  opacity: 0.12;
  animation: scan 12s linear infinite;
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(236, 232, 255, 0.9);
  box-shadow: 0 0 16px rgba(143, 120, 255, 0.5);
  animation: floatUp linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.hero-brand-lockup {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 28px 60px rgba(0, 0, 0, 0.28);
}

.hero-logo {
  width: 62px;
  height: 62px;
}

.eyebrow {
  margin: 0;
  color: #c9c2ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.4);
}

.tagline {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #f0eff9;
}

.hero-copy,
.section-heading p,
.feature-card p,
.sponsor-contact,
.discord-card p,
.footer-brand p,
.countdown-date {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.secondary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #d8d8e4;
}

.countdown-card {
  width: min(720px, 100%);
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.countdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.countdown-label {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

.countdown-grid div,
.sponsor-card,
.feature-card,
.division-card,
.discord-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.countdown-grid div {
  padding: 14px 12px;
  text-align: center;
}

.countdown-grid strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.discord-card h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

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

.division-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.division-card::before,
.feature-card::before,
.sponsor-card::before,
.discord-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(143, 120, 255, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.division-card:hover,
.feature-card:hover,
.sponsor-card:hover,
.discord-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 120, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(143, 120, 255, 0.08);
}

.division-card:hover::before,
.feature-card:hover::before,
.sponsor-card:hover::before,
.discord-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #ece8ff;
  background: var(--accent-soft);
  border: 1px solid rgba(143, 120, 255, 0.22);
}

.card-top {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.card-top p,
.feature-card p,
.discord-card p,
.footer-brand p,
.sponsor-contact {
  margin: 0;
}

.card-top h3 {
  font-size: 1.34rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #dedee8;
  font-size: 0.9rem;
}

.feature-band {
  padding-top: 92px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  min-height: 172px;
}

.feature-index {
  display: inline-flex;
  margin-bottom: 22px;
  color: rgba(214, 215, 222, 0.72);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.sponsors {
  padding-top: 92px;
}

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

.sponsor-card {
  position: relative;
  min-height: 136px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(240, 240, 248, 0.78);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sponsor-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.sponsor-contact a {
  color: #fff;
  font-weight: 700;
}

.discord-cta {
  padding-top: 92px;
  padding-bottom: 28px;
}

.discord-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  justify-items: start;
  gap: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(143, 120, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  max-width: 420px;
}

.footer-mark {
  width: 42px;
  height: 42px;
}

.footer-brand strong {
  display: block;
  font-size: 0.82rem;
}

.footer-brand p {
  margin-top: 5px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.footer-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-divider {
  width: min(var(--max), calc(100% - 32px));
  height: 1px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, rgba(143, 120, 255, 0.48), rgba(255, 255, 255, 0.16), transparent);
  box-shadow: 0 0 18px rgba(143, 120, 255, 0.2);
}

.copyright {
  width: min(var(--max), calc(100% - 32px));
  margin: 10px auto 0;
  padding-bottom: 28px;
  color: rgba(167, 168, 181, 0.82);
  font-size: 0.86rem;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  gap: 18px;
  background: #050509;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(143, 120, 255, 0.72);
  border-right-color: rgba(143, 120, 255, 0.28);
  animation: spin 1.2s linear infinite;
}

.loader-logo {
  position: relative;
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 18px rgba(143, 120, 255, 0.22));
}

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

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, 14px, 0) scale(1.06);
  }
}

@keyframes floatUp {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  to {
    transform: translateY(-130vh);
    opacity: 0;
  }
}

@keyframes scan {
  from {
    transform: translateY(-18%);
  }
  to {
    transform: translateY(18%);
  }
}

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

@media (max-width: 1080px) {
  .nav-links,
  .cta-small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

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

@media (max-width: 720px) {
  .navbar {
    width: min(var(--max), calc(100% - 20px));
    padding: 14px 16px;
  }

  .brand-copy,
  .countdown-date,
  .footer-brand p {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-content {
    gap: 14px;
  }

  .hero-brand-lockup {
    width: 82px;
    height: 82px;
  }

  .hero-logo {
    width: 54px;
    height: 54px;
  }

  .countdown-head,
  .sponsor-contact,
  .footer,
  .countdown-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .countdown-grid {
    display: grid;
  }

  .division-grid,
  .feature-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .section,
  .footer,
  .footer-divider,
  .copyright {
    width: min(var(--max), calc(100% - 20px));
  }

  .countdown-card,
  .division-card,
  .feature-card,
  .sponsor-card,
  .discord-card {
    border-radius: 20px;
  }

  .hero-actions {
    width: 100%;
  }
}