:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: rgba(10, 10, 10, 0.8);
  --surface-strong: rgba(12, 12, 12, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-softer: rgba(255, 255, 255, 0.025);
  --text: #ffffff;
  --muted: #a1a1aa;
  --muted-strong: #d4d4d8;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.1);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --critical: #f87171;
  --critical-soft: rgba(248, 113, 113, 0.12);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
  --loading: #71717a;
  --loading-soft: rgba(113, 113, 122, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -18vh 0 auto;
  height: 56vh;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 72%);
  filter: blur(140px);
  opacity: 0.7;
}

a {
  color: inherit;
}

h1,
h2,
.health-value,
.summary-value,
.metric-value,
.service-name,
.timeline-title {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 500;
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.04;
}

.subtitle,
.status-message,
.panel-copy,
.service-description,
.metric-note,
.timeline-copy,
.footer-copy,
.empty-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 18px 44px;
}

.topbar,
.panel,
.noscript-banner {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(10, 10, 10, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
}

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

.brandmark-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.brandmark-copy {
  display: grid;
  gap: 2px;
}

.brandmark-word {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.brandmark-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-link,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.topbar-link:hover,
.footer-links a:hover {
  transform: translateY(-1px);
}

.topbar-link:hover {
  color: var(--text);
}

.topbar-link-primary {
  border-color: transparent;
  background: #ffffff;
  color: #000000;
}

.topbar-link-primary:hover {
  background: #e5e7eb;
  color: #000000;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.panel {
  border-radius: 32px;
  padding: 24px;
}

.overview {
  padding: 30px;
}

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

.overview-copy {
  display: grid;
  gap: 14px;
  max-width: 44rem;
}

.eyebrow,
.panel-kicker,
.summary-label,
.summary-note,
.service-health-label,
.service-health-value,
.metric-group-meta,
.metric-scale,
.timeline-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.panel-kicker {
  width: fit-content;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
}

.subtitle {
  max-width: 42rem;
  font-size: 1rem;
}

.meta-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  min-width: 360px;
  margin: 0;
}

.meta-list div,
.status-copy,
.health-card,
.summary-card,
.service-row,
.metric-group,
.timeline-card,
.empty-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.018);
}

.meta-list div {
  padding: 16px;
}

.meta-list dt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem;
  font-weight: 600;
}

.status-row {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  align-items: stretch;
  margin-top: 24px;
}

.status-copy,
.health-card,
.summary-card,
.service-row,
.metric-group,
.timeline-card,
.empty-card {
  padding: 20px;
}

.status-copy,
.health-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.status-heading {
  max-width: 16ch;
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-operational {
  color: #dcfce7;
  border-color: rgba(74, 222, 128, 0.18);
  background: var(--ok-soft);
}

.status-degraded {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.18);
  background: var(--warn-soft);
}

.status-major-outage {
  color: #fecdd3;
  border-color: rgba(248, 113, 113, 0.18);
  background: var(--critical-soft);
}

.status-maintenance {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.18);
  background: var(--info-soft);
}

.status-loading {
  color: #d4d4d8;
  border-color: rgba(113, 113, 122, 0.18);
  background: var(--loading-soft);
}

.health-reading {
  display: flex;
  align-items: end;
  gap: 8px;
}

.health-value {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
}

.health-suffix {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.health-meter,
.service-health-meter,
.metric-meter {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.health-meter-fill,
.service-health-fill,
.metric-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: var(--loading);
}

.health-card[data-state="operational"] .health-meter-fill,
.service-row[data-state="operational"] .service-health-fill {
  background: var(--ok);
}

.health-card[data-state="degraded"] .health-meter-fill,
.health-card[data-state="partial-outage"] .health-meter-fill,
.health-card[data-state="investigating"] .health-meter-fill,
.health-card[data-state="identified"] .health-meter-fill,
.health-card[data-state="monitoring"] .health-meter-fill,
.service-row[data-state="degraded"] .service-health-fill,
.service-row[data-state="partial-outage"] .service-health-fill,
.service-row[data-state="investigating"] .service-health-fill,
.service-row[data-state="identified"] .service-health-fill,
.service-row[data-state="monitoring"] .service-health-fill {
  background: var(--warn);
}

.health-card[data-state="outage"] .health-meter-fill,
.health-card[data-state="major-outage"] .health-meter-fill,
.service-row[data-state="outage"] .service-health-fill,
.service-row[data-state="major-outage"] .service-health-fill {
  background: var(--critical);
}

.health-card[data-state="maintenance"] .health-meter-fill,
.health-card[data-state="planned"] .health-meter-fill,
.service-row[data-state="maintenance"] .service-health-fill,
.service-row[data-state="planned"] .service-health-fill {
  background: var(--info);
}

.health-label {
  color: var(--muted);
  font-size: 0.94rem;
}

.summary-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.summary-label {
  color: var(--muted);
}

.summary-value {
  margin-top: 12px;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}

.summary-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head.compact {
  margin-bottom: 14px;
}

.panel-head > div {
  display: grid;
  gap: 8px;
}

.panel-copy {
  max-width: 28rem;
}

.services-list,
.metric-groups,
.timeline-list,
.metric-list {
  display: grid;
  gap: 12px;
}

.service-row {
  display: grid;
  gap: 14px;
}

.service-main,
.timeline-top,
.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.service-copy {
  display: grid;
  gap: 8px;
  max-width: 34rem;
}

.service-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.18;
}

.service-description {
  font-size: 0.94rem;
}

.service-health {
  display: grid;
  gap: 10px;
}

.service-health-head,
.metric-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-health-label {
  color: var(--muted);
}

.service-health-value {
  color: var(--muted-strong);
}

.metric-group {
  padding: 18px;
}

.metric-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.metric-group-title {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.metric-group-meta {
  color: var(--muted);
}

.metric-row {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.016);
}

.metric-main {
  display: grid;
  gap: 8px;
}

.metric-label {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.22;
}

.metric-value {
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1;
}

.metric-value[data-severity="ok"] {
  color: var(--ok);
}

.metric-value[data-severity="warning"] {
  color: var(--warn);
}

.metric-value[data-severity="critical"] {
  color: var(--critical);
}

.metric-value[data-severity="info"] {
  color: var(--info);
}

.metric-value[data-severity="loading"] {
  color: var(--muted-strong);
}

.metric-note {
  font-size: 0.9rem;
}

.metric-meter-fill[data-severity="ok"] {
  background: var(--ok);
}

.metric-meter-fill[data-severity="warning"] {
  background: var(--warn);
}

.metric-meter-fill[data-severity="critical"] {
  background: var(--critical);
}

.metric-meter-fill[data-severity="info"] {
  background: var(--info);
}

.metric-meter-fill[data-severity="loading"] {
  background: var(--loading);
}

.metric-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
}

.timeline-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-card,
.empty-card {
  position: relative;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--loading);
}

.timeline-card[data-state="operational"]::before,
.timeline-card[data-state="resolved"]::before,
.timeline-card[data-state="completed"]::before {
  background: var(--ok);
}

.timeline-card[data-state="degraded"]::before,
.timeline-card[data-state="partial-outage"]::before,
.timeline-card[data-state="investigating"]::before,
.timeline-card[data-state="identified"]::before,
.timeline-card[data-state="monitoring"]::before {
  background: var(--warn);
}

.timeline-card[data-state="outage"]::before,
.timeline-card[data-state="major-outage"]::before {
  background: var(--critical);
}

.timeline-card[data-state="maintenance"]::before,
.timeline-card[data-state="planned"]::before {
  background: var(--info);
}

.timeline-heading {
  display: grid;
  gap: 8px;
}

.timeline-title {
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.2;
}

.timeline-meta {
  color: var(--muted);
}

.timeline-copy {
  margin-top: 12px;
  font-size: 0.94rem;
}

.empty-card {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.012);
}

.site-footer {
  padding: 16px 6px 0;
}

.footer-copy {
  max-width: 50rem;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}

.noscript-banner {
  margin: 16px 20px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border-color: rgba(248, 113, 113, 0.18);
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.1), rgba(255, 255, 255, 0.015)),
    rgba(10, 10, 10, 0.88);
  color: #fecdd3;
}

@media (max-width: 1100px) {
  .overview-head,
  .status-row,
  .content-grid,
  .timeline-grid,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .overview-head,
  .panel-head,
  .timeline-top {
    align-items: start;
    flex-direction: column;
  }

  .meta-list {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 14px 32px;
  }

  .topbar {
    position: static;
    align-items: start;
    flex-direction: column;
    border-radius: 28px;
  }

  .topbar-actions,
  .summary-strip,
  .meta-list {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .overview,
  .panel {
    padding: 22px;
    border-radius: 28px;
  }

  .service-main,
  .metric-label-row {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .topbar-link,
  .footer-links a {
    width: 100%;
  }

  .status-copy,
  .health-card,
  .summary-card,
  .service-row,
  .metric-group,
  .timeline-card,
  .empty-card {
    padding: 18px;
  }
}
