:root {
  --bg: #08080a;
  --bg-2: #0f1014;
  --surface: #111319;
  --surface-2: #161924;
  --surface-3: #1d2130;
  --ink: #eff2ff;
  --muted: #97a0bf;
  --line: #2a3146;
  --accent: #53d3a2;
  --accent-2: #5fa8ff;
  --warn: #f2b144;
  --bad: #ff6961;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% -10%, #1a2133 0%, var(--bg) 38%), var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", sans-serif;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 19, 25, 0.8);
  backdrop-filter: blur(8px);
}

.brand {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand span { color: var(--muted); }

.topnav {
  display: flex;
  gap: 14px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.topnav a:hover { color: var(--ink); }

.hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(22, 25, 36, 0.92), rgba(17, 19, 25, 0.92));
  box-shadow: 0 0 0 1px rgba(95, 168, 255, 0.05), 0 22px 50px rgba(0, 0, 0, 0.35);
}

.hero-kicker {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.sub {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.5;
}

.kpi-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.kpi-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-2);
}

.kpi-label {
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.content-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.clean-list li + li { margin-top: 7px; }
.clean-list strong { color: var(--ink); font-weight: 600; }

.compare-lab {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}

.section-head h2 { margin: 0; font-size: 1.06rem; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }

.pill {
  border: 1px solid #2b4d69;
  background: rgba(95, 168, 255, 0.12);
  color: #9fcbff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
}

.compare-picks {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2f4f47;
  background: rgba(83, 211, 162, 0.1);
  color: #aee6cf;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.pick-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.compare-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.compare-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 11px;
}

.compare-title { font-weight: 700; font-size: 0.95rem; }
.compare-meta { margin-top: 2px; color: var(--muted); font-size: 0.8rem; }

.metric { margin-top: 8px; }
.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.81rem;
  margin-bottom: 4px;
}

.metric-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #2a3144;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.compare-insights {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-2);
}

.insight-title { font-weight: 700; margin-bottom: 6px; }

.duel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.duel-cell {
  border: 1px solid #2f3550;
  border-radius: 10px;
  padding: 8px;
  background: var(--surface-3);
}

.duel-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
}

.duel-value {
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 600;
}

.matrix-wrap {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
}

.matrix-wrap h3 {
  margin: 0;
  padding: 9px 10px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.controls {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.controls label {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.controls input,
.controls select {
  margin-top: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--surface-2);
}

.table-wrap {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
}

tr:hover td { background: #171c28; }

.kpi {
  color: var(--accent);
  font-weight: 700;
}

.compare-btn {
  border: 1px solid #2d4f6d;
  border-radius: 7px;
  background: rgba(95, 168, 255, 0.14);
  color: #a5ceff;
  font-size: 0.73rem;
  padding: 4px 8px;
  cursor: pointer;
}

.compare-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.readiness {
  display: inline-block;
  min-width: 80px;
  text-align: center;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid transparent;
  font-size: 0.72rem;
}
.readiness.ready { color: #97f0c6; border-color: #2b674f; background: rgba(25, 109, 61, 0.15); }
.readiness.caution { color: #ffd78d; border-color: #6a5631; background: rgba(155, 107, 0, 0.15); }
.readiness.not-ready { color: #ffb5b1; border-color: #6d3938; background: rgba(159, 45, 39, 0.15); }

.footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .kpi-strip { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .duel-grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
}
