:root {
  --ink: #172033;
  --muted: #647089;
  --line: #dfe5ec;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --navy: #173f5f;
  --teal: #0b7a6c;
  --operational: #16836f;
  --maintenance: #3e65a8;
  --degraded: #9a6a00;
  --partial: #b45309;
  --major: #b4233b;
  --shadow: 0 14px 40px rgba(23, 32, 51, 0.07);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 5%, rgba(28, 137, 127, 0.08), transparent 30rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid rgba(223, 229, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner { min-height: 86px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--teal));
  border-radius: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 7px 18px rgba(23, 63, 95, 0.23);
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 0.98rem; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.03em; }

.clock { text-align: right; }
.clock span { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.clock strong { font-size: 0.94rem; font-variant-numeric: tabular-nums; }

main { padding-block: 48px 64px; }

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
  background: linear-gradient(125deg, #173f5f 0%, #125d69 58%, #0b7a6c 100%);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(23, 63, 95, 0.2);
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 54px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.hero[data-status="maintenance"] { background: linear-gradient(125deg, #243c68, #3e65a8); }
.hero[data-status="degraded"] { background: linear-gradient(125deg, #5f4811, #9a6a00); }
.hero[data-status="partial-outage"] { background: linear-gradient(125deg, #7c2d12, #b45309); }
.hero[data-status="major-outage"] { background: linear-gradient(125deg, #681329, #b4233b); }

.eyebrow,
.kicker {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow { color: rgba(255, 255, 255, 0.7); }
.kicker { color: var(--teal); }

.hero-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.07; letter-spacing: -0.045em; }
.hero p { max-width: 660px; margin: 10px 0 0; color: rgba(255, 255, 255, 0.8); font-size: 1.02rem; }

.overall-icon {
  display: grid;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 800;
}

.updated-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.updated-row time { color: #fff; font-weight: 650; }
.pulse-dot { width: 7px; height: 7px; background: #7fffd4; border-radius: 50%; box-shadow: 0 0 0 5px rgba(127, 255, 212, 0.12); }

.panel {
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid rgba(223, 229, 236, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.2; letter-spacing: -0.025em; }
h3 { margin: 0; font-size: 1rem; }

.summary-pill {
  padding: 7px 11px;
  color: var(--teal);
  background: #edf8f6;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.component-list { border-top: 1px solid var(--line); }
.component-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; border-bottom: 1px solid var(--line); }
.component-row:last-child { border-bottom: 0; }
.component-name { font-size: 0.94rem; }

.status-badge,
.lifecycle-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.badge-icon,
.legend-icon {
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-weight: 850;
}

.badge-icon { width: 22px; height: 22px; font-size: 0.7rem; }
.status-operational .badge-icon,
.legend-icon.status-operational { background: var(--operational); }
.status-maintenance .badge-icon,
.legend-icon.status-maintenance { background: var(--maintenance); }
.status-degraded .badge-icon,
.legend-icon.status-degraded { background: var(--degraded); }
.status-partial-outage .badge-icon,
.legend-icon.status-partial-outage { background: var(--partial); }
.status-major-outage .badge-icon,
.legend-icon.status-major-outage { background: var(--major); }

.two-column { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
.two-column .panel { min-width: 0; }

.empty-state { display: flex; align-items: flex-start; gap: 13px; padding: 18px; background: #f6faf9; border: 1px solid #d8eeea; border-radius: 13px; }
.empty-state p { margin: 3px 0 0; color: var(--muted); font-size: 0.86rem; }
.empty-icon { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; color: #fff; background: var(--operational); border-radius: 50%; font-size: 0.8rem; font-weight: 800; }

.lifecycle { display: flex; align-items: center; gap: 7px; margin-top: 20px; overflow-x: auto; color: var(--muted); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.lifecycle span { white-space: nowrap; }
.lifecycle i { flex: 1 0 10px; height: 1px; background: var(--line); }

.incident-card + .incident-card,
.maintenance-card + .maintenance-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.incident-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.affected-components,
.maintenance-window { color: var(--muted); font-size: 0.82rem; }
.incident-updates { position: relative; margin: 16px 0 0; padding: 0 0 0 22px; list-style: none; }
.incident-updates::before { position: absolute; top: 6px; bottom: 8px; left: 5px; width: 1px; background: var(--line); content: ""; }
.incident-updates li { position: relative; margin-bottom: 16px; }
.incident-updates li::before { position: absolute; top: 6px; left: -21px; width: 9px; height: 9px; background: var(--teal); border: 3px solid #d9efec; border-radius: 50%; content: ""; }
.update-time { display: block; margin-top: 2px; color: var(--muted); font-size: 0.75rem; }
.incident-updates p { margin: 6px 0 0; font-size: 0.88rem; }

.status-guide { display: grid; grid-template-columns: minmax(180px, 0.45fr) 1.55fr; gap: 32px; padding: 28px 4px 0; }
.legend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.legend-item { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 10px; padding: 14px; background: rgba(255, 255, 255, 0.65); border: 1px solid var(--line); border-radius: 12px; }
.legend-icon { grid-row: 1 / 3; width: 28px; height: 28px; font-size: 0.75rem; }
.legend-item p { margin: 2px 0 0; color: var(--muted); font-size: 0.75rem; }

footer { padding-block: 28px; color: #c5d2df; background: #14283d; }
.footer-inner { align-items: flex-start; }
footer p { max-width: 680px; margin: 4px 0 0; color: #92a7b9; font-size: 0.78rem; }
.host-note { text-align: right; }

.noscript { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 10; padding: 12px; color: #fff; background: var(--major); border-radius: 10px; text-align: center; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1120px); }
  .clock { display: none; }
  main { padding-block: 28px 44px; }
  .hero-status { align-items: flex-start; flex-direction: column; gap: 14px; }
  .overall-icon { width: 48px; height: 48px; font-size: 1.35rem; }
  .two-column,
  .status-guide { grid-template-columns: 1fr; }
  .legend-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .host-note { text-align: left; }
}

@media (max-width: 460px) {
  .section-heading { align-items: flex-start; flex-direction: column; }
  .component-row { align-items: flex-start; flex-direction: column; gap: 7px; padding-block: 13px; }
  .incident-title-row { flex-direction: column; }
  .lifecycle { flex-wrap: wrap; gap: 6px 10px; overflow: visible; }
  .lifecycle span { padding: 4px 7px; background: var(--canvas); border-radius: 999px; }
  .lifecycle i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
