/* site-base.css — the base look shared by every full page (app, beta, videos, restore; index.html has its
   own design and privacy.html is a bare legal page). Fonts, the color variables, the reset, the body, the
   animated grid + red glow behind the page, the shared keyframes, and the footer link colors. Each page links
   this BEFORE its own <style>, so page rules win (per-page margins, sizes, which elements animate). Look
   lives HERE, once — the same rule as site-nav.css (CODE_CLEANUP_PLAN P2-R6, 2026-11-09). */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;900&family=Barlow:wght@400;500&display=swap');

:root {
  --red: #d31600;
  --red-dim: #9a1000;
  --bg: #080808;
  --surface: #111111;
  --border: #1f1f1f;
  --text: #ffffff;
  --muted: #888888;
}

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

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-x: hidden;
}

/* The animated grid + red glow behind every full page (restore.html opts out — it stays plain). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(211,22,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211,22,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridShift 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(211,22,0,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
@keyframes gridShift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

/* Entrance + pulse animations — a page applies them where it wants them. */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Footer links (the footer's own size and margin are per page). */
.footer a { color: #666; text-decoration: none; }
.footer a:hover { color: var(--red); }
