/* ===== BYTE THRU THE WIRE — design tokens ===== */
:root {
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --mint: #2ee6a8;
  --cyan: #2bb3e8;
  --blue: #2e7cf6;
  --violet: #8b2ff0;
  --magenta: #e83ae8;
  --text: #e8f4f4;
  --text-dim: #7a8a96;
  --grad: linear-gradient(90deg, var(--mint), var(--cyan), var(--blue), var(--violet));
  --glow: 0 0 10px rgba(43, 179, 232, 0.5), 0 0 30px rgba(46, 124, 246, 0.3);
}

/* Force full-viewport coverage */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg) !important;  /* force black background */
}

h1, h2, .nav__logo, .btn, .release-card__title, .hero__tagline, .split-card__title {
  font-family: "Silkscreen", monospace;
}

/* ===== CRT scanlines — critical fix ===== */
.crt {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(
    0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

/* Landing page layout */
main {
  display: flex;
  flex-direction: column;
  height: 100vh;           /* explicit full height */
  min-height: 100vh;
  background: var(--bg);   /* ensure main also has black */
}

/* ===== Hero — flexes to fill space ===== */
.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 0.5rem;
  text-align: center;
}
.hero__img {
  max-width: min(1000px, 55svh);
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(46, 124, 246, 0.45));
  margin-bottom: 0.25rem;
}
.hero__tagline {
  margin-top: 0.25rem;
  color: var(--cyan);
  font-size: clamp(0.6rem, 2vw, 0.85rem);
  text-shadow: 0 0 8px rgba(43, 179, 232, 0.6);
  animation: flicker 4s infinite;
}

/* ===== Glitch effect ===== */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: ""; position: absolute; inset: 0;
  background: inherit;
  opacity: 0; mix-blend-mode: screen;
}
.glitch::before { animation: glitchA 5s infinite; filter: hue-rotate(-50deg); }
.glitch::after  { animation: glitchB 5s infinite; filter: hue-rotate(120deg); }
@keyframes glitchA {
  0%, 91%, 100% { opacity: 0; transform: none; }
  92% { opacity: 0.6; transform: translate(-8px, 2px); }
  94% { opacity: 0.4; transform: translate(6px, -3px); }
  96% { opacity: 0; }
}
@keyframes glitchB {
  0%, 93%, 100% { opacity: 0; transform: none; }
  95% { opacity: 0.5; transform: translate(8px, -2px); }
  97% { opacity: 0.3; transform: translate(-5px, 4px); }
  98% { opacity: 0; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; } 93% { opacity: 0.4; } 94% { opacity: 1; }
}

/* ===== Split cards ===== */
.split-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.split-card {
  position: relative;
  display: grid;
  place-content: center;
  text-decoration: none;
  padding: 1.5rem 2rem;
  transition: box-shadow 0.2s;
}
.split-card--left {
  background: linear-gradient(135deg, rgba(46, 230, 168, 0.05), rgba(43, 179, 232, 0.05));
  border-right: 1px solid rgba(43, 179, 232, 0.3);
  border-left: 1px solid rgba(46, 230, 168, 0.3);
}
.split-card--right {
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.05), rgba(139, 47, 240, 0.05));
  border-right: 1px solid rgba(139, 47, 240, 0.3);
  border-left: 1px solid rgba(46, 124, 246, 0.3);
}
.split-card__icon {
  font-size: clamp(1.5rem, 4svh, 3rem);
  margin-bottom: 0.5rem;
}
.split-card__title {
  font-family: "Silkscreen", monospace;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: text-shadow 0.2s;
}
.split-card--left:hover .split-card__title {
  text-shadow: 0 0 15px rgba(46, 230, 168, 0.8);
}
.split-card--right:hover .split-card__title {
  text-shadow: 0 0 15px rgba(43, 179, 232, 0.8);
}
.split-card__desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.split-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: clamp(1.5rem, 3svh, 2.5rem);
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s, transform 0.2s;
}
.split-card--left .split-card__arrow { left: -2.5rem; }
.split-card--right .split-card__arrow { right: -2.5rem; }
.split-card--left:hover .split-card__arrow {
  opacity: 1;
  color: var(--mint);
  transform: translateY(-50%) translateX(-6px);
}
.split-card--right:hover .split-card__arrow {
  opacity: 1;
  color: var(--mint);
  transform: translateY(-50%) translateX(6px);
}

/* ===== Socials ===== */
.landing-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 1rem 1rem;
}
.landing-socials a {
  color: var(--text-dim);
  font-size: clamp(1.25rem, 3.5svh, 1.75rem);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
}
.landing-socials a:hover {
  color: var(--mint);
  text-shadow: 0 0 12px rgba(46, 230, 168, 0.8);
  transform: translateY(-3px);
}
.landing-socials__copy {
  flex-basis: 100%;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.7rem;
}

/* ===== Mobile pressure relief ===== */
@media (max-height: 600px), (max-width: 768px) {
  main { min-height: auto; }
  .hero { padding: 2rem 1rem 1rem; }
}