:root {
  --bg: #050505;
  --text: #e9e9e9;
  --muted: #7b7b7b;
  --ghost: rgba(255, 255, 255, 0.08);
  --pulse: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100%;
  background: radial-gradient(circle at center, #111 0%, var(--bg) 52%, #000 100%);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow: hidden;
}

.signal {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  isolation: isolate;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  z-index: -2;
  background-image:
    linear-gradient(var(--ghost) 1px, transparent 1px),
    linear-gradient(90deg, var(--ghost) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: drift 18s linear infinite;
}

.noise::after {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: staticNoise 0.75s steps(2) infinite;
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 4px,
    rgba(255, 255, 255, 0.025) 5px
  );
  mix-blend-mode: screen;
}

.terminal {
  width: min(920px, 100%);
  text-align: center;
  padding: clamp(2rem, 8vw, 6rem) 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.04), inset 0 0 45px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(2px);
}

.meta,
.footer-code {
  margin: 0;
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.glitch {
  position: relative;
  display: inline-block;
  margin: 2.2rem 0 1.1rem;
  font-size: clamp(2.8rem, 10vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 22px var(--pulse);
  animation: microShake 9s infinite;
}

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

.glitch::before {
  transform: translate(2px, 0);
  clip-path: inset(0 0 58% 0);
  animation: glitchTop 5s infinite steps(1);
}

.glitch::after {
  transform: translate(-2px, 0);
  clip-path: inset(54% 0 0 0);
  animation: glitchBottom 6.5s infinite steps(1);
}

.alive {
  margin: 0.6rem 0 0;
  font-size: clamp(1.15rem, 3vw, 2rem);
  letter-spacing: 0.14em;
  opacity: 0;
  animation: appear 1.1s ease forwards 1.2s;
}

.soon {
  margin: 1rem 0 2.5rem;
  color: #cfcfcf;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.09em;
  opacity: 0;
  animation: appear 1.1s ease forwards 2.4s;
}

.footer-code {
  opacity: 0;
  animation: appear 1.1s ease forwards 3.6s;
}

.blink {
  animation: blink 1s steps(1) infinite;
}

@keyframes appear {
  to { opacity: 1; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes drift {
  to { background-position: 160px 80px; }
}

@keyframes staticNoise {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 1%); }
  100% { transform: translate(1%, -2%); }
}

@keyframes microShake {
  0%, 94%, 100% { transform: translate(0, 0); }
  95% { transform: translate(-1px, 1px); }
  96% { transform: translate(2px, -1px); }
  97% { transform: translate(-2px, 0); }
  98% { transform: translate(1px, 1px); }
}

@keyframes glitchTop {
  0%, 88%, 100% { transform: translate(0, 0); opacity: 0; }
  89% { transform: translate(6px, -2px); opacity: 0.7; }
  90% { transform: translate(-4px, 1px); opacity: 0.35; }
  91% { transform: translate(0, 0); opacity: 0; }
}

@keyframes glitchBottom {
  0%, 91%, 100% { transform: translate(0, 0); opacity: 0; }
  92% { transform: translate(-7px, 2px); opacity: 0.65; }
  93% { transform: translate(5px, -1px); opacity: 0.3; }
  94% { transform: translate(0, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
