/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a14;
  --bg-darker: #060610;
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3a;
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00aa;
  --neon-yellow: #ffe600;
  --neon-green: #39ff14;
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-dim: #555577;
  --pixel-border: #2a2a4a;
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5);
  --glow-magenta: 0 0 20px rgba(255, 0, 170, 0.5);
  --glow-yellow: 0 0 20px rgba(255, 230, 0, 0.5);
  --font-pixel: 'Press Start 2P', monospace;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) var(--bg-dark);
}

body {
  font-family: var(--font-pixel);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: default;
  image-rendering: pixelated;
}

/* ===== SCANLINES OVERLAY ===== */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* ===== FLOATING PARTICLES ===== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--neon-cyan);
  opacity: 0;
  animation: float-particle 8s infinite;
}

.particle:nth-child(odd) {
  background: var(--neon-magenta);
  animation-duration: 10s;
}

.particle:nth-child(3n) {
  background: var(--neon-yellow);
  width: 3px;
  height: 3px;
  animation-duration: 12s;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.8;
    transform: scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(0);
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(10, 10, 20, 0.9);
  border-bottom: 2px solid var(--pixel-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.navbar.scrolled {
  padding: 10px 40px;
  border-bottom-color: var(--neon-cyan);
  box-shadow: 0 2px 20px rgba(0, 240, 255, 0.15);
}

.nav-logo {
  font-size: 12px;
  letter-spacing: 2px;
}

.logo-gun { color: var(--neon-cyan); }
.logo-s { color: var(--neon-magenta); }
.logo-n { color: var(--text-dim); margin: 0 4px; }
.logo-shield { color: var(--neon-yellow); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 2px;
  transition: color 0.3s, text-shadow 0.3s;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.nav-play-btn {
  background: var(--neon-magenta) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border: none;
  font-family: var(--font-pixel);
  font-size: 8px !important;
  cursor: pointer;
  transition: all 0.3s !important;
  text-shadow: none !important;
  position: relative;
}

.nav-play-btn:hover {
  background: var(--neon-cyan) !important;
  color: var(--bg-dark) !important;
  box-shadow: var(--glow-cyan) !important;
  text-shadow: none !important;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0, 240, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 0, 170, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 230, 0, 0.03) 0%, transparent 50%),
    var(--bg-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(42, 42, 74, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 42, 74, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  font-size: 8px;
  color: var(--neon-yellow);
  letter-spacing: 6px;
  margin-bottom: 30px;
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.3; }
  94% { opacity: 1; }
  96% { opacity: 0.5; }
  97% { opacity: 1; }
}

.hero-title {
  font-size: 48px;
  line-height: 1.3;
  margin-bottom: 20px;
}

.title-line1 {
  display: block;
  color: var(--neon-cyan);
  text-shadow:
    var(--glow-cyan),
    0 0 60px rgba(0, 240, 255, 0.3);
  animation: glow-pulse-cyan 2s ease-in-out infinite alternate;
}

.title-n {
  display: block;
  font-size: 20px;
  color: var(--text-dim);
  margin: 4px 0;
}

.title-line2 {
  display: block;
  color: var(--neon-magenta);
  text-shadow:
    var(--glow-magenta),
    0 0 60px rgba(255, 0, 170, 0.3);
  animation: glow-pulse-magenta 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse-cyan {
  from { text-shadow: 0 0 10px rgba(0, 240, 255, 0.4), 0 0 40px rgba(0, 240, 255, 0.2); }
  to   { text-shadow: 0 0 20px rgba(0, 240, 255, 0.7), 0 0 80px rgba(0, 240, 255, 0.4); }
}

@keyframes glow-pulse-magenta {
  from { text-shadow: 0 0 10px rgba(255, 0, 170, 0.4), 0 0 40px rgba(255, 0, 170, 0.2); }
  to   { text-shadow: 0 0 20px rgba(255, 0, 170, 0.7), 0 0 80px rgba(255, 0, 170, 0.4); }
}

.hero-subtitle {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 3px;
  line-height: 2.2;
  margin-bottom: 40px;
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  margin: 20px auto 40px;
  max-width: 500px;
}

.hero-image {
  width: 100%;
  border: 3px solid var(--pixel-border);
  image-rendering: auto;
  position: relative;
  z-index: 1;
  transition: border-color 0.5s, box-shadow 0.5s;
}

.hero-image:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Play Button */
.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--neon-magenta), #cc0088);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 3px;
  border: 3px solid var(--neon-magenta);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  image-rendering: auto;
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.play-button:hover::before {
  left: 100%;
}

.play-button:hover {
  background: linear-gradient(135deg, var(--neon-cyan), #00bbcc);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan), inset 0 0 30px rgba(0, 240, 255, 0.15);
  transform: scale(1.05);
}

.play-icon {
  font-size: 18px;
}

.hero-hint {
  margin-top: 30px;
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 4px;
  animation: blink-text 1.2s step-end infinite;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 12px;
  animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTIONS COMMON ===== */
.section-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 50px;
  color: var(--text-primary);
  letter-spacing: 6px;
}

.bracket {
  color: var(--neon-cyan);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 100px 20px;
  background:
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 2px solid var(--pixel-border);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid transparent;
  transition: border-color 0.4s;
  pointer-events: none;
}

.about-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.about-card:nth-child(1):hover::before { border-color: var(--neon-cyan); }
.about-card:nth-child(2):hover::before { border-color: var(--neon-yellow); }
.about-card:nth-child(3):hover::before { border-color: var(--neon-magenta); }

.about-card:nth-child(1):hover { box-shadow: var(--glow-cyan); }
.about-card:nth-child(2):hover { box-shadow: var(--glow-yellow); }
.about-card:nth-child(3):hover { box-shadow: var(--glow-magenta); }

.card-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.about-card:nth-child(2) h3 { color: var(--neon-yellow); }
.about-card:nth-child(3) h3 { color: var(--neon-magenta); }

.about-card p {
  font-size: 8px;
  color: var(--text-secondary);
  line-height: 2;
  letter-spacing: 1px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 100px 20px;
  background: var(--bg-darker);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-yellow), var(--neon-green), transparent);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--pixel-border);
  background: var(--bg-card);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--neon-green);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-item:hover {
  border-color: var(--neon-green);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.feature-item:hover::after {
  opacity: 1;
}

.feature-bullet {
  color: var(--neon-green);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  animation: pulse-bullet 2s ease-in-out infinite;
}

@keyframes pulse-bullet {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.feature-item:hover .feature-bullet {
  animation: none;
  opacity: 1;
}

.feature-text h3 {
  font-size: 10px;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.feature-text p {
  font-size: 8px;
  color: var(--text-secondary);
  line-height: 2;
  letter-spacing: 1px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 20px;
  background:
    radial-gradient(ellipse at center, rgba(255, 0, 170, 0.08) 0%, transparent 60%),
    var(--bg-dark);
}

.cta-box {
  text-align: center;
  border: 3px solid var(--neon-magenta);
  padding: 60px 40px;
  position: relative;
  background: rgba(255, 0, 170, 0.03);
}

.cta-box::before,
.cta-box::after {
  content: '■';
  position: absolute;
  color: var(--neon-magenta);
  font-size: 8px;
}

.cta-box::before {
  top: -5px;
  left: -5px;
}

.cta-box::after {
  bottom: -5px;
  right: -5px;
}

.cta-box h2 {
  font-size: 24px;
  color: var(--neon-yellow);
  text-shadow: var(--glow-yellow);
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.cta-box p {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 2.2;
  letter-spacing: 1px;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  font-size: 12px;
}

.cta-url {
  margin-top: 20px;
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 3px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 20px;
  border-top: 2px solid var(--pixel-border);
  background: var(--bg-darker);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer .footer-logo {
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 7px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-pixels {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: var(--pixel-border);
  font-size: 6px;
}

.footer-pixels span:nth-child(odd) {
  color: var(--neon-cyan);
  opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }

  .nav-logo {
    font-size: 8px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 6px;
  }

  .hero-title {
    font-size: 28px;
  }

  .title-n {
    font-size: 14px;
  }

  .hero-subtitle {
    font-size: 7px;
  }

  .hero-image-wrapper {
    max-width: 320px;
  }

  .play-button {
    padding: 12px 24px;
    font-size: 10px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 16px;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .cta-box h2 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }

  .nav-links a:not(.nav-play-btn) {
    display: none;
  }

  .hero-badge {
    font-size: 6px;
    letter-spacing: 3px;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.about-card,
.feature-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-card.visible,
.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card:nth-child(2) { transition-delay: 0.15s; }
.about-card:nth-child(3) { transition-delay: 0.3s; }
.feature-item:nth-child(2) { transition-delay: 0.1s; }
.feature-item:nth-child(3) { transition-delay: 0.2s; }
.feature-item:nth-child(4) { transition-delay: 0.3s; }
.feature-item:nth-child(5) { transition-delay: 0.4s; }
