:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --panel: #161a23;
  --panel-2: #0f1320;
  --border: rgba(255,255,255,0.08);
  --text: #e7eaf2;
  --muted: #8b93a8;
  --muted-2: #5d7aae;
  --accent: #3a8eff;
  --ok: #21d07a;
  --warn: #ffb020;
}
[data-brand="primcast"] { --accent: #ff5a26; }

* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

header.site {
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 32px; border-bottom:1px solid var(--border);
  background: var(--bg-2);
}
header.site .logo { font-weight:700; font-size:18px; letter-spacing:-.01em; color:var(--text); }
header.site .logo .dot { color: var(--accent); }
header.site nav { display:flex; gap:24px; }
header.site nav a { color:#c4c9d8; font-size:14px; }
header.site nav a:hover { color:#fff; }
header.site .cta {
  background: var(--accent); color:#fff !important; padding:8px 16px; border-radius:8px;
  font-weight:500; font-size:14px;
}
@media (max-width: 880px) {
  header.site nav { display:none; }
  header.site { padding:14px 18px; }
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px){ .container{ padding: 0 18px; } }

.hero { padding: 56px 0 30px; }
.eyebrow {
  display:inline-block; font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--accent); border:1px solid var(--accent); padding:4px 10px; border-radius:999px;
  margin-bottom: 18px;
}
h1 { font-size: 44px; line-height:1.1; margin: 0 0 14px; letter-spacing:-.02em; font-weight:700; }
h1 span { color: var(--accent); }
.lead { font-size: 16px; color: var(--muted); margin: 0 0 18px; max-width: 640px; line-height:1.5; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.controls { display:flex; align-items:center; gap:14px; margin: 18px 0 24px; flex-wrap:wrap; }
.controls button {
  padding: 12px 32px; border:none; border-radius:10px; font-family:inherit; font-size:15px; font-weight:500; cursor:pointer;
}
.controls button.primary { background: var(--accent); color:#fff; }
.controls button.primary:hover { filter: brightness(1.1); }
.controls button.primary:disabled { opacity:.6; cursor:not-allowed; }
.controls button.secondary { background: #3a2222; color: #ff9a9a; }
.controls .server-info { color: var(--muted); font-size: 13px; }
.controls .server-info strong { color: var(--text); font-weight:500; }

.kpis { display:grid; grid-template-columns: repeat(5, 1fr); gap:12px; margin-bottom: 24px; }
@media (max-width: 980px){ .kpis{ grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
}
.kpi.highlight {
  background: linear-gradient(180deg, rgba(58,142,255,.12), rgba(58,142,255,.02));
  border-color: rgba(58,142,255,.3);
}
[data-brand="primcast"] .kpi.highlight {
  background: linear-gradient(180deg, rgba(255,90,38,.12), rgba(255,90,38,.02));
  border-color: rgba(255,90,38,.3);
}
.kpi .l { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.kpi .v { font-size: 24px; color:#fff; font-weight:500; margin-top: 4px; }
.kpi .v .u { font-size: 13px; color: var(--muted); margin-left: 4px; font-weight:400; }

.charts { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 980px){ .charts { grid-template-columns: 1fr; } }

.card {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
}
.card h5 { margin: 0 0 8px; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.legend { display:flex; gap:14px; font-size:11px; color: var(--muted); margin-bottom: 8px; }
.legend i { display:inline-block; width:10px; height:2px; vertical-align:middle; margin-right:5px; }

.chart { height: 240px; }
.chart svg { width: 100%; height: 100%; }
.chart .gridlines line { stroke: #1c2236; stroke-width: 1; }
.chart .area-fill { fill-opacity: 1; }
.chart .area-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart .labels text { font-size: 11px; fill: var(--muted-2); font-family: 'Roboto', sans-serif; }

.history table { width: 100%; border-collapse: collapse; font-size: 13px; }
.history th { text-align: left; padding: 8px 12px; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--border); font-weight: 600; }
.history td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.history tr:last-child td { border-bottom: none; }
.history tr:hover td { background: rgba(255,255,255,.02); }
.pill { padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.pill.ok { background: rgba(33,208,122,.12); color: var(--ok); }
.pill.warn { background: rgba(255,176,32,.12); color: var(--warn); }

.ip-card .ip-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 8px; }
.ip-card code { display: inline-block; background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px; font-size: 14px; color: #fff; }

footer.site { margin-top: 80px; padding: 24px 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; }
