/* USMBOT Hub — shared styles. Dark, professional, no trackers. */

:root {
  --bg: #09090b;
  --bg-elevated: #0f0f12;
  --card: #18181b;
  --card-hover: #1c1c20;
  --border: #27272a;
  --border-soft: #1f1f23;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-border: rgba(34, 197, 94, 0.35);
  --blue: #60a5fa;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 12px;
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img, svg { max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────────── */

header.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand .mark { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--card);
  text-decoration: none;
}
.nav-links a.active { color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}

.lede {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #052e14;
  border-color: var(--accent);
}
.btn-primary:hover { background: #2ee672; }

.btn-secondary {
  background: var(--card);
  color: var(--text);
}
.btn-secondary:hover { background: var(--card-hover); border-color: #3f3f46; }

/* ── Sections & Cards ───────────────────────────────────────────────── */

section { padding: 56px 0; border-top: 1px solid var(--border-soft); }
section:first-of-type { border-top: none; }

.section-head { max-width: 700px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h2 {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }

.section-head p { color: var(--text-muted); margin: 0; font-size: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ── Flow steps ─────────────────────────────────────────────────────── */

.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.flow-step {
  display: flex;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
}
.flow-step:last-child { border-bottom: none; }

.flow-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.flow-step h3 { margin-bottom: 4px; }
.flow-step p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ── Data table / lists ─────────────────────────────────────────────── */

.data-list { list-style: none; margin: 0; padding: 0; }
.data-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
  color: var(--text-muted);
}
.data-list li:last-child { border-bottom: none; }
.data-list strong { color: var(--text); font-weight: 600; min-width: 220px; flex-shrink: 0; }

.not-collected {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 20px;
}
.not-collected h3 { color: var(--red); }
.not-collected ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-muted); font-size: 14.5px; }

/* ── Disclaimer / callouts ─────────────────────────────────────────── */

.callout {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.callout.amber { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.06); }
.callout.amber strong { color: var(--amber); }
.callout strong { color: var(--text); }

/* ── Legal document pages ──────────────────────────────────────────── */

.doc {
  padding: 56px 0 96px;
}

.doc-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-soft);
}

.doc-header .updated {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-top: 8px;
}

.doc h2 {
  font-size: 21px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 4px;
}
.doc h2:first-of-type { margin-top: 0; }

.doc p, .doc li { color: var(--text-muted); font-size: 15px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 8px;
}
.toc h3 { margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.toc ol { columns: 2; column-gap: 24px; margin: 0; padding-left: 18px; }
.toc a { color: var(--text-muted); font-size: 14px; }
.toc a:hover { color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────────────────── */

footer.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 48px;
  margin-top: 40px;
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 0 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* ── Utility ────────────────────────────────────────────────────────── */

.mono { font-family: var(--mono); font-size: 0.92em; background: var(--bg-elevated); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border-soft); word-break: break-all; }

.center-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

@media (max-width: 640px) {
  .nav { padding: 14px 16px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  .hero { padding: 48px 0 32px; }
  section { padding: 40px 0; }
  .data-list li { flex-direction: column; gap: 2px; }
  .data-list strong { min-width: 0; }
  .toc ol { columns: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
