:root {
  --pink: #be62ca;
  --teal: #35bea0;
  --teal2: #1e676d;
  --glass: rgba(255, 255, 255, 0.05);
  --dark1: #0a2d47;
  --dark2: #214f69;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  height: 100vh;
  /* overflow: hidden; */
  color: white;

  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(190, 98, 202, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(53, 190, 160, 0.12),
      transparent 50%
    ),
    radial-gradient(circle at 50% 50%, var(--dark1), var(--dark2));

  animation: nebulaShift 20s ease-in-out infinite alternate;
}

/* Canvas stars */
#stars {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Center container */
.container {
  position: relative;
  z-index: 2;

  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;

  align-items: center;
  text-align: center;

  padding: 0 24px;

  transform: translateY(-10px); /* subtle optical centering */
}

/* Title */
.title-top {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 3px;
  opacity: 0.75;
  margin-bottom: 6px;
}

.title-main {
  display: block;
  font-family: "Audiowide", cursive;
  font-size: 4rem;
  letter-spacing: 2px;
  line-height: 1.1;

  text-shadow:
    0 0 10px var(--pink),
    0 0 20px var(--pink),
    0 0 40px var(--teal);
  animation: glowPulse 6s infinite alternate;
}

.subtitle {
  margin: 28px 0 6px 0;
  font-size: 1.3rem;
  opacity: 0.7;
  max-width: 420px;
  line-height: 1.5;
}

/* Button */
.cta {
  margin-top: 6px;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  font-family: "Audiowide", cursive;
  background: linear-gradient(45deg, var(--pink), var(--teal));
  position: relative;
  z-index: 1;
  overflow: hidden;

  box-shadow:
    0 0 20px var(--pink),
    0 0 30px var(--pink),
    0 0 40px var(--teal);
  /* animation: glowPulse2 8s infinite alternate; */

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
.cta::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;

  background: radial-gradient(
    circle,
    rgba(190, 98, 202, 0.6),
    rgba(53, 190, 160, 0.4),
    transparent 70%
  );

  filter: blur(20px);
  opacity: 0.6;

  z-index: -1;

  animation: glowPulseSmooth 6s ease-in-out infinite;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,

    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );

  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 25px var(--pink);
}

.cta:hover::before {
  transform: translateX(120%);
}

/* Animations */
@keyframes glowPulse {
  from {
    text-shadow:
      0 0 5px var(--pink),
      0 0 10px var(--pink),
      0 0 20px var(--teal);
  }
  to {
    text-shadow:
      0 0 20px var(--pink),
      0 0 40px var(--pink),
      0 0 40px var(--teal);
  }
}
@keyframes glowPulseSmooth {
  0% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
}

@keyframes nebulaShift {
  0% {
    background-position:
      0% 0%,
      100% 100%,
      center;
  }
  100% {
    background-position:
      20% 10%,
      80% 90%,
      center;
  }
}

/* Screen Sizing */
@media (max-width: 1024px) {
  .title-main {
    font-size: 2.8rem;
  }

  .subtitle {
    max-width: 360px;
  }

  .container {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .title-main {
    font-size: 2.3rem;
  }

  .title-top {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .subtitle {
    font-size: 0.95rem;
    max-width: 400px;
  }

  .cta {
    padding: 10px 28px;
    font-size: 1.2rem;
    letter-spacing: 1.2px;
  }

  .container {
    padding: 0 16px;
    transform: translateY(0px);
  }
}

@media (max-width: 420px) {
  .title-main {
    font-size: 2rem;
  }

  .title-top {
    font-size: 0.9rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .cta {
    /* width: 100%; */
    max-width: 260px;
    text-align: center;
  }
}

@media (hover: none) {
  .cta:hover {
    transform: none;
    box-shadow: 0 0 10px rgba(53, 190, 160, 0.4);
  }

  /* .cta::before {
    display: none;
  } */
}
