:root {
  --bg-1: #040611;
  --bg-2: #080d1b;
  --panel: rgba(10, 14, 28, 0.56);
  --panel-border: rgba(167, 112, 255, 0.18);
  --text: #f3f4fb;
  --muted: #b9bfd8;
  --accent: #8c4dff;
  --accent-2: #bb7dff;
  --accent-3: #d3b4ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 18%, rgba(142, 66, 255, 0.14), transparent 20%),
    radial-gradient(circle at 80% 74%, rgba(167, 96, 255, 0.18), transparent 22%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
  position: relative;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.sky-glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.glow-left {
  left: -10rem;
  bottom: -10rem;
  background: radial-gradient(circle, rgba(143, 78, 255, 0.45), rgba(143, 78, 255, 0));
}

.glow-right {
  right: -10rem;
  top: -10rem;
  background: radial-gradient(circle, rgba(132, 64, 255, 0.28), rgba(132, 64, 255, 0));
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.card {
  width: min(92vw, 760px);
  padding: 3.2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 19, 37, 0.72), rgba(8, 11, 22, 0.58));
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: var(--accent-3);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(140, 77, 255, 0.12);
  border: 1px solid rgba(181, 123, 255, 0.16);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px rgba(168, 103, 255, 0.18);
}

p {
  margin: 1rem auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.7;
}

.discord-button {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.95rem 1.55rem;
  min-width: 220px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.02rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(135, 70, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.discord-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(135, 70, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: brightness(1.04);
}

.discord-button:active {
  transform: translateY(0);
}

.discord-button svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

.shooting-stars {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.shooting-star {
  position: absolute;
  width: 140px;
  height: 2px;
  border-radius: 999px;
  transform: rotate(-35deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(208, 175, 255, 0.55), rgba(172, 101, 255, 0.98));
  box-shadow: 0 0 12px rgba(177, 111, 255, 0.65), 0 0 20px rgba(131, 82, 255, 0.35);
  opacity: 0;
}

.shooting-star::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(201, 168, 255, 0.96) 45%, rgba(149, 86, 255, 0.35) 75%, rgba(149, 86, 255, 0) 100%);
  box-shadow: 0 0 14px rgba(191, 132, 255, 0.9);
}

.s1 { top: 16%; left: 10%; animation: shoot 7s linear infinite; animation-delay: 0s; }
.s2 { top: 28%; left: 72%; animation: shoot 8.5s linear infinite; animation-delay: 1.3s; }
.s3 { top: 60%; left: 78%; animation: shoot 9s linear infinite; animation-delay: 2.5s; }
.s4 { top: 70%; left: 28%; animation: shoot 8s linear infinite; animation-delay: 4.2s; }
.s5 { top: 38%; left: 46%; animation: shoot 10s linear infinite; animation-delay: 5.4s; }
.s6 { top: 10%; left: 82%; animation: shoot 7.5s linear infinite; animation-delay: 3.3s; }

@keyframes shoot {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-35deg) scaleX(0.45);
  }
  4% {
    opacity: 1;
  }
  14% {
    opacity: 1;
    transform: translate3d(-260px, 220px, 0) rotate(-35deg) scaleX(1);
  }
  18%, 100% {
    opacity: 0;
    transform: translate3d(-380px, 320px, 0) rotate(-35deg) scaleX(1.05);
  }
}

@media (max-width: 700px) {
  .card {
    padding: 2.4rem 1.3rem;
    border-radius: 24px;
  }

  p br {
    display: none;
  }

  .discord-button {
    width: 100%;
    min-width: 0;
  }
}
