:root {
  --navy: #071829;
  --navy-soft: #0d2238;
  --ink: #102237;
  --muted: #66788c;
  --line: #dbe4ec;
  --surface: #f5f8fa;
  --white: #fff;
  --blue: #4f78ff;
  --cyan: #2ac6c8;
  --green: #24a47b;
  --green-bg: #e9f7f1;
  --amber: #e49a25;
  --amber-bg: #fff5df;
  --red: #d95761;
  --red-bg: #fcecee;
  --shadow: 0 18px 50px rgba(16, 34, 55, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--white); }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fafc 0, #fff 420px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid #25384b;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; font-weight: 750; }
.brand-mark { width: 30px; height: 28px; display: flex; align-items: flex-end; gap: 3px; transform: skewY(-24deg); }
.brand-mark i { width: 6px; border: 2px solid currentColor; border-radius: 2px; display: block; }
.brand-mark i:nth-child(1) { height: 15px; color: #fff; }
.brand-mark i:nth-child(2) { height: 22px; color: var(--blue); }
.brand-mark i:nth-child(3) { height: 28px; color: var(--cyan); }
.header-divider { width: 1px; height: 24px; margin: 0 20px; background: #3a4d60; }
.header-label { color: #b5c2ce; font-size: 14px; }
.back-link { margin-left: auto; color: #cbd5df; font-size: 14px; text-decoration: none; transition: color .2s ease; }
.back-link:hover { color: #fff; }

main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 74px 0 80px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.eyebrow { margin: 0 0 13px; color: var(--blue); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .14em; }
.status-heading { display: flex; align-items: center; gap: 17px; }
h1, h2 { margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.03; }
h2 { font-size: 28px; line-height: 1.1; }
.status-dot { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(102, 120, 140, .12); }
.status-dot--loading { background: #91a0af; animation: pulse 1.5s infinite; }
.status-dot--operational { background: var(--green); box-shadow: 0 0 0 8px rgba(36, 164, 123, .13); }
.status-dot--degraded { background: var(--amber); box-shadow: 0 0 0 8px rgba(228, 154, 37, .14); }
.status-dot--outage { background: var(--red); box-shadow: 0 0 0 8px rgba(217, 87, 97, .14); }
@keyframes pulse { 50% { opacity: .45; } }
.hero-subtitle { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.hero-meta { min-width: 190px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.8); box-shadow: var(--shadow); }
.hero-meta span, .hero-meta strong { display: block; }
.hero-meta span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta strong { margin-top: 7px; font-size: 15px; }
.hero-meta button { margin-top: 15px; padding: 0; color: var(--blue); background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 12px; }
.hero-meta button:disabled { opacity: .5; cursor: wait; }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 58px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.summary article { min-height: 112px; padding: 26px 28px; border-right: 1px solid var(--line); }
.summary article:last-child { border-right: 0; }
.summary-label { display: block; margin-bottom: 11px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.summary strong { display: block; font-size: 19px; }
.summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.section-block { margin-top: 72px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.operational { background: var(--green); }
.legend-dot.degraded { background: var(--amber); }
.legend-dot.outage { background: var(--red); }
.component-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.component-row { display: grid; grid-template-columns: minmax(230px, 1.5fr) minmax(180px, 1fr) 116px 145px; gap: 24px; align-items: center; min-height: 104px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.component-row:last-child { border-bottom: 0; }
.component-name { display: flex; align-items: flex-start; gap: 13px; }
.component-indicator { width: 10px; height: 10px; margin-top: 6px; flex: 0 0 10px; border-radius: 50%; }
.component-indicator.operational { background: var(--green); }
.component-indicator.outage { background: var(--red); }
.component-name strong { display: block; font-size: 15px; }
.component-name small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.history-bars { display: flex; align-items: flex-end; gap: 2px; height: 30px; }
.history-bars i { flex: 1 1 0; min-width: 2px; height: 100%; border-radius: 1px; background: #d7e0e7; }
.history-bars i.operational { background: #72cfb2; }
.history-bars i.outage { background: var(--red); }
.metric { text-align: right; }
.metric span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { display: block; margin-top: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.component-status { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-width: 132px; padding: 9px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.component-status.operational { color: #126d54; background: var(--green-bg); }
.component-status.outage { color: #a5313c; background: var(--red-bg); }
.loading-card { padding: 34px; color: var(--muted); }

.section-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 28px; }
.section-grid .section-block { padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.section-grid h2 { margin-bottom: 27px; font-size: 23px; }
.timeline-item { position: relative; padding: 0 0 25px 28px; border-left: 1px solid var(--line); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.timeline-item.active::before { background: var(--red); }
.timeline-item strong { display: block; font-size: 14px; }
.timeline-item p { margin: 6px 0; color: var(--muted); font-size: 12px; }
.timeline-item time { color: #8a98a6; font-size: 10px; }
.empty-state { color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-state--framed { padding: 22px; border: 1px dashed #cbd6df; border-radius: 11px; background: var(--surface); }
.transparency-note { display: flex; gap: 17px; margin-top: 30px; padding: 22px 25px; border: 1px solid #cfe5ec; border-radius: 14px; background: #f0fafc; }
.note-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 50%; color: #fff; background: var(--cyan); font-weight: 800; }
.transparency-note strong { font-size: 14px; }
.transparency-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

footer { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); color: #93a1af; background: var(--navy); font-size: 12px; }
footer nav { display: flex; gap: 24px; }
footer a { color: #b7c3cf; text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .summary { grid-template-columns: repeat(2, 1fr); }
  .summary article:nth-child(2) { border-right: 0; }
  .summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .component-row { grid-template-columns: 1fr 120px 138px; }
  .history-bars { display: none; }
  .section-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { height: 68px; padding: 0 18px; }
  .header-divider, .header-label { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { transform: scale(.86) skewY(-24deg); transform-origin: left center; }
  .back-link { font-size: 12px; }
  main { width: min(100% - 32px, 1160px); padding: 48px 0 60px; }
  .hero { align-items: stretch; flex-direction: column; gap: 25px; }
  .hero-meta { width: 100%; }
  .summary { grid-template-columns: 1fr; margin-top: 38px; }
  .summary article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .summary article:last-child { border-bottom: 0; }
  .section-block { margin-top: 52px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .legend { flex-wrap: wrap; }
  .component-row { grid-template-columns: 1fr auto; gap: 17px; padding: 20px; }
  .component-row .metric { display: none; }
  .component-status { min-width: 104px; padding: 8px; font-size: 9px; }
  .section-grid .section-block { padding: 24px 20px; }
  footer { align-items: flex-start; flex-direction: column; padding: 28px 18px; }
  footer nav { flex-wrap: wrap; gap: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; } }
