/* ═══════════════════════════════════════════════════════════════════
   CHROMATIK GAMES — DESIGN SYSTEM
   ───────────────────────────────────────────────────────────────────
   Aesthetic: retro-futuristic terminal, sci-fi command interface.
   Dominant cyan with gold accents. Heavy use of monospace typography,
   thin borders, mesh gradients, scanline overlays. Animation-rich
   without being chaotic. Every page shares this stylesheet.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── COLORS ── */
  --bg: #04080f;
  --bg-elev: #0a1320;
  --bg-panel: rgba(10, 19, 32, 0.72);
  --border: rgba(0, 229, 255, 0.14);
  --border-strong: rgba(0, 229, 255, 0.32);
  --border-gold: rgba(255, 215, 0, 0.25);

  --text: #e8f4ff;
  --text-dim: rgba(200, 220, 232, 0.62);
  --text-muted: rgba(200, 220, 232, 0.32);

  --cyan: #00e5ff;
  --cyan-soft: #5cf0ff;
  --gold: #ffd700;
  --gold-soft: #ffe87a;
  --red: #ff4444;
  --green: #00ff88;
  --magenta: #ff00aa;

  /* ── TYPOGRAPHY ── */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;

  /* ── EASING ── */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  /* Prevent body bg flash on nav */
  background-attachment: fixed;
}

/* ── ATMOSPHERIC BACKGROUND LAYERS ── */
/* Layer 1: animated gradient mesh, drifts slowly */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(0, 229, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(255, 0, 170, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 20%, rgba(255, 215, 0, 0.05), transparent 60%),
    radial-gradient(ellipse 70% 50% at 30% 90%, rgba(0, 229, 255, 0.07), transparent 60%);
  z-index: -2;
  animation: meshDrift 40s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-2%, 1%) rotate(0.5deg); }
  100% { transform: translate(2%, -1%) rotate(-0.5deg); }
}
/* Layer 2: scanline overlay (subtle) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 229, 255, 0.012) 3px,
    transparent 4px
  );
  z-index: -1;
  pointer-events: none;
}

/* ── CONTAINER ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 8, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo::before {
  content: '◢';
  margin-right: 8px;
  color: var(--gold);
  font-size: 12px;
  opacity: 0.7;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after { width: 100%; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--cyan);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 2px;
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 100%; right: 20px; background: var(--bg-elev); border: 1px solid var(--border); padding: 16px 24px; flex-direction: column; gap: 14px; border-radius: 4px; min-width: 200px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.04);
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 0.95;
  margin-bottom: 32px;
  /* Gradient text */
  background: linear-gradient(180deg, #ffffff 0%, #00e5ff 60%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(0, 229, 255, 0.15);
  position: relative;
}
.hero h1 .accent { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.hero p {
  font-size: 19px;
  max-width: 620px;
  margin: 0 auto 44px;
  color: var(--text-dim);
  line-height: 1.65;
}
.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0.06));
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-primary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-gold {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.06));
  border: 1px solid var(--border-gold);
  color: var(--gold);
}
.btn-gold:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.3);
  transform: translateY(-1px);
}
/* Sweep effect on primary button */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover::before { left: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════ */
section {
  padding: 90px 0;
  position: relative;
}
.section-divider {
  border-top: 1px solid var(--border);
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: '// ';
  opacity: 0.6;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 48px;
  line-height: 1.1;
}

/* ═══════════════════════════════════════════════════════════════════
   GAME CARDS (LIST VIEW)
   ═══════════════════════════════════════════════════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.game-card {
  background: var(--bg-panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 30px 26px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
/* Glowing left edge bar */
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: 0.6;
  transition: opacity 0.3s, width 0.3s var(--ease);
}
/* Top-right corner accent */
.game-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(225deg, rgba(0, 229, 255, 0.12), transparent 60%);
  pointer-events: none;
  transition: opacity 0.3s;
}
.game-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(0, 229, 255, 0.08);
}
.game-card:hover::before { width: 5px; opacity: 1; }
.game-card .game-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  padding: 5px 12px;
  border-radius: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  align-self: flex-start;
}
.status-coming-soon {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.status-coming-soon::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
.status-in-dev {
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.status-in-dev::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}
.status-concept {
  background: rgba(200, 220, 232, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(200, 220, 232, 0.1);
}
.game-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.15;
}
.game-card .game-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  opacity: 0.75;
  text-transform: uppercase;
}
.game-card .game-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}
.game-card .game-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.game-card .read-more {
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease);
}
.game-card:hover .read-more { gap: 10px; }

/* ═══════════════════════════════════════════════════════════════════
   GAME DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════ */
.game-detail {
  padding: 80px 0;
}
.game-detail-back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  transition: color 0.25s, gap 0.25s var(--ease);
}
.game-detail-back:hover { color: var(--cyan); gap: 12px; }
.game-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.game-hero-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(255, 0, 170, 0.04));
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
/* Placeholder hero art with grid + glow effect */
.game-hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, #000 30%, transparent 80%);
}
.game-hero-art-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
  text-align: center;
  padding: 20px;
  line-height: 1.1;
}
.game-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.game-detail .game-pitch {
  font-size: 22px;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 720px;
  margin-bottom: 24px;
  font-weight: 300;
}
.game-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}
@media (max-width: 880px) {
  .game-detail-content { grid-template-columns: 1fr; }
}
.game-detail-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 36px 0 16px;
  color: var(--text);
}
.game-detail-content h2:first-child { margin-top: 0; }
.game-detail-content p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.game-detail-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.game-detail-content li {
  color: var(--text-dim);
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.game-detail-content li:last-child { border-bottom: none; }
.game-detail-content li::before {
  content: '◢';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--cyan);
  font-size: 9px;
  opacity: 0.6;
}
.game-detail-content li strong { color: var(--text); }

/* Sidebar info card */
.info-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 24px 8px;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.info-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.info-row .value {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.info-row .value.cyan { color: var(--cyan); }
.info-row .value.gold { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════════
   ABOUT / TEXT SECTIONS
   ═══════════════════════════════════════════════════════════════════ */
.text-block {
  max-width: 760px;
}
.text-block p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.text-block p strong { color: var(--text); }
.text-block .lead {
  font-size: 19px;
  color: var(--text);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.contact-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-card a {
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  word-break: break-all;
}
.contact-card a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col .footer-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-col p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.footer-bottom .small-logo {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--cyan);
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }

/* Initial page-load entrance */
.boot-in {
  opacity: 0;
  animation: bootIn 0.9s var(--ease) forwards;
}
.boot-in-delay-1 { animation-delay: 0.1s; }
.boot-in-delay-2 { animation-delay: 0.25s; }
.boot-in-delay-3 { animation-delay: 0.4s; }
.boot-in-delay-4 { animation-delay: 0.55s; }
@keyframes bootIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Glitch text effect for the hero h1 */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  -webkit-text-fill-color: var(--cyan);
  z-index: -1;
  animation: glitchPulse 4s ease-in-out infinite;
  opacity: 0.6;
}
.glitch::after {
  -webkit-text-fill-color: var(--magenta);
  z-index: -2;
  animation: glitchPulse 4s ease-in-out infinite reverse;
  opacity: 0.3;
}
@keyframes glitchPulse {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
  93%           { transform: translate(-2px, 1px); opacity: 0.6; }
  95%           { transform: translate(2px, -1px); opacity: 0.4; }
  97%           { transform: translate(-1px, 2px); opacity: 0.5; }
  99%           { transform: translate(0, 0); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC HERO VARIANTS
   ═══════════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 100px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Privacy/EULA page (long-form text) */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 0;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 40px 0 14px;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-dim); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.legal-content ul { color: var(--text-dim); padding-left: 24px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; line-height: 1.7; }
.legal-content a { color: var(--cyan); }
.legal-content .effective {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.mt-32 { margin-top: 32px; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  body::before { animation: none; }
}
