/* ============================================================
   Viper Vector — Landing Page Styles
   No build step, no external fonts (self-hosted only, by design —
   see BACKLOG.md re: Google Fonts + GDPR IP-exposure risk for a
   German-operated site). System font stacks throughout.
   ============================================================ */

:root {
  --bg-void: #05070a;
  --bg-panel: #0a0e14;
  --bg-panel-raised: #11161f;
  --hud-green: #39ff88;
  --hud-green-dim: #1f9e57;
  --hud-amber: #ffb020;
  --hud-red: #ff2f6e;
  --text-primary: #e8f0ea;
  --text-muted: #8fa89c;
  --border-hud: rgba(57, 255, 136, 0.35);

  --font-display: ui-monospace, "Cascadia Code", "Segoe UI Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --content-max: 1200px;
  --content-narrow: 760px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hud-green); }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--text-muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 100;
  background: var(--hud-amber); color: var(--bg-void);
  padding: 0.75em 1.25em; font-family: var(--font-display); font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 3px; }

/* Subtle CRT vignette — static, not animated, kept faint for readability */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%),
    repeating-linear-gradient(rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.section-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 1.5rem; }
.section-inner.narrow { max-width: var(--content-narrow); }
.section-inner.center { text-align: center; }

.eyebrow {
  font-family: var(--font-display); color: var(--hud-amber);
  letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem;
  margin: 0 0 0.5em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.7em 1.4em;
  border: 2px solid transparent;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-primary { background: var(--hud-amber); color: var(--bg-void); }
.btn-primary:hover, .btn-primary:focus-visible { box-shadow: 0 0 0 2px var(--hud-amber), 0 0 18px rgba(255,176,32,0.5); }
.btn-ghost { background: transparent; color: var(--hud-green); border-color: var(--border-hud); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--hud-green); box-shadow: 0 0 18px rgba(57,255,136,0.3); }
.btn-lg { padding: 0.9em 1.8em; font-size: 0.95rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-hud);
}
.header-inner {
  max-width: var(--content-max); margin: 0 auto; padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand img { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--border-hud); border-radius: 2px;
  width: 42px; height: 38px; cursor: pointer; padding: 0;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--hud-green); margin: 0 auto; }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.primary-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.primary-nav a:not(.btn) {
  color: var(--text-primary); text-decoration: none; font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.primary-nav a:not(.btn):hover, .primary-nav a:not(.btn):focus-visible { color: var(--hud-green); }
.nav-ctas { display: flex; gap: 0.75rem; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-panel); border-bottom: 1px solid var(--border-hud);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .primary-nav.is-open { max-height: 480px; }
  .primary-nav ul { flex-direction: column; padding: 1rem 1.5rem; gap: 0.25rem; }
  .primary-nav ul li a { display: block; padding: 0.6em 0; }
  .nav-ctas { flex-direction: column; padding: 0 1.5rem 1.5rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-keyart {
  position: absolute; left: 0; right: 0; top: -80px; bottom: -80px;
  width: 100%; height: calc(100% + 160px); object-fit: cover; z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,7,10,0.55) 0%, rgba(5,7,10,0.75) 55%, var(--bg-void) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: var(--content-max); margin: 0 auto;
  padding: 6rem 1.5rem; text-align: center; width: 100%;
}
.js-parallax { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .js-parallax { transform: none !important; }
}
.hero-logo { max-width: 480px; width: 70%; margin: 0 auto 1.5rem; }
.hero-status {
  display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-display);
  color: var(--hud-amber); text-transform: uppercase; letter-spacing: 0.15em;
  border: 1px solid var(--hud-amber); border-radius: 999px; padding: 0.4em 1em;
  margin: 0 0 1em; font-size: 0.85rem;
}
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--hud-amber); display: inline-block; }
.hero-tagline { font-size: 1.15rem; color: var(--text-primary); max-width: 640px; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- About ---------- */
.about, .features, .gallery, .trailer, .community { padding: 5rem 0; }
.about { border-top: 1px solid var(--border-hud); }
.teaser-note { color: var(--hud-green); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.03em; }

/* ---------- Features ---------- */
.features { background: var(--bg-panel); }
.feature-list { display: flex; flex-direction: column; gap: 4rem; margin-top: 3rem; }
.feature-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.feature-row-reverse .feature-media { order: 2; }
.feature-media { border: 1px solid var(--border-hud); border-radius: 4px; }
.feature-copy h3 { color: var(--hud-green); font-size: 1.3rem; }
@media (max-width: 760px) {
  .feature-row, .feature-row-reverse { grid-template-columns: 1fr; }
  .feature-row-reverse .feature-media { order: 0; }
}

/* ---------- Gallery / Carousel ---------- */
.gallery .section-inner { margin-bottom: 2rem; }
.carousel { position: relative; max-width: var(--content-max); margin: 0 auto; padding: 0 1.5rem; }
.carousel-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  list-style: none; margin: 0; padding: 0 0 1rem; scrollbar-width: thin; scrollbar-color: var(--hud-green-dim) var(--bg-panel);
}
.carousel-slide { flex: 0 0 85%; scroll-snap-align: center; }
@media (min-width: 640px) { .carousel-slide { flex-basis: 60%; } }
@media (min-width: 960px) { .carousel-slide { flex-basis: 46%; } }

.gallery-item {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border-hud); border-radius: 4px;
  background: none; cursor: zoom-in; overflow: hidden; transition: border-color 0.15s ease;
}
.gallery-item img { display: block; width: 100%; border-radius: 3px; }
.gallery-item:hover, .gallery-item:focus-visible { border-color: var(--hud-green); }

.carousel-btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
  background: rgba(10,14,20,0.85); color: var(--hud-green); border: 1px solid var(--border-hud);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.carousel-btn:hover, .carousel-btn:focus-visible { background: var(--bg-panel-raised); border-color: var(--hud-green); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
@media (max-width: 640px) { .carousel-btn { display: none; } }

.carousel-dots { display: flex; gap: 0.5rem; justify-content: center; }
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border-hud);
  background: transparent; cursor: pointer; padding: 0;
}
.carousel-dots button[aria-selected="true"] { background: var(--hud-green); border-color: var(--hud-green); }

/* ---------- Trailer / Lightbox ---------- */
.trailer-trigger {
  position: relative; display: inline-block; border: 1px solid var(--border-hud); border-radius: 4px;
  background: none; padding: 0; cursor: pointer; max-width: 640px; width: 100%;
}
.trailer-trigger img { border-radius: 3px; }
.play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--bg-void); background: rgba(255,176,32,0.9); width: 64px; height: 64px;
  border-radius: 50%; margin: auto;
}
.trailer-trigger:hover .play-badge, .trailer-trigger:focus-visible .play-badge { background: var(--hud-amber); }

dialog.lightbox {
  border: 1px solid var(--border-hud); background: var(--bg-panel); color: var(--text-primary);
  padding: 0; max-width: min(90vw, 960px); width: 100%; border-radius: 4px;
}
dialog.lightbox::backdrop { background: rgba(5,7,10,0.85); }
.lightbox-inner { position: relative; padding: 1.5rem; }
.lightbox-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  background: var(--bg-panel-raised); color: var(--text-primary); border: 1px solid var(--border-hud);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.25rem; cursor: pointer; line-height: 1;
}
.lightbox-video-slot { text-align: center; }
.lightbox-video-slot img { border-radius: 4px; margin: 0 auto; }
.lightbox-video-slot iframe, .lightbox-video-slot video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 4px; }
.lightbox-note { color: var(--hud-amber); font-family: var(--font-display); font-size: 0.85rem; margin-top: 1rem; }

dialog.lightbox-gallery { max-width: min(94vw, 1200px); }
.lightbox-gallery-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox-gallery-stage img { max-width: 100%; max-height: 78vh; border-radius: 4px; margin: 0 auto; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(10,14,20,0.85); color: var(--hud-green); border: 1px solid var(--border-hud);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1rem; flex-shrink: 0;
}
.lightbox-nav:hover, .lightbox-nav:focus-visible { background: var(--bg-panel-raised); border-color: var(--hud-green); }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-counter {
  text-align: center; font-family: var(--font-display); color: var(--text-muted);
  font-size: 0.85rem; margin: 1rem 0 0;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

/* ---------- Community / Social ---------- */
.community { border-top: 1px solid var(--border-hud); background: var(--bg-panel); }
.social-links { list-style: none; display: flex; gap: 1.25rem; justify-content: center; margin: 2rem 0 0; padding: 0; }
.social-links a {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--border-hud); border-radius: 50%; color: var(--hud-green);
}
.social-links a:hover, .social-links a:focus-visible { border-color: var(--hud-green); background: var(--bg-panel-raised); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-hud); padding: 2.5rem 0; background: var(--bg-void); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.footer-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--hud-green); }
