/* ═══════════════════════════════
   LAYOUT & GLOBAL
═══════════════════════════════ */

/* --- Body --- */
body {
  background-color: var(--dark-bg);
  color: var(--neon-dim);
  font-family: var(--font-mono);
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: crosshair;
  position: relative;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,98,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,98,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* CRT scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    transparent,
    transparent 2px,
    rgba(0,0,0,0.12) 2px,
    rgba(0,0,0,0.12) 3px
  );
  pointer-events: none;
  z-index: 9999;
}

/* --- Rain --- */
.rain-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* --- Header / Nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
}

/* --- Page Wrapper --- */
.page-wrapper {
  position: relative;
  z-index: 10;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* --- Sections --- */
.section {
  display: none;
}
.section.active {
  display: block;
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px 20px 60px;
  font-family: var(--font-retro);
  font-size: 18px;
  color: rgba(0,255,98,0.3);
  letter-spacing: 2px;
}
footer a {
  color: var(--neon-soft);
  text-shadow: var(--text-shadow);
}
footer a:hover { color: var(--neon-green); }

/* --- Status Bar --- */
.status-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(0, 8, 4, 0.92);
  border-top: 1px solid rgba(0,255,98,0.2);
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-retro);
  font-size: 15px;
  color: rgba(0,255,98,0.45);
  letter-spacing: 1px;
  backdrop-filter: blur(6px);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #00814b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-green); }
