/* Cindral brand: dark charcoal and navy, condensed uppercase headings, as in the pitch deck. */
:root {
  color-scheme: dark;
  --bg: #121316;
  --surface: #1c1d21;
  --surface-2: #25262b;
  --line: #33353b;
  --text: #ebebe8;
  --muted: #9b9da4;
  --faint: #6c6f77;
  --navy: #16224a;
  --slate: #56637f;
  --steel: #8b95ad;
  --accent: #ebebe8;
  --accent-text: #121316;
  --up: #7fd1a0;
  --down: #f2948a;
  --error-bg: #3a201d;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mark: "Michroma", "Oswald", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--steel); }
a:hover { color: var(--text); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: #d9d9d6;
}
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; letter-spacing: 0.03em; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Logo: crosshair mark plus wide wordmark. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span {
  font-family: var(--font-mark);
  font-size: 16px;
  letter-spacing: 0.08em;
}

/* Header and navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 19, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.site-nav { display: flex; gap: 20px; }
.site-nav a {
  padding: 4px 0;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--slate); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-actions form { margin: 0; }

.page { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }

/* Buttons. */
.btn, button.btn {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font: 700 13px/1.2 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #ffffff; color: var(--accent-text); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--steel); }
.btn:disabled { opacity: 0.55; cursor: progress; }
button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--down);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Panels and tables. */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Status tags, colored like the deck's phase strips. */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.prototype { background: var(--navy); color: #c9d3f2; }
.tag.phase2 { background: var(--slate); color: #eef1f8; }
.tag.phase3 { background: #4a4c53; color: #e3e3e0; }
.tag.phase4 { background: #34363b; color: #c8c9cc; border: 1px solid #4a4c53; }
.tag.human { background: #4d4130; color: #f1e2c6; }

.error-box {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--error-bg);
  color: var(--down);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .site-header .inner { padding: 12px 16px; gap: 14px; }
  .header-actions { margin-left: 0; width: 100%; }
  .page { padding: 24px 16px 48px; }
}
