:root {
  --bg: #0b0e14; --panel: #12161f; --panel-2: #171c27; --border: #232a38;
  --text: #e6eaf2; --muted: #8b95a7; --accent: #5b8cff; --green: #2ecc71;
  --yellow: #f1c40f; --red: #e74c3c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, "Inter", "Segoe UI", sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.shell { max-width: 1080px; margin: 0 auto; padding: 40px 24px 24px; }
.masthead { display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 16px; }
.logo { width: 46px; height: 46px; display: grid; place-items: center; background: linear-gradient(135deg, #5b8cff, #7c4dff); border-radius: 12px; font-size: 22px; font-weight: 700; color: #fff; }
h1 { font-size: 24px; letter-spacing: 4px; }
.tagline { color: var(--muted); font-size: 13px; }
.version { color: var(--accent); font-weight: 600; font-size: 13px; }

.hero { padding: 48px 0 32px; }
.hero h2 { font-size: 30px; font-weight: 700; line-height: 1.25; max-width: 820px; }
.hero .sub { color: var(--muted); font-size: 16px; margin-top: 14px; max-width: 720px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card h3 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.note { color: var(--muted); font-size: 12px; margin-top: 12px; }

.pipeline { margin-bottom: 20px; }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.step { background: var(--panel-2); border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.arrow { color: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.project-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.project-row:last-child { border-bottom: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.live { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.building { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.p-name { font-weight: 600; min-width: 140px; }
.p-name a { color: var(--accent); text-decoration: none; font-size: 12px; margin-left: 6px; }
.p-type { color: var(--muted); font-size: 12px; flex: 1; }
.score-bar { width: 140px; height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, #5b8cff, #7c4dff); }
.p-score { font-weight: 700; min-width: 44px; text-align: right; }

.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.k-cell { background: var(--panel-2); border-radius: 10px; padding: 14px; text-align: center; }
.k-num { font-size: 26px; font-weight: 700; }
.k-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

.sec-row { display: flex; align-items: center; justify-content: space-between; background: var(--panel-2); padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; }
.sec-val { font-weight: 700; color: var(--green); }

.agent-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.agent-row:last-child { border-bottom: none; }
.a-name { font-weight: 600; min-width: 80px; }
.a-role { color: var(--muted); font-size: 12px; flex: 1; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.badge.observed { background: rgba(46,204,113,.15); color: var(--green); }
.badge.declared { background: rgba(241,196,15,.15); color: var(--yellow); }
.badge.unknown { background: rgba(139,149,167,.15); color: var(--muted); }

.footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; flex-wrap: wrap; gap: 8px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 24px; }
}
