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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --accent-green: #22c55e;
  --accent-green-glow: rgba(34, 197, 94, 0.4);
  --discord-blue: #5865F2;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(ellipse at center top, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(34, 197, 94, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1.5rem;
}

.play-button {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--accent-green-glow));
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px var(--accent-green-glow));
  }
  50% {
    filter: drop-shadow(0 0 35px var(--accent-green-glow));
  }
}

.play-button:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 40px var(--accent-green-glow));
  animation: none;
}

.group-name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  text-shadow: 0 0 20px var(--accent-green-glow);
}

.tagline {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: -0.5rem;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--discord-blue);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(88, 101, 242, 0.7);
}

.brand-icon {
  width: 24px;
  height: 24px;
}

.discord-btn .brand-icon {
  filter: brightness(0) invert(1);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  padding: 8px;
}

.social-link:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.1);
}

.social-link .brand-icon {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.social-link:hover .brand-icon {
  opacity: 1;
}

/* Tooltip styles for social icons */
.social-link {
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 10px) scale(0.96);
  background: rgba(8, 10, 14, 0.92); /* stronger contrast for readability */
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms cubic-bezier(.2,.9,.2,1), transform 160ms cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  z-index: 10;
}

/* arrow */
.tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: inherit;
  transform-origin: center;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: inherit;
}

.social-link:focus-within .tooltip,
.social-link:hover .tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

/* On wider screens, position tooltip to the left of the icon for compact vertical spacing */
@media (min-width: 600px) {
  .tooltip {
    left: auto;
    right: 100%;
    bottom: auto;
    top: 50%;
    transform: translate(10px, -50%) scale(0.96);
  }

  .tooltip::after {
    left: auto;
    right: -6px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(45deg);
  }

  .social-link:focus-within .tooltip,
  .social-link:hover .tooltip {
    transform: translate(0, -50%) scale(1);
  }
}

@media (max-width: 480px) {
  .play-button {
    width: 100px;
    height: 100px;
  }

  .group-name {
    font-size: 1.75rem;
    letter-spacing: 0.2em;
  }

  .discord-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-button {
    animation: none;
  }

  .play-button:hover {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
