/* ============================================
   notacompetitor.com — Pure CSS, Zero JS
   Space Invaders retro gaming landing page
   ============================================ */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000011;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Desktop: lock to viewport — no scroll */
@media (min-width: 1024px) {
  html, body { height: 100vh; overflow: hidden; }
}

/* ============================================
   CRT SCANLINE OVERLAY
   ============================================ */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* ============================================
   STARS
   ============================================ */
.stars {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
.star.big { width: 3px; height: 3px; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.7; }
}

/* ============================================
   SPACE INVADERS BACKGROUND
   ============================================ */
.invaders-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.55;
}

/* Alien rows — marching animation */
.alien-row {
  position: absolute;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3.5vw, 36px);
  width: 100%;
  animation: march 7s ease-in-out infinite;
}
.alien-row:nth-child(1) { top: 4%; animation-delay: 0s; }
.alien-row:nth-child(2) { top: 13%; animation-delay: 0.35s; }
.alien-row:nth-child(3) { top: 22%; animation-delay: 0.7s; }
.alien-row:nth-child(4) { top: 31%; animation-delay: 1.05s; }
.alien-row:nth-child(5) { top: 40%; animation-delay: 1.4s; }

@keyframes march {
  0%, 100% { transform: translateX(-40px); }
  50% { transform: translateX(40px); }
}

/* Individual alien base */
.alien {
  width: 4px; height: 4px;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}

/* Squid (green) — top row */
.alien-squid .px {
  width: 4px; height: 4px;
  background: transparent;
  box-shadow:
    12px 0 0 #55ff55, 20px 0 0 #55ff55,
    8px 4px 0 #55ff55, 12px 4px 0 #55ff55, 16px 4px 0 #55ff55, 20px 4px 0 #55ff55, 24px 4px 0 #55ff55,
    4px 8px 0 #55ff55, 8px 8px 0 #55ff55, 12px 8px 0 #44dd44, 16px 8px 0 #55ff55, 20px 8px 0 #44dd44, 24px 8px 0 #55ff55, 28px 8px 0 #55ff55,
    4px 12px 0 #55ff55, 8px 12px 0 #55ff55, 12px 12px 0 #55ff55, 16px 12px 0 #55ff55, 20px 12px 0 #55ff55, 24px 12px 0 #55ff55, 28px 12px 0 #55ff55,
    4px 16px 0 #55ff55, 12px 16px 0 #55ff55, 20px 16px 0 #55ff55, 28px 16px 0 #55ff55,
    8px 20px 0 #55ff55, 24px 20px 0 #55ff55;
  filter: drop-shadow(0 0 3px #55ff5544);
  animation: alien-wobble 1.2s step-end infinite;
}

/* Crab (red) — middle rows */
.alien-crab .px {
  width: 4px; height: 4px;
  background: transparent;
  box-shadow:
    8px 0 0 #ff5555, 24px 0 0 #ff5555,
    12px 4px 0 #ff5555, 20px 4px 0 #ff5555,
    8px 8px 0 #ff5555, 12px 8px 0 #ee3333, 16px 8px 0 #ff5555, 20px 8px 0 #ee3333, 24px 8px 0 #ff5555,
    4px 12px 0 #ff5555, 8px 12px 0 #ff5555, 12px 12px 0 #ff5555, 16px 12px 0 #ff5555, 20px 12px 0 #ff5555, 24px 12px 0 #ff5555, 28px 12px 0 #ff5555,
    4px 16px 0 #ff5555, 8px 16px 0 #ff5555, 12px 16px 0 #ff5555, 16px 16px 0 #ff5555, 20px 16px 0 #ff5555, 24px 16px 0 #ff5555, 28px 16px 0 #ff5555,
    4px 20px 0 #ff5555, 28px 20px 0 #ff5555,
    8px 24px 0 #ff5555, 12px 24px 0 #ff5555, 20px 24px 0 #ff5555, 24px 24px 0 #ff5555;
  filter: drop-shadow(0 0 3px #ff555544);
  animation: alien-wobble 1s step-end infinite;
}

/* Octopus (blue) — bottom rows */
.alien-octo .px {
  width: 4px; height: 4px;
  background: transparent;
  box-shadow:
    16px 0 0 #55bbff,
    12px 4px 0 #55bbff, 16px 4px 0 #55bbff, 20px 4px 0 #55bbff,
    8px 8px 0 #55bbff, 12px 8px 0 #4499dd, 16px 8px 0 #55bbff, 20px 8px 0 #4499dd, 24px 8px 0 #55bbff,
    4px 12px 0 #55bbff, 8px 12px 0 #55bbff, 12px 12px 0 #55bbff, 16px 12px 0 #55bbff, 20px 12px 0 #55bbff, 24px 12px 0 #55bbff, 28px 12px 0 #55bbff,
    4px 16px 0 #55bbff, 8px 16px 0 #55bbff, 16px 16px 0 #55bbff, 24px 16px 0 #55bbff, 28px 16px 0 #55bbff,
    4px 20px 0 #55bbff, 28px 20px 0 #55bbff;
  filter: drop-shadow(0 0 3px #55bbff44);
  animation: alien-wobble 0.8s step-end infinite;
}

@keyframes alien-wobble {
  0%, 49% { transform: scaleX(1); }
  50%, 100% { transform: scaleX(-1); }
}

/* ============================================
   DEFENDER SHIP
   ============================================ */
.defender {
  position: fixed;
  bottom: clamp(16px, 3vh, 30px);
  left: 50%;
  transform: translateX(-50%) scale(1.8);
  z-index: 2;
  opacity: 0.6;
  animation: defender-move 5s ease-in-out infinite;
}
.defender .px {
  width: 4px; height: 4px;
  background: transparent;
  box-shadow:
    16px 0 0 #00ff44,
    12px 4px 0 #00ff44, 16px 4px 0 #00ee33, 20px 4px 0 #00ff44,
    4px 8px 0 #00ff44, 8px 8px 0 #00ff44, 12px 8px 0 #00ff44, 16px 8px 0 #00ff44, 20px 8px 0 #00ff44, 24px 8px 0 #00ff44, 28px 8px 0 #00ff44,
    4px 12px 0 #00ff44, 8px 12px 0 #00ff44, 12px 12px 0 #00ff44, 16px 12px 0 #00ff44, 20px 12px 0 #00ff44, 24px 12px 0 #00ff44, 28px 12px 0 #00ff44;
  filter: drop-shadow(0 0 8px #00ff4488) drop-shadow(0 0 16px #00ff4433);
}

@keyframes defender-move {
  0%, 100% { margin-left: -80px; }
  50% { margin-left: 80px; }
}

/* ============================================
   SHIELDS
   ============================================ */
.shields {
  position: fixed;
  bottom: clamp(50px, 8vh, 80px);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: clamp(36px, 9vw, 100px);
  z-index: 1;
  opacity: 0.3;
}
.shield {
  width: 44px; height: 28px;
  background: #00dd44;
  border-radius: 10px 10px 0 0;
  position: relative;
  filter: drop-shadow(0 0 4px #00dd4444);
}
.shield::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10px;
  width: 24px; height: 12px;
  background: #000011;
  border-radius: 10px 10px 0 0;
}

/* ============================================
   LASERS
   ============================================ */
.laser {
  position: fixed;
  width: 3px; height: 16px;
  background: #00ff44;
  z-index: 1;
  opacity: 0.5;
  animation: laser-up 1.8s linear infinite;
  box-shadow: 0 0 6px #00ff44, 0 0 12px #00ff4444;
}
.laser-1 { left: 47%; animation-delay: 0s; bottom: 100px; }
.laser-2 { left: 53%; animation-delay: 1s; bottom: 100px; }
.laser-3 { left: 50%; animation-delay: 0.5s; bottom: 100px; }

@keyframes laser-up {
  0% { transform: translateY(0); opacity: 0; }
  5% { opacity: 0.6; }
  100% { transform: translateY(-95vh); opacity: 0; }
}

.enemy-laser {
  position: fixed;
  width: 3px; height: 10px;
  background: #ff3333;
  z-index: 1;
  opacity: 0.35;
  animation: laser-down 2.5s linear infinite;
  box-shadow: 0 0 6px #ff3333, 0 0 10px #ff333344;
}
.enemy-laser-1 { left: 25%; top: 120px; animation-delay: 0.3s; }
.enemy-laser-2 { left: 58%; top: 90px; animation-delay: 1.5s; }
.enemy-laser-3 { left: 40%; top: 140px; animation-delay: 2.8s; }
.enemy-laser-4 { left: 72%; top: 110px; animation-delay: 0.8s; }

@keyframes laser-down {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 0.4; }
  85% { opacity: 0.3; }
  100% { transform: translateY(85vh); opacity: 0; }
}

/* ============================================
   BLINKING CURSOR
   ============================================ */
.cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: #00ff88;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

/* ============================================
   DESKTOP LAYOUT — FLUID ABOVE THE FOLD
   ============================================ */
.desktop-layout { display: none; }

@media (min-width: 1024px) {
  .desktop-layout {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(12px, 2vh, 24px) clamp(24px, 3vw, 56px);
  }
  .mobile-layout { display: none; }

  /* Header area */
  .desktop-top {
    text-align: center;
    flex-shrink: 0;
  }
  .desktop-top .top-bar {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.45rem, 0.7vw, 0.7rem);
    color: #00ff88;
    letter-spacing: 1px;
    margin-bottom: clamp(4px, 0.6vh, 10px);
    text-shadow: 0 0 12px #00ff8877;
  }
  .desktop-top .score-bar {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 4vw, 56px);
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.35rem, 0.55vw, 0.55rem);
    color: #ffcc00;
    padding-bottom: clamp(8px, 1.2vh, 18px);
    border-bottom: 2px solid #ffffff0d;
    text-shadow: 0 0 8px #ffcc0055;
  }
  .desktop-top h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.8rem, 1.8vw, 1.6rem);
    color: #ffffff;
    line-height: 1.6;
    margin: clamp(8px, 1.5vh, 20px) 0 clamp(4px, 0.8vh, 12px);
    text-shadow: 0 0 24px #4444ff44;
  }
  .desktop-top .tagline {
    font-size: clamp(0.8rem, 1vw, 1.1rem);
    color: #7788bb;
    line-height: 1.5;
    max-width: 620px;
    margin: 0 auto;
  }

  /* Two-column middle — grows to fill */
  .desktop-middle {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(16px, 2.5vw, 40px);
    flex: 1;
    align-items: center;
    margin: clamp(8px, 1.5vh, 24px) 0;
    min-height: 0;
  }

  /* Left: denial cards */
  .desktop-denials {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.7vh, 10px);
  }
  .desktop-denial {
    padding: clamp(6px, 1vh, 14px) clamp(10px, 1.2vw, 18px);
    background: rgba(0, 0, 17, 0.8);
    border-left: 3px solid #00ff88;
    border-radius: 3px;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
  }
  .desktop-denial:nth-child(2) { border-left-color: #ff5555; }
  .desktop-denial:nth-child(3) { border-left-color: #ffcc00; }
  .desktop-denial:nth-child(4) { border-left-color: #55bbff; }
  .desktop-denial:nth-child(5) { border-left-color: #cc66ff; }
  .desktop-denial:nth-child(6) { border-left-color: #ff8844; }
  .desktop-denial:hover {
    background: rgba(0, 0, 40, 0.85);
    transform: translateX(4px);
  }
  .desktop-denial h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.32rem, 0.48vw, 0.5rem);
    color: #fff;
    margin-bottom: clamp(2px, 0.3vh, 6px);
    line-height: 1.5;
  }
  .desktop-denial p {
    font-size: clamp(0.7rem, 0.85vw, 0.88rem);
    color: #8899bb;
    line-height: 1.45;
  }

  /* Right: score + quote */
  .desktop-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(10px, 1.5vh, 20px);
  }
  .desktop-score {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.35rem, 0.55vw, 0.52rem);
    color: #00ff88;
    padding: clamp(10px, 1.5vh, 20px);
    border: 1px solid #00ff8822;
    border-radius: 4px;
    background: rgba(0, 255, 136, 0.04);
    text-align: center;
    line-height: 2.2;
    text-shadow: 0 0 6px #00ff8844;
    backdrop-filter: blur(8px);
  }
  .desktop-score .bar { color: #ffcc00; letter-spacing: -1px; }

  .desktop-quote {
    padding: clamp(10px, 1.5vh, 20px) clamp(14px, 1.5vw, 22px);
    border: 1px dashed #ffffff15;
    border-radius: 8px;
    background: rgba(0, 0, 17, 0.7);
    backdrop-filter: blur(8px);
  }
  .desktop-quote p {
    font-style: italic;
    color: #6677aa;
    font-size: clamp(0.8rem, 0.95vw, 1rem);
    line-height: 1.5;
  }
  .desktop-quote .attr {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.3rem, 0.4vw, 0.42rem);
    color: #445577;
    margin-top: clamp(4px, 0.6vh, 10px);
    font-style: normal;
    letter-spacing: 1px;
  }

  /* Footer pinned */
  .desktop-footer {
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.3rem, 0.42vw, 0.42rem);
    color: #445566;
    line-height: 2;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    padding-top: clamp(4px, 0.8vh, 12px);
  }

  /* Widescreen (1440+) */
  @media (min-width: 1440px) {
    .desktop-layout { max-width: 1400px; }
  }
}

/* ============================================
   MOBILE / TABLET LAYOUT — SCROLLABLE
   ============================================ */
.mobile-layout {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 180px;
  text-align: center;
}

@media (min-width: 1024px) {
  .mobile-layout { display: none; }
}

.mobile-layout .top-bar {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.5rem, 1.5vw, 0.7rem);
  color: #00ff88;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 0 12px #00ff8877;
}
.mobile-layout .score-bar {
  display: flex;
  justify-content: space-between;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.4rem, 1.2vw, 0.55rem);
  color: #ffcc00;
  padding: 8px 0 28px;
  border-bottom: 2px solid #ffffff0d;
  margin-bottom: 40px;
  text-shadow: 0 0 8px #ffcc0055;
}
.mobile-layout h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 3.2vw, 1.6rem);
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 24px;
  text-shadow: 0 0 24px #4444ff44;
}
.mobile-layout .tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: #7788bb;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.mobile-layout .divider {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, transparent, #00ff88, #ffcc00, transparent);
  margin: 0 auto 48px;
}

/* Mobile denial cards */
.mobile-layout .denials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  text-align: left;
}
.mobile-layout .denial {
  padding: 20px 24px;
  background: rgba(0, 0, 17, 0.8);
  border: 1px solid #ffffff0a;
  border-left: 3px solid #00ff88;
  border-radius: 4px;
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}
.mobile-layout .denial:nth-child(2) { border-left-color: #ff5555; }
.mobile-layout .denial:nth-child(3) { border-left-color: #ffcc00; }
.mobile-layout .denial:nth-child(4) { border-left-color: #55bbff; }
.mobile-layout .denial:nth-child(5) { border-left-color: #cc66ff; }
.mobile-layout .denial:nth-child(6) { border-left-color: #ff8844; }
.mobile-layout .denial:hover {
  background: rgba(0, 0, 40, 0.85);
  transform: translateX(4px);
}
.mobile-layout .denial h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.42rem, 1.3vw, 0.55rem);
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.7;
}
.mobile-layout .denial p {
  font-size: 0.9rem;
  color: #8899bb;
  line-height: 1.65;
}

/* Mobile score display */
.mobile-layout .score-display {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.4rem, 1.2vw, 0.55rem);
  color: #00ff88;
  margin: 32px 0;
  padding: 20px;
  border: 1px solid #00ff8822;
  border-radius: 4px;
  background: rgba(0, 255, 136, 0.04);
  text-align: center;
  line-height: 2.4;
  text-shadow: 0 0 6px #00ff8844;
  backdrop-filter: blur(8px);
}
.mobile-layout .score-display .bar { color: #ffcc00; letter-spacing: -1px; }

/* Mobile quote */
.mobile-layout .quote {
  margin-top: 40px;
  padding: 24px;
  border: 1px dashed #ffffff15;
  border-radius: 8px;
  background: rgba(0, 0, 17, 0.7);
  backdrop-filter: blur(8px);
}
.mobile-layout .quote p {
  font-style: italic;
  color: #6677aa;
  font-size: 1rem;
  line-height: 1.6;
}
.mobile-layout .quote .attr {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: #445577;
  margin-top: 10px;
  font-style: normal;
  letter-spacing: 1px;
}

/* Mobile footer */
.mobile-layout .footer-note {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.4rem, 1.1vw, 0.5rem);
  color: #556688;
  margin-top: 56px;
  line-height: 2.6;
  letter-spacing: 0.5px;
}

/* Small phone tweaks */
@media (max-width: 600px) {
  .mobile-layout { padding: 40px 16px 140px; }
  .mobile-layout .score-bar { flex-direction: column; gap: 8px; text-align: center; }
  .mobile-layout .denial { padding: 16px; }
  .alien-row { gap: 10px; }
  .shields { gap: 24px; }
  .invaders-bg { opacity: 0.4; }
  .defender { transform: translateX(-50%) scale(1.3); bottom: 20px; }
}
