/* ─────────────────────────────────────────────────
   Nova AI Ops — Status Page (premium)
   Matches novaaiops.com design language
   ────────────────────────────────────────────────── */
:root {
  --bg: #070b17;
  --bg-2: #0b1222;
  --bg-card: rgba(255,255,255,0.035);
  --bg-card-hover: rgba(255,255,255,0.055);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f8fafc;
  --text-2: rgba(255,255,255,0.72);
  --text-3: rgba(255,255,255,0.5);
  --text-4: rgba(255,255,255,0.32);
  --brand: #58d900;
  --brand-2: #86efac;
  --brand-soft: rgba(88,217,0,0.1);
  --brand-glow: rgba(88,217,0,0.6);
  --amber: #fbbf24;
  --red: #ef4444;
  --font: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --r-pill: 999px;
  --r-card: 18px;
  --r-tile: 14px;
  --ease: cubic-bezier(0.16,1,0.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

/* ── Animated background mesh ─────────────────── */
.bg-mesh {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 900px 600px at 12% -10%, rgba(88,217,0,0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 110% 10%, rgba(59,130,246,0.05), transparent 60%),
    radial-gradient(ellipse 1200px 800px at 50% 120%, rgba(88,217,0,0.03), transparent 60%),
    linear-gradient(180deg, #070b17 0%, #0b1222 60%, #070b17 100%);
  pointer-events: none;
}
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: drift 28s ease-in-out infinite;
}
.orb-a { width: 520px; height: 520px; background: #58d900; top: -120px; left: -80px; animation-delay: 0s; }
.orb-b { width: 420px; height: 420px; background: #3b82f6; top: 30vh; right: -120px; animation-delay: -9s; }
.orb-c { width: 620px; height: 620px; background: #58d900; bottom: -260px; left: 25vw; opacity: 0.18; animation-delay: -18s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.06); }
  66%      { transform: translate(-30px, 40px) scale(0.94); }
}

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,11,23,0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.nav-brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
  padding: 4px;
  transition: transform .3s var(--ease);
}
.nav-brand:hover { transform: translateY(-1px) scale(1.02); }
.nav-brand-img {
  height: 72px; width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(88,217,0,0.28));
  transition: filter .35s var(--ease);
}
.nav-brand:hover .nav-brand-img {
  filter: drop-shadow(0 6px 28px rgba(88,217,0,0.55));
}

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-pill {
  display: inline-flex; align-items: center;
  padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
  text-decoration: none;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: all .28s var(--ease);
  position: relative;
  overflow: hidden;
}
.nav-pill::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(88,217,0,0.16), rgba(88,217,0,0.04));
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.nav-pill:hover {
  color: #fff;
  border-color: rgba(88,217,0,0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(88,217,0,0.14), 0 0 0 1px rgba(88,217,0,0.22);
}
.nav-pill:hover::before { opacity: 1; }
.nav-pill > * { position: relative; z-index: 1; }

/* ── Layout wrap ──────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 72px 28px 72px; }

/* ── Hero ─────────────────────────────────────── */
.hero { text-align: center; padding-bottom: 56px; }

.live-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--brand);
  background: rgba(88,217,0,0.1);
  border: 1px solid rgba(88,217,0,0.35);
  border-radius: var(--r-pill);
  margin-bottom: 28px;
  box-shadow: 0 0 30px rgba(88,217,0,0.22);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(88,217,0,0.7);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(88,217,0,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(88,217,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(88,217,0,0); }
}
.live-chip.state-degraded { color: var(--amber); background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.35); box-shadow: 0 0 30px rgba(251,191,36,0.22); }
.live-chip.state-degraded .live-dot { background: var(--amber); }
.live-chip.state-outage { color: var(--red); background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.35); box-shadow: 0 0 30px rgba(239,68,68,0.22); }
.live-chip.state-outage .live-dot { background: var(--red); }

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero-gradient {
  background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 50%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  filter: drop-shadow(0 0 24px rgba(88,217,0,0.35));
}
.hero-title.state-degraded .hero-gradient { background: linear-gradient(135deg, #fff 0%, #fde68a 40%, var(--amber) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-title.state-outage   .hero-gradient { background: linear-gradient(135deg, #fff 0%, #fecaca 40%, var(--red) 100%);   -webkit-background-clip: text; background-clip: text; }
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: center;
  font-size: 12.5px; color: var(--text-3);
  margin-bottom: 44px;
  font-variant-numeric: tabular-nums;
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta-dot { color: var(--text-4); }

/* ── Stats strip ──────────────────────────────── */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 860px; margin: 0 auto;
}
.stat-tile {
  padding: 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .3s var(--ease);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.stat-tile::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88,217,0,0.5), transparent);
  opacity: 0.4;
}
.stat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(88,217,0,0.28);
  background: var(--bg-card-hover);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(88,217,0,0.15);
}
.stat-value {
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 2px;
}
.stat-unit { font-size: 15px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.stat-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-3);
  margin-top: 9px;
}

/* ── Panels (glass cards) ─────────────────────── */
.panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 34px 36px;
  margin-top: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.panel-head { margin-bottom: 26px; }
.panel-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.panel-sub {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

/* ── Components list ──────────────────────────── */
.components { display: flex; flex-direction: column; gap: 2px; }
.comp {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 20px 4px;
  border-top: 1px solid var(--border);
  transition: all .25s var(--ease);
}
.comp:first-child { border-top: 0; padding-top: 6px; }
.comp-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.comp-dot {
  width: 11px; height: 11px;
  border-radius: 50%; flex-shrink: 0;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(88,217,0,0.12), 0 0 20px rgba(88,217,0,0.55);
  animation: livePulse 2.6s infinite;
}
.comp-dot.degraded { background: var(--amber); box-shadow: 0 0 0 4px rgba(251,191,36,0.12), 0 0 20px rgba(251,191,36,0.55); animation: none; }
.comp-dot.outage { background: var(--red); box-shadow: 0 0 0 4px rgba(239,68,68,0.12), 0 0 20px rgba(239,68,68,0.55); animation: none; }
.comp-dot.unknown { background: #64748b; box-shadow: 0 0 0 4px rgba(100,116,139,0.1); animation: none; }
.comp-text { min-width: 0; }
.comp-name {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.comp-desc {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 48ch;
}
.comp-spark {
  width: 92px; height: 30px;
  display: block;
  opacity: 0.85;
}
.comp-state-wrap {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  min-width: 110px;
}
.comp-state {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand);
  white-space: nowrap;
  padding: 5px 12px;
  background: rgba(88,217,0,0.1);
  border: 1px solid rgba(88,217,0,0.28);
  border-radius: var(--r-pill);
}
.comp-state.degraded { color: var(--amber); background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.28); }
.comp-state.outage { color: var(--red); background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.28); }
.comp-state.unknown { color: var(--text-3); background: rgba(100,116,139,0.1); border-color: rgba(100,116,139,0.24); }
.comp-latency {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.comp-latency strong { color: var(--text-2); font-weight: 700; }

/* ── 90-day bars ──────────────────────────────── */
.bars { display: flex; flex-direction: column; gap: 28px; }
.bar-row { display: flex; flex-direction: column; gap: 10px; }
.bar-row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px;
}
.bar-row-name {
  font-weight: 700; font-size: 14px; color: var(--text);
  letter-spacing: -0.01em;
}
.bar-row-pct {
  font-size: 12px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.bar-row-pct strong { color: var(--brand); font-weight: 800; }
.bar-grid { display: flex; gap: 2px; height: 40px; }
.bar-cell {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  transition: all .18s var(--ease);
  cursor: help;
  min-width: 4px;
  position: relative;
}
.bar-cell.op  { background: linear-gradient(180deg, var(--brand) 0%, #3ba600 100%); box-shadow: 0 0 6px rgba(88,217,0,0.25); }
.bar-cell.deg { background: linear-gradient(180deg, var(--amber) 0%, #d97706 100%); }
.bar-cell.out { background: linear-gradient(180deg, var(--red) 0%, #b91c1c 100%); }
.bar-cell:hover { transform: scaleY(1.12); filter: brightness(1.2); }

.legend {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
  font-size: 12px; color: var(--text-3); font-weight: 500;
}
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-sq {
  width: 11px; height: 11px; border-radius: 3px;
  display: inline-block;
}
.legend-sq.op { background: var(--brand); box-shadow: 0 0 6px rgba(88,217,0,0.3); }
.legend-sq.deg { background: var(--amber); }
.legend-sq.out { background: var(--red); }
.legend-sq.none { background: rgba(255,255,255,0.08); }

/* ── Incidents ────────────────────────────────── */
.incidents { display: flex; flex-direction: column; gap: 16px; }
.incident {
  padding: 20px 22px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  transition: all .25s var(--ease);
}
.incident:hover { background: rgba(255,255,255,0.04); }
.incident.open { border-left-color: var(--red); background: rgba(239,68,68,0.04); }
.incident-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.incident-title { font-weight: 700; font-size: 14.5px; color: var(--text); letter-spacing: -0.01em; }
.incident-time {
  font-size: 11px; color: var(--text-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  font-weight: 600;
}
.incident-body { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.incident-status {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  margin-top: 10px;
  background: rgba(88,217,0,0.14);
  color: var(--brand);
}
.incident.open .incident-status { background: rgba(239,68,68,0.14); color: var(--red); }

.empty, .loading {
  padding: 34px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 500;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px dashed var(--border);
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  margin-top: 48px;
  padding: 30px 28px;
  border-top: 1px solid var(--border);
  background: rgba(7,11,23,0.5);
  backdrop-filter: blur(10px);
}
.site-footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-3); font-weight: 500;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 26px; height: 26px; border-radius: 6px; opacity: 0.9; }
.footer-right { display: flex; align-items: center; gap: 10px; }
.footer-right a { color: var(--text-2); text-decoration: none; transition: color .2s; font-weight: 600; }
.footer-right a:hover { color: var(--brand); }
.footer-dot { color: var(--text-4); }

/* ── Maintenance banner ──────────────────────── */
.maint-banner {
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(251,191,36,0.06));
  border: 1px solid rgba(251,191,36,0.35);
  border-left: 4px solid var(--amber);
  border-radius: 14px;
  padding: 20px 26px;
  margin-bottom: 30px;
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: 0 12px 40px rgba(251,191,36,0.1);
}
.maint-banner-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(251,191,36,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
}
.maint-banner-body { flex: 1; min-width: 0; }
.maint-banner-title {
  font-weight: 800; font-size: 15px; color: var(--text);
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.maint-banner-meta {
  font-size: 12px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.maint-banner-desc {
  font-size: 13px; color: var(--text-2);
  line-height: 1.6;
}
.maint-banner + .maint-banner { margin-top: -16px; }

/* ── Incident timeline updates ───────────────── */
.incident-updates {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.incident-update {
  display: flex; gap: 14px;
  font-size: 12.5px;
  padding-left: 16px;
  border-left: 2px solid rgba(255,255,255,0.1);
}
.incident-update-status {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand);
  min-width: 110px;
  padding-top: 1px;
}
.incident-update.resolved .incident-update-status { color: var(--brand); }
.incident-update.identified .incident-update-status { color: var(--amber); }
.incident-update.monitoring .incident-update-status { color: #60a5fa; }
.incident-update.investigating .incident-update-status { color: #f87171; }
.incident-update-body { flex: 1; color: var(--text-2); line-height: 1.6; }
.incident-update-time { font-size: 11px; color: var(--text-4); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ── Subscribe form ──────────────────────────── */
.subscribe-panel {
  background: linear-gradient(135deg, rgba(88,217,0,0.06), rgba(88,217,0,0.02));
  border-color: rgba(88,217,0,0.2);
}
.subscribe-form {
  display: flex; gap: 10px;
  max-width: 500px;
  margin-bottom: 14px;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.subscribe-form input[type="email"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(88,217,0,0.15);
}
.subscribe-form button {
  padding: 14px 28px;
  background: var(--brand);
  color: #000;
  border: none;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.subscribe-form button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(88,217,0,0.35);
}
.subscribe-msg {
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 10px;
}
.subscribe-msg.ok { color: var(--brand); }
.subscribe-msg.err { color: var(--red); }
.subscribe-alt {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 6px;
}
.subscribe-alt a { color: var(--brand); text-decoration: none; font-weight: 600; }
.subscribe-alt a:hover { text-decoration: underline; }
.subscribe-alt code {
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 10.5px;
  color: var(--text-2);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 820px) {
  .wrap { padding: 48px 22px 48px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 26px 22px; }
  .hero-title { font-size: 38px; }
  .comp { grid-template-columns: 1fr auto; gap: 14px; }
  .comp-spark { display: none; }
  .comp-desc { max-width: 24ch; }
  .subscribe-form { flex-direction: column; }
  .incident-update { flex-direction: column; gap: 4px; }
  .incident-update-status { min-width: 0; }
  .nav-brand-img { height: 58px; }
}
@media (max-width: 820px) {
  .nav-brand-img { height: 58px; }
}
@media (max-width: 520px) {
  .nav-inner { padding: 10px 16px; gap: 12px; }
  .nav-brand-img { height: 48px; max-width: 180px; }
  .nav-pill { padding: 8px 14px; font-size: 12px; }
  .nav-links { gap: 6px; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value { font-size: 24px; }
  .hero-title { font-size: 32px; }
}
