:root {
  --bg: #0b0f17; --panel: #111827; --panel2: #0f1623; --line: #1f2a3c; --text: #e5e9f0;
  --muted: #8b97ab; --accent: #3ea6ff; --accent2: #7c5cff; --ok: #2fd47d; --warn: #f5b84a; --bad: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
code, pre { font-family: "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace; }
pre { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  overflow: auto; font-size: 13px; line-height: 1.5; }
code { background: rgba(124,92,255,.12); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
pre code { background: none; padding: 0; }

header { border-bottom: 1px solid var(--line); background: rgba(11,15,23,.85); position: sticky; top: 0; z-index: 3;
  backdrop-filter: blur(6px); }
.top { display: flex; align-items: center; gap: 26px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; font-size: 18px; color: var(--text); }
.logo svg { width: 26px; height: 26px; }
nav.main { display: flex; gap: 20px; font-size: 14px; }
nav.main a { color: var(--muted); }
nav.main a.active, nav.main a:hover { color: var(--text); text-decoration: none; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.btn { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.btn.p { border: 0; color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.status-pill { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }
.dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
h1 b { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; color: transparent; }
h2 { font-size: 22px; margin: 32px 0 12px; }
h3 { font-size: 15px; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 640px; }
.muted { color: var(--muted); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.cards { display: grid; gap: 14px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }

.kpi .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .6px; }
.kpi .d { font-size: 12px; color: var(--ok); margin-top: 6px; }
.kpi .d.warn { color: var(--warn); }

canvas { width: 100%; height: 220px; display: block; }
.sect-title { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
  display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; }
.sect-title em { font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }

.pipes { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.pipes li { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pipes li:last-child { border-bottom: 0; }
.bar { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 1s; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 10px; background: rgba(47,212,125,.12); color: var(--ok); }
.tag.w { background: rgba(245,184,74,.12); color: var(--warn); }
.tag.n { background: rgba(62,166,255,.12); color: var(--accent); }

.dc b { display: block; font-size: 15px; margin-bottom: 6px; }
.dc span { color: var(--muted); display: block; margin-top: 3px; font-size: 13px; font-variant-numeric: tabular-nums; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.t th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }

.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 5px 11px; }

.login label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.login input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2);
  color: var(--text); font-size: 14px; outline: none; }
.login input:focus { border-color: var(--accent); }
.login button { width: 100%; margin-top: 18px; padding: 11px; border: 0; border-radius: 8px; font-size: 15px; font-weight: 600;
  color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent2)); cursor: pointer; }
.login .msg { min-height: 18px; font-size: 13px; color: var(--bad); margin-top: 10px; }

.price { text-align: left; }
.price .amt { font-size: 30px; font-weight: 700; margin: 8px 0; }
.price .amt small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.price ul li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.price.feat { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 28px 0 40px; margin-top: 40px; }
.fcols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; }
.fcols h4 { font-size: 13px; color: var(--text); margin: 0 0 10px; }
.fcols a { display: block; color: var(--muted); padding: 4px 0; font-size: 13px; }
.fbottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

main.page { padding: 34px 0; }
main.page p { color: var(--muted); line-height: 1.7; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; font-size: 13px; }

@media (max-width: 900px) {
  nav.main, .top .right .btn { display: none; }
  .cards.c2, .cards.c3, .cards.c4, .fcols { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr !important; }
  h1 { font-size: 26px; }
}
