/* ════════════════════════════════════════════════════════════
   NIMBUS Landing — implements docs/design/landing-page.md
   Palette §15.5 · Typography §16.1 · Motion §16.2 · Responsive §16.3
   ════════════════════════════════════════════════════════════ */

:root {
  /* Brand palette (§15.5) */
  --nimbus-deep:  #05070D;
  --nimbus-navy:  #0E1420;
  --halo-cyan:    #4DA6FF;
  --halo-light:   #7FD9FF;
  --signal-amber: #FF7A45;
  --text-primary: #F5F8FF;
  --text-muted:   #95A3BF;
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(127, 217, 255, 0.35);

  --grad-halo: linear-gradient(135deg, var(--halo-cyan), var(--halo-light));

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Motion: slow and weighted (§16.2) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nimbus-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9375rem; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out),
              background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-halo);
  color: #04121F;
  font-weight: 600;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(77, 166, 255, 0.25); }
.btn--ghost { border-color: var(--border); color: var(--text-primary); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out),
              backdrop-filter 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.0625rem; letter-spacing: 0.16em;
}

.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav__link {
  font-size: 0.875rem; color: var(--text-muted);
  transition: color 200ms var(--ease-out);
}
.site-nav__link:hover { color: var(--halo-light); }
@media (max-width: 860px) { .site-nav__link { display: none; } }

.locale-switch {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-family: var(--font-mono);
  font-size: 0.8125rem; letter-spacing: 0.06em;
  padding: 0.4rem 0.5rem;
  transition: color 200ms var(--ease-out);
}
.locale-switch:hover { color: var(--text-primary); }
.locale-switch__active { color: var(--halo-cyan); font-weight: 500; }
.locale-switch__sep { opacity: 0.35; margin: 0 0.15em; }

/* ════ HERO (§3) ══════════════════════════════════════════
   Cropped limb, lower-right. Globe centre sits OFF-CANVAS so the
   visible curve is shallow and wide — that shallow curve is what
   reads as "planet" rather than "ball". */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem clamp(1.5rem, 4vw, 3rem) 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__starfield,
.hero__globe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.hero__globe { z-index: -1; opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero__globe.is-ready { opacity: 1; }

/* CSS fallback limb — used when WebGL is unavailable (§3.3).
   Deliberately built to be near-indistinguishable in a still frame. */
.hero__limb-fallback {
  position: absolute; z-index: -1;
  width: 200vmax; height: 200vmax;
  right: -76vmax; bottom: -150vmax;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 22%, #1B3A5C 0%, #10233A 38%, #0A1727 62%, #071018 100%);
  box-shadow:
    0 0 0 1px rgba(127, 217, 255, 0.5),
    0 0 60px 6px rgba(77, 166, 255, 0.42),
    0 0 160px 40px rgba(77, 166, 255, 0.15);
  display: none;
}
.no-webgl .hero__limb-fallback { display: block; }

.hero__content { position: relative; max-width: 46rem; }

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero__title .line { display: block; }
.hero__title .line:last-child { color: var(--halo-light); }

.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 34rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.5rem; }

.hero__powered {
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 0.04em;
}
.hero__powered strong { font-weight: 600; }

.hero__scroll {
  position: absolute; left: clamp(1.5rem, 4vw, 3rem); bottom: 2rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); opacity: 0.5;
}
.hero__scroll svg { animation: nudge 2.4s var(--ease-out) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); opacity: .6 } 50% { transform: translateY(4px); opacity: 1 } }

/* ── Section scaffolding ─────────────────────────────────── */
section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }

.sec-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--halo-cyan); margin-bottom: 0.875rem;
}
.sec-title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -0.015em; }

/* ── Capability bar (§5) ─────────────────────────────────── */
.capability { padding-block: clamp(3rem, 6vw, 5rem); border-block: 1px solid var(--border); }
.capability__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1;
  background: var(--grad-halo);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { display: block; margin-top: 0.625rem; font-size: 0.875rem; color: var(--text-muted); }
.capability__roadmap {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center; font-size: 0.875rem;
  color: var(--text-muted); opacity: 0.7;
}

/* ── Customer logos (§13 — hidden until populated) ───────── */
.logos { padding-block: 3rem; border-bottom: 1px solid var(--border); }
.logos[hidden] { display: none; }
.logos__label {
  text-align: center; font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem;
}
.logos__strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; opacity: 0.6; }

/* ── Product cards (§6) ──────────────────────────────────── */
.products__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--nimbus-navy);
  padding: 1.25rem;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.card:hover { transform: translateY(-2px); border-color: var(--border-hover); }

/* Tile previews: stand-ins for real tile imagery (see README) */
.card__preview {
  height: 132px; border-radius: 8px; margin-bottom: 1.125rem;
  background-color: #071018;
  background-size: cover; background-position: center;
  border: 1px solid var(--border);
}
.card__preview--forecast { background-image: radial-gradient(ellipse at 30% 40%, rgba(77,166,255,.55), transparent 55%), radial-gradient(ellipse at 68% 62%, rgba(127,217,255,.4), transparent 50%), linear-gradient(160deg, #0A1A2E, #071018); }
.card__preview--radar    { background-image: radial-gradient(circle at 52% 48%, rgba(255,122,69,.7), rgba(255,196,69,.45) 26%, rgba(77,166,255,.35) 48%, transparent 66%), linear-gradient(160deg, #0A1A2E, #071018); }
.card__preview--rain     { background-image: radial-gradient(ellipse at 45% 55%, rgba(77,166,255,.6), transparent 58%), radial-gradient(ellipse at 72% 32%, rgba(127,217,255,.35), transparent 46%), linear-gradient(160deg, #0A1A2E, #071018); }
.card__preview--wind     { background-image: repeating-linear-gradient(115deg, rgba(127,217,255,.28) 0 2px, transparent 2px 9px), linear-gradient(160deg, #0A1A2E, #071018); }
.card__preview--sat      { background-image: radial-gradient(ellipse at 40% 45%, rgba(245,248,255,.5), transparent 52%), radial-gradient(ellipse at 66% 60%, rgba(245,248,255,.28), transparent 48%), linear-gradient(160deg, #0A1A2E, #071018); }
.card__preview--storm    { background-image: conic-gradient(from 210deg at 52% 52%, rgba(255,122,69,.62), rgba(77,166,255,.35), rgba(255,122,69,.62)), linear-gradient(160deg, #0A1A2E, #071018); }

.card__title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card__desc { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 0.875rem; }
.card__meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--halo-cyan); opacity: 0.75; }

/* ── Interactive demo (§7) ───────────────────────────────── */
.demo { background: var(--nimbus-navy); }
.demo__frame { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--nimbus-deep); }
.demo__canvas { position: relative; height: min(70vh, 560px); overflow: hidden; }
/* Graticule reads as a map only if it's actually visible — at .03 alpha it
   disappeared entirely and the weather cells floated in a void. */
.demo__basemap {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg,  rgba(127,217,255,.09) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(127,217,255,.09) 0 1px, transparent 1px 60px),
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(27,58,92,.55), transparent 70%),
    linear-gradient(180deg, #0A1526, #060B14);
}
/* Suggestion of a coastline so the frame reads as geography, not graph paper */
.demo__basemap::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 16% 30% at 34% 44%, rgba(46,90,58,.42), transparent 62%),
    radial-gradient(ellipse 10% 22% at 44% 68%, rgba(46,90,58,.34), transparent 60%),
    radial-gradient(ellipse 22% 16% at 68% 34%, rgba(46,90,58,.30), transparent 64%);
}
.demo__layer {
  position: absolute; inset: 0;
  transition: opacity 400ms var(--ease-out), filter 400ms var(--ease-out);
  mix-blend-mode: screen;
}
.demo__placeholder {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--text-muted); opacity: 0.35; pointer-events: none;
}
/* Once the live Leaflet map mounts, the mock layers must not sit on top of it */
.demo__canvas.is-live .demo__basemap,
.demo__canvas.is-live .demo__layer,
.demo__canvas.is-live .demo__placeholder { display: none; }

/* Leaflet inside the dark frame */
.demo__canvas.leaflet-container { background: #060B14; } /* height comes from .demo__canvas; setting 100% here collapses it (parent is auto-height) */
.demo__canvas .leaflet-container { background: #060B14; height: 100%; width: 100%; }
.demo__canvas .leaflet-control-attribution {
  background: rgba(5,7,13,.72); color: var(--text-muted);
  font-size: 10px; border-radius: 4px 0 0 0;
}
.demo__canvas .leaflet-control-attribution a { color: var(--halo-cyan); }
.demo__canvas .leaflet-control-zoom a {
  background: rgba(14,20,32,.9); color: var(--text-primary);
  border-color: var(--border);
}
.demo__canvas .leaflet-control-zoom a:hover { background: rgba(77,166,255,.2); }

/* Live tile mosaic replacing a gradient stand-in on a product card */
.card__preview.has-live { background-image: none; padding: 0; overflow: hidden; }
.card__preview.has-live canvas { width: 100%; height: 100%; object-fit: cover; }
.demo__controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border);
}
.demo__layers { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.8125rem;
  font-family: var(--font-body); cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.chip:hover { color: var(--text-primary); border-color: var(--border-hover); }
.chip.is-active { background: rgba(77,166,255,.14); border-color: var(--halo-cyan); color: var(--halo-light); }

.demo__timeline { display: flex; align-items: center; gap: 0.75rem; flex: 1 1 320px; min-width: 260px; }
.playbtn {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); color: var(--halo-light); cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.playbtn:hover { border-color: var(--border-hover); }

.slider { flex: 1; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.12); cursor: pointer; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--halo-light); border: none; cursor: pointer;
  box-shadow: 0 0 10px rgba(127,217,255,.5);
}
.slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; border: none;
  background: var(--halo-light); cursor: pointer;
}
.demo__stamp { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.demo__note { margin-top: 1rem; font-size: 0.8125rem; color: var(--text-muted); opacity: 0.7; }

/* ── Integrate (§8) ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.step { border-left: 2px solid var(--border); padding-left: 1.25rem; }
.step__n {
  display: inline-block; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--halo-cyan); margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.step p { font-size: 0.9375rem; color: var(--text-muted); }

.code { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--nimbus-deep); }
.code__tabs { display: flex; border-bottom: 1px solid var(--border); }
.code__tab {
  background: none; border: none; cursor: pointer;
  padding: 0.75rem 1.25rem; font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  transition: all 200ms var(--ease-out);
}
.code__tab:hover { color: var(--text-primary); }
.code__tab.is-active { color: var(--halo-light); border-bottom-color: var(--halo-cyan); }
.code__body {
  margin: 0; padding: 1.25rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.7;
  color: #C9D6EE;
}
.code__body .tok-key { color: var(--halo-light); }
.code__body .tok-str { color: #9FE6A0; }
.code__body .tok-com { color: var(--text-muted); opacity: .7; }

.integrate__closer {
  margin-top: 1.5rem; text-align: center;
  font-size: 0.9375rem; color: var(--text-muted);
}

/* ── Why / Uses ──────────────────────────────────────────── */
.why { background: var(--nimbus-navy); }
.why__grid, .uses__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.why__item h3, .use h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.why__item p, .use p { color: var(--text-muted); font-size: 0.9375rem; }
.use { border-top: 1px solid var(--border); padding-top: 1.25rem; }

/* ── Reliability ─────────────────────────────────────────── */
.reliability { background: var(--nimbus-navy); }
.rel__list { display: grid; gap: 1rem; max-width: 52rem; }
.rel__list li {
  display: grid; grid-template-columns: minmax(11rem, 15rem) 1fr; gap: 1.25rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.rel__list strong { font-weight: 600; }
.rel__list span { color: var(--text-muted); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing__inner { text-align: center; max-width: 40rem; margin-inline: auto; }
.pricing__sub { margin: 1rem 0 2rem; color: var(--text-muted); }

/* ── Final CTA (§14 — mirrored limb, upper-left) ─────────── */
.final { overflow: hidden; isolation: isolate; text-align: center; }
.final__limb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.75; }
.final__inner { position: relative; max-width: 44rem; }
.final__title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); letter-spacing: -0.015em; }
.final__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; justify-content: center; margin-top: 2.25rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer__powered { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--text-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.75rem; font-size: 0.9375rem; color: var(--text-muted); }
.footer__links a { transition: color 200ms var(--ease-out); }
.footer__links a:hover { color: var(--halo-light); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.8125rem; color: var(--text-muted); opacity: 0.7;
}

/* ── Scroll reveal (§16.2) ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }

/* ── Responsive (§16.3) ──────────────────────────────────── */
@media (max-width: 1279px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  /* Limb centre moves closer in so the curve stays visible */
  .hero__limb-fallback { right: -84vmax; bottom: -152vmax; }
}

@media (max-width: 767px) {
  .capability__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .products__grid, .steps, .why__grid, .uses__grid { grid-template-columns: 1fr; }
  .rel__list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .hero { min-height: 92svh; padding-top: 6rem; }
  .hero__powered { margin-top: 2rem; }
  .hero__scroll { display: none; }

  /* Limb runs FULL WIDTH along the bottom — never a small corner arc,
     which would read as a decorative swoosh and lose the vastness (§16.3) */
  .hero__limb-fallback {
    width: 260vw; height: 260vw;
    left: 50%; right: auto; transform: translateX(-50%);
    bottom: -218vw;
  }
  .footer__inner { flex-direction: column; gap: 1.75rem; }
}

/* ── Reduced motion (§16.2 — respected everywhere) ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════
   SUBPAGES — status, playground, storms
   ════════════════════════════════════════════════════════════ */
.subpage { background: var(--nimbus-deep); }
.subpage__main { padding: 8rem 0 5rem; min-height: 70vh; }
.subpage__sub { margin-top: 1rem; color: var(--text-muted); max-width: 46rem; }
.subpage__note {
  margin-top: 2rem; font-size: 0.8125rem;
  color: var(--text-muted); opacity: 0.65;
}

/* ── Status indicators ───────────────────────────────────── */
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 0.5rem; flex-shrink: 0;
}
.dot--ok      { background: #3FD68C; box-shadow: 0 0 8px rgba(63,214,140,.6); }
.dot--stale   { background: var(--signal-amber); box-shadow: 0 0 8px rgba(255,122,69,.6); }
.dot--down    { background: #FF5A5A; box-shadow: 0 0 8px rgba(255,90,90,.6); }
.dot--pending { background: var(--text-muted); }

.status__bar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--nimbus-navy);
}
.status__overall { display: flex; align-items: center; font-weight: 600; }
.status__overall.is-ok    { color: #3FD68C; }
.status__overall.is-stale { color: var(--signal-amber); }
.status__overall.is-down  { color: #FF5A5A; }
.status__meta {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted);
}

.status__table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.status__table th {
  text-align: left; padding: 0.75rem 1rem;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 500;
}
.status__table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); }
.status__name { font-weight: 500; }
.status__stamp { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-muted); }
.badge { display: inline-flex; align-items: center; font-size: 0.8125rem; }
.badge--ok { color: #3FD68C; }
.badge--stale { color: var(--signal-amber); }
.badge--down { color: #FF5A5A; }
.badge--pending { color: var(--text-muted); }

/* ── Playground ──────────────────────────────────────────── */
.pg__grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; }
.pg__list { display: grid; gap: 0.5rem; }
.pg__item {
  width: 100%; text-align: left; cursor: pointer;
  padding: 0.75rem 0.875rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--nimbus-navy);
  color: var(--text-muted); font-family: var(--font-body); font-size: 0.875rem;
  transition: all 200ms var(--ease-out);
}
.pg__item:hover { border-color: var(--border-hover); color: var(--text-primary); }
.pg__item.is-active { border-color: var(--halo-cyan); background: rgba(77,166,255,.12); color: var(--halo-light); }
.pg__item code { display: block; font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.75; margin-top: 0.25rem; }

.pg__panel { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--nimbus-navy); }
.pg__url {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  padding: 0.875rem 1rem; border-bottom: 1px solid var(--border);
}
.pg__url code {
  flex: 1; min-width: 240px; font-family: var(--font-mono);
  font-size: 0.8125rem; color: var(--halo-light); word-break: break-all;
}
.pg__out {
  margin: 0; padding: 1.25rem; max-height: 460px; overflow: auto;
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.65;
  color: #C9D6EE; white-space: pre-wrap; word-break: break-word;
}
.pg__status { font-family: var(--font-mono); font-size: 0.75rem; }
.pg__status.is-ok { color: #3FD68C; }
.pg__status.is-err { color: #FF5A5A; }

/* ── Storm gallery ───────────────────────────────────────── */
.sg__layout { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; align-items: start; }
.sg__list { display: grid; gap: 0.625rem; max-height: 620px; overflow-y: auto; padding-right: 0.25rem; }
.sg__card {
  cursor: pointer; text-align: left; width: 100%;
  padding: 0.875rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--nimbus-navy);
  transition: all 200ms var(--ease-out); color: inherit;
  font-family: var(--font-body);
}
.sg__card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.sg__card.is-active { border-color: var(--halo-cyan); background: rgba(77,166,255,.12); }
.sg__name { font-weight: 600; font-size: 1rem; margin-bottom: 0.2rem; }
.sg__title { font-size: 0.8125rem; color: var(--text-muted); }
.sg__flag {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.sg__flag--active { background: rgba(255,122,69,.16); color: var(--signal-amber); }
.sg__flag--past   { background: rgba(149,163,191,.14); color: var(--text-muted); }
.sg__map { height: 620px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sg__map.leaflet-container, .sg__map .leaflet-container { background: #060B14; height: 100%; }
.sg__empty { padding: 3rem 1rem; text-align: center; color: var(--text-muted); }

@media (max-width: 900px) {
  .pg__grid, .sg__layout { grid-template-columns: 1fr; }
  .sg__list { max-height: none; }
  .sg__map { height: 420px; }
  .status__table thead { display: none; }
  .status__table tr {
    display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem;
    padding: 0.875rem 0; border-bottom: 1px solid var(--border);
  }
  .status__table td { border: 0; padding: 0; }
  .status__name { grid-column: 1; font-weight: 600; }
  .status__table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
}

/* Storm legend */
.sg__legend { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; font-size: 0.8125rem; color: var(--text-muted); }
.sg__legend[hidden] { display: none; }
.sg__key { display: inline-flex; align-items: center; gap: 0.5rem; }
.sg__swatch { display: inline-block; width: 22px; height: 0; border-top-width: 2.5px; border-top-style: solid; }
.sg__swatch--past { border-top-color: #7FD9FF; }
.sg__swatch--fc { border-top-color: #FF7A45; border-top-style: dashed; }
