:root {
  --bg: #08090B;
  --bg-deep: #050608;
  --bg-card: rgba(8, 9, 11, 0.7);
  --surface: rgba(13, 15, 18, 0.6);
  --text: #EDEDEF;
  --muted: #878792;
  --accent: #2383E5;
  --accent-glow: rgba(35, 131, 229, 0.18);
  --cyan: #2383E5;
  --amber: #FBBF24;
  --success: #34D399;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.10);
  --border-accent: rgba(35, 131, 229, 0.20);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-glow: 0 0 30px rgba(35, 131, 229, 0.18);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --warn: #FBBF24;
  --accent-cyan: #22D3EE;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(35, 131, 229, 0.12), transparent 28rem),
    linear-gradient(180deg, #050608 0%, #08090B 55%, #0D0F12 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'DM Sans', -apple-system, sans-serif;
  scroll-behavior: smooth;
}
body {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', monospace;
}

h1, h2, p, ul, dl {
  margin: 0;
}

/* Nav bar */
.stratus-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 300ms ease;
}

.stratus-nav.nav-scrolled {
  background: rgba(8, 9, 11, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 140ms ease;
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 140ms ease;
}

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

/* Hero */
.hero-section {
  min-height: 100vh;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(35, 131, 229, 0.12), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

#hero-canvas {
  opacity: 0.6;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Section reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Glass morphism cards */
.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(13, 15, 18, 0.45);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 200ms ease, transform 200ms ease;
}

.glass-card:hover {
  border-color: var(--border-accent);
  transform: scale(1.01);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated glow orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.glow-orb-accent {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: rgba(46, 91, 255, 0.06);
}

.glow-orb-cyan {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -80px;
  background: rgba(35, 131, 229, 0.05);
  animation-delay: -6s;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.05); }
}

/* CTA buttons */
.btn-primary,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--accent), #3B8BE8);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.btn-primary:hover,
.button-primary:hover {
  box-shadow: 0 0 45px rgba(35, 131, 229, 0.3);
  transform: translateY(-1px);
}

.btn-secondary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border-hover);
  transition: border-color 200ms ease, transform 200ms ease;
}

.btn-secondary:hover,
.button-secondary:hover {
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

/* Button base class (paired with .button-primary / .button-secondary) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

/* ============================================================
   Portal hero components (shared across operator, dashboard, billing)
   ============================================================ */

/* Hero panel (used inside .shell for page-level section headers) */
.hero {
  padding: 2.5rem 2rem;
  text-align: center;
  scroll-margin-top: 72px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

/* Eyebrow / tagline label above headings */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* Lead paragraph — introductory text */
.lede {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 48ch;
  margin: 0 auto 0.5rem;
}

.lede-secondary {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: var(--muted);
  max-width: none;
}

/* Hero grid layout container */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

/* Hero actions — button row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.gis-sign-in-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* Backdrop decorative elements (fixed background blobs) */
.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.backdrop-a {
  background: radial-gradient(ellipse at 20% 50%, rgba(35, 131, 229, 0.08), transparent 50%);
}

.backdrop-b {
  background: radial-gradient(ellipse at 80% 20%, rgba(35, 131, 229, 0.05), transparent 50%);
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-grid {
    gap: 1rem;
  }
}

/* ============================================================
   Shared portal utilities — stats, tables, utilities
   ============================================================ */

/* Content wrapper inside .shell */
.shell-content {
  /* Padding handled via inline styles on each page */
}

/* Stats metrics grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-item {
  /* Container for metric-label + stat-value pairs */
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Generic grid (card grid layout) */
.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* Monospace text utility */
.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Data tables (routing, waitlist, workflow analytics) */
.waitlist-table-wrap {
  overflow-x: auto;
}

.waitlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.waitlist-table th,
.waitlist-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.waitlist-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.waitlist-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Status page extras */
.status-shell {
  max-width: 1180px;
}

.status-main-section {
  min-width: 0;
}

/* Calculator widget */
.calc-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(35, 131, 229, 0.15);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #08090B;
  box-shadow: 0 2px 8px rgba(35, 131, 229, 0.3);
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #08090B;
  box-shadow: 0 2px 8px rgba(35, 131, 229, 0.3);
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.calc-output-value {
  font-size: 1.6rem;
  font-family: 'Space Grotesk', monospace;
  color: #FBBF24;
  line-height: 1.1;
}

/* Form elements */
.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hover);
  border-radius: 0.75rem;
  color: var(--text);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease;
  width: 100%;
}

.form-input::placeholder {
  color: var(--muted);
  opacity: 0.65;
}

.form-input:focus {
  border-color: var(--border-accent);
  background: rgba(35, 131, 229, 0.04);
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Chip tags */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: rgba(35, 131, 229, 0.08);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .glow-orb-accent {
    width: 350px;
    height: 350px;
    top: -100px;
    right: -60px;
  }

  .glow-orb-cyan {
    width: 300px;
    height: 300px;
    bottom: -60px;
    left: -50px;
  }
}

@media (max-width: 768px) {
  .stratus-nav {
    padding: 0.6rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-glow {
    width: 350px;
    height: 350px;
  }

  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .btn-primary,
  .btn-secondary,
  .button-primary,
  .button-secondary {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .glass-card {
    border-radius: 0.75rem;
  }

  .calc-output-value {
    font-size: 1.3rem;
  }
}

/* ============================================================
   Status page components — DO NOT REMOVE
   ============================================================ */

.status-page .shell {
  max-width: 1180px;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 1;
}

.panel {
  background: rgba(13, 15, 18, 0.78);
  border: 1px solid rgba(35, 131, 229, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.panel-error {
  color: #dc2626;
  margin: 0.5rem 0;
}

.status-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.status-brand,
.status-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.status-brand,
.status-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.status-brand img {
  display: block;
}

.status-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  padding: 1.6rem;
}

.status-overview h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.status-overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.status-kpi,
.status-side-panel,
.component-group,
.incident-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.status-kpi {
  min-height: 6.4rem;
  padding: 1rem;
  border-radius: 16px;
  display: grid;
  align-content: space-between;
}

.status-kpi strong {
  font-size: 1.1rem;
}

.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.section-heading {
  margin-bottom: 0.85rem;
}

.section-heading h2,
.status-side-panel h2 {
  margin-top: 0.2rem;
}

.component-groups,
.component-list,
.incident-list {
  display: grid;
  gap: 0.85rem;
}

.component-group,
.status-side-panel {
  border-radius: 20px;
  padding: 1rem;
}

.component-group-header,
.component-row,
.incident-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.component-group-header {
  margin-bottom: 0.8rem;
}

.component-row {
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.component-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.component-row:last-child {
  padding-bottom: 0;
}

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

.component-main h3,
.incident-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.component-main p,
.status-side-panel p,
.incident-row p,
.muted-copy {
  color: var(--muted);
  line-height: 1.55;
}

.component-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.component-state {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  min-width: 10rem;
}

.component-deps {
  max-width: 14rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: right;
}

.status-side-section {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.incident-row {
  border-radius: 16px;
  padding: 1rem;
}

.incident-update {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-ok {
  color: #052E16;
  background: rgba(52, 211, 153, 0.92);
}

.status-warn {
  color: #422006;
  background: rgba(251, 191, 36, 0.92);
}

.status-danger {
  color: #FEF2F2;
  background: rgba(220, 38, 38, 0.92);
}

.status-pending {
  color: var(--text);
  background: rgba(135, 135, 146, 0.22);
  border: 1px solid rgba(135, 135, 146, 0.36);
}

.metric-label,
.status-label,
dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.action-list a,
.route-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.action-list a:hover,
.route-list a:hover {
  color: var(--accent);
}

.action-list li {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.action-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.route-list {
  display: grid;
  gap: 1rem;
}

.route-list div {
  display: grid;
  gap: 0.35rem;
}

/* ============================================================
   Subscribe widget + past incidents
   ============================================================ */

.subscribe-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(13, 15, 18, 0.78);
  border: 1px solid rgba(35, 131, 229, 0.12);
  border-radius: 0.5rem;
}

.subscribe-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.subscribe-widget input {
  flex: 1;
  padding: 0.4rem 0.75rem;
  background: var(--bg);
  border: 1px solid rgba(35, 131, 229, 0.12);
  border-radius: 0.375rem;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
}

.subscribe-widget input:focus {
  border-color: var(--accent);
}

.subscribe-widget button {
  padding: 0.4rem 1rem;
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.subscribe-widget button:hover {
  background: #1B6FD4;
}

.subscribe-widget button:disabled {
  background: var(--success);
  cursor: default;
}

.past-incidents-link {
  display: block;
  text-align: center;
  padding: 1rem 0;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.past-incidents-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================================
   Sticky sidebar navigation — blog
   ============================================================ */

.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.sidebar-nav {
  position: sticky;
  top: 1.5rem;
  width: 200px;
  flex-shrink: 0;
  padding: 1.25rem 0;
  background: rgba(8, 9, 11, 0.94);
  border: 1px solid rgba(35, 131, 229, 0.10);
  border-radius: 16px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 100;
  margin-top: 0;
  align-self: flex-start;
  transform: translateZ(0);
}

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

.sidebar-nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1rem 0.6rem;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.5rem;
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.sidebar-nav-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 0;
  transition: color 120ms ease, background 120ms ease;
  border-left: 2px solid transparent;
}

.sidebar-nav-list a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 120ms ease;
}

.sidebar-nav-list a:hover {
  color: var(--text);
  background: rgba(35, 131, 229, 0.06);
}

.sidebar-nav-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(35, 131, 229, 0.06);
}

.sidebar-nav-list a.active::before {
  opacity: 1;
}

.shell-with-sidebar {
  flex: 1;
  min-width: 0;
  padding-left: 1.5rem;
}

/* Mobile sticky nav pill (shown only on ≤768px) */
.mobile-nav {
  display: none;
}

.panel.card,
.hero.panel,
section.panel {
  scroll-margin-top: 72px;
}

/* ============================================================
   SCROLL-REVEAL + HIDDEN UTILITY
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

/* ============================================================
   RESPONSIVE — status page + blog + sidebar
   ============================================================ */

@media (max-width: 920px) {
  .status-overview,
  .status-layout {
    grid-template-columns: 1fr;
  }

  .status-side-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar-nav {
    display: none;
  }

  .shell-with-sidebar {
    padding-left: 0;
  }

  .panel.card,
  .hero.panel,
  section.panel {
    scroll-margin-top: 60px;
  }

  .mobile-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(8, 9, 11, 0.96);
    border-bottom: 1px solid rgba(35, 131, 229, 0.10);
    margin: 0 calc(-0.5rem) 0.75rem;
    padding: 0.45rem 0;
    transform: translateZ(0);
  }

  .mobile-nav-track {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0 0.75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-nav-track::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
  }

  .mobile-nav-item:hover {
    color: var(--text);
    background: rgba(35, 131, 229, 0.08);
    border-color: rgba(35, 131, 229, 0.2);
  }

  .mobile-nav-item.active {
    color: var(--accent);
    background: rgba(35, 131, 229, 0.08);
    border-color: rgba(35, 131, 229, 0.25);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 1rem;
  }

  .status-topbar,
  .component-row,
  .incident-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .status-links {
    justify-content: flex-start;
  }

  .status-overview {
    padding: 1.1rem;
  }

  .status-overview-metrics {
    grid-template-columns: 1fr;
  }

  .component-state {
    justify-items: start;
    min-width: 0;
  }

  .component-deps {
    max-width: none;
    text-align: left;
  }
}


/* ============================================================
   Landing page extras (index.html)
   ============================================================ */

/* Noise texture overlay — CSS-only SVG filter */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Smooth scrolling utility */
.scroll-smooth {
  scroll-behavior: smooth;
}

/* ============================================================
   Accessibility — skip nav link + keyboard focus
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Visible keyboard focus ring for all interactive elements */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove the focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Touch-friendly tap targets */
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
