/* ============================================================
   AGENT HQ — SHARED STYLESHEET
   Edit colours and fonts HERE and every page updates.
   ============================================================ */

:root {
  --bg-black: #04060b;
  --bg-navy: #0a1330;
  --blue: #2b6fff;
  --blue-dim: rgba(43,111,255,0.35);
  --blue-faint: rgba(43,111,255,0.12);
  --cyan: #00eaff;
  --cyan-soft: rgba(0,234,255,0.35);
  --text-dim: #7d93c2;
  --text-bright: #eaf1ff;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background: var(--bg-black);
}

body {
  font-family: 'Share Tech Mono', monospace;
  color: var(--blue);
  overflow-x: hidden;
}

/* ---------- Background layers ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 45%, var(--bg-navy) 0%, var(--bg-black) 72%);
}

.bg-grid {
  position: fixed; inset: -2px; z-index: 0; opacity: 0.4;
  background-image:
    linear-gradient(var(--blue-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-faint) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 18s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 45%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 0%, transparent 78%);
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

.scanlines {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: 0.3;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.18) 3px, rgba(0,0,0,0) 4px);
}

.vignette {
  position: fixed; inset: 0; z-index: 19; pointer-events: none;
  box-shadow: inset 0 0 180px 40px rgba(0,0,0,0.8);
}

/* ---------- Page shell ---------- */
.page {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px 42px 40px;
}

/* ---------- Back link ---------- */
.back-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 26px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.back-link:hover, .back-link:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-soft);
  outline: none;
}

/* ---------- Headings ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

h1.page-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 3px;
  margin: 0;
  color: var(--text-bright);
  text-shadow: 0 0 18px var(--blue-dim);
}

.h-rule {
  margin-top: 12px;
  height: 2px;
  width: 340px;
  max-width: 70vw;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.section-label {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--blue);
  margin: 38px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--blue-faint);
}

/* ---------- Panels ---------- */
.panel {
  position: relative;
  border: 1px solid var(--blue-dim);
  background: linear-gradient(180deg, rgba(10,19,48,0.5), rgba(4,6,11,0.7));
  padding: 24px 26px;
  margin-bottom: 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.panel:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 22px var(--cyan-soft), inset 0 0 40px rgba(0,234,255,0.05);
}

.corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--blue);
  opacity: 0.8;
  pointer-events: none;
}
.corner.tl { top: -1px; left: -1px;  border-top: 2px solid; border-left: 2px solid; }
.corner.tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.corner.bl { bottom: -1px; left: -1px;  border-bottom: 2px solid; border-left: 2px solid; }
.corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

/* ---------- Text ---------- */
p, li { line-height: 1.8; color: var(--text-dim); font-size: 14px; }
strong { color: var(--text-bright); font-weight: normal; }

.meta {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(125,147,194,0.7);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ---------- Disclaimer ---------- */
#legal-disclaimer {
  position: relative;
  z-index: 10;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(125,147,194,0.45);
  padding: 10px 20px 26px;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .page { padding: 26px 20px 30px; }
  h1.page-title { font-size: 21px; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
