@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #090c11;
  --bg-elev: #0f141b;
  --panel: rgba(12, 18, 24, 0.92);
  --panel-strong: rgba(10, 16, 22, 0.98);
  --border: rgba(0, 212, 255, 0.22);
  --border-strong: rgba(0, 212, 255, 0.52);
  --text: #eaf7ff;
  --muted: #93a8b7;
  --accent: #00d4ff;
  --danger: #ff5f56;
  --warn: #ffb300;
  --ok: #00d4ff;
  --mono: 'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.01em;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
a:hover { color: #9fefff; }
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 20px 72px;
}
.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  z-index: 50;
  background: rgba(9, 12, 17, 0);
  border: 1px solid transparent;
  backdrop-filter: blur(0);
  transition: background-color 160ms ease, border-color 160ms ease, backdrop-filter 160ms ease;
}
.topbar.scrolled {
  background: rgba(9, 12, 17, 0.84);
  border-color: rgba(0, 212, 255, 0.12);
  backdrop-filter: blur(14px);
}
.brand {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nav a {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}
.hero, .panel {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.04), 0 18px 48px rgba(0, 0, 0, 0.32);
}
.hero {
  position: relative;
  padding: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(0, 212, 255, 0.08), transparent 38%),
    var(--panel-strong);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.12;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.28;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
}
.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  font-family: var(--mono);
  margin: 12px 0 10px;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--mono);
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}
h3 {
  font-family: var(--mono);
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}
p, li {
  color: var(--muted);
  line-height: 1.65;
}
.headline::after {
  content: '_';
  color: var(--accent);
  margin-left: 6px;
  animation: blink-cursor 0.9s steps(1, end) infinite;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.card {
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: rgba(9, 14, 19, 0.9);
  padding: 18px 18px 18px 16px;
}
.card .label {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card .value {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  word-break: break-word;
}
.value.status-live::before,
.value.status-warn::before,
.value.status-down::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 9px;
}
.value.status-live::before {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.55);
  animation: pulse-live 1.8s infinite;
}
.value.status-warn::before {
  background: var(--warn);
  box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.5);
  animation: pulse-warn 2s infinite;
}
.value.status-down::before {
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.45);
  animation: pulse-down 2s infinite;
}
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.bad { color: var(--danger); }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: rgba(9, 14, 19, 0.76);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.button::before {
  content: '> ';
  color: var(--accent);
}
.button:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.68);
}
.button.primary {
  border-color: rgba(0, 212, 255, 0.88);
}
.pill {
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 0;
  padding: 8px 12px;
  background: rgba(9, 14, 19, 0.82);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}
.stack {
  display: grid;
  gap: 16px;
}
.section {
  margin-top: 24px;
  padding: 22px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-head p {
  margin: 0;
  max-width: 650px;
}
.list-clean {
  margin: 0;
  padding-left: 18px;
}
.list-clean li + li {
  margin-top: 10px;
}
.muted {
  color: var(--muted);
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 16px;
  border-radius: 0;
  background: rgba(7, 10, 14, 0.96);
  border: 1px solid rgba(0, 212, 255, 0.16);
  color: #dce7f4;
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
}
.meta {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  background: rgba(7, 10, 14, 0.86);
  border: 1px solid rgba(0, 212, 255, 0.24);
  font-family: var(--mono);
  font-size: 13px;
}
.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  border-right: 1px solid rgba(0, 212, 255, 0.12);
  color: var(--muted);
}
.table th {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table th:last-child,
.table td:last-child {
  border-right: 0;
}
.table tbody tr:hover td {
  color: var(--text);
  background: rgba(0, 212, 255, 0.05);
}
.js .value.is-loading,
.js pre.is-loading {
  color: transparent;
}
.js .value.is-loading::after,
.js pre.is-loading::after {
  content: attr(data-loading-label);
  color: var(--accent);
  font-family: var(--mono);
}

@keyframes blink-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

@keyframes pulse-warn {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255, 179, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); }
}

@keyframes pulse-down {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255, 95, 86, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 86, 0); }
}

@media (max-width: 820px) {
  .topbar,
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .wrap {
    padding-top: 120px;
  }
  .nav {
    gap: 10px;
  }
  h1 {
    font-size: clamp(28px, 9vw, 46px);
  }
}
