:root {
  --bg: #0b0e14;
  --panel: #141925;
  --fg: #e6e9ef;
  --muted: #8b93a7;
  --accent: #f6821f; /* Cloudflare orange */
  --border: #232a3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1 { font-size: 1.9rem; margin: 0 0 1.25rem; }
h2 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 2rem 0 .75rem; }

button {
  background: var(--accent);
  color: #1a1205;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: .7rem 1.5rem;
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }

.status { color: var(--muted); margin: .75rem 0 0; min-height: 1.2em; }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 1.5rem;
}
@media (min-width: 560px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.card .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.card .value { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.card .value small { font-size: .8rem; font-weight: 400; color: var(--muted); }

.muted { color: var(--muted); margin: 0; }

.scores { display: flex; flex-wrap: wrap; gap: .5rem; }
.score {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .9rem;
  display: flex;
  flex-direction: column;
  min-width: 7rem;
}
.score-name { text-transform: capitalize; color: var(--muted); font-size: .8rem; }
.score-val { font-size: 1.3rem; font-weight: 700; }
.score-class { font-size: .8rem; color: var(--accent); }

.meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 0;
}
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-variant-numeric: tabular-nums; }
