:root {
  --bg: #0f1220; --panel: #161a2c; --fg: #e6e9f0; --muted: #8b93a8;
  --accent: #4f7cff; --ok: #37c26a; --warn: #e6a23c; --crit: #f0575a; --info: #5aa7e0;
  --border: #232c44;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #0b0e1a, var(--bg)); color: var(--fg);
}
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 14px 24px;
  border-bottom: 1px solid var(--border); background: rgba(18,23,40,.6);
}
.brand { font-weight: 700; font-size: 18px; color: #fff; text-decoration: none; letter-spacing: .3px; }
.topbar nav { display: flex; gap: 18px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--fg); }
main { max-width: 1080px; margin: 0 auto; padding: 28px 24px; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }

.hero { text-align: center; padding: 40px 0; }
.hero h1 { font-size: 30px; }
.hero p { max-width: 720px; margin: 14px auto; line-height: 1.6; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.card h3 { border: none; }

.auth { max-width: 380px; margin: 40px auto; }
.auth form, .inline { display: flex; flex-direction: column; gap: 10px; }
form.inline, .topbar { }
form.inline, .inline { display: flex; gap: 10px; align-items: center; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
input[type=text], input[type=password], input[type=file] {
  background: #0e1222; color: var(--fg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.btn {
  background: var(--panel); color: var(--fg); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 16px; cursor: pointer; font-weight: 600;
}
.btn.primary { background: var(--accent); color: #fff; border: none; }
a.btn { text-decoration: none; display: inline-block; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
thead th { color: var(--muted); text-transform: uppercase; font-size: 12px; }
tbody tr:hover { background: rgba(255,255,255,.02); }

.score { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--fg); font-size: 16px; }
.badge {
  display: inline-block; min-width: 26px; text-align: center; border-radius: 6px;
  padding: 2px 8px; font-weight: 700;
}
.badge.grade-a { background: #1e3a2a; color: var(--ok); }
.badge.grade-b { background: #1e332a; color: #7fd6a0; }
.badge.grade-c { background: #33361f; color: var(--warn); }
.badge.grade-d { background: #3a2d1e; color: #e08f5a; }
.badge.grade-f, .badge.grade-x { background: #3a1c24; color: var(--crit); }

.sev { display: inline-block; border-radius: 5px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.sev.critical { background: #3a1c24; color: var(--crit); }
.sev.warning { background: #33361f; color: var(--warn); }
.sev.info, .sev.success { background: #13242e; color: var(--info); }
.sev.error { background: #3a1c24; color: var(--crit); }
.sev.success { background: #16331e; color: var(--ok); }

pre.txn, .mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
pre.txn {
  background: #0c0f1c; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; overflow-x: auto; color: #c3ffd9;
}

.summary { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-bottom: 24px; }
.big-score { text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.big-score .score { font-size: 44px; display: block; }
.fix-guide { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.group { margin-top: 20px; }
.error { color: var(--crit); font-weight: 600; }
.muted { color: var(--muted); }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }

/* ── Public landing / feature reel ─────────────────────────────── */
.navlogin { color: var(--fg); font-weight: 600; }
.navlogin:hover { color: var(--accent); }
main.public { max-width: 1180px; }
.btn.big { padding: 13px 26px; font-size: 16px; }
.eyebrow { font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); }
.hero .eyebrow { margin: 0 0 8px; }
.hero h1 { font-size: 40px; line-height: 1.15; }
.hero .lede { font-size: 18px; line-height: 1.6; }
.hero code, .feature-reel code, .reel code { background: #0c0f1c; color: #c3ffd9; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.cta { display: flex; gap: 14px; justify-content: center; margin-top: 22px; }
.hero .hint { color: var(--muted); font-size: 13px; margin-top: 18px; }
.trustbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 10px;
  max-width: 1080px;
}
.trustbar span {
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 14px; font-size: 13px; color: var(--fg);
}
.problem, .how, .automation, .closing-cta, .feature-reel, .reel-intro, .reel { max-width: 1080px; margin: 0 auto; padding: 24px 0; }
.problem p, .automation p { line-height: 1.7; color: var(--fg); }
.problem h2, .how h2, .automation h2, .closing-cta h2, .feature-reel h2, .reel-intro h1, .reel h2 { font-size: 20px; }
.cards.featgrid, .feature-reel .cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card.feat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.card.feat h3 { border: none; font-size: 15px; }
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li {
  counter-increment: step; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin: 10px 0; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: -14px; top: 14px; width: 30px; height: 30px;
  background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.automation ul { line-height: 1.8; }
.automation ul li::before { content: "✓  "; color: var(--ok); }
.closing-cta { text-align: center; padding: 40px 0; }
.closing-cta a { margin-top: 16px; }

/* feature reel mockups */
.reel-intro { text-align: center; }
.reel-item { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin: 18px 0; }
.reel-item h2 { font-size: 17px; }
.reel-item p { line-height: 1.6; }
.mock { background: #0c0f1c; border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-top: 14px; }
.mhead { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.score-mock { display: flex; align-items: center; justify-content: space-between; }
.score-mock .bigkpi { font-size: 40px; font-weight: 700; color: var(--ok); }
.score-mock .bigkpi .unit { color: var(--muted); font-size: 16px; }
.table-mock .mrow { font-family: ui-monospace, "SF Mono", Consolas, monospace; color: var(--muted); font-size: 13px; margin-top: 6px; }
.table-mock .mrow:first-of-type { color: var(--crit); }