@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&display=swap');

:root {
  --bg1: #050505;
  --bg2: #1a0015;
  --bg3: #001018;
  --text: #f3f3f3;
  --accent: #ff003c;
  --accent2: #45d1ff;
  --accent3: #9dff6e;
  --carrot: #ff8000;
}

/* Full-screen animated gradient */
html, body {
  margin: 0;
  height: 100%;
  font-family: 'Unbounded', system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3));
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  display: grid;
  place-items: center;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Content */
main {
  width: min(92vw, 480px);
  text-align: center;
  padding: 2rem;
}

/* Wordmark */
.wordmark {
  margin: 0 0 0.6rem 0;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 3.5rem);
  position: relative;
  color: var(--text);
  text-shadow:
    0 0 10px var(--accent),
    0 0 20px rgba(255, 0, 60, 0.4),
    0 0 30px rgba(255, 0, 60, 0.2);
  animation: glowPulse 2.5s infinite alternate ease-in-out;
}

/* Glitch overlays (stronger, more visible shake) */
.wordmark::before,
.wordmark::after {
  content: attr(aria-label);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.4; /* slightly higher for visibility */
}

.wordmark::before {
  color: var(--accent2);
  transform: translate(2px, 0);
  text-shadow: -2px 0 var(--accent2);
  animation: glitchX 1.2s infinite steps(2, end);
}

.wordmark::after {
  color: var(--accent3);
  transform: translate(-2px, 0);
  text-shadow: 2px 0 var(--accent3);
  animation: glitchY 1.5s infinite steps(2, end);
}

/* Glowing pulse stays but tighter cycle for more life */
@keyframes glowPulse {
  0% {
    text-shadow:
      0 0 8px var(--accent),
      0 0 16px rgba(255, 0, 60, 0.4),
      0 0 24px rgba(255, 0, 60, 0.25);
  }
  100% {
    text-shadow:
      0 0 16px var(--accent),
      0 0 32px rgba(255, 0, 60, 0.6),
      0 0 48px rgba(255, 0, 60, 0.35);
  }
}

/* Glitch shakes — more movement */
@keyframes glitchX {
  0%, 100% { transform: translate(2px, 0); }
  50%      { transform: translate(-3px, 0); }
}
@keyframes glitchY {
  0%, 100% { transform: translate(-2px, 0); }
  50%      { transform: translate(3px, 0); }
}


.tagline {
  margin: 0 0 2rem 0;
  color: #a9a9a9;
  font-style: italic;
}

/* Links */
.links a {
  display: block;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  margin: 0.55rem 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 150ms ease, background 250ms ease, box-shadow 250ms ease;
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.35);
}
.links a:hover,
.links a:focus-visible {
  background: #ff2c63;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 0, 60, 0.55);
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    background-size: cover;
  }
  .wordmark,
  .carrot,
  .wordmark::before,
  .wordmark::after {
    animation: none !important;
  }
}
