:root {
  color-scheme: dark;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  --bg-primary: #04050a;
  --bg-secondary: #0d0f1c;
  --text-primary: #f3f4ff;
  --text-muted: #a4a7c7;
  --accent: #7b61ff;
  --accent-strong: #5af0ff;
  --support: #ff9d5a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(91, 64, 255, 0.35), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(90, 240, 255, 0.25), transparent 40%),
    var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, rgba(123, 97, 255, 0.12), rgba(90, 240, 255, 0.08));
  pointer-events: none;
  opacity: 0.65;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite;
}

.orb-one {
  top: -100px;
  left: -120px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.7), transparent 70%);
}

.orb-two {
  bottom: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(90, 240, 255, 0.65), transparent 70%);
  animation-delay: 4s;
}

.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
  top: var(--top, 0%);
  left: var(--left, 0%);
  animation: particleFloat var(--duration, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeUp 1.2s ease forwards;
}

.badge {
  align-self: center;
  margin: 0 auto;
  padding: 0.65rem 2.4rem;
  border-radius: 999px;
  position: relative;
  display: inline-flex;
  justify-content: center;
  letter-spacing: 0.38em;
  font-size: 0.82rem;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  color: #eef8ff;
  background: rgba(4, 5, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 22px rgba(123, 97, 255, 0.35), inset 0 0 6px rgba(90, 240, 255, 0.35),
    0 25px 45px rgba(6, 9, 30, 0.5);
  animation: badgeFloat 5.5s ease-in-out infinite;
}

.badge::before {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: inherit;
  background: conic-gradient(
      from 0deg,
      rgba(123, 97, 255, 0.4),
      rgba(90, 240, 255, 0.85),
      rgba(255, 214, 165, 0.85),
      rgba(123, 97, 255, 0.4)
    )
    border-box;
  animation: badgeSpin 7s linear infinite;
  filter: blur(4px);
  opacity: 0.9;
  mask: radial-gradient(farthest-side, transparent calc(50% - 3px), #000 calc(50% - 1px), #000 100%);
  z-index: 0;
}

.badge::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(5, 6, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 25px rgba(123, 97, 255, 0.45), inset 0 0 8px rgba(90, 240, 255, 0.45),
    0 0 25px rgba(90, 240, 255, 0.35);
  z-index: 1;
  pointer-events: none;
}

.badge span {
  position: relative;
  z-index: 2;
  background-image: linear-gradient(120deg, #5af0ff, #7b61ff, #f8d7ff, #5af0ff);
  background-size: 240% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: badgeTextGlow 2.8s linear infinite;
}

.badge span::after {
  content: "";
  position: absolute;
  top: 0;
  left: -25%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: translateX(-120%) skewX(-15deg);
  animation: badgeSweep 3.6s ease-in-out infinite;
  opacity: 0.8;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  background-image: linear-gradient(120deg, #ffffff, #7f7f7f, #ffffff);
  background-size: 320% 100%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: eyebrowShift 3.4s linear infinite;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.15;
}

.lede {
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  box-shadow: 0 0 25px rgba(123, 97, 255, 0.35);
  overflow: hidden;
}

.cta-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(123, 97, 255, 0.4);
}

.cta-button:hover::after,
.cta-button:focus-visible::after {
  opacity: 1;
}

.cta-button .icon {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
}

.cta-button .icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.cta-button .icon i {
  font-size: 1.35rem;
  line-height: 1;
  color: currentColor;
}

.cta-discord {
  align-self: center;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #05060a;
  box-shadow: 0 15px 40px rgba(90, 240, 255, 0.35);
}

.cta-momo {
  background: linear-gradient(120deg, rgba(255, 157, 90, 0.9), rgba(255, 225, 168, 0.95));
  color: #2b1300;
  box-shadow: 0 12px 35px rgba(255, 157, 90, 0.45);
}

.support {
  width: 100%;
  margin-top: 5rem;
}

.support-card {
  margin: 0 auto;
  max-width: 860px;
  padding: 2.5rem;
  border-radius: 32px;
  background: rgba(13, 15, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.support-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.support-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(255, 157, 90, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  animation: pulse 3.5s ease-in-out infinite;
}

.support-icon i {
  font-size: 2.6rem;
  color: var(--support);
  line-height: 1;
}

.support-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.support h2 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.support-copy {
  margin: 0;
  color: var(--text-muted);
}

.footer {
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@keyframes badgeSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes badgeTextGlow {
  0% {
    background-position: 0% 50%;
    text-shadow: 0 0 6px rgba(90, 240, 255, 0.35);
  }
  50% {
    background-position: 100% 50%;
    text-shadow: 0 0 12px rgba(123, 97, 255, 0.5);
  }
  100% {
    background-position: 0% 50%;
    text-shadow: 0 0 6px rgba(90, 240, 255, 0.35);
  }
}

@keyframes badgeSweep {
  0% {
    transform: translateX(-150%) skewX(-15deg);
    opacity: 0;
  }
  35% {
    opacity: 0.9;
  }
  60% {
    transform: translateX(120%) skewX(-15deg);
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-15deg);
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes eyebrowShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, -30px, 0) scale(1.1);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--dx, 20px), var(--dy, -80px), 0) scale(1.1);
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 25px rgba(255, 157, 90, 0.2);
  }
  50% {
    box-shadow: 0 0 45px rgba(255, 157, 90, 0.45);
  }
}

@media (max-width: 900px) {
  .support-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .support-icon {
    margin: 0 auto;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding-top: 3rem;
  }

  .support-card {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
