:root {
  --ink: #e9eee9;
  --muted: #91a09a;
  --quiet: #66746d;
  --line: rgba(214, 232, 220, 0.12);
  --panel: rgba(25, 33, 30, 0.82);
  --panel-strong: #1a231f;
  --canvas: #101312;
  --accent: #d8ff65;
  --accent-soft: rgba(216, 255, 101, 0.13);
  --warm: #ffb38a;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 14%, rgba(216, 255, 101, 0.08), transparent 26rem),
    linear-gradient(130deg, rgba(255, 179, 138, 0.045), transparent 42%),
    var(--canvas);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.topbar {
  height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-muted {
  color: var(--quiet);
  font-weight: 500;
}

.brand-mark {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  width: 25px;
  height: 23px;
}

.brand-mark i {
  display: block;
  width: 5px;
  height: 13px;
  background: var(--accent);
  transform: skew(-21deg);
}

.brand-mark i:nth-child(2) {
  height: 20px;
  background: var(--warm);
}

.brand-mark i:nth-child(3) {
  height: 16px;
}

.topbar-meta,
.footer {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot,
.status-pill i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.topbar-divider {
  width: 1px;
  height: 14px;
  margin: 0 4px;
  background: var(--line);
}

main {
  padding: 92px 0 70px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 58px;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin: 18px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h1 em {
  color: var(--warm);
  font-style: italic;
}

.hero-note {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.refresh-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(216, 255, 101, 0.5);
  border-radius: 3px;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
}

.refresh-button:hover {
  color: var(--canvas);
  background: var(--accent);
  transform: translateY(-2px);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.refresh-icon {
  font-size: 18px;
  line-height: 1;
}

.status-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.status-card {
  min-height: 258px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
  animation: rise 520ms both;
}

.status-card:nth-child(2) {
  animation-delay: 80ms;
}

.status-card:nth-child(3) {
  animation-delay: 160ms;
}

.primary-card {
  border-color: rgba(216, 255, 101, 0.28);
  background: linear-gradient(145deg, rgba(44, 57, 45, 0.95), var(--panel));
}

.card-heading,
.card-footer,
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill i {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.status-pill.ok {
  color: var(--accent);
}

.status-pill.fail {
  color: var(--warm);
}

.status-pill.fail i {
  background: var(--warm);
}

.metric-row {
  align-items: baseline;
  justify-content: start;
  gap: 10px;
  margin-top: 56px;
}

.metric-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.metric-unit {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.status-card p {
  min-height: 43px;
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.card-footer {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 18px;
}

.signal-bars i {
  display: block;
  width: 4px;
  height: 7px;
  background: var(--quiet);
}

.signal-bars i:nth-child(2) {
  height: 11px;
}

.signal-bars i:nth-child(3) {
  height: 15px;
}

.signal-bars i:nth-child(4) {
  height: 18px;
}

.signal-bars.good i {
  background: var(--accent);
}

.response-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 19, 18, 0.75);
  animation: rise 600ms 220ms both;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 28px 20px;
}

h2 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.panel-code {
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: 0.13em;
}

pre {
  min-height: 142px;
  margin: 0;
  padding: 22px 28px 28px;
  overflow: auto;
  border-top: 1px solid var(--line);
  color: #c7d2c7;
  background: rgba(4, 7, 6, 0.35);
  font: 12px/1.8 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}

.footer {
  min-height: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 540px);
  }

  .topbar {
    height: 72px;
  }

  .topbar-meta {
    font-size: 0;
  }

  .topbar-meta .live-dot {
    width: 7px;
    height: 7px;
  }

  main {
    padding: 64px 0 48px;
  }

  .hero {
    display: block;
    margin-bottom: 42px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .refresh-button {
    margin-top: 26px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-card {
    min-height: 218px;
  }

  .metric-row {
    margin-top: 40px;
  }

  .panel-heading,
  pre {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }
}
