/* ──────────────────────────────────────────────────────────────────────
 * BizNode shared base stylesheet
 *
 * Loaded by every page via:
 *   <link rel="stylesheet" href="/css/biznode.css">
 *
 * Owns: design tokens, reset, body, headings, anchor/img defaults,
 * .grad-text helper, sticky <nav>, .nav-logo, .nav-links, footer.
 *
 * Page-specific styles (heroes, sections, cards, tables, etc.) stay
 * inline in each page's <style> block.
 *
 * .container max-width is intentionally NOT set here — pages set their
 * own (1140 default; tutorial/setup-guide narrow to 800/820). The
 * .nav-inner and .footer-inner widths default to 1140 below; pages
 * with narrower content can override .nav-inner/.footer-inner locally.
 * ────────────────────────────────────────────────────────────────────── */

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

:root {
  --bg:        #0A0D14;
  --surface:   #0f1320;
  --glass:     rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --text:      #e8eaf2;
  --muted:     #8892b0;
  --blue:      #6366f1;
  --teal:      #22d3ee;
  --green:     #22c55e;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --grad:      linear-gradient(135deg, #6366f1, #22d3ee);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(34,211,238,0.15));
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }

a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,13,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 12px; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { gap: 14px; font-size: 13px; }
}
