:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --indigo: #5b4cf0;
  --indigo-dark: #21194f;
  --orange: #f97316;
  --gray: #d9deea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
.site-header, footer { width: min(1080px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.site-header { min-height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand > span:last-child span { color: var(--indigo); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 2px; background: linear-gradient(135deg, #5146e8, #7c3aed); box-shadow: 0 10px 25px rgba(79,70,229,.24); }
.brand-mark i { width: 2px; border-radius: 999px; background: #fff; display: block; }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 8px; }.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 15px; }.brand-mark i:nth-child(3) { height: 21px; }
.eyebrow { font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .18em; color: #64748b; }
main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 64px; }
.hero { min-height: 230px; padding: 38px 42px; border-radius: 28px; display: flex; justify-content: space-between; align-items: center; gap: 30px; color: #fff; overflow: hidden; position: relative; background: linear-gradient(135deg, #171136, #312e81); box-shadow: 0 24px 60px rgba(30,27,75,.14); }
.hero::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -100px; top: -180px; background: rgba(129,140,248,.35); filter: blur(28px); }
.hero.degraded, .hero.monitoring_delayed { background: linear-gradient(135deg, #44210c, #9a3412); }
.hero h1 { margin: 12px 0 8px; max-width: 720px; font: 650 clamp(30px, 5vw, 48px)/1.08 Georgia, serif; letter-spacing: -.03em; }
.hero p { margin: 0; color: rgba(255,255,255,.75); font-size: 16px; }
.hero .eyebrow { color: rgba(255,255,255,.62); }
.badge { z-index: 1; flex: none; border-radius: 999px; padding: 10px 15px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); font-weight: 700; font-size: 13px; }
.monitor-note { margin: 20px 0; padding: 18px 22px; border: 1px solid var(--line); background: rgba(255,255,255,.82); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.monitor-note p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
#last-checked { flex: none; text-align: right; }
.status-card { border: 1px solid var(--line); background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px rgba(15,23,42,.05); }
.card-heading { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.card-heading h2 { margin: 0 0 6px; font-size: 18px; }.card-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }.legend i { width: 9px; height: 9px; border-radius: 2px; }.legend .operational { background: var(--indigo); }.legend .degraded { background: var(--orange); }.legend .unknown { background: var(--gray); }
.service { padding: 24px 28px; border-bottom: 1px solid var(--line); }.service:last-child { border-bottom: 0; }
.service-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }.service h3 { margin: 0 0 5px; font-size: 14px; }.service p { margin: 0; color: var(--muted); font-size: 13px; }.service-meta { display: flex; align-items: center; gap: 14px; flex: none; color: var(--muted); font-size: 12px; }.service-state { display: inline-flex; align-items: center; gap: 7px; color: #334155; font-weight: 650; }.service-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--gray); }.service-state.operational i { background: var(--indigo); }.service-state.degraded i, .service-state.monitoring_delayed i { background: var(--orange); }
.history { margin-top: 19px; display: grid; grid-template-columns: repeat(90, minmax(2px, 1fr)); gap: 2px; height: 34px; }.history i { border-radius: 2px; background: var(--gray); }.history i.operational { background: var(--indigo); }.history i.degraded, .history i.monitoring_delayed { background: var(--orange); }
.history-labels { margin-top: 8px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; color: var(--muted); font-size: 11px; }.history-labels span:nth-child(2) { text-align: center; color: #334155; font-weight: 650; }
.empty { padding: 40px 28px; color: var(--muted); text-align: center; }
footer { min-height: 90px; padding: 18px 0; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); } footer nav { display: flex; gap: 20px; } footer a:hover { color: var(--indigo); }

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 28px, 1080px); }
  .site-header { min-height: 68px; }.site-header > .eyebrow { display: none; }
  main { padding-top: 14px; }.hero { min-height: 250px; padding: 28px 24px; flex-direction: column; align-items: flex-start; }.hero h1 { font-size: 34px; }.badge { align-self: flex-start; }
  .monitor-note, .card-heading, .service-head, footer { align-items: flex-start; flex-direction: column; }.monitor-note { gap: 12px; } #last-checked { text-align: left; }
  .card-heading, .service { padding-left: 20px; padding-right: 20px; }.service-meta { width: 100%; justify-content: space-between; }.history { gap: 1px; height: 28px; }
  footer { justify-content: center; gap: 14px; } footer nav { flex-wrap: wrap; gap: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: drift 9s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate(-70px, 70px) scale(1.12); } }
}
