/* ═══════════════════════════════════════════
   SatelliteAtlas Design System v2 — Redesign
   ═══════════════════════════════════════════ */

/* ─── 1. Design Tokens ─── */
:root {
  --void: #06080d;
  --deep: #0b0f18;
  --surface: #111827;
  --surface-raised: #1a2236;
  --surface-hover: #1f2a40;
  --border: #1e293b;
  --border-subtle: #162032;
  --text-primary: #e8ecf4;
  --text-secondary: #8896ab;
  --text-tertiary: #556278;
  --text-inverse: #06080d;
  --accent-core: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-dim: #1e40af;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-glow-strong: rgba(59, 130, 246, 0.3);
  --orbit-leo: #22d3ee;
  --orbit-meo: #a78bfa;
  --orbit-geo: #f59e0b;
  --orbit-sso: #34d399;
  --orbit-heo: #f472b6;
  --orbit-unknown: #64748b;
  --status-active: #34d399;
  --status-inactive: #f59e0b;
  --status-decommissioned: #ef4444;
  --status-planned: #818cf8;
  --fresh-now: #22c55e;
  --fresh-recent: #60a5fa;
  --fresh-stale: #f59e0b;
  --fresh-old: #ef4444;
  --radii-sm: 4px;
  --radii-md: 8px;
  --radii-lg: 12px;
  --radii-xl: 16px;
  --radii-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
  --shadow-glow-strong: 0 0 40px rgba(59, 130, 246, 0.3);
  --nav-height: 72px;
}

/* ─── 2. Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.05rem, 5vw, 4rem);
  line-height: 1.06;
}

h2 {
  font-size: 1.35rem;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: var(--radii-md);
  background: var(--accent-core);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
}

/* ─── 3. Top Navigation ─── */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(6, 8, 13, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.topnav.scrolled {
  background: rgba(6, 8, 13, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.topnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.topnav-brand:hover {
  text-decoration: none;
}

.topnav-brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.orbit-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 0deg, var(--orbit-leo), var(--accent-core), var(--orbit-geo), var(--orbit-leo));
  animation: orbitSpin 8s linear infinite;
}

.orbit-logo::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--void);
}

.orbit-logo--sm {
  width: 22px;
  height: 22px;
}

.orbit-logo--sm::after {
  width: 8px;
  height: 8px;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.topnav-link {
  padding: 8px 14px;
  border-radius: var(--radii-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.topnav-link:hover {
  color: var(--text-primary);
  background: var(--accent-glow);
  text-decoration: none;
}

.topnav-link-active {
  color: var(--accent-bright);
  background: var(--accent-glow);
  font-weight: 600;
}

.topnav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav-search {
  position: relative;
  width: 200px;
  transition: width 0.2s ease;
}

.topnav-search:focus-within {
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 0.875rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.6);
  color: var(--text-primary);
  border-radius: var(--radii-full);
  padding: 8px 44px 8px 30px;
  font-size: 0.8125rem;
  font-family: "DM Sans", sans-serif;
  transition: all 0.2s ease;
}

.search-input:focus,
.search-input:focus-visible {
  border-color: var(--accent-core);
  box-shadow: var(--shadow-glow);
  background: rgba(17, 24, 39, 0.9);
}

.kbd-hint {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 6px;
  border-radius: var(--radii-sm);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  color: var(--text-tertiary);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radii-md);
  background: transparent;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Focus */
.search-input:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.25);
  outline-offset: 2px;
}

/* ─── 4. Main Content ─── */
.main-content {
  position: relative;
  z-index: 1;
}

/* ─── 5. Immersive Hero ─── */
.hero-immersive {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 55%, rgba(30, 64, 175, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(59, 130, 246, 0.08), transparent 60%),
    var(--void);
}

.hero-earth {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 75vw);
  height: min(600px, 75vw);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, rgba(59, 130, 246, 0.22), rgba(34, 211, 238, 0.08) 45%, rgba(6, 8, 13, 0.9) 70%);
  box-shadow: inset -30px -20px 80px rgba(0, 0, 0, 0.8), 0 0 120px rgba(59, 130, 246, 0.12), 0 0 60px rgba(34, 211, 238, 0.06);
  opacity: 0.7;
}

.hero-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.1);
  animation: orbitSpin 40s linear infinite;
}

.hero-orbit-ring--1 {
  width: min(750px, 95vw);
  height: min(450px, 57vw);
  transform: translate(-50%, -50%) rotate(-15deg);
}

.hero-orbit-ring--2 {
  width: min(900px, 110vw);
  height: min(350px, 44vw);
  transform: translate(-50%, -50%) rotate(25deg);
  border-color: rgba(34, 211, 238, 0.08);
  animation-duration: 55s;
  animation-direction: reverse;
}

.hero-orbit-ring--3 {
  width: min(650px, 82vw);
  height: min(550px, 69vw);
  transform: translate(-50%, -50%) rotate(45deg);
  border-color: rgba(245, 158, 11, 0.06);
  animation-duration: 70s;
}

.hero-satellite-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 96vw);
  height: min(460px, 58vw);
  transform: translate(-50%, -50%) rotate(-12deg);
  border-radius: 50%;
  border: 1px dashed rgba(96, 165, 250, 0.25);
  box-shadow: inset 0 0 18px rgba(59, 130, 246, 0.08);
  z-index: 1;
}

.hero-satellite-track {
  position: absolute;
  inset: 0;
  animation: heroOrbitSpin 26s linear infinite;
}

.hero-satellite-craft {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  color: var(--accent-bright);
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.45));
}

.hero-satellite-craft svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  transform: rotate(92deg);
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 60% 15%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 80% 55%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 45% 85%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 90% 30%, rgba(96, 165, 250, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 15% 50%, rgba(34, 211, 238, 0.5), transparent),
    radial-gradient(1px 1px at 70% 90%, rgba(255, 255, 255, 0.3), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: fadeUp 0.8s ease;
}

.hero-eyebrow {
  margin: 0 0 16px;
  font-size: 0.75rem;
  color: var(--accent-core);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent-bright), var(--orbit-leo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Stats Bar */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(30, 41, 59, 0.6);
  border-radius: var(--radii-xl);
  padding: 20px 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  animation: fadeUp 1s ease 0.2s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.hero-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 8px;
}

/* ─── 6. Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radii-md);
  border: 1px solid var(--border);
  padding: 10px 20px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.9375rem;
  border-radius: var(--radii-lg);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
}

.btn-icon {
  flex-shrink: 0;
}

.btn-primary {
  border: 0;
  color: #fff;
  background: var(--accent-core);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-core), var(--accent-bright));
  box-shadow: var(--shadow-glow-strong);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent-core);
  color: var(--text-primary);
  background: var(--accent-glow);
}

.btn-glass {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ─── 7. Section Layout ─── */
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
}

.section-eyebrow {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  color: var(--accent-core);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.75rem;
  color: var(--text-primary);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

/* ─── 8. Quick Links ─── */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-link-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radii-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  color: var(--text-primary);
  overflow: hidden;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}

.quick-link-card h3 {
  font-size: 1.125rem;
}

.quick-link-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radii-lg);
  display: grid;
  place-items: center;
  background: var(--accent-glow);
  color: var(--accent-bright);
}

.quick-link-icon--dashboard {
  background: rgba(34, 211, 238, 0.1);
  color: var(--orbit-leo);
}

.quick-link-icon--timeline {
  background: rgba(245, 158, 11, 0.1);
  color: var(--orbit-geo);
}

.quick-link-icon--articles {
  background: rgba(167, 139, 250, 0.1);
  color: var(--orbit-meo);
}

/* ─── 9. Featured Satellites ─── */
.featured-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.featured-satellite-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radii-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-primary);
  transition: all 0.25s ease;
  overflow: hidden;
}

.featured-satellite-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-core), var(--orbit-leo), var(--accent-core));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.featured-satellite-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(59, 130, 246, 0.35);
  text-decoration: none;
}

.fsc-orbit-ring {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--accent-bright);
  opacity: 0.7;
}

.fsc-ring {
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.2;
  animation: ringPulse 2.6s ease-in-out infinite;
}

.fsc-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: satPulse 2s ease-in-out infinite;
}

.fsc-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
  transform-origin: 0 0;
  animation: satOrbit 6s linear infinite;
}

.fsc-content {
  padding-right: 50px;
}

.fsc-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.fsc-cospar {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.fsc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fsc-updated {
  font-size: 0.5625rem;
  color: var(--text-tertiary);
}

/* ─── 10. Trust / Source Cards ─── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-card {
  padding: 20px;
  border-radius: var(--radii-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.trust-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.trust-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
  font-family: "Space Grotesk", sans-serif;
}

.trust-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ─── 11. Status & Orbit Pills ─── */
.status-pill,
.orbit-pill,
.fresh-pill,
.tiny-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radii-full);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.status-active {
  color: var(--status-active);
}

.status-inactive {
  color: var(--status-inactive);
}

.status-decommissioned {
  color: #fca5a5;
}

.status-planned {
  color: var(--status-planned);
}

.status-pill.status-active {
  color: var(--status-active);
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
}

.status-pill.status-active::before,
.status-pill.status-planned::before {
  animation: blink 2s ease-in-out infinite;
}

.status-pill.status-inactive {
  color: var(--status-inactive);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.status-pill.status-decommissioned {
  color: #ffe4e6;
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.24);
}

.status-pill.status-decommissioned::before {
  background: var(--status-decommissioned);
  box-shadow: 0 0 6px var(--status-decommissioned);
}

.status-pill.status-planned {
  color: var(--status-planned);
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.3);
}

.orbit-pill {
  background: rgba(100, 116, 139, 0.15);
}

.orbit-pill.orbit-leo {
  color: var(--orbit-leo);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.12);
}

.orbit-pill.orbit-meo {
  color: var(--orbit-meo);
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.12);
}

.orbit-pill.orbit-geo {
  color: var(--orbit-geo);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.orbit-pill.orbit-sso {
  color: var(--orbit-sso);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
}

.orbit-pill.orbit-heo {
  color: var(--orbit-heo);
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.12);
}

.orbit-pill.orbit-unknown {
  color: var(--orbit-unknown);
  border-color: rgba(100, 116, 139, 0.35);
  background: rgba(100, 116, 139, 0.12);
}

.fresh-pill.freshness-now {
  color: var(--fresh-now);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.fresh-pill.freshness-recent {
  color: var(--fresh-recent);
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
}

.fresh-pill.freshness-stale {
  color: var(--fresh-stale);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.fresh-pill.freshness-old {
  color: #ffe4e6;
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.06);
}

.tiny-chip {
  color: var(--text-tertiary);
  border-color: var(--border-subtle);
}

/* ─── 12. Freshness Dots ─── */
.freshness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
  margin-top: 6px;
}

.freshness-dot.freshness-now {
  background: var(--fresh-now);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
  animation: blink 1.8s ease-in-out infinite;
}

.freshness-dot.freshness-recent {
  background: var(--fresh-recent);
}

.freshness-dot.freshness-stale {
  background: var(--fresh-stale);
}

.freshness-dot.freshness-old {
  background: var(--fresh-old);
}

/* ─── 13. Panels (used by inner pages) ─── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radii-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.4s ease;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.6875rem;
  color: var(--accent-core);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lead {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── 14. Content Wrap (inner pages) ─── */
.content-wrap {
  padding: calc(var(--nav-height) + 32px) 48px 48px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

/* ─── 15. Stats Grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 16px;
}

.metric-label {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-value {
  margin: 8px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─── 16. Data Tables ─── */
.inline-link {
  font-size: 0.8125rem;
}

.table-wrap {
  margin-top: 10px;
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px;
  text-align: left;
  font-size: 0.8125rem;
}

.data-table th {
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
}

/* ─── 17. Filter Grid ─── */
.filter-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.filter-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.filter-grid label .mono {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

input,
select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--radii-md);
  padding: 9px 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
}

/* ─── 18. Satellite Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  display: grid;
  gap: 14px;
  background: var(--surface-raised);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  border-radius: var(--radii-lg);
}

.sat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(59, 130, 246, 0.38);
}

.sat-card:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.25);
  outline-offset: 2px;
}

.sat-card.featured::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-core), var(--orbit-leo), var(--accent-core));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.sat-orbit-mini {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--orbit-unknown);
  opacity: 0.9;
}

.sat-orbit-mini.orbit-leo {
  color: var(--orbit-leo);
}

.sat-orbit-mini.orbit-meo {
  color: var(--orbit-meo);
}

.sat-orbit-mini.orbit-geo {
  color: var(--orbit-geo);
}

.sat-orbit-mini.orbit-sso {
  color: var(--orbit-sso);
}

.sat-orbit-mini.orbit-heo {
  color: var(--orbit-heo);
}

.sat-ring {
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.22;
  animation: ringPulse 2.6s ease-in-out infinite;
}

.sat-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: satPulse 2s ease-in-out infinite;
}

.sat-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
  transform-origin: 0 0;
  animation: satOrbit 6s linear infinite;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-right: 54px;
}

.card-title-wrap h2 {
  font-size: 1.125rem;
  line-height: 1.2;
}

.meta-row {
  margin-top: 3px;
  color: var(--text-tertiary);
  font-size: 0.625rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-grid {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-grid dt {
  color: var(--text-tertiary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.mini-grid dd {
  margin: 0;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
}

.sat-card-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-start;
}

.sat-share-btn {
  min-width: 132px;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pager-links {
  display: flex;
  gap: 8px;
}

/* ─── 19. Dashboard ─── */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bar-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bar-list li {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 10px;
  align-items: center;
}

.bar-label {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.orbit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.orbit-dot.orbit-leo {
  background: var(--orbit-leo);
}

.orbit-dot.orbit-meo {
  background: var(--orbit-meo);
}

.orbit-dot.orbit-geo {
  background: var(--orbit-geo);
}

.orbit-dot.orbit-sso {
  background: var(--orbit-sso);
}

.orbit-dot.orbit-heo {
  background: var(--orbit-heo);
}

.orbit-dot.orbit-unknown {
  background: var(--orbit-unknown);
}

.bar-track {
  height: 20px;
  border-radius: var(--radii-full);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-core));
}

.bar-value {
  color: var(--text-secondary);
  font-size: 0.6875rem;
}

.freshness-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

/* ─── Timeline Redesign ─── */
.tl-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tl-control-header h2 {
  margin: 0;
}

.tl-filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tl-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tl-filter-group--search {
  flex: 1;
  min-width: 220px;
}

.tl-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radii-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tl-pill:hover {
  border-color: var(--accent-core);
  color: var(--text-primary);
}

.tl-pill--active {
  background: var(--accent-core);
  border-color: var(--accent-core);
  color: #fff;
}

.tl-search-wrap {
  position: relative;
}

.tl-search-input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.6);
  color: var(--text-primary);
  border-radius: var(--radii-md);
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-family: "DM Sans", sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tl-search-input:focus {
  border-color: var(--accent-core);
  box-shadow: var(--shadow-glow);
  outline: none;
}

.timeline-chart {
  border: 1px solid var(--border);
  border-radius: var(--radii-lg);
  background: var(--surface-raised);
  padding: 16px;
  overflow: hidden;
}

#timeline-svg {
  width: 100%;
  display: block;
}

.tl-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.tl-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
}

.tl-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tl-dot--leo { background: var(--orbit-leo); }
.tl-dot--geo { background: var(--orbit-geo); }
.tl-dot--sso { background: var(--orbit-sso); }
.tl-dot--meo { background: var(--orbit-meo); }
.tl-dot--heo { background: var(--orbit-heo); }
.tl-dot--unknown { background: var(--orbit-unknown); }

.timeline-decade-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.tl-decade-year {
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.tl-decade-stats {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tl-decade-count {
  font-size: 0.8125rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-secondary);
}

.tl-decade-active {
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--status-active);
  padding: 2px 8px;
  background: rgba(52, 211, 153, 0.1);
  border-radius: var(--radii-full);
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--radii-md);
  border-left: 3px solid var(--border-subtle);
  background: var(--surface);
  transition: all 0.15s ease;
}

.timeline-item:hover {
  background: var(--surface-raised);
  border-left-color: var(--accent-core);
}

.timeline-item[data-orbit="LEO"] { border-left-color: var(--orbit-leo); }
.timeline-item[data-orbit="GEO"] { border-left-color: var(--orbit-geo); }
.timeline-item[data-orbit="SSO"] { border-left-color: var(--orbit-sso); }
.timeline-item[data-orbit="MEO"] { border-left-color: var(--orbit-meo); }
.timeline-item[data-orbit="HEO"] { border-left-color: var(--orbit-heo); }

.tl-item-date {
  padding-top: 2px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  line-height: 1.4;
}

.tl-item-body {
  min-width: 0;
}

.tl-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tl-item-header h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.tl-item-header h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.tl-item-header h3 a:hover {
  color: var(--accent-bright);
}

.tl-item-meta {
  margin: 4px 0 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tl-discipline-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radii-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-item.timeline-hidden,
.timeline-decade-header.timeline-hidden,
.timeline-decade.timeline-hidden {
  display: none;
}

.timeline-empty {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radii-lg);
}

.timeline-dot { opacity: 0.9; }
.timeline-dot--clickable { cursor: pointer; }
.timeline-dot--clickable:hover {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.7));
}
.timeline-dot--clickable:focus-visible {
  outline: none;
  stroke: rgba(96, 165, 250, 0.9);
  stroke-width: 2;
}

@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .tl-item-header {
    flex-direction: column;
  }

  .tl-filter-bar {
    flex-direction: column;
  }
}

/* ─── 21. Articles & Companies ─── */
.article-grid,
.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-card h2,
.company-card h2 {
  font-size: 1.2rem;
  margin: 4px 0 0;
}

.company-card .hero-actions {
  margin-top: 4px;
}

.company-tagline {
  margin-top: 8px;
  color: var(--text-primary);
}

.company-detail-hero {
  background: radial-gradient(120% 120% at 85% 10%, rgba(59, 130, 246, 0.14), transparent 65%), linear-gradient(140deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.5));
}

.company-share-note {
  margin-top: 10px;
  border-left: 2px solid var(--accent-core);
  padding-left: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.company-timeline,
.company-press-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.company-timeline-item,
.company-press-list li {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radii-md);
  background: var(--surface-raised);
  padding: 12px;
}

.company-timeline-item h3 {
  margin: 6px 0 0;
  font-size: 1rem;
}

.company-timeline-item .lead {
  margin-top: 6px;
}

.company-plan-list {
  margin-top: 10px;
}

.company-press-list li a {
  display: block;
  margin-top: 4px;
}

.article-detail .article-copy {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.article-detail .article-copy p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.citation-list {
  margin: 12px 0 0;
  padding: 0 0 0 16px;
  display: grid;
  gap: 8px;
}

.citation-list li {
  color: var(--text-secondary);
  line-height: 1.5;
}

.citation-note {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ─── 22. Misc ─── */
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.breadcrumbs span {
  color: var(--text-tertiary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

.profile-hero h1 {
  margin-top: 6px;
}

.freshness-timestamp {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radii-md);
  border: 1px solid var(--border-subtle);
  background: rgba(11, 15, 24, 0.45);
  font-size: 0.625rem;
  color: var(--text-secondary);
}

.kv-grid {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kv-grid dt {
  color: var(--text-tertiary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kv-grid dd {
  margin: 4px 0 0;
  line-height: 1.45;
  color: var(--text-primary);
}

.design-section h2 {
  margin-bottom: 8px;
}

.check-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--status-active);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.swatch {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radii-md);
  padding: 10px;
  background: var(--surface-raised);
  display: grid;
  gap: 5px;
}

.swatch span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.swatch b {
  color: var(--text-primary);
  font-size: 0.6875rem;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-card {
  height: 88px;
  border-radius: var(--radii-lg);
  border: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple:active::after {
  animation: ripple 0.5s ease-out;
}

/* ─── 23. Footer ─── */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.footer-news {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.footer-news-label {
  color: var(--accent-bright);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-news-window {
  overflow: hidden;
}

.footer-news-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 30px;
}

.footer-news-track--animated {
  animation: footerTicker 42s linear infinite;
}

.footer-news-track--animated:hover {
  animation-play-state: paused;
}

.footer-news-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radii-full);
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.55);
  padding: 5px 11px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-news-item:hover {
  border-color: var(--accent-core);
  color: var(--text-primary);
  background: rgba(30, 41, 59, 0.85);
  text-decoration: none;
}

.footer-news-badge {
  border-radius: var(--radii-full);
  padding: 1px 7px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
  border: 1px solid transparent;
}

.footer-news-badge--isro {
  color: #9fd1ff;
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.35);
}

.footer-news-badge--private {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.32);
}

.footer-news-badge--company {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.32);
}

.footer-news-title {
  color: var(--text-primary);
}

.footer-news-meta {
  color: var(--text-tertiary);
}

.footer-news-loading {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand-text {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-bright);
  text-decoration: none;
}

.footer-source {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* ─── 24. Responsive ─── */
@media (max-width: 1100px) {

  .quick-links-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-news {
    padding: 14px 24px;
  }

  .content-wrap {
    padding: calc(var(--nav-height) + 24px) 24px 32px;
  }

  .card-grid,
  .article-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid,
  .freshness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topnav-inner {
    padding: 0 16px;
    gap: 12px;
    justify-content: space-between;
  }

  .topnav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 8, 13, 0.96);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .topnav-links.open {
    display: flex;
  }

  .topnav-link {
    padding: 12px 16px;
    border-radius: var(--radii-md);
  }

  .hamburger {
    display: flex;
  }

  .topnav-actions {
    margin-left: auto;
  }

  .topnav-search {
    display: none;
  }

  .hero-satellite-orbit {
    width: min(640px, 100vw);
    height: min(370px, 58vw);
  }

  .hero-stats-bar {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .hero-stat-divider {
    width: 80%;
    height: 1px;
    margin: 0;
  }

  .quick-links-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .section-wrap {
    padding: 32px 16px;
  }

  .content-wrap {
    padding: calc(var(--nav-height) + 16px) 14px 24px;
  }

  .footer-news {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }

  .split-grid,
  .filter-grid,
  .stats-grid,
  .freshness-grid,
  .kv-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .bar-list li {
    grid-template-columns: 1fr;
  }

  .skeleton-grid,
  .swatch-grid {
    grid-template-columns: 1fr;
  }

  .timeline-tools {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* ─── 25. Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ─── 26. Keyframes ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes heroOrbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes footerTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes satOrbit {
  0% {
    transform: rotate(0deg) translateX(16px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(16px) rotate(-360deg);
  }
}

@keyframes satPulse {

  0%,
  100% {
    box-shadow: 0 0 2px currentColor;
  }

  50% {
    box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
  }
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 0.08;
  }

  50% {
    opacity: 0.18;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }

  100% {
    transform: scale(6);
    opacity: 0;
  }
}

/* ─── 24. API Documentation & Swagger Overrides ─── */
.docs-hero {
  position: relative;
  padding: 60px 48px;
  border-radius: var(--radii-xl);
  background: radial-gradient(120% 120% at 85% 10%, rgba(59, 130, 246, 0.14), transparent 65%),
    linear-gradient(140deg, rgba(17, 24, 39, 0.8), rgba(11, 15, 24, 0.9));
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.docs-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.docs-quick-start {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.qs-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radii-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.qs-card:hover {
  border-color: var(--accent-core);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.qs-card h3 {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin: 0;
}

.qs-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.qs-value {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  background: var(--void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radii-sm);
  color: var(--accent-bright);
  font-size: 0.75rem;
  word-break: break-all;
}

/* Swagger UI Theming */
.docs-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radii-xl);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

/* Swagger UI — native dark theme (no filter hack) */
.swagger-ui {
  background: transparent !important;
  color: var(--text-primary) !important;
}

/* Section tag headers */
.swagger-ui .opblock-tag {
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border) !important;
}

.swagger-ui .opblock-tag small {
  color: var(--text-secondary) !important;
}

/* Operation summary text */
.swagger-ui .opblock-summary-description {
  color: var(--text-secondary) !important;
}

/* Operation block body */
.swagger-ui .opblock-body {
  background: var(--surface) !important;
}

.swagger-ui .opblock-section-header {
  background: var(--surface-raised) !important;
  border-bottom: 1px solid var(--border) !important;
}

.swagger-ui .opblock-section-header h4 {
  color: var(--text-primary) !important;
}

/* Parameters table */
.swagger-ui table thead tr th,
.swagger-ui .parameter__name,
.swagger-ui .parameter__type {
  color: var(--text-secondary) !important;
  border-color: var(--border) !important;
}

.swagger-ui .parameter__name.required::after {
  color: var(--status-decommissioned) !important;
}

.swagger-ui table.parameters td {
  border-color: var(--border-subtle) !important;
}

/* Input fields */
.swagger-ui input[type=text],
.swagger-ui input[type=email],
.swagger-ui input[type=password],
.swagger-ui input[type=search],
.swagger-ui textarea,
.swagger-ui select {
  background: var(--void) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radii-sm) !important;
}

/* Response section */
.swagger-ui .responses-inner {
  background: var(--surface) !important;
}

.swagger-ui .response-col_status {
  color: var(--text-primary) !important;
}

.swagger-ui .response-col_description p {
  color: var(--text-secondary) !important;
}

.swagger-ui .response-col_description .markdown p {
  color: var(--text-secondary) !important;
}

/* Code / response body */
.swagger-ui .highlight-code {
  background: var(--void) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radii-md) !important;
}

.swagger-ui .microlight {
  background: var(--void) !important;
  color: var(--accent-bright) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.8125rem !important;
}

/* Schema / model section */
.swagger-ui section.models {
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  border-radius: var(--radii-lg) !important;
}

.swagger-ui section.models h4 {
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border) !important;
}

.swagger-ui .model-box {
  background: var(--surface-raised) !important;
}

.swagger-ui .model {
  color: var(--text-primary) !important;
}

.swagger-ui .model-title {
  color: var(--accent-bright) !important;
}

.swagger-ui .prop-type {
  color: var(--orbit-leo) !important;
}

/* Arrow/chevron toggles */
.swagger-ui .arrow {
  fill: var(--text-secondary) !important;
}

/* Content-type dropdown label */
.swagger-ui .content-type {
  color: var(--text-secondary) !important;
}

/* Live response area */
.swagger-ui .live-responses-wrap .title,
.swagger-ui .curl-command .title {
  color: var(--text-secondary) !important;
}

.swagger-ui .curl-command {
  background: var(--void) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radii-md) !important;
}

.swagger-ui .curl-command code {
  color: var(--accent-bright) !important;
  font-family: "JetBrains Mono", monospace !important;
}

.swagger-ui .info,
.swagger-ui .scheme-container,
.swagger-ui .servers,
.swagger-ui .servers-title,
.swagger-ui .info .url {
  display: none !important;
}

.swagger-ui .opblock-tag-section {
  background: transparent !important;
}

.swagger-ui .opblock {
  border-radius: var(--radii-lg) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  margin-bottom: 12px !important;
  box-shadow: none !important;
}

.swagger-ui .opblock .opblock-summary {
  padding: 12px 20px !important;
}

.swagger-ui .opblock .opblock-summary-method {
  border-radius: var(--radii-sm) !important;
  font-family: var(--font-mono) !important;
  text-shadow: none !important;
}

.swagger-ui .btn.execute {
  background-color: var(--accent-core) !important;
  border-color: var(--accent-core) !important;
  color: #fff !important;
}

.swagger-ui .btn.authorize {
  border-color: var(--accent-core) !important;
  color: var(--accent-core) !important;
}

.swagger-ui .btn.authorize svg {
  fill: var(--accent-core) !important;
}

@keyframes docsFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.docs-hero,
.qs-card,
.docs-shell {
  animation: docsFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.qs-card:nth-child(1) {
  animation-delay: 0.1s;
}

.qs-card:nth-child(2) {
  animation-delay: 0.15s;
}

.qs-card:nth-child(3) {
  animation-delay: 0.2s;
}

.docs-shell {
  animation-delay: 0.3s;
}

/* ─── 25. Articles Sidebar Layout ─── */
.articles-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.articles-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  max-height: calc(100vh - var(--nav-height) - 32px);
  overflow-y: auto;
  scrollbar-width: none;
}

.articles-sidebar::-webkit-scrollbar {
  display: none;
}

.articles-sidebar-inner {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radii-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.articles-search-wrap {
  position: relative;
}

.articles-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.articles-search-input {
  width: 100%;
  padding-left: 30px;
}

.articles-filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.articles-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radii-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-chip:hover {
  border-color: var(--accent-core);
  color: var(--text-primary);
}

.tag-chip.active,
.tag-chip[aria-pressed="true"] {
  background: var(--accent-core);
  border-color: var(--accent-core);
  color: #fff;
}

.articles-clear-btn {
  font-size: 0.75rem;
  color: var(--accent-bright);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: "DM Sans", sans-serif;
}

.articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radii-lg);
}

@media (max-width: 768px) {
  .articles-layout {
    grid-template-columns: 1fr;
  }

  .articles-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .articles-sidebar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .articles-filter-section {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* ─── 26. Article Detail Enhancements ─── */
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.article-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radii-md);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-btn:hover {
  border-color: var(--accent-core);
  color: var(--accent-bright);
  background: var(--surface-hover);
}

.share-btn--twitter:hover { border-color: #1da1f2; color: #1da1f2; }
.share-btn--linkedin:hover { border-color: #0077b5; color: #0077b5; }

.article-callout {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--surface-raised);
  border-left: 3px solid var(--accent-core);
  border-radius: 0 var(--radii-lg) var(--radii-lg) 0;
}

.article-callout .eyebrow {
  margin-bottom: 8px;
}

.article-callout-link {
  text-decoration: none;
  display: block;
}

.article-callout-link h4 {
  color: var(--text-primary);
  margin: 0 0 4px;
  font-size: 0.9375rem;
}

.article-callout-link p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.article-callout-link:hover h4 {
  color: var(--accent-bright);
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.related-article-card {
  display: block;
  padding: 16px 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radii-lg);
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-article-card:hover {
  border-color: var(--accent-core);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.related-article-card h3 {
  color: var(--text-primary);
  font-size: 0.9375rem;
  margin: 4px 0 6px;
  line-height: 1.4;
}

.related-article-card .lead {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ─── 27. Company Screenshot Frame ─── */
.company-screenshot-frame {
  float: right;
  max-width: 260px;
  width: 40%;
  margin: 0 0 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radii-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.csf-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.csf-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.csf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.csf-dot--red    { background: #ef4444; }
.csf-dot--yellow { background: #f59e0b; }
.csf-dot--green  { background: #22c55e; }

.csf-address {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: var(--void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radii-sm);
  padding: 3px 10px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csf-viewport {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--void);
}

.csf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

@media (max-width: 600px) {
  .company-screenshot-frame {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}

/* ─── 28. Widgets Landing Page ─── */
.widgets-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.widget-preview-wrap {
  margin: 20px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radii-lg);
  overflow: hidden;
  background: var(--void);
}

.widget-preview-iframe {
  width: 100%;
  display: block;
  border: none;
}

.embed-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.embed-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--accent-bright);
  background: var(--void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radii-md);
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
}

.widgets-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ─── 29. Brand Logo Icon ─── */
.brand-logo-icon {
  display: block;
  flex-shrink: 0;
  color: var(--accent-bright);
  transform: rotate(-10deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.45)) drop-shadow(0 0 18px rgba(59, 130, 246, 0.22));
  transition: filter 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.topnav-brand:hover .brand-logo-icon {
  color: #8fd1ff;
  transform: rotate(-12deg);
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.55)) drop-shadow(0 0 22px rgba(59, 130, 246, 0.32));
}

.brand-logo-icon--sm {
  opacity: 0.9;
}

/* ─── 30. Article Detail Two-Column Layout ─── */
.article-detail-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 8px);
  max-height: calc(100vh - var(--nav-height) - 28px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-section {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radii-lg);
  padding: 1.25rem;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 0.75rem;
}

.sidebar-read-time {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sidebar-tags .tiny-chip {
  text-decoration: none;
  cursor: pointer;
}
.sidebar-tags .tiny-chip:hover {
  background: var(--accent-core);
  color: #fff;
  border-color: var(--accent-core);
}

.sidebar-related-card {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.sidebar-related-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-related-card:hover h4 {
  color: var(--accent-core);
}
.sidebar-related-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  line-height: 1.3;
  transition: color 0.15s;
}
.sidebar-related-card p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .article-detail-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    order: 2;
  }
  .article-main {
    order: 1;
  }
}
