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

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

:root {
  --bg: #0a0a0a;
  --pink: #ff2d7b;
  --cyan: #00f0ff;
  --purple: #b44dff;
  --white: #f0e6ff;
  --dim: #444;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  cursor: crosshair;
}

/* TV static overlay */
.static-overlay {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.03) 0px,
    rgba(0,0,0,.03) 1px,
    transparent 1px,
    transparent 2px
  );
  animation: staticFlicker .1s infinite;
}

.scanlines {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    rgba(0,240,255,.015) 1px,
    transparent 2px,
    transparent 4px
  );
}

@keyframes staticFlicker {
  0%, 100% { opacity: .4; }
  50% { opacity: .6; }
}

/* === GATE === */
.gate {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(10,10,10,.95) 0%, #0a0a0a 70%);
  backdrop-filter: blur(20px);
  animation: gateBreath 4s ease-in-out infinite;
}

@keyframes gateBreath {
  0%, 100% { background-color: rgba(10,10,10,.97); }
  50% { background-color: rgba(20,5,30,.97); }
}

.gate-inner {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
  position: relative;
}

/* glitch text */
.glitch {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  position: relative;
  animation: glitchShake 3s infinite;
  text-shadow: 0 0 20px rgba(255,45,123,.5);
  letter-spacing: .05em;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.glitch::before {
  color: var(--cyan);
  z-index: -1;
  animation: glitchLeft 2s infinite;
}

.glitch::after {
  color: var(--pink);
  z-index: -2;
  animation: glitchRight 2.5s infinite;
}

@keyframes glitchShake {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-1px, 2px); }
  98% { transform: translate(2px, -2px); }
}

@keyframes glitchLeft {
  0%, 85%, 100% { clip-path: inset(0); transform: translate(0); }
  87% { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 0); }
  89% { clip-path: inset(50% 0 20% 0); transform: translate(4px, 0); }
  91% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
}

@keyframes glitchRight {
  0%, 80%, 100% { clip-path: inset(0); transform: translate(0); }
  82% { clip-path: inset(40% 0 30% 0); transform: translate(4px, 0); }
  84% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 0); }
  86% { clip-path: inset(60% 0 10% 0); transform: translate(2px, 0); }
}

/* pulse ring behind button */
.pulse-ring {
  width: 200px; height: 200px;
  border: 2px solid var(--pink);
  border-radius: 50%;
  margin: 2rem auto;
  animation: pulseExpand 2s ease-out infinite;
  opacity: 0;
}

@keyframes pulseExpand {
  0% { transform: scale(.5); opacity: .8; }
  100% { transform: scale(2); opacity: 0; }
}

.gate-sub {
  font-family: 'Space Mono', monospace;
  font-size: .9rem;
  color: var(--dim);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: blink 1.5s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* big join button */
.join-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all .2s;
  box-shadow:
    0 0 30px rgba(255,45,123,.4),
    0 0 60px rgba(255,45,123,.2),
    inset 0 0 20px rgba(255,255,255,.1);
  animation: btnPulse 1.5s ease-in-out infinite;
}

.join-btn:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 50px rgba(255,45,123,.6),
    0 0 100px rgba(255,45,123,.3),
    inset 0 0 30px rgba(255,255,255,.15);
}

.join-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255,45,123,.4), 0 0 60px rgba(255,45,123,.2); }
  50% { box-shadow: 0 0 50px rgba(255,45,123,.6), 0 0 100px rgba(255,45,123,.3); }
}

.btn-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.btn-sub {
  font-size: .65rem;
  opacity: .7;
  letter-spacing: .1em;
}

/* countdown */
.countdown-wrap {
  margin-top: 2.5rem;
  font-family: 'Space Mono', monospace;
  font-size: .75rem;
  color: var(--dim);
  letter-spacing: .1em;
}

.countdown {
  display: block;
  font-size: 2rem;
  color: var(--pink);
  margin-top: .5rem;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(255,45,123,.5);
}

/* escalating threats */
.threats {
  margin-top: 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--cyan);
  min-height: 2rem;
  letter-spacing: .05em;
  opacity: .8;
}

/* === BLURRED CONTENT === */
.content {
  position: fixed; inset: 0;
  overflow-y: auto;
  transition: filter 1s, opacity 1s;
}

.content.blurred {
  filter: blur(12px) brightness(.4);
  pointer-events: none;
  user-select: none;
}

.content.revealed {
  filter: none;
  pointer-events: auto;
}

.inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-text {
  text-align: center;
  margin-bottom: 3rem;
}

.line1 {
  display: block;
  font-size: .9rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cyan);
  font-family: 'Space Mono', monospace;
}

.line2 {
  display: block;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all .3s;
}

.card:hover {
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255,45,123,.15);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: .8rem;
  color: var(--cyan);
}

.card h3 {
  font-family: 'Space Mono', monospace;
  font-size: .85rem;
  letter-spacing: .1em;
  margin-bottom: .5rem;
  text-transform: lowercase;
}

.card p {
  font-size: .8rem;
  color: var(--dim);
  line-height: 1.5;
}

/* shrine section */
.shrine {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(0,240,255,.15);
  border-radius: 8px;
  text-align: center;
}

.shrine-title {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  color: var(--cyan);
  letter-spacing: .15em;
  margin-bottom: .3rem;
  text-shadow: 0 0 15px rgba(0,240,255,.4);
}

.shrine-handle a {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: .05em;
}

.shrine-handle a:hover { color: var(--pink); }

.shrine-desc {
  font-size: .8rem;
  color: var(--dim);
  margin: 1rem 0;
  line-height: 1.5;
  font-style: italic;
}

.shrine-vibe {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: .75rem;
  color: var(--pink);
  letter-spacing: .1em;
}

.bottom-cta {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  color: var(--dim);
  letter-spacing: .1em;
}

/* matrix canvas */
#matrix {
  position: fixed; inset: 0;
  z-index: -1;
  opacity: .08;
}

/* gate dismissed */
.gate.dismissed {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.1);
  transition: all .8s ease-in;
}

/* mobile */
@media (max-width: 500px) {
  .gate-inner { padding: 1rem; }
  .join-btn { padding: 1rem 2rem; }
  .btn-text { font-size: 1.1rem; }
  .countdown { font-size: 1.5rem; }
}
