/* Antihero Design System — extracted from landing.html */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #cdcdcd;
  background: #050505;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

:root {
  --bg: #050505;
  --bg-card: #0a0a0a;
  --bg-card-hover: #0f0f0f;
  --border: #1a1a1a;
  --text-primary: #e6e6e6;
  --text-secondary: #cdcdcd;
  --text-muted: #999999;
  --text-dim: #666666;
  --accent: #DFD3A9;
  --accent-hover: #e8ddb8;
  --accent-bg: rgba(223, 211, 169, 0.06);
  --accent-border: rgba(223, 211, 169, 0.12);
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --max-w: 1000px;
  --mono: 'JetBrains Mono', monospace;
  --r: 4px;
  --sidebar-w: 200px;
}

/* ── SIDEBAR NAV ── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 100;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 36px;
}
.sidebar-brand svg { flex-shrink: 0; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: block; padding: 8px 10px; font-size: 14px; font-weight: 400;
  color: var(--text-muted); border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
}
.sidebar-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.sidebar-link.active { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.sidebar-divider { height: 1px; background: var(--border); margin: 16px 0; }
.sidebar-section-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-dim); padding: 0 10px; margin-bottom: 4px;
}
.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sidebar-cta {
  display: flex; align-items: center; justify-content: center;
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  font-family: 'Inter', sans-serif; border-radius: var(--r);
  border: none; cursor: pointer; transition: background 0.15s;
  background: var(--accent); color: #0a0a0a; text-align: center;
}
.sidebar-cta:hover { background: var(--accent-hover); }
.sidebar-login {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 16px; font-size: 13px; font-weight: 400;
  color: var(--text-muted); transition: color 0.15s; text-align: center;
}
.sidebar-login:hover { color: var(--text-primary); }

/* ── MAIN CONTENT ── */
.main { margin-left: var(--sidebar-w); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ── MOBILE NAV ── */
.mobile-header {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  height: 52px; padding: 0 16px;
  align-items: center; justify-content: space-between;
}
.mobile-brand {
  display: flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--text-primary);
}
.mobile-menu-btn {
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text-muted);
}
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99; background: var(--bg); padding: 72px 24px 40px;
  flex-direction: column; align-items: center; gap: 4px; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; width: 100%; max-width: 340px; text-align: center;
  padding: 14px 20px; font-size: 15px; color: var(--text-muted); transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--text-primary); }
.mobile-menu .divider { width: 100%; max-width: 340px; height: 1px; background: var(--border); margin: 12px 0; }
.mobile-menu .mobile-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 4px; }

/* ── MINIMAL TOP BAR (privacy, terms) ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  height: 56px;
}
.topbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 40px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.topbar-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text-primary);
}
.topbar-brand svg { flex-shrink: 0; }
.topbar-back {
  font-size: 14px; font-weight: 400; color: var(--text-muted); transition: color 0.15s;
}
.topbar-back:hover { color: var(--text-primary); }

/* ── CENTERED PAGE (login, contact) ── */
.centered-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 20px;
}
.centered-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 28px;
}
.centered-logo svg { flex-shrink: 0; }
.centered-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px; width: 100%; max-width: 420px;
}
.centered-footer {
  margin-top: 32px; display: flex; gap: 20px;
  font-size: 13px; color: var(--text-dim);
}
.centered-footer a { color: var(--text-dim); transition: color 0.15s; }
.centered-footer a:hover { color: var(--text-muted); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; font-size: 14px; font-weight: 500;
  font-family: 'Inter', sans-serif; border-radius: var(--r);
  border: none; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: #2a2a2a; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ── FORM INPUTS ── */
.input {
  display: block; width: 100%; padding: 10px 12px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg); color: var(--text-primary);
  outline: none; transition: border-color 0.15s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-dim); }
.input-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px;
}

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-border { border-top: 1px solid var(--border); }
.section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; display: block;
}
.section-title {
  font-size: 28px; font-weight: 600; color: var(--text-primary);
  letter-spacing: -0.02em; line-height: 1.3;
}
.section-desc {
  font-size: 15px; color: var(--text-secondary); max-width: 480px; margin-top: 10px; line-height: 1.6;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px;
}

/* ── CODE BLOCKS ── */
.code-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.code-block-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.code-dot { width: 8px; height: 8px; border-radius: 50%; }
.code-dot.r { background: #ff5f57; }
.code-dot.y { background: #febc2e; }
.code-dot.g { background: #28c840; }
.code-block-title {
  flex: 1; text-align: center; font-family: var(--mono);
  font-size: 11px; color: var(--text-dim); font-weight: 400;
}
.code-block-body {
  padding: 16px; font-family: var(--mono); font-size: 13px;
  line-height: 1.7; color: var(--text-secondary); overflow-x: auto;
}
.code-block-body .kw { color: var(--accent); }
.code-block-body .str { color: var(--green); }
.code-block-body .fn { color: #60a5fa; }
.code-block-body .cm { color: var(--text-dim); }
.code-block-body .sym { color: var(--text-muted); }

/* Inline code */
code:not([class]) {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2px 6px; color: var(--text-secondary);
}

/* ── TABLES ── */
.ds-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.ds-table th {
  text-align: left; padding: 10px 14px; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.ds-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.ds-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.footer-link:hover { color: var(--text-primary); }
.footer-copy { font-size: 12px; color: var(--text-dim); }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.75); align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px; width: 100%; max-width: 400px; position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 18px; line-height: 1; padding: 4px;
}
.modal-close:hover { color: var(--text-primary); }

/* ── BADGES ── */
.badge {
  display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 600;
  border-radius: var(--r); letter-spacing: 0.02em;
}
.badge-green { background: rgba(74, 222, 128, 0.08); color: var(--green); }
.badge-red { background: rgba(248, 113, 113, 0.08); color: var(--red); }
.badge-amber { background: rgba(251, 191, 36, 0.08); color: var(--amber); }
.badge-gold { background: var(--accent-bg); color: var(--accent); }

/* ── FADE ── */
.fade-in { opacity: 0; transition: opacity 0.4s ease; }
.fade-in.visible { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .main { margin-left: 0; }
  .container { padding: 0 20px; }
}
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .topbar-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .centered-card { padding: 24px 20px; }
  .modal-card { margin: 16px; padding: 24px 20px; }
  .topbar-inner { padding: 0 16px; }
}
