:root {
  color-scheme: dark;
  --bg-base: #05070f;
  --bg-accent: #0f172a;
  --bg-highlight: rgba(79, 209, 197, 0.35);
  --text-primary: #f8fbff;
  --text-muted: rgba(248, 251, 255, 0.72);
  --discord: #5865f2;
  --button-bg: rgba(88, 101, 242, 0.15);
  --button-border: rgba(88, 101, 242, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.background {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at var(--cursorX, 50%) var(--cursorY, 50%), var(--bg-highlight), transparent 65%),
    radial-gradient(120% 120% at 10% 10%, rgba(89, 66, 255, 0.4), transparent),
    radial-gradient(140% 140% at 90% 20%, rgba(0, 186, 255, 0.25), transparent),
    linear-gradient(135deg, #0b1224, #04070f 55%, #111d3f 120%);
  filter: saturate(130%);
  animation: gradientShift 12s ease-in-out infinite;
  transform: translateZ(0);
  z-index: 1;
}

@keyframes gradientShift {
  0% {
    transform: scale(1.05) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(1deg);
  }
  100% {
    transform: scale(1.05) rotate(0deg);
  }
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--cursorX, 50%) var(--cursorY, 50%),
    rgba(255, 255, 255, 0.07),
    transparent 45%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.hero {
  position: relative;
  z-index: 3;
  width: min(640px, 90vw);
  padding: 3.5rem 3rem;
  border-radius: 36px;
  backdrop-filter: blur(22px) saturate(140%);
  background: linear-gradient(135deg, rgba(13, 19, 35, 0.82), rgba(7, 11, 23, 0.7));
  border: 1px solid rgba(148, 163, 255, 0.2);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo-wrapper {
  width: min(220px, 60vw);
}

.logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.45));
}

.headline {
  font-size: clamp(2.1rem, 2vw + 1.7rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

.tagline {
  margin: 0;
  line-height: 1.6;
  font-size: clamp(1rem, 0.7vw + 0.9rem, 1.1rem);
  color: var(--text-muted);
  max-width: 32ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.button-discord {
  color: #fff;
  background: linear-gradient(135deg, var(--discord), rgba(88, 101, 242, 0.8));
  box-shadow: 0 16px 30px rgba(88, 101, 242, 0.35);
}

.button-discord::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--cursorX, 50%) var(--cursorY, 50%), rgba(255, 255, 255, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button-discord:hover::after,
.button-discord:focus-visible::after {
  opacity: 1;
}

.button-outline {
  color: var(--text-primary);
  border: 1px solid var(--button-border);
  background-color: rgba(15, 23, 42, 0.65);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
}

.button-outline:hover,
.button-outline:focus-visible {
  background-color: rgba(24, 35, 65, 0.9);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.icon {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
}

.icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 540px) {
  .hero {
    padding: 2.5rem 1.9rem;
    border-radius: 28px;
    gap: 1.25rem;
  }

  .actions {
    gap: 0.75rem;
  }

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