/* MirrorHub — global stylesheet
   All assets are local. No external fonts, CDNs or scripts are referenced. */

:root {
  --bg: #0a0d12;
  --bg-alt: #0e131a;
  --panel: #111823;
  --panel-2: #141d2a;
  --border: #1e2a3a;
  --border-soft: #172130;
  --text: #d7e0ec;
  --text-dim: #8fa1b8;
  --text-faint: #61748c;
  --accent: #37c9f0;
  --accent-dim: #1d8fb4;
  --ok: #3ddc97;
  --warn: #f5b642;
  --bad: #f2607a;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #6fdcff; text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; margin-top: 1.8em; }
h3 { font-size: 1.05rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: .3em 0; }
small { color: var(--text-dim); }

code, kbd, pre, .mono { font-family: var(--mono); font-size: .92em; }
code {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .4em;
  color: #cbe6f5;
}
pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1em 1.1em;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: none; border: 0; padding: 0; color: var(--text); }

hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 18, .92);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand svg { display: block; }
.brand span em { color: var(--text-dim); font-style: normal; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: .92rem;
}
.nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--panel-2); }

/* ---------- Layout blocks ---------- */
main { padding: 44px 0 64px; }
.hero { padding: 16px 0 8px; }
.lede { font-size: 1.12rem; color: var(--text-dim); max-width: 68ch; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.stat .v { font-family: var(--mono); font-size: 1.5rem; color: var(--text); margin-top: 6px; }
.stat .s { font-size: .85rem; color: var(--text-dim); margin-top: 2px; }

.note {
  border-left: 3px solid var(--accent-dim);
  background: var(--bg-alt);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim);
  margin: 1.4em 0;
}
.note strong { color: var(--text); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 1em 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
th {
  color: var(--text-faint);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
tbody tr:hover { background: var(--bg-alt); }
td.num { font-family: var(--mono); }
td.wrapcell { white-space: normal; }

/* ---------- Status dots ---------- */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(61,220,151,.14); }
.dot.deg { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,182,66,.14); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(242,96,122,.14); }
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-alt);
}
.badge.ok { color: var(--ok); border-color: rgba(61,220,151,.35); }
.badge.warn { color: var(--warn); border-color: rgba(245,182,66,.35); }

/* ---------- Pricing ---------- */
.plan { display: flex; flex-direction: column; }
.plan .price { font-family: var(--mono); font-size: 1.7rem; margin: 4px 0 2px; }
.plan .price small { font-size: .8rem; color: var(--text-dim); font-family: var(--sans); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; }
.plan ul li { padding-left: 20px; position: relative; font-size: .93rem; color: var(--text-dim); }
.plan ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent-dim); }
.plan .cta { margin-top: auto; }
.plan.featured { border-color: var(--accent-dim); background: var(--panel-2); }

.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: .92rem;
}
.btn:hover { text-decoration: none; border-color: var(--accent-dim); color: #fff; }
.btn.primary { background: var(--accent-dim); border-color: var(--accent-dim); color: #04141b; font-weight: 600; }
.btn.primary:hover { background: var(--accent); color: #04141b; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 34px 0 40px;
  color: var(--text-dim);
  font-size: .9rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.site-footer h4 { color: var(--text); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35em 0; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
.legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: .84rem;
}

/* ---------- 404 ---------- */
.error-code {
  font-family: var(--mono);
  font-size: clamp(3.5rem, 14vw, 7rem);
  line-height: 1;
  color: var(--panel-2);
  -webkit-text-stroke: 1px var(--border);
  margin: 0 0 .2em;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  h1 { font-size: 1.6rem; }
  main { padding: 30px 0 48px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .site-header .wrap { min-height: 54px; }
  .nav a { padding: 5px 8px; font-size: .88rem; }
  .legal { flex-direction: column; }
}
