:root {
  --bg: #05060b;
  --bg-soft: rgba(10, 14, 30, 0.72);
  --text: #f5f7ff;
  --muted: #adb5d1;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #45a3ff;
  --violet: #8b5cf6;
  --indigo: #2637ff;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, #05070b 0%, #080a12 24%, #0b0b18 48%, #121028 76%, #171033 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  position: relative;
}

.background-gradient,
.background-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background-gradient {
  filter: blur(96px);
  opacity: 1;
  transform: translateZ(0);
}

.background-gradient-top {
  background:
    radial-gradient(circle at 14% 16%, rgba(36, 160, 255, 0.92), transparent 0 38vw),
    radial-gradient(circle at 82% 12%, rgba(138, 66, 255, 0.94), transparent 0 34vw),
    radial-gradient(circle at 66% 18%, rgba(255, 76, 182, 0.62), transparent 0 26vw),
    radial-gradient(circle at 48% 46%, rgba(92, 124, 255, 0.58), transparent 0 42vw),
    linear-gradient(120deg, rgba(48, 38, 136, 0.42), rgba(42, 56, 152, 0.5));
  background-size: 160% 160%, 155% 155%, 145% 145%, 150% 150%, 125% 125%;
  animation: driftGradient 12s ease-in-out infinite;
}

.background-gradient-bottom {
  background:
    radial-gradient(circle at 72% 76%, rgba(68, 132, 255, 0.82), transparent 0 36vw),
    radial-gradient(circle at 24% 86%, rgba(192, 78, 255, 0.74), transparent 0 32vw),
    radial-gradient(circle at 40% 78%, rgba(255, 88, 188, 0.54), transparent 0 26vw),
    radial-gradient(circle at 52% 62%, rgba(122, 64, 255, 0.56), transparent 0 38vw),
    radial-gradient(circle at 52% 108%, rgba(70, 138, 255, 0.88), transparent 0 50vw),
    radial-gradient(circle at 14% 110%, rgba(176, 82, 255, 0.66), transparent 0 38vw),
    radial-gradient(circle at 88% 108%, rgba(255, 86, 170, 0.42), transparent 0 30vw),
    radial-gradient(circle at 88% 106%, rgba(58, 154, 255, 0.62), transparent 0 38vw),
    radial-gradient(circle at 50% 118%, rgba(120, 84, 255, 0.9), transparent 0 56vw),
    radial-gradient(circle at 28% 118%, rgba(255, 94, 182, 0.58), transparent 0 36vw),
    radial-gradient(circle at 74% 118%, rgba(70, 162, 255, 0.62), transparent 0 36vw),
    linear-gradient(180deg, transparent 0%, rgba(28, 16, 56, 0.34) 100%);
  background-size: 160% 160%, 160% 160%, 145% 145%, 150% 150%, 165% 165%, 150% 150%, 140% 140%, 150% 150%, 175% 175%, 150% 150%, 150% 150%, 125% 125%;
  animation: driftGradient 14s ease-in-out infinite reverse;
}

.background-mesh {
  background:
    radial-gradient(circle at 14% 28%, rgba(34, 176, 255, 0.62), transparent 0 28vw),
    radial-gradient(circle at 84% 24%, rgba(158, 82, 255, 0.62), transparent 0 28vw),
    radial-gradient(circle at 70% 26%, rgba(255, 92, 188, 0.42), transparent 0 22vw),
    radial-gradient(circle at 50% 52%, rgba(108, 110, 255, 0.38), transparent 0 26vw),
    radial-gradient(circle at 22% 102%, rgba(150, 76, 255, 0.68), transparent 0 32vw),
    radial-gradient(circle at 80% 102%, rgba(255, 88, 176, 0.4), transparent 0 24vw),
    radial-gradient(circle at 82% 100%, rgba(60, 148, 255, 0.68), transparent 0 32vw),
    radial-gradient(circle at 50% 112%, rgba(112, 74, 226, 0.94), transparent 0 44vw),
    radial-gradient(circle at 50% 122%, rgba(138, 76, 255, 0.92), transparent 0 58vw),
    radial-gradient(circle at 22% 122%, rgba(255, 94, 188, 0.52), transparent 0 34vw),
    radial-gradient(circle at 78% 122%, rgba(68, 162, 255, 0.56), transparent 0 34vw);
  opacity: 1;
  background-size: 160% 160%, 160% 160%, 140% 140%, 145% 145%, 150% 150%, 135% 135%, 150% 150%, 130% 130%, 180% 180%, 145% 145%, 145% 145%;
  animation: meshShift 10s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.cta-grid {
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  justify-content: center;
}

.hero-card {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(86, 70, 190, 0.08), rgba(54, 112, 255, 0.06)),
    rgba(5, 7, 14, 0.68);
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-card {
  width: min(100%, 1100px);
}

.hero-cta-card {
  width: 100%;
  min-height: 100%;
  padding: clamp(1.4rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(124, 72, 255, 0.1), rgba(62, 136, 255, 0.08)),
    rgba(5, 7, 14, 0.74);
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #aeb9d9;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-wrap: balance;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(234, 240, 255, 0.98) 0%, rgba(119, 146, 255, 0.92) 32%, rgba(126, 82, 255, 0.95) 60%, rgba(54, 126, 255, 0.9) 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(84, 109, 255, 0.16);
  filter: drop-shadow(0 0 22px rgba(67, 88, 210, 0.16));
  animation: titleShift 8s ease-in-out infinite;
}

.title-subtitle {
  width: min(100%, 40rem);
  margin: 1.15rem auto 0;
  color: #b8c1dc;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  text-align: center;
}

.subtitle {
  width: min(100%, 42rem);
  margin: 0 auto;
  color: #9ca7c2;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.subtitle-secondary {
  margin-top: 0.35rem;
  color: #c2c9df;
  font-size: 0.96rem;
}

.discord-button {
  width: fit-content;
  margin: 2rem auto 0;
  padding: 1rem 1.4rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  background:
    linear-gradient(135deg, rgba(124, 78, 255, 0.34), rgba(54, 126, 255, 0.3)),
    rgba(16, 20, 34, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(138, 157, 255, 0.24);
  box-shadow:
    0 12px 30px rgba(34, 49, 104, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 280ms ease, box-shadow 1200ms ease, filter 1200ms ease;
  align-self: center;
  position: relative;
  isolation: isolate;
  cursor: pointer;
}

.discord-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(148, 154, 255, 0.14),
    0 22px 46px rgba(40, 58, 122, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  filter: saturate(1.2);
}

.discord-button::before {
  content: "";
  position: absolute;
  inset: -20px -26px;
  border-radius: 28px;
  background: radial-gradient(ellipse at center, rgba(126, 84, 255, 0.28) 0%, rgba(84, 112, 255, 0.24) 34%, rgba(62, 138, 255, 0.2) 56%, transparent 78%);
  filter: blur(24px);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1400ms ease, transform 1400ms ease;
  z-index: -1;
  pointer-events: none;
}

.discord-button:hover::before {
  opacity: 1;
  transform: scale(1);
}

.minecraft-button::before {
  inset: -16px -20px;
  background: radial-gradient(ellipse at center, rgba(134, 228, 92, 0.44) 0%, rgba(96, 204, 88, 0.38) 32%, rgba(118, 88, 52, 0.16) 58%, rgba(74, 138, 68, 0.18) 70%, transparent 82%);
  filter: blur(18px);
}

.minecraft-button:hover {
  box-shadow:
    0 0 0 1px rgba(154, 200, 118, 0.18),
    0 14px 30px rgba(52, 108, 54, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.copy-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(96, 214, 136, 0.34);
  background:
    linear-gradient(135deg, rgba(72, 214, 132, 0.22), rgba(36, 136, 84, 0.14)),
    rgba(8, 30, 18, 0.84);
  color: #d8ffe8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(72, 214, 132, 0.18),
    inset 0 1px 0 rgba(220, 255, 232, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate3d(0, -18px, 0) scale(0.96);
  pointer-events: none;
  transition: opacity 300ms ease, transform 420ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.copy-toast-check {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, rgba(74, 220, 138, 0.26), rgba(44, 160, 98, 0.18));
  border: 1px solid rgba(118, 236, 164, 0.34);
  box-shadow:
    0 0 18px rgba(72, 214, 132, 0.2),
    inset 0 1px 0 rgba(230, 255, 238, 0.12);
}

.copy-toast-check::before {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.18rem;
  width: 0.32rem;
  height: 0.62rem;
  border-right: 2px solid #d8ffe8;
  border-bottom: 2px solid #d8ffe8;
  transform: rotate(45deg) scale(0.6);
  transform-origin: center;
  opacity: 0;
}

.copy-toast.is-visible .copy-toast-check::before {
  animation: toastCheck 420ms ease 120ms forwards;
}

.discord-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.discord-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

@keyframes driftGradient {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 0%, 100% 0%, 74% 12%, 50% 48%, 50% 100%, 0% 100%, 88% 96%, 100% 100%, 50% 116%, 24% 118%, 76% 118%, 50% 50%;
  }

  50% {
    transform: translate3d(0, 22px, 0) scale(1.12);
    background-position: 20% 20%, 78% 20%, 62% 18%, 58% 40%, 52% 92%, 12% 96%, 82% 88%, 92% 92%, 48% 108%, 20% 112%, 80% 112%, 54% 46%;
  }
}

@keyframes meshShift {
  0%, 100% {
    background-position: 0% 0%, 100% 0%, 74% 16%, 50% 50%, 12% 92%, 82% 92%, 88% 94%, 50% 100%, 50% 118%, 20% 120%, 80% 120%;
  }

  50% {
    background-position: 16% 18%, 84% 14%, 66% 24%, 54% 42%, 22% 86%, 74% 86%, 78% 88%, 44% 88%, 46% 108%, 24% 112%, 76% 112%;
  }
}

@keyframes titleShift {
  0%, 100% {
    background-position: 0% 50%;
    text-shadow: 0 0 28px rgba(84, 109, 255, 0.16);
  }

  50% {
    background-position: 100% 50%;
    text-shadow: 0 0 40px rgba(117, 91, 255, 0.28);
  }
}

@keyframes toastCheck {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0.2);
  }

  60% {
    opacity: 1;
    transform: rotate(45deg) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    border-radius: 24px;
  }

  .subtitle {
    line-height: 1.6;
  }

  .discord-button {
    width: 100%;
    justify-content: center;
  }

  .copy-toast {
    top: 16px;
    right: 16px;
    left: 16px;
  }
}

@media (min-width: 1600px) {
  .background-gradient {
    filter: blur(120px);
  }

  .background-gradient-top {
    background-size: 170% 170%, 170% 170%, 160% 160%, 130% 130%;
  }

  .background-gradient-bottom {
    background-size: 175% 175%, 175% 175%, 165% 165%, 170% 170%, 180% 180%, 165% 165%, 155% 155%, 165% 165%, 190% 190%, 165% 165%, 165% 165%, 130% 130%;
  }

  .background-mesh {
    background-size: 170% 170%, 170% 170%, 150% 150%, 155% 155%, 160% 160%, 145% 145%, 160% 160%, 145% 145%, 195% 195%, 160% 160%, 160% 160%;
  }
}
