/* ════════════════════════════════════════════════════════════════
   Observatory Components — shared selectors that appear on every
   marketing page. Single source of truth.

   Phase 3A consolidation (2026-05-06): pages used to inline these
   rules ~10× across the site. Now they live here once. Page-specific
   overrides stay in each page's smaller inline <style> block.

   Tokens come from /css/observatory.css :root. This file ONLY
   contains components — no token declarations.

   Loaded after observatory.css:
     <link rel="stylesheet" href="/css/observatory.css">
     <link rel="stylesheet" href="/css/observatory-components.css">
   ════════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(59,130,246,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0,212,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(252,211,77,0.02) 0%, transparent 60%),
    var(--base);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Glass card ──────────────────────────────────────────────── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition:
    transform 0.4s var(--bounce),
    border-color 0.3s,
    box-shadow 0.4s var(--smooth);
}
.glass:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255,255,255,0.2);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.25),
    0 0 30px rgba(59,130,246,0.06),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ── Sticky nav ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-logo .rl  { color: var(--primary); }
.nav-logo .amp { color: var(--cyan); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav: per-page implementation (each page has its own JS that
   toggles `.open` on the hamburger and nav-links elements). Not
   centralized here to avoid breaking existing toggle behavior. */
