:root {
  --bg: #0b0f14;
  --surface: #121923;
  --surface-2: #1a2331;
  --line: #243042;
  --line-soft: #1c2634;
  --line-strong: #34465e;
  --text: #e8edf3;
  --soft: #aebbcb;
  --muted: #9aa7b8;
  --accent: #f5b83d;
  --ok: #5bd6bd;
  --warn: #f5b83d;
  --down: #ff8a6b;
  --none: #9aa7b8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--accent); }
a:hover { color: #ffd27a; }
h1, h2, h3 { font-family: 'Space Grotesk', Inter, system-ui, sans-serif; margin: 0; }
h2 { font-size: 20px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 32px; border-bottom: 1px solid #1e2938;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-nav a { padding: 12px 14px; color: #c3cedb; text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; border-radius: 12px; font: 600 16px/1 Inter, sans-serif; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #0b0f14; }
.btn-primary:hover { background: #ffc85c; color: #0b0f14; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); font-weight: 500; background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill {
  align-self: flex-start; padding: 6px 12px; border: 1px solid #2b3a4f; border-radius: 999px;
  color: #c3cedb; font-size: 14px; font-weight: 500;
}
.hero h1 { font-weight: 700; font-size: 60px; line-height: 1.05; letter-spacing: -0.02em; }
.lede { font-size: 19px; color: var(--soft); max-width: 520px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: #8e9bad; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card-lg { border-radius: 20px; padding: 28px; }
.status-card { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.status-head { display: flex; align-items: center; gap: 16px; }
.status-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 14px; flex: none; background: var(--surface-2); color: var(--none);
}
.status-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.15; }
.status-sub { color: var(--muted); font-size: 15px; }
.level-operational .status-icon { color: var(--ok); }
.level-degraded .status-icon { color: var(--warn); }
.level-outage .status-icon { color: var(--down); }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.service-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.service-list .name { font-weight: 500; }

.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.badge-operational { color: var(--ok); }
.badge-degraded { color: var(--warn); }
.badge-outage { color: var(--down); }
.badge-unknown { color: var(--none); }

/* Sections */
.section { padding-top: 72px; }
.section h2.big { font-size: 38px; letter-spacing: -0.01em; }
.section .intro { color: var(--soft); font-size: 18px; max-width: 640px; margin-top: 12px; }
.grid-flex { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.grid-flex > * { flex: 1 1 260px; min-width: 0; }

details.fix { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
details.fix summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 6px; }
details.fix summary::-webkit-details-marker { display: none; }
details.fix .t { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
details.fix .d { color: var(--muted); font-size: 15px; }
details.fix ol { margin: 16px 0 0; padding-left: 20px; color: var(--soft); font-size: 15px; display: flex; flex-direction: column; gap: 8px; }

/* Forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.panel h2 { font-size: 32px; }
.panel .copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.panel .copy p { color: var(--soft); font-size: 17px; }
.form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: #c3cedb; }
select {
  height: 48px; padding: 0 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px; font: 16px Inter, sans-serif;
}
.msg { flex-basis: 100%; min-height: 22px; font-size: 14px; color: var(--soft); }

/* Footer */
.site-footer {
  margin-top: 88px; border-top: 1px solid #1e2938; padding: 32px; display: flex; flex-wrap: wrap;
  gap: 16px; align-items: center; justify-content: space-between;
}
.site-footer p { font-size: 14px; color: #8e9bad; max-width: 640px; }

/* Dashboard */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 40px; }
.page-head h1 { font-weight: 700; font-size: 36px; letter-spacing: -0.01em; }
.stack { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tile .big { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 36px; line-height: 1.1; }
.tile .mid { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.3; }
.tile .sub { font-size: 14px; color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.split > .side { flex: 1 1 280px; min-width: 0; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; border-bottom: 1px solid var(--line-strong); margin-top: 20px; }
.chart .bar { flex: 1 1 0; min-width: 0; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 3px; }
.chart-axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.table-scroll { overflow-x: auto; margin-top: 16px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
td { padding: 14px 0; border-top: 1px solid var(--line-soft); }
td.num, th.num { text-align: right; }
.bars { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.bar-row .top span:last-child { color: var(--muted); }
.track { height: 8px; background: var(--line-soft); border-radius: 4px; }
.track > div { height: 8px; background: var(--accent); border-radius: 4px; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.timeline li { display: flex; gap: 14px; }
.dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--none); }
.dot-operational { background: var(--ok); }
.dot-degraded { background: var(--warn); }
.dot-outage { background: var(--down); }
.timeline .t { font-weight: 600; }
.timeline .m { font-size: 14px; color: var(--muted); }
.feed { list-style: none; margin: 16px 0 0; padding: 0; }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.feed .m { color: var(--muted); font-size: 14px; white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; margin-top: 16px; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header { padding: 16px 20px; }
  .hero { padding-top: 40px; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .section h2.big { font-size: 30px; }
  .panel { padding: 24px; }
  .site-footer { padding: 24px 20px; }
}
