/* ============================================================
   AI Task Force — Launch Hub
   Shared design system. Dark theme, Samba brand accent.
   ============================================================ */

:root {
  --bg:           #0a0a0c;
  --bg-card:      #131318;
  --bg-card-2:    #1a1a21;
  --bg-elevated:  #20202a;
  --border:       #2a2a33;
  --border-bright:#3a3a46;

  --text:         #ececf1;
  --text-dim:     #9ca0ad;
  --text-muted:   #6b6f7d;

  --accent:       #EF3557;          /* Samba Hot Red */
  --accent-soft:  rgba(239, 53, 87, 0.10);
  --accent-line:  rgba(239, 53, 87, 0.35);

  --green:        #6ed598;
  --amber:        #f5b86c;
  --red:          #ff7a7a;
  --blue:         #72A0E2;

  --font-body:    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
                  Roboto, system-ui, sans-serif;
  --font-mono:    "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --max: 1280px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   TOP BAR — site-wide nav, sticky
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--accent);
  display: inline-block;
}
.brand-text { color: var(--text); }
.brand-text .at { color: var(--accent); margin: 0 4px; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.nav a:hover {
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
}
.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.hud {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.section { margin-bottom: 64px; }
.section + .section { margin-top: 64px; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 48px; }
h2 { font-size: 28px; margin-bottom: 20px; }
h3 { font-size: 18px; margin-bottom: 8px; }
h4 { font-size: 15px; margin-bottom: 6px; }

p { color: var(--text-dim); margin-bottom: 12px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text); }
.dim  { color: var(--text-dim); }
.muted { color: var(--text-muted); font-size: 13px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 56px;
  max-width: 920px;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--accent); }
.hero .sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.55;
}

/* ============================================================
   METRICS ROW
   ============================================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 32px 0 0;
}
.metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.metric .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metric .value {
  font-size: 32px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.metric .value.green { color: var(--green); }
.metric .value.red   { color: var(--red); }
.metric .value.accent{ color: var(--accent); }
.metric .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   CARD GRID — generic
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--border-bright); }
.card .card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.card h3 { color: var(--text); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-dim); margin-bottom: 0; }

.card.elevated {
  background: var(--bg-card-2);
  border-color: var(--border-bright);
}

.card.accent-edge {
  border-left: 3px solid var(--accent);
}

/* ============================================================
   LEVERS — 5 cards horizontal
   ============================================================ */
.levers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.lever {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  position: relative;
}
.lever .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.lever h3 {
  color: var(--text);
  font-size: 16px;
  margin-top: 8px;
  margin-bottom: 6px;
}
.lever p { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
}
table th, table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
table th {
  background: var(--bg-card-2);
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
table tr:last-child td { border-bottom: 0; }
table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table td.rk  { color: var(--accent); font-weight: 700; width: 36px; }
table tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================================
   PILLS / BADGES
   ============================================================ */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.pill.ok    { color: var(--green); border-color: rgba(110,213,152,0.3); }
.pill.warn  { color: var(--amber); border-color: rgba(245,184,108,0.3); }
.pill.err   { color: var(--red);   border-color: rgba(255,122,122,0.3); }
.pill.info  { color: var(--blue);  border-color: rgba(114,160,226,0.3); }
.pill.accent{ color: var(--accent);border-color: var(--accent-line); }

/* ============================================================
   BUTTONS / CTAs
   ============================================================ */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-bright);
  background: var(--bg-card);
  color: var(--text);
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-2);
  text-decoration: none;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: #d9264a;
  border-color: #d9264a;
}
.btn .arrow { font-size: 16px; line-height: 1; }

/* ============================================================
   TIMELINE STRIP
   ============================================================ */
.timeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 28px;
}
.timeline-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}
.timeline-row::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--border-bright);
  z-index: 0;
}
.tnode {
  position: relative;
  z-index: 1;
  text-align: center;
}
.tnode .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 12px;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.tnode .date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.tnode .label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   CHAMPION CARDS
   ============================================================ */
.champion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.champion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.champion .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.champion .body { flex: 1; min-width: 0; }
.champion .name { font-size: 15px; font-weight: 600; color: var(--text); }
.champion .role { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.champion .signal { font-size: 11px; color: var(--text-muted); margin-top: 8px; font-style: italic; }

.cosponsor {
  background: linear-gradient(135deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.cosponsor .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.cosponsor h3 { font-size: 22px; }
.cosponsor .role { color: var(--accent); font-size: 13px; font-weight: 500; margin-bottom: 8px; }

/* ============================================================
   FAQ
   ============================================================ */
details.faq {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 8px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.15s ease;
}
details.faq[open] summary::after {
  transform: rotate(45deg);
}
details.faq p { margin-top: 12px; color: var(--text-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site {
  margin-top: 80px;
  padding: 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
footer.site .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site .links a {
  color: var(--text-dim);
  margin-right: 16px;
  font-size: 13px;
}
footer.site .stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   SECTION HEADERS WITH HUD LABEL
   ============================================================ */
.section-head {
  margin-bottom: 24px;
}
.section-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head .sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 720px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .levers { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 1fr; gap: 16px; }
  .timeline-row::before { display: none; }
  .champion-grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px !important; }
  .hero h1 { font-size: 36px; }
  .topbar-inner { flex-direction: column; align-items: flex-start; padding: 16px; }
  .nav { width: 100%; overflow-x: auto; }
  .page { padding: 24px 16px 60px; }
}
