:root {
  --bg: #030303;
  --card: #0a090e;
  --card-2: #0d0c13;
  --text: #fafafa;
  --soft: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --dim: #52525b;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.055);
  --accent: #ff7a1a;
  --accent-bright: #ff9a4d;
  --accent-soft: #ffc39a;
  --green: #5be38d;
  --amber: #ffc857;
  --red: #ff6464;
  --blue: #8fa8ff;
  --display: "Unbounded", sans-serif;
  --body: "Instrument Sans", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --max: 1040px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(880px 520px at 50% -12%, rgba(255, 106, 0, 0.13), transparent 68%),
    radial-gradient(720px 560px at 100% 22%, rgba(80, 112, 255, 0.06), transparent 70%),
    radial-gradient(640px 480px at 0% 70%, rgba(255, 106, 0, 0.035), transparent 72%),
    var(--bg);
}

::selection { background: rgba(255, 122, 26, 0.32); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button { font: inherit; color: inherit; }

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

[hidden] { display: none !important; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.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;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fafafa;
  color: #080808;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip:focus { transform: translateY(0); }

/* ---------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 3, 3, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 4px 14px rgba(255, 106, 0, 0.35));
}

.brand-text {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--soft);
  white-space: nowrap;
}

.brand-text strong { color: var(--text); font-weight: 700; }

.brand-sub {
  margin-left: 8px;
  padding-left: 9px;
  border-left: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft) !important;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav-cta:hover {
  border-color: rgba(255, 122, 26, 0.4);
  background: var(--accent-dim);
}

/* ---------------------------------------------------------- hero */

.hero {
  padding: 74px 0 34px;
  text-align: center;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.overall {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 9px 17px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--faint);
}

.overall[data-state="operational"] {
  border-color: rgba(91, 227, 141, 0.28);
  background: rgba(91, 227, 141, 0.06);
  color: #c9f7d9;
}
.overall[data-state="operational"] .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(91, 227, 141, 0.1), 0 0 16px rgba(91, 227, 141, 0.65);
  animation: pulse 2.4s ease-out infinite;
}

.overall[data-state="degraded"] {
  border-color: rgba(255, 200, 87, 0.3);
  background: rgba(255, 200, 87, 0.06);
  color: #ffe6ae;
}
.overall[data-state="degraded"] .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.1), 0 0 16px rgba(255, 200, 87, 0.55);
}

.overall[data-state="outage"] {
  border-color: rgba(255, 100, 100, 0.32);
  background: rgba(255, 100, 100, 0.07);
  color: #ffd0d0;
}
.overall[data-state="outage"] .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 100, 100, 0.1), 0 0 16px rgba(255, 100, 100, 0.55);
  animation: pulse 1.6s ease-out infinite;
}

.overall[data-state="loading"] .status-dot { animation: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 227, 141, 0.34); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(91, 227, 141, 0); }
}

.lede {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: balance;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 14px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
}
.meta-dot { color: var(--dim); }

.feed-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 200, 87, 0.28);
  border-radius: 12px;
  background: rgba(255, 200, 87, 0.06);
  color: #ffe6ae;
  font-size: 12.5px;
}
.feed-error button {
  flex: none;
  padding: 6px 11px;
  border: 1px solid rgba(255, 200, 87, 0.36);
  border-radius: 8px;
  background: transparent;
  color: #ffe6ae;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.feed-error button:hover { background: rgba(255, 200, 87, 0.12); }

/* ---------------------------------------------------------- components */

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

.component {
  position: relative;
  min-height: 82px;
  padding: 14px 14px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent), var(--card);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.component:hover {
  border-color: rgba(255, 122, 26, 0.26);
  transform: translateY(-1px);
}

.component .dot {
  width: 7px;
  height: 7px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--faint);
}
.component[data-state="operational"] .dot {
  background: var(--green);
  box-shadow: 0 0 10px rgba(91, 227, 141, 0.5);
}
.component[data-state="degraded"] .dot {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 200, 87, 0.45);
}
.component[data-state="outage"] .dot {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 100, 100, 0.45);
}
.component[data-state="info"] .dot {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(143, 168, 255, 0.4);
}

.component b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: -0.01em;
}
.component span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------- kpis */

.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.kpi {
  padding: 14px 15px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--card);
}

.kpi-label {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kpi-value {
  display: block;
  margin-top: 7px;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.kpi-note {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 10px;
}

/* ---------------------------------------------------------- cards */

.card {
  margin-top: 14px;
  padding: 23px 24px 21px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 42%),
    var(--card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.card-title h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.card-title p {
  margin: 7px 0 0;
  max-width: 62ch;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.select-wrap {
  position: relative;
  flex: none;
}
.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select {
  appearance: none;
  padding: 8px 31px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0f0e15;
  color: var(--soft);
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
select:hover { border-color: rgba(255, 122, 26, 0.35); }
select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.chart-card .chart {
  position: relative;
  height: 252px;
  margin-top: 20px;
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart .empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--dim);
  font-size: 12.5px;
}

.chart-tip {
  position: absolute;
  z-index: 5;
  min-width: 152px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 11, 18, 0.97);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -108%);
  transition: opacity 0.12s ease;
}
.chart-tip.on { opacity: 1; }
.chart-tip.below { transform: translate(-50%, 12px); }

.tip-time {
  margin-bottom: 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}
.tip-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.tip-row i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 2px;
}
.tip-row b {
  margin-left: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin-top: 13px;
  color: var(--faint);
  font-size: 11px;
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.swatch.clean { background: var(--green); box-shadow: 0 0 8px rgba(91, 227, 141, 0.35); }
.swatch.detect { background: var(--accent); box-shadow: 0 0 8px rgba(255, 122, 26, 0.4); }

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

/* ---------------------------------------------------------- ai */

.badge {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge.good {
  border-color: rgba(91, 227, 141, 0.3);
  background: rgba(91, 227, 141, 0.07);
  color: #a9f2c4;
}
.badge.info {
  border-color: rgba(143, 168, 255, 0.28);
  background: rgba(143, 168, 255, 0.07);
  color: #c3d0ff;
}
.badge.warn {
  border-color: rgba(255, 200, 87, 0.3);
  background: rgba(255, 200, 87, 0.07);
  color: #ffe6ae;
}

.ai-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0 2px;
}
.ai-score b {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ai-score span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ai-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.ai-metrics b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.ai-metrics span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.4;
}

.ai-note {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.55;
}
.ai-motion {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

/* ---------------------------------------------------------- client bars */

.bars { margin-top: 20px; }

.bar { margin-bottom: 13px; }
.bar:last-child { margin-bottom: 0; }

.bar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.bar-name {
  overflow: hidden;
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-meta {
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d45600, var(--accent-bright));
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.35);
  transition: width 0.7s var(--ease);
}
.bar.muted .bar-fill { background: linear-gradient(90deg, #3a3a44, #565660); box-shadow: none; }

.bars .empty {
  padding: 26px 0;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

/* ---------------------------------------------------------- uptime */

.uptime-score {
  flex: none;
  text-align: right;
}
.uptime-score b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.uptime-score span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.uptime-rows { margin-top: 20px; }

.uptime-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.uptime-row:first-child { border-top: 0; }

.uptime-name {
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 500;
}
.uptime-pct {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.uptime-days {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 3px;
}
.day {
  display: block;
  height: 20px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.15s ease;
}
i.day { width: 9px; height: 9px; border-radius: 2px; }
.day.up { background: rgba(91, 227, 141, 0.72); }
.day.degraded { background: var(--amber); }
.day.down { background: var(--red); }
.day.none { background: rgba(255, 255, 255, 0.055); }
.uptime-days .day:hover { transform: scaleY(1.12); }

.uptime-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 9.5px;
}
.uptime-legend span { display: inline-flex; align-items: center; gap: 5px; }
.uptime-legend-note { margin-left: auto; color: var(--dim); font-size: 9px; }

.incidents {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.incidents-title {
  margin: 0 0 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.incident-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11.5px;
}
.incident-empty::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: rgba(91, 227, 141, 0.1);
  color: var(--green);
  font-size: 10px;
}
.incident {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.incident:first-of-type { border-top: 0; }
.incident-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.incident.ongoing .incident-dot {
  background: var(--red);
  box-shadow: 0 0 9px rgba(255, 100, 100, 0.5);
}
.incident-body strong {
  display: block;
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 600;
}
.incident-body span {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.45;
}
.incident-time {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}
.incident.ongoing .incident-time { color: var(--red); }

/* ---------------------------------------------------------- note + footer */

.note {
  max-width: 780px;
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.note p {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}
.note strong { color: var(--faint); font-weight: 600; }
.note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.note a:hover { color: var(--accent-bright); }

.footer {
  margin-top: 38px;
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 34px;
  color: var(--dim);
  font-size: 10.5px;
}
.footer-inner p { margin: 0; }
.footer-inner a { transition: color 0.2s ease; }
.footer-inner a:hover { color: var(--soft); }
.brand-foot .brand-text { font-size: 11px; }
.brand-foot img { width: 24px; height: 24px; }

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 12px;
  background: rgba(40, 10, 10, 0.95);
  color: #ffd0d0;
  font-size: 13px;
  text-align: center;
}

/* ---------------------------------------------------------- states */

.skeleton {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.035) 30%, rgba(255, 255, 255, 0.075) 50%, rgba(255, 255, 255, 0.035) 70%)
    rgba(255, 255, 255, 0.02);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
.component.skeleton { min-height: 82px; }
.kpi.skeleton { height: 92px; }
.bar.skeleton { height: 34px; border-radius: 6px; background-color: transparent; }

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

.reveal { animation: rise 0.55s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
.chart-card:nth-of-type(4) { animation-delay: 0.04s; }
.chart-card:nth-of-type(5) { animation-delay: 0.08s; }
.card-grid .card:nth-child(1) { animation-delay: 0.1s; }
.card-grid .card:nth-child(2) { animation-delay: 0.14s; }
.uptime-card { animation-delay: 0.16s; }

.is-loading .chart,
.is-loading .bars { opacity: 0.55; transition: opacity 0.2s ease; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .components { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .hero { padding: 52px 0 28px; }
  .components { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: 1fr; }
  .uptime-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px 12px; }
  .uptime-name { grid-column: 1; }
  .uptime-pct { grid-column: 2; }
  .uptime-days { grid-column: 1 / -1; grid-row: 2; }
  .day { height: 16px; }
  .uptime-legend-note { margin-left: 0; width: 100%; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 520px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 19px 18px 17px; }
  .card-head { gap: 14px; }
  .card-title p { font-size: 11.5px; }
  .chart-card .chart { height: 208px; }
  .hero h1 { font-size: 38px; }
  .overall { font-size: 13.5px; }
  .lede { font-size: 14px; }
  .meta { flex-wrap: wrap; font-size: 9.5px; }
  .ai-score b { font-size: 34px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .incident { grid-template-columns: 8px minmax(0, 1fr); }
  .incident-time { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
