*{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#07120d;
  --bg-soft:#0a1a14;
  --surface:#0d1d16;
  --surface-hi:#13281f;
  --border:#1a2c23;
  --border-hi:#264236;
  --text:#e6f4ec;
  --muted:#7a9389;
  --accent:#17dc94;
  --good:#17dc94;
  --bad:#ff7676;
  --warn:#ffc857;
  --gap:#243a31;
}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.page{
  max-width:880px;
  margin:0 auto;
  padding:24px 24px 36px;
}

/* hero */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
  padding:18px;
  background:linear-gradient(160deg,var(--surface-hi),var(--surface) 70%);
  border:1px solid var(--border);
  border-radius:18px;
  margin-bottom:18px;
}
@media (min-width:720px){
  .hero{grid-template-columns:230px 1fr;gap:28px;align-items:center}
}
.hero-photo{position:relative}
.hero-photo img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  border:1px solid var(--border-hi);
  background:#000;
}
.hero-text h1{
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.01em;
  margin-bottom:10px;
}
.hero-text h1 .dot{
  margin-right:12px;
  vertical-align:0.18em;
}
@media (min-width:720px){.hero-text h1{font-size:34px}}
.hero-sub{color:var(--muted);font-size:15px;margin-bottom:14px}

/* status dot */
.dot{
  display:inline-block;
  width:14px;height:14px;
  border-radius:50%;
  background:var(--muted);
  box-shadow:0 0 0 4px rgba(255,255,255,0.03);
}
.dot-ok{background:var(--good);box-shadow:0 0 0 4px rgba(23,220,148,0.18)}
.dot-bad{background:var(--bad);box-shadow:0 0 0 4px rgba(255,118,118,0.18)}
.dot-unknown{background:var(--muted)}
.dot-warn{background:var(--warn);box-shadow:0 0 0 4px rgba(255,200,87,0.18)}

/* The agent-fleet card reuses the .svc card styling below so it reads as one
   more section alongside Website/API — only the status word differs. It shows
   just a coarse health word + a rounded %, never a count or an individual
   agent. It carries the same 24h strip as the other cards, but each slot is
   coloured by the fleet *health word* (green healthy / amber degraded / gap
   when blind) rather than URL-reachability — still no counts or agent. */

/* services list */
.services{display:flex;flex-direction:column;gap:10px}
/* Live refresh swaps the cards in place (no full-page reload) — a brief dim
   makes the content change read as a gentle update rather than a flash. */
.services{transition:opacity .2s ease}
@media (prefers-reduced-motion:reduce){.services{transition:none}}
.svc{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 20px;
  transition:border-color .15s ease;
}
.svc:hover{border-color:var(--border-hi)}
.svc-row{
  display:flex;align-items:center;gap:14px;
  flex-wrap:wrap;
}
.svc-name{
  font-size:17px;
  font-weight:700;
  flex:1 1 auto;
  min-width:0;
}
.svc-name a{color:var(--text)}
.svc-status{
  font-size:13px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.svc-bad .svc-status{color:var(--bad)}
.svc-ok .svc-status{color:var(--good)}
.svc-warn .svc-status{color:var(--warn)}

/* 24h strip */
.svc-strip{
  display:flex;
  gap:2px;
  margin-top:10px;
  height:22px;
  border-radius:6px;
  overflow:hidden;
  background:var(--bg-soft);
}
.svc-strip .slot{
  flex:1 1 0;
  height:100%;
  cursor:default;
  transition:filter .12s ease, transform .12s ease;
  outline:none;
}
.svc-strip .slot:hover,
.svc-strip .slot:focus-visible{
  filter:brightness(1.25);
  transform:scaleY(1.08);
}
.slot-ok{background:var(--good)}
.slot-bad{background:var(--bad)}
.slot-mixed{background:var(--warn)}
.slot-warn{background:var(--warn)}
.slot-gap{background:var(--gap)}
.svc-strip-axis{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.svc-uptime{
  flex:1;
  text-align:center;
  font-weight:600;
  color:var(--text);
  letter-spacing:0;
  text-transform:none;
  font-variant-numeric:tabular-nums;
  font-size:12px;
}
.svc-bad .svc-uptime{color:var(--bad)}

/* per-slot tooltip */
.slot-tip{
  position:absolute;
  z-index:1100;
  background:#0b1b14;
  border:1px solid var(--border-hi);
  color:var(--text);
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.5;
  box-shadow:0 8px 24px rgba(0,0,0,0.5);
  pointer-events:none;
  max-width:280px;
  word-wrap:break-word;
  overflow-wrap:break-word;
}
.slot-tip[hidden]{display:none}
.slot-tip .tip-range{
  font-weight:600;
  color:var(--text);
  margin-bottom:2px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.slot-tip .tip-line{color:var(--muted)}
.slot-tip .tip-ok{color:var(--good)}
.slot-tip .tip-bad{color:var(--bad)}
.slot-tip .tip-mixed{color:var(--warn)}
.slot-tip .tip-gap{color:var(--muted)}

/* footer */
.foot{
  margin-top:28px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

/* dev banner — matches the mintbot.dev site env-banner */
.dev-banner{
  width:100%;
  background:#c0392b;
  color:#fff;
  font:600 14px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;
  text-align:center;
  padding:10px 16px;
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid #8a2a1f;
}
.dev-banner-link{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:2px;
}
.dev-banner-link:hover{
  text-decoration:none;
}

/* language picker — flat trigger (flag + chevron), full native names in menu.
   Mirrors the BeeOffice/reception picker so the cross-surface UX is identical;
   only the accent colour follows the meerkat (green) palette. Sits in the
   top-right of the hero status card itself — clear of the meerkat photo. On
   narrow screens it falls into flow as the first, right-aligned row of the card
   (above the photo); on desktop it pins to the card's top-right corner. */
.lang-picker{position:relative;justify-self:end;z-index:5}
.lang-picker-btn{
  display:inline-flex;align-items:center;gap:.35rem;
  background:rgba(7,18,13,.62);border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  color:var(--text);font-family:inherit;font-size:14px;font-weight:600;
  padding:.3rem .5rem;border-radius:9px;
  cursor:pointer;transition:color .15s,border-color .15s,background-color .15s;
}
.lang-picker-btn:hover{border-color:var(--border-hi);background:rgba(7,18,13,.78)}
.lang-picker-btn .flag{width:1.45em;height:1.0875em;border-radius:2px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.18);display:block}
.lang-picker-btn .arrow{font-size:.62rem;color:var(--muted);transition:transform .15s}
.lang-picker.open .lang-picker-btn{color:var(--text);border-color:var(--border-hi)}
.lang-picker.open .lang-picker-btn .arrow{transform:rotate(180deg)}
.lang-menu{
  position:absolute;
  top:calc(100% + 6px);right:0;
  background:var(--surface-hi);
  border:1px solid var(--border-hi);
  border-radius:12px;
  padding:.3rem;
  box-shadow:0 14px 36px -10px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.03);
  z-index:50;
  display:none;
  /* Two columns so all 19 languages are visible at once — no scrollbar. */
  grid-template-columns:repeat(2,minmax(150px,1fr));
  gap:.12rem .2rem;
}
.lang-picker.open .lang-menu{display:grid}
/* On desktop, pin the picker to the hero card's top-right corner (absolute,
   clear of the photo); the menu opens leftward into the card (default right:0). */
@media (min-width:720px){
  .lang-picker{position:absolute;top:14px;right:14px;justify-self:auto}
}
.lang-opt{
  display:flex;align-items:center;gap:.6rem;
  background:transparent;border:none;color:var(--text);
  font-family:inherit;font-size:.86rem;font-weight:600;
  text-align:left;
  padding:.45rem .7rem;
  border-radius:8px;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  transition:background-color .12s,color .12s;
}
.lang-opt .flag{width:1.45em;height:1.0875em;border-radius:2px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.18);flex:0 0 auto}
.lang-opt:hover{background:rgba(23,220,148,0.10);color:var(--accent);text-decoration:none}
.lang-opt.is-current{background:rgba(23,220,148,0.18);color:var(--accent)}
