* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-2: #0f1522;
  --surface: #141b2b;
  --surface-2: #1a2234;
  --surface-3: #0f1420;
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #e6edf7;
  --muted: #98a6bf;
  --accent: #4cc9f0;
  --accent-2: #b9f27c;
  --warn: #f4b45a;
  --down: #f26b6b;
  --shadow: 0 22px 46px rgba(6, 10, 20, 0.55);
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% -10%, rgba(76, 201, 240, 0.18), transparent 45%),
    radial-gradient(circle at 90% 5%, rgba(185, 242, 124, 0.12), transparent 40%),
    var(--bg);
  min-height: 100vh;
  font-size: 15px;
}

.status-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(185, 242, 124, 0.7);
}

.brand-title {
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
}

.status-pill.offline .status-dot {
  background: var(--down);
}

.status-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-card.wide {
  grid-column: span 3;
}

.hero-title {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-status {
  font-family: "Syne", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-2);
}

.hero-status.small {
  font-size: 1.7rem;
}

.hero-status.offline {
  color: #ff7b7b;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-uptime {
  font-weight: 700;
  color: var(--text);
}

.uptime-bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px;
  margin: 6px 0 2px;
}

.uptime-bars span {
  height: 16px;
  border-radius: 8px;
  background: rgba(76, 201, 240, 0.2);
  border: 1px solid rgba(76, 201, 240, 0.15);
}

.uptime-bars .ok {
  background: linear-gradient(180deg, rgba(185, 242, 124, 0.9), rgba(76, 201, 240, 0.8));
  box-shadow: 0 0 14px rgba(185, 242, 124, 0.35);
}

.uptime-bars .warn {
  background: #f4b45a;
  box-shadow: 0 0 12px rgba(244, 180, 90, 0.35);
}

.uptime-bars .down {
  background: #f26b6b;
  box-shadow: 0 0 12px rgba(242, 107, 107, 0.35);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.status-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.status-card.highlight {
  border: 1px solid rgba(76, 201, 240, 0.3);
  background: rgba(76, 201, 240, 0.12);
}

.card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.card-value {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  margin: 8px 0 4px;
}

.card-value.small {
  font-size: 1.2rem;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.status-incidents {
  margin-bottom: 24px;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.incidents {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.incidents-inner {
  text-align: center;
}

.incidents-title {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.incidents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.incident-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.incident-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.incident-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.incident-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(242, 107, 107, 0.18);
  color: var(--down);
  border: 1px solid rgba(242, 107, 107, 0.4);
}

.incident-code {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.incident-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.incident-footnote {
  margin-top: 10px;
}

.status-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .status-hero {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card.wide {
    grid-column: span 2;
  }

  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .status-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-hero {
    grid-template-columns: 1fr;
  }

  .hero-card.wide {
    grid-column: span 1;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-footer {
    flex-direction: column;
    gap: 6px;
  }
}
