/* CargoWX Design System — Aviation Operations Dark UI */
:root {
  --bg: #04070d;
  --bg-elev-1: #090f1b;
  --bg-elev-2: #0e1728;
  --bg-elev-3: #142138;
  --bg-glass: rgba(11, 18, 32, 0.78);

  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --border-accent: rgba(56, 189, 248, 0.42);
  --highlight-top: inset 0 1px 0 rgba(255, 255, 255, 0.07);

  --text: #f1f5f9;
  --text-secondary: #9fb0c7;
  --text-muted: #6c7f99;

  --cyan: #38bdf8;
  --cyan-strong: #0ea5e9;
  --cyan-soft: rgba(56, 189, 248, 0.12);
  --indigo: #818cf8;

  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --red: #f43f5e;
  --red-soft: rgba(244, 63, 94, 0.16);

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-lg: 0 24px 64px -20px rgba(0, 0, 0, 0.78);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 18px 48px -18px rgba(14, 165, 233, 0.35);

  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

/* Subtle aviation coordinate grid + optical ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 35%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(620px 420px at 14% 6%, rgba(56, 189, 248, 0.14), transparent 72%),
    radial-gradient(560px 420px at 86% 12%, rgba(99, 102, 241, 0.12), transparent 74%),
    radial-gradient(700px 500px at 50% 62%, rgba(14, 165, 233, 0.05), transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

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

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 7, 13, 0.76);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2.2s infinite;
  flex-shrink: 0;
}

.pulse-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(6, 10, 18, 0.98);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 10px 4px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #03111c;
  box-shadow: 0 10px 28px -10px rgba(56, 189, 248, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(56, 189, 248, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--highlight-top);
}

.btn-secondary:hover {
  background: var(--bg-elev-3);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
  padding: 8px 13px;
  font-size: 0.84rem;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-accent);
  background: rgba(56, 189, 248, 0.08);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.98rem;
  border-radius: 12px;
}

/* ---------------- Badges & Tiers ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tier-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tier-RED {
  color: #fb7185;
  background: var(--red-soft);
  border-color: rgba(244, 63, 94, 0.35);
}

.tier-AMBER {
  color: #fbbf24;
  background: var(--amber-soft);
  border-color: rgba(245, 158, 11, 0.35);
}

.tier-GREEN {
  color: #34d399;
  background: var(--green-soft);
  border-color: rgba(16, 185, 129, 0.35);
}

/* ---------------- Hero Section ---------------- */
.hero {
  position: relative;
  padding: 68px 0 42px;
  overflow: hidden;
}

.hero-bg-art {
  position: absolute;
  top: -30px;
  right: -8%;
  width: 820px;
  max-width: 90vw;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 44px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 23, 40, 0.86);
  border: 1px solid var(--border-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #bae6fd;
  margin-bottom: 22px;
  max-width: 100%;
  flex-wrap: wrap;
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.7vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(120deg, #ffffff 10%, #7dd3fc 58%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--text-secondary);
  max-width: 58ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.hero-proof-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proof-check {
  width: 16px;
  height: 16px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* Hero Telemetry HUD Card */
.hero-hud {
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.92) 0%, rgba(8, 14, 25, 0.96) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-lg), var(--shadow-glow), var(--highlight-top);
  position: relative;
  min-width: 0;
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hud-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hud-lane {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.hud-body {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 0;
}

.hud-gauge {
  position: relative;
  width: 144px;
  height: 144px;
  display: grid;
  place-items: center;
}

.hud-gauge svg {
  width: 144px;
  height: 144px;
  transform: rotate(-90deg);
}

.hud-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hud-gauge-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.hud-gauge-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-top: 5px;
}

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

.hud-stat {
  background: rgba(5, 9, 17, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  min-width: 0;
}

.hud-stat-label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hud-stat-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 3px;
}

.hud-stat-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hud-metar {
  background: #04070e;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #bae6fd;
  word-break: break-word;
}

.hud-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hud-jump {
  color: var(--cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hud-jump:hover {
  text-decoration: underline;
}

/* ---------------- Live Hub Telemetry Strip ---------------- */
.hub-strip-wrap {
  margin-top: 44px;
  position: relative;
  z-index: 1;
}

.hub-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.strip-card {
  text-align: left;
  background: rgba(10, 16, 28, 0.84);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  transition: border-color 0.18s ease, transform 0.16s ease, background 0.18s ease;
  min-width: 0;
  box-shadow: var(--highlight-top);
}

.strip-card:hover,
.strip-card.active {
  border-color: var(--border-accent);
  background: rgba(16, 28, 48, 0.92);
  transform: translateY(-2px);
}

.strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.strip-icao {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.84rem;
}

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

.strip-dot.RED { background: var(--red); box-shadow: 0 0 8px rgba(244, 63, 94, 0.7); }
.strip-dot.AMBER { background: var(--amber); box-shadow: 0 0 8px rgba(245, 158, 11, 0.65); }
.strip-dot.GREEN { background: var(--green); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

.strip-city {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-temps {
  margin-top: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  font-family: var(--font-mono);
}

.strip-air {
  font-size: 0.95rem;
  font-weight: 700;
}

.strip-apron {
  font-size: 0.71rem;
  color: var(--text-secondary);
}

/* ---------------- Section Scaffolding ---------------- */
.section {
  padding: 84px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(10, 16, 29, 0.62) 0%, rgba(4, 7, 13, 0.25) 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.section-head-split .section-head {
  margin-bottom: 0;
}

.section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.62;
}

/* ---------------- Interactive Console ---------------- */
.console-shell {
  background: linear-gradient(180deg, #0b1322 0%, #070d18 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--highlight-top);
  overflow: hidden;
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 22px;
  background: rgba(5, 9, 17, 0.9);
  border-bottom: 1px solid var(--border);
}

.console-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.console-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
}

.console-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.console-feed-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.console-controls {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 20, 36, 0.56);
  display: grid;
  gap: 16px;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.control-label {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(4, 7, 13, 0.85);
  border: 1px solid var(--border);
}

.seg-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.seg-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.seg-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  font-weight: 600;
}

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

.lane-chip {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(5, 9, 17, 0.85);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.16s ease;
}

.lane-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.lane-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.console-main {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.92fr);
  gap: 0;
}

.console-visuals {
  padding: 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.console-panel {
  background: rgba(5, 9, 17, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.panel-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.map-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

.map-box {
  width: 100%;
  aspect-ratio: 16 / 7.4;
  min-height: 210px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #0d182b 0%, #050912 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.map-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-node {
  cursor: pointer;
}

.map-node:hover .node-halo {
  opacity: 0.85;
}

.chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart-wrap {
  position: relative;
  min-width: 460px;
}

.chart-wrap svg {
  width: 100%;
  height: 235px;
  display: block;
}

.chart-tooltip {
  margin-bottom: 10px;
  background: rgba(9, 15, 27, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 9px;
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #e0f2fe;
  line-height: 1.45;
}

/* Right telemetry column */
.console-inspector {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.verdict-card {
  background: rgba(5, 9, 17, 0.82);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
}

.verdict-card.tier-border-RED { border-color: rgba(244, 63, 94, 0.45); }
.verdict-card.tier-border-AMBER { border-color: rgba(245, 158, 11, 0.45); }
.verdict-card.tier-border-GREEN { border-color: rgba(16, 185, 129, 0.45); }

.verdict-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.verdict-station {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.2;
}

.verdict-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.verdict-kpis {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-tile {
  background: rgba(13, 22, 38, 0.78);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  min-width: 0;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 3px;
}

.kpi-note {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.action-box {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-md);
  padding: 15px 16px;
}

.action-box h3 {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
}

.action-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.metar-box {
  background: #04070e;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 15px;
}

.metar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.metar-raw {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #bae6fd;
  word-break: break-word;
}

.hazard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hazard-pill {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.32);
  color: #fda4af;
}

.hazard-pill.clear {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.console-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.console-actions .btn {
  flex: 1 1 180px;
}

/* ---------------- Problem Cascade Section ---------------- */
.cascade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.cascade-step {
  background: linear-gradient(180deg, rgba(14, 23, 40, 0.82) 0%, rgba(8, 13, 24, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  box-shadow: var(--highlight-top);
}

.cascade-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cascade-metric {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.cascade-step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
}

.cascade-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.problem-callout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.callout-tile {
  background: rgba(7, 12, 22, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.callout-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.04rem;
  margin-bottom: 6px;
}

.callout-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ---------------- 4 Data Layers Section ---------------- */
.latency-edge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.edge-card {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--highlight-top);
}

.edge-legacy {
  background: rgba(9, 14, 24, 0.72);
}

.edge-cargowx {
  background: linear-gradient(135deg, rgba(14, 34, 56, 0.88) 0%, rgba(9, 18, 34, 0.94) 100%);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow), var(--highlight-top);
}

.edge-tag {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.edge-cargowx .edge-tag {
  color: var(--cyan);
}

.edge-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.edge-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

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

.layer-card {
  background: linear-gradient(180deg, rgba(14, 23, 40, 0.86) 0%, rgba(7, 12, 22, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--highlight-top);
  transition: border-color 0.2s ease;
}

.layer-card:hover {
  border-color: var(--border-accent);
}

.layer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.layer-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.layer-cadence {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
}

.layer-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.layer-card p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.coverage-bar {
  margin-top: 24px;
  background: rgba(7, 12, 22, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.region-col h4 {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.region-col p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------------- API & Code Section ---------------- */
.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 32px;
  align-items: start;
}

.api-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.api-point {
  background: rgba(10, 16, 29, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.api-point h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.api-point p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.code-window {
  background: #04070e;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-width: 0;
}

.code-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(11, 18, 32, 0.95);
  border-bottom: 1px solid var(--border);
}

.code-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.code-tab {
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.code-tab.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

.code-body {
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.62;
  color: #cbd5e1;
  overflow-x: auto;
  max-height: 430px;
}

/* ---------------- Comparison Matrix ---------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(7, 12, 22, 0.9);
  box-shadow: var(--shadow-lg);
}

.compare-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.89rem;
}

.compare-table th,
.compare-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table thead th {
  background: rgba(11, 18, 32, 0.96);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.compare-table thead th span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table .col-cargowx {
  background: rgba(56, 189, 248, 0.08);
  border-left: 1px solid rgba(56, 189, 248, 0.35);
  border-right: 1px solid rgba(56, 189, 248, 0.35);
  color: #f0f9ff;
}

.compare-table thead .col-cargowx {
  background: rgba(56, 189, 248, 0.16);
  border-top: 2px solid var(--cyan);
}

.cell-yes { color: #34d399; font-weight: 600; }
.cell-no { color: var(--text-muted); }
.cell-warn { color: #fbbf24; }

/* ---------------- Role Scenarios ---------------- */
.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.role-tab {
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(10, 16, 29, 0.86);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.16s ease;
}

.role-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan);
  color: var(--text);
}

.scenario-panel {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scenario-panel.active {
  display: grid;
}

.scenario-card {
  background: linear-gradient(180deg, rgba(14, 23, 40, 0.82) 0%, rgba(7, 12, 22, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--highlight-top);
}

.scenario-kicker {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.scenario-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.scenario-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-secondary);
}

/* ---------------- Team & Engineering ---------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  background: linear-gradient(180deg, rgba(14, 23, 40, 0.85) 0%, rgba(7, 12, 22, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--highlight-top);
}

.team-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.team-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.14rem;
}

.team-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ---------------- FAQ ---------------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  background: rgba(10, 16, 29, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ---------------- Pilot CTA Card ---------------- */
.pilot-shell {
  background: linear-gradient(135deg, rgba(16, 30, 52, 0.95) 0%, rgba(8, 14, 26, 0.98) 65%, rgba(14, 34, 52, 0.92) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 38px;
  align-items: start;
}

.pilot-checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 24px;
  display: grid;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.pilot-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pilot-contacts {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pilot-contacts a {
  color: var(--cyan);
}

.pilot-contacts a:hover {
  text-decoration: underline;
}

.pilot-form {
  background: rgba(4, 7, 13, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 14px;
}

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

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

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  background: #0a111f;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.field input::placeholder {
  color: var(--text-muted);
}

.form-status {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #a7f3d0;
}

.form-status.error {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.38);
  color: #fecdd3;
}

.form-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------------- Modal (Audit Export) ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(2, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: #0a1220;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.modal-body {
  padding: 18px 20px;
  overflow: auto;
  min-height: 0;
}

.modal-pre {
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  background: #04070e;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  line-height: 1.55;
  color: #bae6fd;
  overflow-x: auto;
}

.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 46px;
  background: rgba(3, 6, 11, 0.92);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------------- Legal Pages ---------------- */
.legal-main {
  padding: 64px 0 96px;
}

.legal-card {
  max-width: 820px;
  background: rgba(9, 15, 27, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.legal-card h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1120px) {
  .hub-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .console-main {
    grid-template-columns: 1fr;
  }
  .console-visuals {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .cascade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coverage-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-links,
  .status-pill {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid,
  .api-grid,
  .pilot-shell {
    grid-template-columns: 1fr;
  }
  .problem-callout,
  .latency-edge-grid,
  .layers-grid,
  .scenario-panel.active,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 42px 0 32px;
  }
  .section {
    padding: 56px 0;
  }
  .hud-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .hud-metrics {
    width: 100%;
  }
  .hub-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cascade-grid,
  .coverage-bar,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .console-topbar,
  .console-controls,
  .console-visuals,
  .console-inspector {
    padding: 15px;
  }
  .pilot-shell {
    padding: 22px 18px;
  }
  .pilot-form {
    padding: 18px;
  }
  .header-actions .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .brand-tag {
    display: none;
  }
  .hero-kicker {
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.69rem;
    line-height: 1.4;
    flex-wrap: nowrap;
    align-items: center;
  }
  .map-box {
    min-width: 560px;
  }
}
