/* ============================================================
   1FRX Design Tokens — single source of truth
   v1.0 · 2026

   Load this stylesheet on EVERY page, after any inline <style>
   block, so these canonical values win the cascade.

   Page-level :root blocks may ADD new tokens (e.g. --sidebar-w)
   but must not redefine the tokens listed here.
   ============================================================ */

:root {
  /* ── Backgrounds ─────────────────────────────────────────── */
  --bg:       #070910;
  --bg-2:     #0d0f1a;
  --bg-3:     #13162a;

  /* ── Foreground ──────────────────────────────────────────── */
  --fg:       #e8eaf0;
  --muted:    #8892a6;

  /* ── Brand palette ───────────────────────────────────────── */
  --brand:    #5ee3ff;   /* cyan   */
  --brand-2:  #b18cff;   /* violet */
  --brand-3:  #ff6ad1;   /* magenta */

  /* ── Glass & borders ─────────────────────────────────────── */
  --glass:      rgba(255,255,255,0.04);
  --glass-hi:   rgba(255,255,255,0.08);
  --border:     rgba(255,255,255,0.08);
  --border-hi:  rgba(255,255,255,0.16);

  /* ── Shape ───────────────────────────────────────────────── */
  --radius:     16px;   /* card / panel corners  */
  --radius-btn: 999px;  /* pill buttons          */
  --radius-sm:  8px;    /* inputs, small widgets */

  /* ── Motion ──────────────────────────────────────────────── */
  --ease: cubic-bezier(.2,.7,.2,1);

  /* ── Typography ──────────────────────────────────────────── */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ── Unified button system ─────────────────────────────────────── */
/* tokens.css loads after each page's inline <style>, so this
   definition wins the cascade and enforces the pill shape globally. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-btn, 999px);
  border: 1px solid var(--border-hi);
  background: var(--glass);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #070910;
  border-color: transparent;
}
.btn.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.small  { padding: 7px 14px; font-size: 13px; }
.btn.block  { width: 100%; justify-content: center; }

/* ── Unified site footer ─────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font);
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.site-footer .footer-links a:hover {
  color: var(--fg);
}
