:root {
  --bg: #000000;
  --bg-card: #050505;
  --fg: #ffffff;
  --muted: #c8c8c8;
  --green: #39ff14;          /* matrix green — pops on black */
  --green-dim: #1a8f0a;
  --green-deep: #0d5c08;
  --fail: #ff4d4d;
  --ok: #39ff14;
  --line: rgba(57, 255, 20, 0.35);
  --glow: rgba(57, 255, 20, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #000000;
  color: var(--fg);
}
a { color: var(--green); }
.wrap { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.brand {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.75rem;
}
h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 650;
  color: #ffffff;
}
h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.85rem;
}
p, li { color: var(--muted); line-height: 1.55; }
strong { color: #ffffff; font-weight: 600; }
code {
  color: var(--green);
  background: #0a0a0a;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 0.9em;
}
.logo {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.25));
}
.hero { text-align: center; margin-bottom: 2rem; }
.hero p.lead { max-width: 36rem; margin: 0 auto 1.25rem; font-size: 1.05rem; color: #e8e8e8; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn, .ghost {
  display: inline-block;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: 9px;
  font-weight: 650;
  font-size: 0.95rem;
}
.btn {
  color: #000000;
  background: var(--green);
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.35);
}
.btn:hover { filter: brightness(1.08); }
.ghost {
  color: var(--green);
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 600;
}
.ghost:hover { background: rgba(57, 255, 20, 0.08); }
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  background: #050505;
  margin: 1.1rem 0;
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.04);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #000;
}
.stat .k { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); opacity: 0.75; }
.stat .v { font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 0.25rem; color: #fff; }
.stat .v.fail { color: var(--fail); }
.stat .v.ok { color: var(--ok); }
.bar {
  display: flex; height: 14px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line); margin: 0.75rem 0 0.35rem;
  background: #000;
}
.bar .ok { background: var(--green); }
.bar .fail { background: var(--fail); }
.bar-legend { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.agent {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #000;
}
.agent .name { color: var(--green); font-weight: 650; }
.agent .meta { font-size: 0.82rem; margin-top: 0.35rem; font-variant-numeric: tabular-nums; color: #c8c8c8; }
.pip {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.6);
}
.pip.fail { background: var(--fail); box-shadow: 0 0 6px rgba(255,77,77,0.6); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(57, 255, 20, 0.08);
  color: var(--green); font-size: 0.78rem; font-weight: 650;
}
.badge.fail-tone {
  border-color: rgba(255, 77, 77, 0.45);
  background: rgba(255, 77, 77, 0.1);
  color: var(--fail);
}
pre {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--green);
  white-space: pre-wrap;
  margin: 0.75rem 0 0;
}
.muted { color: var(--muted); font-size: 0.85rem; }
.claims { margin: 0; padding-left: 1.15rem; }
.claims li { margin: 0.4rem 0; color: #d0d0d0; }
.claims li::marker { color: var(--green); }
footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}
.skeleton { opacity: 0.45; }
.copy-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
button.copy {
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(57, 255, 20, 0.08);
  color: var(--green);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}
button.copy:hover { background: rgba(57, 255, 20, 0.16); }
.updated { font-size: 0.75rem; color: #888; margin-top: 0.5rem; }

/* Placard header — same border language as .card boxes */
.site-header.placard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0 0 2rem;
  padding: 0.85rem 1.1rem;
  box-sizing: border-box;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.04);
  height: auto;
  min-height: 5.5rem;
}
.site-header > a.brand-link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0;
}
.site-header .mark {
  display: block;
  height: 5rem; /* tall enough that the seal's built-in check reads */
  width: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: none;
  flex: 0 0 auto;
}
.site-header .wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1;
}
.site-header .wm-row {
  display: block;
  font-family: "Liberation Serif", "DejaVu Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.45rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
}
.site-header .wm-act { color: #ffffff; }
.site-header .wm-truth { color: var(--green); }
.site-header nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
}
.site-header nav a {
  text-decoration: none;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
  white-space: nowrap;
  line-height: 1;
}
.site-header nav a:hover {
  color: #000;
  background: var(--green);
  border-color: var(--green);
}
.site-header nav a.primary {
  color: #000000;
  background: var(--green);
  border-color: var(--green);
}
.site-header nav a.primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000;
}
@media (max-width: 720px) {
  .site-header.placard {
    flex-wrap: wrap;
    padding: 0.85rem 0.95rem;
    gap: 0.75rem;
  }
  .site-header > a.brand-link {
    width: 100%;
  }
  .site-header .mark {
    height: 4rem;
  }
  .site-header .wm-row {
    font-size: 1.55rem;
  }
  .site-header nav {
    width: 100%;
    gap: 0.4rem;
  }
  .site-header nav a {
    flex: 1 1 0;
    text-align: center;
    font-size: 0.68rem;
    padding: 0.55rem 0.35rem;
  }
}
