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

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at center, rgba(0, 255, 255, 0.15), transparent 35%),
    linear-gradient(135deg, #030712, #020617);
  color: #ffffff;
  overflow: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.glitch-wrapper {
  width: 100%;
  text-align: center;
}

.glitch {
  position: relative;
  display: inline-block;
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.35),
    0 0 30px rgba(0, 255, 255, 0.25);
  animation: text-flicker 2.4s infinite linear;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.glitch::before {
  left: 3px;
  text-shadow: -3px 0 #00ffff;
  animation: glitch-top 1.2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -3px;
  text-shadow: 3px 0 #ff005d;
  animation: glitch-bottom 1.1s infinite linear alternate-reverse;
}

.subtitle {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  animation: subtitle-glow 2s infinite ease-in-out;
  transition: 0.25s ease;
}

.subtitle i {
  font-size: 1.15em;
}

.subtitle:hover {
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 0, 93, 0.5);
  transform: translateY(-2px);
}

/* Marquee */
.marquee {
  width: min(900px, 100%);
  margin: 34px auto 0;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right,
      transparent,
      black 12%,
      black 88%,
      transparent);
  -webkit-mask-image: linear-gradient(to right,
      transparent,
      black 12%,
      black 88%,
      transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  animation: marquee-move 16s linear infinite;
}

.marquee-track span {
  flex: 0 0 auto;
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.18);
}

@keyframes marquee-move {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes glitch-top {
  0% {
    clip-path: inset(0 0 82% 0);
    transform: translate(-2px, -2px);
  }

  20% {
    clip-path: inset(18% 0 58% 0);
    transform: translate(3px, 1px);
  }

  40% {
    clip-path: inset(45% 0 38% 0);
    transform: translate(-4px, 0);
  }

  60% {
    clip-path: inset(62% 0 22% 0);
    transform: translate(4px, -1px);
  }

  80% {
    clip-path: inset(10% 0 74% 0);
    transform: translate(-3px, 2px);
  }

  100% {
    clip-path: inset(72% 0 8% 0);
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-bottom {
  0% {
    clip-path: inset(78% 0 0 0);
    transform: translate(2px, 2px);
  }

  20% {
    clip-path: inset(52% 0 28% 0);
    transform: translate(-3px, 0);
  }

  40% {
    clip-path: inset(26% 0 52% 0);
    transform: translate(4px, 1px);
  }

  60% {
    clip-path: inset(8% 0 76% 0);
    transform: translate(-4px, -1px);
  }

  80% {
    clip-path: inset(64% 0 20% 0);
    transform: translate(3px, 2px);
  }

  100% {
    clip-path: inset(40% 0 42% 0);
    transform: translate(-2px, 1px);
  }
}

@keyframes text-flicker {

  0%,
  100% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  93% {
    opacity: 0.6;
  }

  94% {
    opacity: 1;
  }

  96% {
    opacity: 0.75;
  }

  98% {
    opacity: 1;
  }
}

@keyframes subtitle-glow {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Responsive mobile */
@media (max-width: 640px) {
  .page {
    padding: 16px;
  }

  .glitch {
    font-size: clamp(24px, 10vw, 42px);
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .subtitle {
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .marquee {
    margin-top: 28px;
  }

  .marquee-track {
    gap: 28px;
    animation-duration: 13s;
  }

  .marquee-track span {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .glitch {
    font-size: clamp(22px, 9vw, 34px);
    letter-spacing: 0.02em;
  }

  .subtitle {
    font-size: 12px;
  }

  .marquee-track {
    gap: 24px;
  }

  .marquee-track span {
    font-size: 11px;
  }
}