/* REVERT — brand tokens */
:root {
  --revert-red: #D9342B;
  --revert-red-dim: #B82A22;
  --terminal-black: #0A0A0A;
  --surface-charcoal: #161616;
  --surface-raised: #1F1F1F;
  --bone-white: #F5F1EB;
  --mid-grey: #8B8985;
  --mid-grey-dim: #5A5854;
  --hairline: #2A2A2A;
  --amber: #F4B942;
  --moss: #7FB069;
  --slate-blue: #4A90A4;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 8px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--terminal-black);
  color: var(--bone-white);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }

::selection { background: var(--revert-red); color: var(--bone-white); }

/* ---------- Reusable atoms ---------- */

.mono { font-family: var(--mono); font-feature-settings: "zero" 1, "ss01" 1; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--revert-red);
  font-size: 18px;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--revert-red);
  color: var(--bone-white);
}
.btn-primary:hover { background: #E84038; }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--bone-white);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { background: var(--surface-raised); border-color: #3a3a3a; }

.btn-sm { padding: 9px 12px; font-size: 12.5px; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-charcoal);
  border: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mid-grey);
  letter-spacing: 0.02em;
}
.pill-eyebrow {
  background: rgba(127, 176, 105, 0.06);
  border-color: rgba(127, 176, 105, 0.22);
  color: var(--bone-white);
}

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 0 rgba(127,176,105,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(127,176,105,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(127,176,105,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,176,105,0); }
}

/* Card */
.card {
  background: var(--surface-charcoal);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.card-raised {
  background: var(--surface-raised);
}

/* Score chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 9px 5px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.02);
  color: var(--bone-white);
}
.chip-red    { border-color: rgba(217,52,43,0.4); }
.chip-amber  { border-color: rgba(244,185,66,0.4); }
.chip-moss   { border-color: rgba(127,176,105,0.4); }
.chip .swatch { width: 6px; height: 6px; border-radius: 50%; }
.swatch-red   { background: var(--revert-red); }
.swatch-amber { background: var(--amber); }
.swatch-moss  { background: var(--moss); }

/* Color value helpers */
.t-red   { color: var(--revert-red); }
.t-amber { color: var(--amber); }
.t-moss  { color: var(--moss); }
.t-grey  { color: var(--mid-grey); }
.t-slate { color: var(--slate-blue); }

/* Inputs */
.input {
  background: var(--terminal-black);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--bone-white);
  outline: none;
  width: 100%;
  transition: border-color 120ms ease;
}
.input:focus { border-color: var(--mid-grey-dim); }
.input::placeholder { color: var(--mid-grey-dim); }

/* Section */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--hairline);
}
.section-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Bar graph component */
.bar {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
}
.bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
}

/* Hairline divider */
.hairline { height: 1px; background: var(--hairline); border: 0; }
