:root {
  color-scheme: light;
  --ink: #1b1d1c;
  --muted: #707573;
  --line: #e4e7e5;
  --paper: #f6f7f6;
  --white: #fff;
  --green: #3f8a67;
  --green-soft: #e8f3ed;
  --amber: #b17a2a;
  --amber-soft: #f8f0df;
  --red: #b34e4b;
  --red-soft: #f8e9e8;
  --blue: #567993;
  --blue-soft: #e9f0f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
.site-header, main, .footer-inner, .copyright { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; letter-spacing: -.02em; }
.brand b { font-weight: 500; color: var(--muted); }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--ink); color: white; font-weight: 700; }
.support-link { color: var(--muted); font-size: 14px; text-underline-offset: 4px; }
main { padding: 34px 0 90px; }
.hero { padding: 34px 0 56px; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.global-card { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid #dbe8df; border-radius: 16px; background: var(--green-soft); }
.global-icon { display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--green); }
.global-icon span { width: 14px; height: 8px; border-left: 2px solid white; border-bottom: 2px solid white; transform: translateY(-2px) rotate(-45deg); }
.global-card h1 { margin: 0; font-size: clamp(21px, 4vw, 28px); line-height: 1.2; letter-spacing: -.035em; }
.global-card p { margin: 5px 0 0; color: #4f6157; }
.global-card.status-performance, .global-card.status-degraded { border-color: #ecdfc7; background: var(--amber-soft); }
.global-card.status-performance .global-icon, .global-card.status-degraded .global-icon { background: var(--amber); }
.global-card.status-down { border-color: #ebd1cf; background: var(--red-soft); }
.global-card.status-down .global-icon { background: var(--red); }
.global-card.status-unknown { border-color: #d9e2e7; background: var(--blue-soft); }
.global-card.status-unknown .global-icon { background: var(--blue); }
.last-check { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 4px 0; color: var(--muted); font-size: 12px; }
.section { margin-top: 54px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.section-title > span { color: var(--muted); font-size: 13px; }
.service-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.service-row { padding: 20px; }
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service-main h3, .incident h3, .empty h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.service-main p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 5px 9px; border-radius: 999px; background: var(--green-soft); color: #39775a; font-size: 11px; font-weight: 650; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.status-performance { color: var(--amber); }
.badge.status-performance, .badge.status-degraded { background: var(--amber-soft); color: #8f641f; }
.badge.status-performance i, .badge.status-degraded i, .history-bar.status-performance, .history-bar.status-degraded { background: var(--amber); }
.badge.status-down { background: var(--red-soft); color: #95413e; }
.badge.status-down i, .history-bar.status-down { background: var(--red); }
.badge.status-maintenance, .badge.status-unknown { background: var(--blue-soft); color: #496c86; }
.badge.status-maintenance i, .badge.status-unknown i, .history-bar.status-maintenance { background: var(--blue); }
.service-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 11px; }
.service-meta span + span::before { content: "·"; margin-right: 18px; }
.history { display: flex; gap: 3px; height: 24px; margin-top: 15px; }
.history-bar { flex: 1; min-width: 2px; border-radius: 2px; background: var(--green); }
.history-bar.status-unknown { background: #e8ebe9; }
.history-labels { display: flex; justify-content: space-between; margin-top: 5px; color: #9a9e9c; font-size: 9px; }
.split { display: grid; gap: 32px; }
.empty, .incident { border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.empty { padding: 36px 20px; text-align: center; }
.empty > span { display: grid; width: 30px; height: 30px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; }
.empty p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.incident { padding: 20px; }
.incident + .incident { margin-top: 10px; }
.incident-heading { display: flex; justify-content: space-between; gap: 14px; }
.incident-heading span { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.incident p { color: var(--muted); font-size: 13px; }
.incident time { color: var(--muted); font-size: 11px; }
footer { border-top: 1px solid #292c2a; background: #171918; color: #f1f3f2; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 48px 0; }
.footer-brand .brand-mark { background: #f0f2f1; color: #171918; }
.footer-inner p { margin: 12px 0 0; color: #969c99; font-size: 13px; }
.footer-inner nav { display: flex; align-items: center; gap: 24px; }
.footer-inner nav a { color: #b8bdbb; font-size: 13px; text-decoration: none; }
.footer-inner nav a:hover { color: white; }
.copyright { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid #2b2e2c; color: #777d7a; font-size: 11px; }

@media (min-width: 760px) {
  .site-header, main, .footer-inner, .copyright { width: min(1120px, calc(100% - 64px)); }
  main { padding-top: 58px; }
  .global-card { padding: 30px; }
  .service-row { padding: 22px 24px; }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .support-link { font-size: 0; }
  .support-link::after { content: "Support"; font-size: 13px; }
  .footer-inner { flex-direction: column; }
  .footer-inner nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .copyright { flex-direction: column; }
  .service-meta span + span::before { display: none; }
  .service-meta { gap: 6px 14px; }
  .badge { max-width: 130px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
