/* ==========================================================================
   LaunchNest — Retro Pixel-Art SaaS Landing Page Template
   Design System & Stylesheet
   ========================================================================== */

:root {
  /* Core Arcade Palette (Dark Mode Only) */
  --bg-void: #07080f;
  --bg-surface: #0e1120;
  --bg-elevated: #161b33;
  --bg-card: #111528;

  /* Neon Phosphor Accents */
  --neon-green: #00ff88;
  --neon-cyan: #00e5ff;
  --neon-pink: #ff2a85;
  --neon-gold: #ffd700;
  --neon-purple: #9d4edd;

  /* Text */
  --text-primary: #f0f4ff;
  --text-secondary: #9aa5ce;
  --text-muted: #565f89;

  /* Borders & Pixel Shadows */
  --border-pixel: #29325c;
  --border-bright: #414d87;

  /* Typography */
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'VT323', monospace;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1160px;
  --section-pad: 96px 24px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-void);
}

/* Starfield Canvas */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Subtle CRT Scanline Overlay */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.16) 3px,
    rgba(0, 0, 0, 0.16) 4px
  );
}

.container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

/* Pixel Typography Helpers */
.pixel-font {
  font-family: var(--font-pixel);
  letter-spacing: 0.04em;
}

.mono-font {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.text-green { color: var(--neon-green); }
.text-cyan { color: var(--neon-cyan); }
.text-pink { color: var(--neon-pink); }
.text-gold { color: var(--neon-gold); }

/* Pixel-Art Borders & Cards */
.pixel-box {
  background: var(--bg-card);
  border: 3px solid var(--border-pixel);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.03),
    6px 6px 0px #030408;
  transition: transform 0.15s steps(2), border-color 0.15s ease, box-shadow 0.15s ease;
}

.pixel-box:hover {
  border-color: var(--neon-cyan);
  transform: translate(-2px, -2px);
  box-shadow:
    inset 0 0 0 2px rgba(0, 229, 255, 0.08),
    8px 8px 0px #030408;
}

/* Tactile 8-Bit Buttons */
.pixel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  padding: 14px 24px;
  border: 3px solid #000;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2);
  user-select: none;
}

.pixel-btn-primary {
  background: var(--neon-green);
  color: #050a08;
  box-shadow:
    inset -4px -4px 0px #00aa55,
    inset 4px 4px 0px #80ffc4,
    4px 4px 0px #000;
}

.pixel-btn-primary:hover {
  background: #2aff9d;
  transform: translate(-1px, -1px);
  box-shadow:
    inset -4px -4px 0px #00aa55,
    inset 4px 4px 0px #b3ffdc,
    6px 6px 0px #000;
}

.pixel-btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow:
    inset -2px -2px 0px #00aa55,
    inset 2px 2px 0px #80ffc4,
    1px 1px 0px #000;
}

.pixel-btn-secondary {
  background: var(--bg-elevated);
  color: var(--neon-cyan);
  border: 3px solid var(--neon-cyan);
  box-shadow: 4px 4px 0px #000;
}

.pixel-btn-secondary:hover {
  background: rgba(0, 229, 255, 0.12);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0px #000;
}

.pixel-btn-secondary:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0px #000;
}

/* ==========================================================================
   1. Arcade HUD Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--border-pixel);
  padding: 14px 24px;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: var(--neon-green);
  text-shadow: 2px 2px 0px #004422;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  transition: color 0.15s ease;
}

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

.nav-hud {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-score {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--neon-gold);
  background: var(--bg-surface);
  border: 2px solid var(--border-pixel);
  padding: 8px 12px;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-elevated);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  padding: 8px 12px;
  cursor: pointer;
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.hero {
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--neon-gold);
  background: rgba(255, 215, 0, 0.08);
  border: 2px solid var(--neon-gold);
  padding: 8px 16px;
  margin-bottom: 28px;
}

.blink {
  animation: blinkAnim 1.1s steps(2, start) infinite;
}

@keyframes blinkAnim {
  to { visibility: hidden; }
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.6rem, 4vw, 2.85rem);
  line-height: 1.35;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-shadow: 4px 4px 0px #000;
}

.hero-title span {
  color: var(--neon-green);
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-friction {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 56px;
}

/* Pixel-Art Dashboard Mockup */
.arcade-dashboard {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 4px solid var(--border-bright);
  box-shadow: 12px 12px 0px #020306;
  text-align: left;
  overflow: hidden;
}

.dash-topbar {
  background: var(--bg-elevated);
  border-bottom: 3px solid var(--border-pixel);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-dots {
  display: flex;
  gap: 8px;
}

.dash-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #000;
}

.dash-dot.red { background: var(--neon-pink); }
.dash-dot.gold { background: var(--neon-gold); }
.dash-dot.green { background: var(--neon-green); }

.dash-title {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.dash-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.dash-sidebar {
  border-right: 3px solid var(--border-pixel);
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-nav-item {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  padding: 8px 12px;
  color: var(--text-secondary);
  border: 2px solid transparent;
  background: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dash-nav-item:hover {
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.06);
}

.dash-nav-item.active {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border-color: var(--neon-green);
}

.dash-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.dash-panel.active {
  display: flex;
}

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 2px solid var(--border-pixel);
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

.copy-mini-btn {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 6px 10px;
  background: var(--bg-elevated);
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  cursor: pointer;
}

.copy-mini-btn:hover {
  background: rgba(0, 229, 255, 0.15);
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 2px solid var(--border-pixel);
  padding: 14px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-pixel);
  font-size: 1rem;
  margin-top: 6px;
}

.dash-chart {
  background: var(--bg-card);
  border: 2px solid var(--border-pixel);
  padding: 18px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pixel-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 110px;
  padding-top: 10px;
}

.pixel-bar {
  flex: 1;
  background: repeating-linear-gradient(
    to top,
    var(--neon-cyan) 0px,
    var(--neon-cyan) 8px,
    var(--bg-card) 8px,
    var(--bg-card) 12px
  );
  transition: height 0.3s steps(4);
}

.pixel-bar.highlight {
  background: repeating-linear-gradient(
    to top,
    var(--neon-green) 0px,
    var(--neon-green) 8px,
    var(--bg-card) 8px,
    var(--bg-card) 12px
  );
}

/* ==========================================================================
   3. Social Proof / Logos
   ========================================================================== */
.logos-section {
  padding: 36px 24px;
  border-top: 3px solid var(--border-pixel);
  border-bottom: 3px solid var(--border-pixel);
  background: rgba(14, 17, 32, 0.7);
  position: relative;
  z-index: 2;
}

.logos-label {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  align-items: center;
}

.logo-item {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: var(--section-pad);
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--neon-cyan);
  margin-bottom: 14px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.25rem, 2.8vw, 1.9rem);
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   4. Bento-Grid Features ("POWER-UPS")
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 2px solid var(--border-bright);
}

.bento-title {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.bento-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ==========================================================================
   5. 3-Stage Mission (How It Works)
   ========================================================================== */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stage-card {
  padding: 28px;
  position: relative;
}

.stage-num {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-pink);
  margin-bottom: 14px;
}

/* ==========================================================================
   6. Interactive Pricing ("SELECT YOUR DIFFICULTY")
   ========================================================================== */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.toggle-label {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.toggle-label.active {
  color: var(--neon-green);
}

.pixel-switch {
  width: 64px;
  height: 32px;
  background: var(--bg-elevated);
  border: 3px solid var(--neon-cyan);
  position: relative;
  cursor: pointer;
}

.pixel-switch-knob {
  width: 20px;
  height: 20px;
  background: var(--neon-green);
  position: absolute;
  top: 3px;
  left: 4px;
  transition: transform 0.15s steps(2);
}

.pixel-switch.yearly .pixel-switch-knob {
  transform: translateX(30px);
}

.save-badge {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  background: var(--neon-pink);
  color: #fff;
  padding: 5px 8px;
}

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

.pricing-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--neon-green);
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.06) 0%, var(--bg-card) 100%);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-green);
  color: #050a08;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 6px 12px;
  border: 2px solid #000;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.plan-price {
  font-family: var(--font-pixel);
  font-size: 2rem;
  margin-bottom: 8px;
}

.plan-period {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.plan-features li::before {
  content: '► ';
  color: var(--neon-green);
  font-family: var(--font-mono);
}

/* ==========================================================================
   7. Testimonials ("PLAYER REVIEWS")
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.stars {
  color: var(--neon-gold);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 3px;
}

.review-quote {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 2px solid var(--border-pixel);
  padding-top: 14px;
}

.avatar-pixel {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 2px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-green);
}

.reviewer-name {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
}

.reviewer-role {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. FAQ Accordion ("CHEAT CODES")
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 3px solid var(--border-pixel);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  line-height: 1.6;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover {
  color: var(--neon-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0 24px 20px;
}

.faq-item.open {
  border-color: var(--neon-cyan);
}

/* ==========================================================================
   9. Final CTA / Waitlist
   ========================================================================== */
.cta-box {
  padding: 56px 32px;
  text-align: center;
  border-color: var(--neon-pink);
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.08), rgba(0, 229, 255, 0.06));
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 540px;
  margin: 28px auto 12px;
}

.pixel-input {
  flex: 1;
  min-width: 240px;
  padding: 14px 16px;
  background: var(--bg-void);
  border: 3px solid var(--border-bright);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  outline: none;
}

.pixel-input:focus {
  border-color: var(--neon-green);
}

.form-feedback {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-green);
  min-height: 20px;
  margin-top: 10px;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.footer {
  border-top: 3px solid var(--border-pixel);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
}

.footer-text {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .bento-grid,
  .stages-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .dash-body {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    border-right: none;
    border-bottom: 3px solid var(--border-pixel);
    padding-right: 0;
    padding-bottom: 14px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .hud-score {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 3px solid var(--border-pixel);
    padding: 20px;
    gap: 16px;
  }

  .mobile-menu-btn {
    display: inline-block;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }
}
