:root {
  --bg: #050505;
  --text: #f8f8ff;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.22);
  --rainbow: linear-gradient(
    90deg,
    #ff004f,
    #ff8a00,
    #ffec00,
    #14ff00,
    #00e5ff,
    #7b00ff,
    #ff00c8
  );
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 0.6px, transparent 0.6px);
  background-size: 2px 2px;
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(255, 0, 240, 0.28), transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear, background 0.25s ease;
}

.aurora {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 0;
  animation: swirl 18s linear infinite;
}

.aurora-a {
  width: 45vw;
  height: 45vw;
  top: -15vw;
  left: -10vw;
  background: rgba(255, 0, 128, 0.42);
}

.aurora-b {
  width: 40vw;
  height: 40vw;
  bottom: -15vw;
  right: -10vw;
  background: rgba(0, 238, 255, 0.4);
  animation-direction: reverse;
  animation-duration: 23s;
}

main {
  position: relative;
  z-index: 3;
  width: min(1200px, 92vw);
  margin: 0 auto 4rem;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  width: min(1200px, 92vw);
  margin: 1rem auto 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.logo {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
}

.hero {
  min-height: 74vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 0 2rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.2em;
  font-size: clamp(0.66rem, 1.3vw, 0.9rem);
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 11vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(255, 0, 230, 0.75),
    0 0 40px rgba(0, 245, 255, 0.62);
}

.subtitle {
  max-width: 72ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.96rem, 2.2vw, 1.2rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.btn {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.rainbow-btn {
  background: var(--rainbow);
  background-size: 220% 220%;
  animation: gradientShift 3s linear infinite;
  box-shadow: 0 0 24px rgba(255, 0, 179, 0.46);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 24px rgba(30, 226, 255, 0.58);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1rem 0 2rem;
}

.card {
  padding: 1.2rem;
  border-radius: 16px;
}

.card h2 {
  margin: 0 0 0.6rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.marquee-wrap {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  margin: 2rem 0;
}

.marquee {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  padding: 0.9rem 1.2rem;
  text-transform: uppercase;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.14em;
  animation: slide 17s linear infinite;
}

.marquee span {
  background: var(--rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 2.3s linear infinite;
}

.final {
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.final h2 {
  margin: 0 0 0.7rem;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

.final p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0, 238, 255, 0.13);
}

.neon-border {
  position: relative;
}

.neon-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  background: var(--rainbow);
  background-size: 300% 300%;
  filter: blur(10px);
  opacity: 0.45;
  animation: gradientShift 5s linear infinite;
}

.rainbow-text {
  background: var(--rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 2.8s linear infinite;
}

.pulse-btn {
  border: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--rainbow);
  background-size: 260% 260%;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  animation: gradientShift 2.7s linear infinite, pulse 1.7s ease-in-out infinite;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch::before {
  transform: translate(2px, 0);
  color: rgba(0, 247, 255, 0.9);
  mix-blend-mode: screen;
  animation: jitter 1.2s infinite steps(2);
}

.glitch::after {
  transform: translate(-2px, 0);
  color: rgba(255, 0, 183, 0.9);
  mix-blend-mode: screen;
  animation: jitter 1.4s infinite steps(2) reverse;
}

.float {
  animation: bob 3.2s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.chaos .title {
  animation: titleChaos 0.55s infinite;
}

.chaos {
  background: linear-gradient(
    120deg,
    #ff003c,
    #ff7a00,
    #fff100,
    #16ff00,
    #00e5ff,
    #3f00ff,
    #ff00d4
  );
  background-size: 450% 450%;
  animation: chaosRainbow 1.2s linear infinite;
}

.chaos .noise-overlay {
  opacity: 0.38;
}

.chaos .card,
.chaos .final,
.chaos .topbar {
  animation: tilt 0.22s infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(255, 0, 149, 0.45),
      0 0 28px rgba(0, 247, 255, 0.42);
  }
  50% {
    box-shadow:
      0 0 20px rgba(255, 0, 149, 0.9),
      0 0 40px rgba(0, 247, 255, 0.9);
  }
}

@keyframes jitter {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
  }
  25% {
    clip-path: inset(12% 0 67% 0);
  }
  50% {
    clip-path: inset(47% 0 24% 0);
  }
  75% {
    clip-path: inset(69% 0 4% 0);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-52%);
  }
}

@keyframes swirl {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(5vw, 3vw) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

@keyframes titleChaos {
  0% {
    transform: translate(0) rotate(0deg);
  }
  20% {
    transform: translate(-4px, 1px) rotate(-0.8deg);
  }
  40% {
    transform: translate(2px, -1px) rotate(0.7deg);
  }
  60% {
    transform: translate(-1px, 2px) rotate(-0.4deg);
  }
  80% {
    transform: translate(3px, -1px) rotate(0.5deg);
  }
  100% {
    transform: translate(0) rotate(0deg);
  }
}

@keyframes tilt {
  from {
    transform: rotate(-0.6deg);
  }
  to {
    transform: rotate(0.6deg);
  }
}

@keyframes chaosRainbow {
  0% {
    background-position: 0% 50%;
    filter: saturate(1.2) contrast(1.05);
  }
  25% {
    background-position: 100% 0%;
    filter: saturate(1.65) contrast(1.2);
  }
  50% {
    background-position: 100% 100%;
    filter: saturate(1.95) contrast(1.28);
  }
  75% {
    background-position: 0% 100%;
    filter: saturate(1.7) contrast(1.18);
  }
  100% {
    background-position: 0% 50%;
    filter: saturate(1.2) contrast(1.05);
  }
}

@media (max-width: 700px) {
  .topbar {
    position: static;
    margin-top: 0.8rem;
  }

  .hero {
    min-height: 60vh;
    padding-top: 2rem;
  }

  .pulse-btn {
    font-size: 0.74rem;
    padding: 0.64rem 0.86rem;
  }

  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cursor-glow {
    display: none;
  }
}
