:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --border: #2a3544;
  --text: #e8edf2;
  --muted: #8b9aab;
  --accent: #f05a28;
  --accent-dim: #c4471f;
  --speed: #3b82f6;
  --power: #f59e0b;
  --control: #10b981;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #16202a 0%, var(--bg) 100%);
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
}

.lede {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42rem;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--accent);
}

main { padding: 1.5rem 0 3rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

h2 .sub {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-form { margin-top: 1rem; }

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 120px;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: not-allowed;
  opacity: 0.7;
  text-align: center;
}

.file-drop input { display: none; }

.file-drop-title { font-weight: 600; }
.file-drop-hint { font-size: 0.85rem; color: var(--muted); }

.btn {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.panel-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

.triple-demo {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.caption {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

code {
  font-size: 0.8em;
  background: var(--bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.metric-card {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--bg);
  border-left: 3px solid var(--muted);
}

.metric-card.pillar-speed { border-left-color: var(--speed); }
.metric-card.pillar-power { border-left-color: var(--power); }
.metric-card.pillar-control { border-left-color: var(--control); }

.metric-pillar {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.metric-value {
  margin: 0.25rem 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.metric-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.classifier-card {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px dashed var(--border);
}

.classifier-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.classifier-pending {
  margin: 0.35rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.classifier-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a { color: var(--text); }

@media (max-width: 600px) {
  .panel-labels { font-size: 0.65rem; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}
