/* ============================================================
   DEGENBOTS WAITLIST — Base CSS + CRT Overlay + Grid + Robot
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --green: #39ff14;
  --cyan: #00fff7;
  --pink: #ff006e;
  --red: #ff3131;
  --bg: #000000;
  --surface: #0a0a0a;
  --border: #1a1a1a;
  --text: #d4d4d4;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'JetBrains Mono', monospace;
}

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

/* ── Smooth Scroll ── */
html {
  scroll-behavior: smooth;
}

/* ── Body ── */
body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  cursor: crosshair;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ── Grid Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── CRT Scanline Overlay ── */
#scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    rgba(0, 0, 0, 0.3) 1px,
    transparent 2px
  );
  animation: scanline-flicker 0.08s infinite alternate;
}

@keyframes scanline-flicker {
  0%   { opacity: 0.85; }
  50%  { opacity: 0.92; }
  100% { opacity: 0.88; }
}

/* ── Loading Screen ── */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  font-family: var(--font-body);
  color: var(--green);
  font-size: 0.85rem;
  letter-spacing: 4px;
  padding-left: 4px; /* compensate trailing letter-spacing for optical centering */
  margin-bottom: 1rem;
  text-align: center;
}

.loading-dots span {
  font-family: var(--font-body);
  color: var(--green);
  font-size: 1.5rem;
  animation: dot-blink 1.4s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-blink {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  margin-top: 1.5rem;
  overflow: hidden;
}

.loading-progress {
  width: 0;
  height: 100%;
  background: var(--green);
  animation: load-fill 1.5s ease-in-out forwards;
  box-shadow: 0 0 10px var(--green);
}

@keyframes load-fill {
  0% { width: 0; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ── Matrix Rain Canvas ── */
#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  pointer-events: none;
}

/* ── Warning Floats Container ── */
#warnings {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

/* ── Main Content ── */
main {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
}

/* ── Konami Overlay ── */
#konami-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}

#konami-overlay.active {
  display: flex;
}

#konami-overlay .konami-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: var(--green);
  text-shadow: 0 0 30px var(--green), 0 0 60px var(--green);
  animation: konami-glitch 0.3s infinite;
  text-align: center;
}

#konami-overlay .konami-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cyan);
  margin-top: 1rem;
  letter-spacing: 3px;
  opacity: 0.8;
}

@keyframes konami-glitch {
  0%, 100% { transform: translate(0); text-shadow: 0 0 30px var(--green), 0 0 60px var(--green); }
  20% { transform: translate(-3px, 2px); text-shadow: -3px 0 var(--pink), 3px 0 var(--cyan), 0 0 30px var(--green); }
  40% { transform: translate(2px, -1px); text-shadow: 2px 0 var(--pink), -2px 0 var(--cyan), 0 0 30px var(--green); }
  60% { transform: translate(-1px, 1px); }
  80% { transform: translate(1px, -2px); text-shadow: -2px 0 var(--pink), 2px 0 var(--cyan), 0 0 30px var(--green); }
}


/* ── Cursor Trail Particles ── */
.cursor-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--green);
  pointer-events: none;
  z-index: 9990;
  border-radius: 50%;
  opacity: 0.6;
  transition: none;
  animation: cursor-fade 0.6s ease-out forwards;
}

@keyframes cursor-fade {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.3; background: var(--cyan); }
  100% { opacity: 0; transform: scale(0); }
}

/* ── Eye Particles ── */
.eye-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  animation: eye-particle-float 2s ease-out forwards;
}

@keyframes eye-particle-float {
  0% { opacity: 0.8; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 2rem;
  text-align: center;
}


/* ============================================================
   SVG ROBOT — ASSEMBLY ANIMATION
   ============================================================ */

/* Container */
.robot-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  animation:
    glitch-jitter 6s ease-in-out infinite 2.5s,
    rgb-split 8s ease-in-out infinite 2.5s;
}

.robot-container:hover {
  filter:
    drop-shadow(0 0 20px rgba(57, 255, 20, 0.6))
    drop-shadow(0 0 50px rgba(57, 255, 20, 0.3))
    drop-shadow(0 0 80px rgba(57, 255, 20, 0.15));
}

.robot-container:hover ~ #scanlines,
.robot-container:hover + .signal-badge {
  /* Intensify scanlines when hovering robot */
}

/* Scanline intensification on robot hover — uses body class set by JS */
body.robot-hovered #scanlines {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    rgba(0, 0, 0, 0.45) 1px,
    transparent 2px
  );
  animation: scanline-flicker 0.04s infinite alternate;
}

.robot-svg {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s;
}

/* ── Draw-In Keyframes (generic) ── */
@keyframes draw-in-generic {
  from { stroke-dashoffset: var(--dash, 800); opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes draw-in {
  from { stroke-dashoffset: 800; opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes draw-in-700 {
  from { stroke-dashoffset: 700; opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes draw-in-50 {
  from { stroke-dashoffset: 50; opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes draw-in-30 {
  from { stroke-dashoffset: 30; opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes draw-in-20 {
  from { stroke-dashoffset: 20; opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

/* ── Eye Power-On ── */
@keyframes eye-power-on {
  0%, 55%  { opacity: 0; fill: transparent; }
  65%      { opacity: 1; fill: #ff006e; }
  75%      { opacity: 0.4; fill: #00fff7; }
  85%      { opacity: 1; fill: #ff006e; }
  92%      { opacity: 0.6; fill: #00fff7; }
  100%     { opacity: 1; fill: #39ff14; }
}

/* ── Eye Idle Flicker ── */
@keyframes eye-flicker {
  0%, 88%, 100% { fill: #39ff14; }
  90% { fill: #ff006e; transform: translate(2px, -1px); }
  93% { fill: #00fff7; transform: translate(-1px, 1px); }
  95% { fill: #39ff14; transform: translate(1px, -2px); }
  96% { fill: #ff006e; transform: translate(-2px, 0); }
  97% { fill: #39ff14; transform: translate(0); }
}

/* ── Glitch Jitter (whole robot) ── */
@keyframes glitch-jitter {
  0%, 93%, 100% { transform: translate(0); }
  94%  { transform: translate(-4px, 3px) skewX(2deg); }
  95%  { transform: translate(3px, -2px) skewX(-1.5deg); }
  96%  { transform: translate(-2px, 1px); }
  97%  { transform: translate(2px, -3px) skewX(1deg); }
  98%  { transform: translate(-1px, 2px); }
}

/* ── RGB Split (whole robot) ── */
@keyframes rgb-split {
  0%, 82%, 100% { filter: none; }
  83%  { filter: drop-shadow(-5px 0 #ff006e) drop-shadow(5px 0 #00fff7); }
  86%  { filter: drop-shadow(-2px 0 #ff006e) drop-shadow(2px 0 #00fff7); }
  88%  { filter: none; }
  89%  { filter: drop-shadow(-3px 0 #ff006e) drop-shadow(3px 0 #00fff7); }
  91%  { filter: none; }
}

/* ── Fade-In helper ── */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── LED blink helper ── */
@keyframes led-blink {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 0.2; }
}

/* ── Antenna pulse ── */
@keyframes antenna-pulse {
  0%, 100% { opacity: 0.5; r: 5; }
  50%      { opacity: 1; r: 7; }
}

/* ── Antenna side tip pulse (smaller) ── */
@keyframes antenna-side-pulse {
  0%, 100% { opacity: 0.3; r: 3; }
  50%      { opacity: 0.8; r: 4; }
}

/* ── Status dot blink ── */
@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* ── Targeting ring rotation ── */
@keyframes target-rotate {
  from { transform: rotate(0deg); transform-origin: 150px 148px; }
  to   { transform: rotate(360deg); transform-origin: 150px 148px; }
}

/* ── Visor scan sweep ── */
@keyframes visor-scan {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.4; }
}


/* ── OUTER HEAD: draw-in, delay 0s ── */
.robot-outer-head {
  animation: draw-in 1.4s ease-out 0s forwards;
}

/* ── INNER PLATE: draw-in, delay 0.3s ── */
.robot-inner-plate {
  animation: draw-in-700 1.2s ease-out 0.3s forwards;
}

/* ── ANTENNA LINES: staggered draw-in ── */
.robot-antenna > line:first-child {
  animation: draw-in-50 0.6s ease-out 0.4s forwards;
}
.antenna-crossbar {
  animation: draw-in-30 0.4s ease-out 0.6s forwards;
}
.antenna-prong-l,
.antenna-prong-r {
  animation: draw-in-20 0.3s ease-out 0.7s forwards;
}

/* ── ANTENNA TIPS: fade in + pulse ── */
.antenna-tip {
  animation:
    fade-in 0.3s ease-out 0.8s forwards,
    antenna-pulse 2s ease-in-out 2.5s infinite;
}
.antenna-tip-l {
  animation:
    fade-in 0.3s ease-out 0.9s forwards,
    antenna-side-pulse 2.5s ease-in-out 2.8s infinite;
}
.antenna-tip-r {
  animation:
    fade-in 0.3s ease-out 1.0s forwards,
    antenna-side-pulse 2.5s ease-in-out 3.0s infinite;
}

/* ── EAR MODULES: fade in ── */
.robot-ear-left {
  animation: fade-in 0.6s ease-out 0.5s forwards;
}
.robot-ear-right {
  animation: fade-in 0.6s ease-out 0.6s forwards;
}

/* ── CORNER BRACKETS: fade in ── */
.robot-brackets {
  animation: fade-in 0.5s ease-out 0.7s forwards;
}

/* ── CIRCUIT TRACES: fade in ── */
.robot-circuits {
  animation: fade-in 1s ease-out 0.5s forwards;
}

/* ── VISOR: fade in ── */
.robot-visor {
  animation: fade-in 0.6s ease-out 1.0s forwards;
}
.visor-scanline {
  animation: visor-scan 3s ease-in-out 2.5s infinite;
}

/* ── CHEEK VENTS: fade in ── */
.robot-vents {
  animation: fade-in 0.8s ease-out 0.8s forwards;
}

/* ── MOUTH: fade in + LED blink ── */
.robot-mouth {
  animation: fade-in 0.5s ease-out 1.0s forwards;
}
/* Skip the housing rect (child 1), blink the LED bars (children 2-6) */
.robot-mouth rect:nth-child(2) { animation: led-blink 2.5s ease-in-out 2.5s infinite; }
.robot-mouth rect:nth-child(3) { animation: led-blink 2.5s ease-in-out 2.8s infinite; }
.robot-mouth rect:nth-child(4) { animation: led-blink 2.5s ease-in-out 2.6s infinite; }
.robot-mouth rect:nth-child(5) { animation: led-blink 2.5s ease-in-out 2.9s infinite; }
.robot-mouth rect:nth-child(6) { animation: led-blink 2.5s ease-in-out 2.7s infinite; }

/* ── CHIN: fade in ── */
.robot-chin {
  animation: fade-in 0.4s ease-out 1.2s forwards;
}

/* ── SIDE BOLTS: fade in ── */
.robot-bolts {
  animation: fade-in 0.6s ease-out 0.6s forwards;
}

/* ── STATUS DOTS: fade in + staggered blink ── */
.robot-status {
  animation: fade-in 0.3s ease-out 1.3s forwards;
}
.status-dot-1 { animation: status-blink 2s ease-in-out 2.5s infinite; }
.status-dot-2 { animation: status-blink 3s ease-in-out 2.7s infinite; }
.status-dot-3 { animation: status-blink 2.5s ease-in-out 2.9s infinite; }
.status-dot-4 { animation: status-blink 1.5s ease-in-out 2.6s infinite; }

/* ── EYE: power-on at 1.5s, then flicker forever ── */
.eye-target-ring {
  animation:
    fade-in 0.4s ease-out 1.3s forwards,
    target-rotate 20s linear 2.5s infinite;
}

.eye-ring {
  animation: fade-in 0.3s ease-out 1.4s forwards;
}

.eye-detail-ring {
  animation: fade-in 0.3s ease-out 1.8s forwards;
}

.eye-iris {
  animation:
    eye-power-on 1.2s ease-out 1.5s forwards,
    eye-flicker 4s ease-in-out 2.7s infinite;
}

.eye-pupil {
  animation:
    eye-power-on 1.2s ease-out 1.6s forwards,
    eye-flicker 4s ease-in-out 2.7s infinite;
}

.eye-highlight {
  animation: fade-in 0.2s ease-out 2.4s forwards;
}

/* ── Robot Eye Click Target ── */
.robot-eye {
  pointer-events: all;
  cursor: pointer;
}

@media (pointer: coarse) {
  .eye-touch-target {
    /* Ensures the invisible circle captures touch events on mobile */
    pointer-events: all;
  }
}


/* ============================================================
   HERO COPY — Signal Badge, Title Slam, Typewriter
   ============================================================ */

/* Signal badge */
.signal-badge {
  display: inline-block;
  border: 1px solid var(--green);
  padding: 0.4rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 3px;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  animation: badge-blink 1.5s step-end infinite;
  text-decoration: none;
  cursor: pointer;
}

@keyframes badge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero title - SLAMS in + glitch text */
.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 5rem);
  color: white;
  text-shadow: 0 0 20px var(--green), 0 0 40px var(--green), 0 0 80px rgba(57, 255, 20, 0.3);
  margin-top: 1rem;
  animation: slam-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 2.8s both;
  position: relative;
}

.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-title::before {
  color: var(--pink);
  animation: glitch-text-top 4s ease-in-out infinite 3.5s;
  clip-path: inset(0 0 65% 0);
}

.hero-title::after {
  color: var(--cyan);
  animation: glitch-text-bottom 4s ease-in-out infinite 3.5s;
  clip-path: inset(65% 0 0 0);
}

@keyframes glitch-text-top {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  91% { transform: translate(-3px, -1px); opacity: 0.8; }
  93% { transform: translate(2px, 1px); opacity: 0.6; }
  95% { transform: translate(-1px, 0); opacity: 0; }
}

@keyframes glitch-text-bottom {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(3px, 1px); opacity: 0.8; }
  91% { transform: translate(-2px, -1px); opacity: 0.6; }
  93% { transform: translate(1px, 0); opacity: 0; }
}

@keyframes slam-in {
  0% {
    transform: scale(2.5);
    opacity: 0;
    letter-spacing: 20px;
  }
  60% {
    transform: scale(0.95);
    opacity: 1;
    letter-spacing: -2px;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    letter-spacing: 2px;
  }
}

/* Screen shake triggered by title slam */
@keyframes screen-shake {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-5px, 3px); }
  20% { transform: translate(4px, -2px); }
  30% { transform: translate(-3px, 4px); }
  40% { transform: translate(2px, -3px); }
  50% { transform: translate(0); }
}

body.shaking {
  animation: screen-shake 0.5s ease-out;
}

/* Typewriter */
.typewriter {
  font-family: var(--font-body);
  color: var(--text);
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
  font-size: 0.9rem;
  min-height: 3.5em;
  text-align: center;
}

.typewriter::after {
  content: "\2588";
  animation: cursor-blink 0.7s step-end infinite;
  color: var(--green);
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Redacted spans that appear in typewriter text */
.redacted {
  background: var(--red);
  color: var(--red);
  padding: 0 4px;
  cursor: help;
  transition: all 0.3s;
  user-select: none;
  font-weight: 700;
}

.redacted.revealed {
  background: transparent;
  color: var(--green);
  text-shadow: 0 0 5px var(--green);
}


/* ============================================================
   SIGNUP FORM
   ============================================================ */
.signup {
  padding: 3rem 1rem;
}

.form-card {
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--green);
  background: rgba(10, 10, 10, 0.9);
  padding: 2rem;
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--green);
  opacity: 0.3;
  transform: translate(4px, 4px);
  pointer-events: none;
}

.form-header {
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.optional {
  color: var(--text);
  opacity: 0.5;
}

.degen-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.75rem;
  caret-color: var(--green);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.degen-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2), inset 0 0 10px rgba(57, 255, 20, 0.05);
}

.degen-input::placeholder {
  color: rgba(212, 212, 212, 0.3);
  font-style: italic;
}

.btn-cta {
  width: 100%;
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  transition: all 0.3s;
  animation: btn-pulse 2s ease-in-out infinite;
}

.btn-cta:hover {
  background: var(--green);
  color: black;
  text-shadow: none;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(57, 255, 20, 0.3); }
  50% { box-shadow: 0 0 20px rgba(57, 255, 20, 0.6), 0 0 40px rgba(57, 255, 20, 0.2); }
}

.form-success {
  text-align: center;
  padding: 2rem 0;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--green);
  text-shadow: 0 0 20px var(--green);
  margin-bottom: 0.5rem;
}

.success-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 2px;
}

.referral-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.referral-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  text-align: center;
}

.referral-link-box {
  display: flex;
  gap: 0;
  border: 1px solid var(--green);
}

.referral-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.7rem;
  padding: 0.6rem;
  outline: none;
  cursor: text;
  min-width: 0;
}

.copy-btn {
  background: var(--green);
  color: black;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  letter-spacing: 2px;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.copy-btn:hover {
  opacity: 0.8;
}

.referral-copied {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--green);
  letter-spacing: 2px;
  text-align: center;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.referral-copied.show {
  opacity: 1;
}


/* ============================================================
   STATIC OVERLAY (submit flash)
   ============================================================ */
#static-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(57, 255, 20, 0.03) 2px,
    rgba(57, 255, 20, 0.03) 4px
  );
}

#static-overlay.active {
  opacity: 1;
  pointer-events: all;
  background: #000;
}


/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.stat-card {
  border: 1px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(10, 10, 10, 0.5);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.stat-number.threat {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 49, 49, 0.5);
}

.stat-number.threat-flash {
  text-shadow: 0 0 20px rgba(255, 49, 49, 0.9), 0 0 40px rgba(255, 49, 49, 0.4);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text);
  opacity: 0.6;
  letter-spacing: 2px;
  text-transform: uppercase;
}


/* ============================================================
   FLOATING WARNINGS
   ============================================================ */
.system-warning {
  position: fixed;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.3);
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.85);
  pointer-events: none;
  white-space: nowrap;
  z-index: 100;
  animation: warn-fade 3.5s ease-in-out forwards;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes warn-fade {
  0% { opacity: 0; transform: translateY(10px); }
  15% { opacity: 0.9; transform: translateY(0); }
  70% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-10px); }
}


/* ============================================================
   PERIODIC SCREEN DISRUPTION FLASH
   ============================================================ */
body.disruption::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  animation: static-flash 150ms steps(3) forwards;
}

@keyframes static-flash {
  0% { background: rgba(57, 255, 20, 0.04); }
  33% { background: rgba(255, 0, 110, 0.03); }
  66% { background: rgba(0, 255, 247, 0.03); }
  100% { background: transparent; }
}


/* ============================================================
   EYE CLICK MESSAGE
   ============================================================ */
.eye-click-message {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--green);
  text-shadow: 0 0 10px var(--green), 0 0 20px var(--green);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease-out;
  z-index: 10;
}

.eye-click-message.fading {
  opacity: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 2px;
  transition: text-shadow 0.3s;
}

.footer-links a:hover {
  text-shadow: 0 0 10px var(--green);
}

.separator {
  color: var(--border);
  font-size: 0.75rem;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text);
  opacity: 0.3;
  letter-spacing: 3px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   EMAIL VALIDATION ERROR
   ============================================================ */
.email-error {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 1px;
  margin-top: 0.4rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s, height 0.3s;
}

.email-error.show {
  opacity: 1;
  height: 1.2rem;
}


/* ============================================================
   COUNTDOWN URGENCY
   ============================================================ */
.countdown-urgent .countdown-num {
  color: var(--red);
  text-shadow: 0 0 15px rgba(255, 49, 49, 0.7);
  animation: urgent-pulse 1s ease-in-out infinite;
}

.countdown-urgent .stat-label {
  color: var(--red);
}

@keyframes urgent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}


/* ============================================================
   GLITCH BOMB (double-click)
   ============================================================ */
.glitch-bomb {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  animation: glitch-bomb-flash 400ms steps(4) forwards;
}

@keyframes glitch-bomb-flash {
  0% { background: rgba(57, 255, 20, 0.1); }
  25% { background: rgba(255, 0, 110, 0.08); transform: translate(-3px, 2px); }
  50% { background: rgba(0, 255, 247, 0.08); transform: translate(2px, -3px); }
  75% { background: rgba(255, 49, 49, 0.06); transform: translate(-1px, 1px); }
  100% { background: transparent; transform: translate(0); }
}


/* ============================================================
   IDLE WARNING
   ============================================================ */
.idle-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9995;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--red);
  text-shadow: 0 0 20px var(--red), 0 0 40px var(--red);
  letter-spacing: 4px;
  pointer-events: none;
  animation: idle-flash 2s ease-in-out forwards;
  text-align: center;
  white-space: nowrap;
}

@keyframes idle-flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}


/* ============================================================
   FAKE KERNEL PANIC
   ============================================================ */
.fake-crash {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #000;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.8;
  padding: 3rem 2rem;
  white-space: pre-wrap;
  word-break: break-all;
  pointer-events: none;
  animation: crash-in 0.15s ease-out;
}

.fake-crash.recovering {
  animation: crash-out 0.5s ease-in forwards;
}

@keyframes crash-in {
  0% { opacity: 0; transform: scale(1.02); }
  50% { opacity: 1; transform: scale(0.99); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes crash-out {
  0% { opacity: 1; }
  50% { opacity: 0.3; transform: translateY(-5px); }
  100% { opacity: 0; }
}


/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.5rem, 10vw, 3rem);
  }

  .stats {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .form-card {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .system-warning {
    font-size: 0.6rem;
    max-width: 75vw;
  }

  .sound-toggle {
    bottom: 3.5rem;
    right: 1rem;
  }

  .typewriter {
    font-size: 0.8rem;
    padding: 0 1rem;
  }

  .robot-container {
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .loading-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding-left: 2px;
  }

  .loading-bar {
    width: 160px;
  }

  .hero-title {
    font-size: clamp(1.2rem, 8vw, 2rem);
  }

  .btn-cta {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .stat-number {
    font-size: 1.2rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #matrix-rain {
    display: none;
  }

  #scanlines {
    opacity: 0.3;
  }
}


/* ============================================================
   SOUND TOGGLE BUTTON
   ============================================================ */
.sound-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 2px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.5;
}

.sound-toggle:hover {
  border-color: var(--green);
  color: var(--green);
  opacity: 1;
}

.sound-toggle.active {
  border-color: var(--green);
  color: var(--green);
  opacity: 0.8;
}


/* ============================================================
   SIGNUP COUNTER
   ============================================================ */
.signup-counter {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.counter-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  display: block;
  margin-bottom: 0.25rem;
}

.counter-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text);
  opacity: 0.5;
  letter-spacing: 2px;
}


/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-buttons {
  margin-top: 1.25rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.share-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 2px;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.3s;
}

.share-btn:hover {
  background: var(--cyan);
  color: black;
}

.share-follow {
  border-color: var(--green);
  color: var(--green);
}

.share-follow:hover {
  background: var(--green);
  color: black;
}


/* ============================================================
   MILESTONE PROGRESS BAR
   ============================================================ */
.milestone-bar {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.milestone-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text);
  opacity: 0.6;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 0.5rem;
}

.milestone-track {
  height: 3px;
  background: var(--border);
  overflow: hidden;
}

.milestone-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  transition: width 1s ease-out;
}


/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.countdown {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.15rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  min-width: 2ch;
  text-align: center;
}

.countdown-sep {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--green);
  opacity: 0.5;
  animation: sep-blink 1s step-end infinite;
}

@keyframes sep-blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.1; }
}

.countdown-lbl {
  font-family: var(--font-body);
  font-size: 0.5rem;
  color: var(--text);
  opacity: 0.4;
  letter-spacing: 1px;
  margin-top: 0.15rem;
}
