:root {
  --bg: #05090d;
  --bg-2: #071018;
  --glass: rgba(10, 17, 24, .72);
  --surface-strong: rgba(12, 20, 28, .94);
  --line: rgba(145, 171, 188, .22);
  --line-soft: rgba(145, 171, 188, .12);
  --text: #f4f7f8;
  --muted: #a3b0b8;
  --soft: #c9d2d8;
  --cyan: #37dff2;
  --lime: #c7f34b;
  --red: #ff6f61;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --page: 1456px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; scrollbar-color: #33434c #05090d; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.55 "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(80,126,144,.08) 1px, transparent 1px),
    linear-gradient(90deg,rgba(80,126,144,.08) 1px, transparent 1px),
    radial-gradient(circle at 76% 16%,rgba(55,223,242,.12),transparent 30%),
    radial-gradient(circle at 16% 18%,rgba(199,243,75,.08),transparent 24%),
    linear-gradient(180deg,#081019 0%,#05090d 48%,#04070a 100%);
  background-size: 72px 72px,72px 72px,auto,auto,auto;
}
.backdrop { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(255,255,255,.05),transparent 22%),radial-gradient(circle at center,transparent 42%,rgba(0,0,0,.28) 100%); }
.backdrop i { display: none; }

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(calc(100% - 64px), calc(var(--page) - 64px));
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(180deg,rgba(5,9,13,.96),rgba(5,9,13,.78));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px; pointer-events: none; background: linear-gradient(180deg,rgba(5,9,13,.34),rgba(5,9,13,0)); }
.topbar-inner { height: 86px; padding: 0 16px 0 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; color: var(--text); font-weight: 800; font-size: clamp(1.5rem,3vw,2.4rem); line-height: 1; text-decoration: none; }
.brand-mark { width: 12px; height: 34px; overflow: hidden; color: transparent; background: var(--lime); box-shadow: 0 0 28px rgba(199,243,75,.42); }
nav { display: flex; align-items: center; justify-content: center; gap: 34px; }
nav a { color: var(--soft); font-size: 15px; font-weight: 600; text-decoration: none; transition: color .16s ease; }
nav a:hover, nav a.active { color: var(--cyan); }
.live { justify-self: end; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); color: var(--muted); font: 600 .74rem/1 "IBM Plex Mono",ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .12em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(199,243,75,.65); }

main { position: relative; z-index: 1; width: min(100%,var(--page)); margin: 0 auto; padding: 142px 32px 54px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; padding-bottom: 34px; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font: 600 .78rem/1.2 "IBM Plex Mono",ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { color: #58656b; margin-right: 8px; }
h1 { margin: 0; font-size: clamp(2.25rem,3.2vw,3rem); line-height: 1.02; letter-spacing: 0; font-weight: 800; }
.lead { max-width: 620px; margin: 14px 0 0; color: var(--soft); font-size: 1.05rem; line-height: 1.7; }
.overall { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(14px); font-size: 13px; color: var(--muted); }
.overall i, .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.overall.up, .overall.degraded { color: var(--text); }
.overall.up i, .dot.up { background: var(--lime); box-shadow: 0 0 11px rgba(199,243,75,.55); }
.overall.degraded i, .dot.down { background: var(--red); box-shadow: 0 0 11px rgba(255,111,97,.5); }

.groups { display: grid; gap: 18px; }
.group { overflow: hidden; background: linear-gradient(180deg,rgba(255,255,255,.04),transparent 36%),var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.group h2 { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #c9d2d8; }
.check { display: grid; grid-template-columns: minmax(180px,1fr) minmax(260px,2.15fr) 130px; gap: 22px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.check:last-child { border: 0; }
.name { font-size: 14px; font-weight: 610; }
.state { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--lime); font-size: 12px; white-space: nowrap; }
.state.down, .state.unknown { color: var(--red); }
.history { display: grid; grid-template-columns: repeat(48,1fr); height: 23px; gap: 2px; }
.bar { display: block; min-width: 2px; border-radius: 2px; background: rgba(255,255,255,.08); transition: opacity .15s; }
.bar:hover { opacity: .62; }
.bar.up { background: rgba(199,243,75,.62); }
.bar.down { background: rgba(255,111,97,.82); }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 25px; padding: 0 2px; color: #75858e; font-size: 11px; }
footer b { color: #46535a; margin: 0 5px; }
footer strong { color: #b7c2c8; font-weight: 600; }

@media (min-width: 1180px) {
  .lead { max-width: none; white-space: nowrap; }
}

@media (max-width: 820px) {
  .topbar { left: 0; width: 100%; min-height: 0; transform: none; border-radius: 0 0 var(--radius) var(--radius); }
  .topbar-inner { height: auto; min-height: 86px; padding: 18px; grid-template-columns: minmax(0,1fr) auto; gap: 24px; }
  nav { display: none; }
  .live { min-height: 48px; }
  main { padding: 124px 18px 42px; }
  .intro { display: block; padding-bottom: 26px; }
  .overall { margin-top: 22px; }
  h1 { font-size: clamp(1.78rem,7vw,2rem); }
  .lead { font-size: .95rem; line-height: 1.62; }
  .check { grid-template-columns: 1fr auto; gap: 12px; padding: 15px 16px; }
  .history { grid-column: 1/-1; grid-row: 2; height: 20px; }
  .group h2 { padding: 14px 16px; }
  footer { flex-direction: column; gap: 6px; }
}

@media (max-width: 560px) {
  .topbar-inner { min-height: 72px; grid-template-columns: minmax(0,1fr) auto; }
  .brand { font-size: 1.45rem; }
  .brand-mark { height: 28px; width: 12px; }
  .live { min-height: 40px; }
  main { padding-top: 110px; }
  .history { gap: 1px; }
  footer { font-size: .78rem; gap: 12px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .topbar-inner { min-height: 72px; grid-template-columns: minmax(0,1fr) auto; gap: 18px; padding: 12px 14px 12px 18px; }
  .brand { font-size: 1.35rem; }
  .brand-mark { height: 28px; }
  nav { display: none; }
  .live { grid-column: auto; grid-row: auto; justify-self: end; min-height: 40px; }
  main { padding-top: 108px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
