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

html, body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 1.5rem;
}

/* ── Title ──────────────────────────────────────── */
.title {
  position: relative;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.glitch-main {
  position: relative;
  z-index: 1;
  color: #fff;
}

.glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  opacity: 0;
}

.glitch:first-child {
  animation: g1 5s infinite linear;
}

.glitch:last-child {
  animation: g2 5s infinite linear;
}

@keyframes g1 {
  0%, 93%, 100% { opacity: 0; transform: translate(0); }
  94% { opacity: 0.6; transform: translate(-2px, 1px); clip-path: inset(20% 0 50% 0); }
  95% { opacity: 0.6; transform: translate(2px, -1px); clip-path: inset(60% 0 5% 0); }
  96% { opacity: 0; }
}

@keyframes g2 {
  0%, 95%, 100% { opacity: 0; transform: translate(0); }
  96% { opacity: 0.4; transform: translate(2px, -1px); clip-path: inset(40% 0 20% 0); }
  97% { opacity: 0.4; transform: translate(-1px, 2px); clip-path: inset(5% 0 65% 0); }
  98% { opacity: 0; }
}

/* ── Tagline ────────────────────────────────────── */
.tagline {
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: #555;
  opacity: 0;
  animation: fadeIn 2s ease 0.6s forwards;
}

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