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

body {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

/* Subtle red vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 40%, rgba(180, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Glitch number */
.glitch-wrapper {
  margin-bottom: 16px;
}

.glitch {
  font-size: clamp(100px, 20vw, 180px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  position: relative;
  display: inline-block;
  line-height: 1;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: transparent;
}

.glitch::before {
  color: #ff2020;
  animation: glitch-before 3s infinite steps(1);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  color: #00f0ff;
  animation: glitch-after 3s infinite steps(1);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-before {
  0%,  90%  { transform: translate(0, 0); opacity: 0; }
  91%        { transform: translate(-4px, -2px); opacity: 1; }
  93%        { transform: translate(4px, 0); opacity: 1; }
  95%        { transform: translate(0, 2px); opacity: 1; }
  96%, 100%  { transform: translate(0, 0); opacity: 0; }
}

@keyframes glitch-after {
  0%,  90%  { transform: translate(0, 0); opacity: 0; }
  91%        { transform: translate(4px, 2px); opacity: 1; }
  93%        { transform: translate(-4px, 0); opacity: 1; }
  95%        { transform: translate(0, -2px); opacity: 1; }
  96%, 100%  { transform: translate(0, 0); opacity: 0; }
}

/* Scanlines overlay */
.container::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.heading {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.subtext {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
