/* ═══════════════════════════════════════════════════════
   FormRelay — Design System & Global Styles
   À inclure sur toutes les pages du site
   ═══════════════════════════════════════════════════════ */

/* ─── GOOGLE FONTS ─── */
/* À ajouter dans le <head> de chaque page :
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap" rel="stylesheet">
*/

/* ─── TOKENS ─── */
:root {
  /* Couleurs de fond */
  --navy: #0B1120;
  --navy-mid: #111827;
  --navy-card: #161E2E;
  --navy-border: #1E2D45;

  /* Couleurs d'accent */
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-glow: rgba(37,99,235,0.18);
  --teal: #0EA5E9;
  --teal-glow: rgba(14,165,233,0.12);

  /* Couleurs sémantiques */
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --white: #ffffff;

  /* Typographie */
  --text-primary: #F0F4FF;
  --text-secondary: #94A3B8;
  --text-muted: #4B5E7A;

  /* Familles de polices */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: rgba(11,17,32,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navy-border);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: grid; place-items: center;
}
.nav-logo-icon svg { width: 18px; height: 18px; }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-cta {
  display: flex; align-items: center; gap: 1rem;
}

/* ─── BOUTONS ─── */
.btn-outline {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline:hover { border-color: var(--accent-light); color: var(--text-primary); }

.btn-primary {
  padding: 0.48rem 1.2rem;
  border-radius: 8px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-hero {
  padding: 0.85rem 2rem;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(37,99,235,0.35);
}
.btn-hero:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 30px rgba(37,99,235,0.5); }

.btn-hero-ghost {
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  border: 1px solid var(--navy-border);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-ghost:hover { border-color: var(--accent-light); color: var(--text-primary); }

.btn-plan {
  width: 100%;
  padding: 0.75rem;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}
.btn-plan-outline {
  border: 1px solid var(--navy-border);
  background: transparent;
  color: var(--text-secondary);
}
.btn-plan-outline:hover { border-color: var(--accent-light); color: var(--text-primary); }
.btn-plan-filled {
  background: var(--accent);
  border: none;
  color: #fff;
}
.btn-plan-filled:hover { background: var(--accent-light); }

/* ─── SECTIONS COMMONS ─── */
section { padding: 96px 5vw; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 5vw 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.22) 0%, transparent 70%);
  top: 5%; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  display: inline-block;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 800px;
  position: relative;
}
.hero h1 .accent-word {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-light);
}
.hero h1 .solid-accent { color: var(--accent-light); }
.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  position: relative;
}
.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  margin-top: 2.5rem;
  position: relative;
  flex-wrap: wrap; justify-content: center;
}
.hero-trust {
  margin-top: 3rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap; justify-content: center;
}
.hero-trust span { display: flex; align-items: center; gap: 5px; }
.hero-trust svg { width: 14px; height: 14px; color: var(--green); }

/* ─── PAGE HERO (sous-pages) ─── */
.page-hero {
  padding: 140px 5vw 64px;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-grid-bg { opacity: 0.6; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 700px;
}
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 1rem;
  line-height: 1.7;
}

/* ─── CARDS GÉNÉRIQUES ─── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 1.8rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: rgba(37,99,235,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
}
.card.highlight {
  border-color: rgba(37,99,235,0.35);
  background: linear-gradient(135deg, rgba(37,99,235,0.08), var(--navy-card));
}

/* ─── ICÔNES DE FEATURE ─── */
.feat-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-icon.blue { background: rgba(37,99,235,0.15); color: var(--accent-light); }
.feat-icon.teal { background: var(--teal-glow); color: var(--teal); }
.feat-icon.green { background: rgba(16,185,129,0.12); color: var(--green); }
.feat-icon.amber { background: rgba(245,158,11,0.12); color: var(--amber); }
.feat-icon.red { background: rgba(239,68,68,0.12); color: var(--red); }

/* ─── TAGS ─── */
.feature-tags {
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.feature-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--navy-border);
}

/* ─── COMPARATIF VS ─── */
.vs-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 3rem;
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
.vs-col { padding: 2rem 2.5rem; background: var(--navy-card); }
.vs-col:first-child { border-right: 2px solid var(--navy-border); }
.vs-col-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--navy-border);
}
.vs-col-header span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.vs-col.theirs .vs-col-header span { color: var(--text-muted); }
.vs-col.ours .vs-col-header span { color: var(--accent-light); }
.vs-badge {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem; border-radius: 4px;
}
.vs-badge.bad { background: rgba(239,68,68,0.12); color: var(--red); }
.vs-badge.good { background: rgba(16,185,129,0.12); color: var(--green); }
.vs-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.vs-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.vs-item.has { color: var(--text-primary); }
.vs-item.has svg { color: var(--green); }
.vs-item.miss svg { color: var(--red); }

/* ─── ÉTAPES (HOW IT WORKS) ─── */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.step-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 1.8rem;
  transition: border-color 0.25s, transform 0.25s;
}
.step-card:hover { border-color: rgba(37,99,235,0.4); transform: translateY(-3px); }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  color: rgba(37,99,235,0.15);
  line-height: 1; margin-bottom: 1rem;
}
.step-icon {
  width: 42px; height: 42px;
  background: var(--accent-glow);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.step-icon svg { width: 20px; height: 20px; color: var(--accent-light); }
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 0.5rem; color: var(--text-primary);
}
.step-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── GRILLES DE FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 1.8rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: rgba(37,99,235,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
}
.feature-card.highlight {
  border-color: rgba(37,99,235,0.35);
  background: linear-gradient(135deg, rgba(37,99,235,0.08), var(--navy-card));
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem;
}
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── SÉCURITÉ ─── */
.security-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}
.security-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; margin-top: 3rem; align-items: start;
}
.security-list { list-style: none; }
.security-list li {
  display: flex; gap: 12px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--navy-border);
  font-size: 0.9rem; color: var(--text-secondary);
}
.security-list li:last-child { border-bottom: none; }
.security-list li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.security-list li strong { color: var(--text-primary); display: block; font-size: 0.9rem; margin-bottom: 2px; }
.security-panel {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 2rem;
  position: sticky; top: 100px;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

/* ─── LOGS ─── */
.log-entry {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--navy-border);
  font-size: 0.82rem;
}
.log-entry:last-child { border-bottom: none; }
.log-left { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.log-dot { width: 7px; height: 7px; border-radius: 50%; }
.log-dot.green { background: var(--green); }
.log-dot.red { background: var(--red); }
.log-dot.amber { background: var(--amber); }
.log-status { font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; }
.log-status.ok { background: rgba(16,185,129,0.12); color: var(--green); }
.log-status.blocked { background: rgba(239,68,68,0.12); color: var(--red); }
.log-status.warn { background: rgba(245,158,11,0.12); color: var(--amber); }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
  max-width: 1000px; margin-left: auto; margin-right: auto;
}
.pricing-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px; padding: 2rem;
  position: relative; transition: transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(37,99,235,0.2);
}
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 1rem; border-radius: 100px;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.3rem;
}
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.87rem; color: var(--text-secondary); padding: 0.4rem 0;
}
.plan-features li svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }
.plan-features li.dim { color: var(--text-muted); }
.plan-features li.dim svg { color: var(--text-muted); }

/* ─── BANNER RGPD ─── */
.rgpd-banner {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(14,165,233,0.06));
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  display: flex; align-items: center; gap: 3rem;
  max-width: 900px; margin: 3rem auto 0;
  flex-wrap: wrap;
}
.rgpd-flag { font-size: 3rem; flex-shrink: 0; }
.rgpd-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem;
}
.rgpd-text p { font-size: 0.9rem; color: var(--text-secondary); max-width: 600px; }

/* ─── CTA SECTION ─── */
.cta-section { text-align: center; padding: 96px 5vw; }
.cta-box {
  max-width: 680px; margin: 0 auto;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px; padding: 4rem;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 250px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.cta-box p { color: var(--text-secondary); margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--navy-border);
  padding: 3rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem; color: var(--text-primary);
}
footer p { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ─── ALERTES / NOTICES ─── */
.notice {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.notice.info { background: rgba(37,99,235,0.07); border: 1px solid rgba(37,99,235,0.15); }
.notice.success { background: rgba(16,185,129,0.07); border: 1px solid rgba(16,185,129,0.15); color: var(--green); }
.notice.warning { background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.15); color: var(--amber); }
.notice.danger { background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.15); color: var(--red); }

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--navy-border);
  margin: 0;
}

/* ─── SECTION AVEC FOND ALTERNÉ ─── */
.section-alt {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

/* ─── ANIMATIONS ─── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .security-layout { grid-template-columns: 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-col:first-child { border-right: none; border-bottom: 2px solid var(--navy-border); }
  nav .nav-links { display: none; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .rgpd-banner { padding: 2rem; gap: 1.5rem; }
  .page-hero { padding: 120px 5vw 48px; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ── LAYOUT DOCS ── */
  .docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    padding-top: 68px;
  }

  /* ── SIDEBAR ── */
  .sidebar {
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
    border-right: 1px solid var(--navy-border);
    padding: 2rem 0;
    background: var(--navy-mid);
    scrollbar-width: thin;
    scrollbar-color: var(--navy-border) transparent;
  }
  .sidebar-section {
    margin-bottom: 2rem;
    padding: 0 1.5rem;
  }
  .sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
  }
  .sidebar-links { list-style: none; }
  .sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0.75rem;
    border-radius: 7px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
    margin-bottom: 2px;
  }
  .sidebar-links li a:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
  .sidebar-links li a.active { background: var(--accent-glow); color: var(--accent-light); font-weight: 600; }
  .sidebar-links li a svg { width: 14px; height: 14px; flex-shrink: 0; }
  .sidebar-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: rgba(37,99,235,0.15);
    color: var(--accent-light);
  }

  /* ── CONTENT AREA ── */
  .docs-content {
    padding: 3rem 4rem;
    max-width: 860px;
  }

  /* ── SECTION DOCS ── */
  .doc-section {
    margin-bottom: 5rem;
    scroll-margin-top: 90px;
  }
  .doc-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--navy-border);
  }
  .doc-section-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .doc-section-icon svg { width: 18px; height: 18px; }
  .doc-section-icon.blue { background: rgba(37,99,235,0.15); color: var(--accent-light); }
  .doc-section-icon.green { background: rgba(16,185,129,0.12); color: var(--green); }
  .doc-section-icon.amber { background: rgba(245,158,11,0.12); color: var(--amber); }
  .doc-section-icon.teal { background: var(--teal-glow); color: var(--teal); }
  .doc-section h2 {
    font-size: 1.5rem;
    margin: 0;
    border: none;
    padding: 0;
  }
  .doc-section p, .doc-section li {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.75;
  }
  .doc-section p { margin-bottom: 1rem; }

  /* ── STEPS ── */
  .onboarding-steps { margin-top: 2rem; }
  .ob-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
  }
  .ob-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -10px;
    width: 2px;
    background: var(--navy-border);
  }
  .ob-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--navy-card);
    border: 2px solid var(--navy-border);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--accent-light);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  .ob-body { flex: 1; }
  .ob-body h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
  }
  .ob-body p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0.75rem; }

  /* ── CODE BLOCKS ── */
  .code-block {
    background: #0D1526;
    border: 1px solid var(--navy-border);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    font-size: 0.82rem;
  }
  .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--navy-border);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .copy-btn {
    background: none;
    border: 1px solid var(--navy-border);
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.15s;
  }
  .copy-btn:hover { border-color: var(--accent-light); color: var(--accent-light); }
  .copy-btn.copied { border-color: var(--green); color: var(--green); }
  .code-block pre {
    padding: 1.2rem 1.4rem;
    overflow-x: auto;
    line-height: 1.7;
    font-family: 'Courier New', monospace;
    white-space: pre;
  }
  .code-block code { font-family: inherit; }

  /* Syntax colors */
  .t-comment { color: #4B5E7A; }
  .t-tag { color: #7dd3fc; }
  .t-attr { color: #86efac; }
  .t-val { color: #fde68a; }
  .t-key { color: #c084fc; }
  .t-str { color: #fde68a; }
  .t-num { color: #fb923c; }
  .t-bool { color: #f87171; }
  .t-method { color: #7dd3fc; }
  .t-url { color: #94a3b8; }
  .t-resp { color: #10B981; }

  /* ── INLINE CODE ── */
  code {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--navy-border);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    color: var(--accent-light);
  }

  /* ── API TABLE ── */
  .api-endpoint {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
  }
  .api-endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--navy-border);
    background: rgba(255,255,255,0.02);
  }
  .method-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 5px;
    flex-shrink: 0;
  }
  .method-badge.post { background: rgba(37,99,235,0.2); color: var(--accent-light); }
  .method-badge.get { background: rgba(16,185,129,0.15); color: var(--green); }
  .method-badge.delete { background: rgba(239,68,68,0.15); color: var(--red); }
  .endpoint-path {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    color: var(--text-primary);
  }
  .endpoint-desc {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .api-endpoint-body { padding: 1.2rem 1.4rem; }
  .params-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
  .params-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--navy-border);
  }
  .params-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(30,45,69,0.5);
    color: var(--text-secondary);
    vertical-align: top;
  }
  .params-table tr:last-child td { border-bottom: none; }
  .params-table td:first-child { font-family: 'Courier New', monospace; color: var(--accent-light); font-size: 0.82rem; }
  .param-required {
    font-size: 0.65rem; font-weight: 700;
    padding: 0.1rem 0.4rem; border-radius: 3px;
    background: rgba(239,68,68,0.12); color: var(--red);
    vertical-align: middle; margin-left: 4px;
  }
  .param-optional {
    font-size: 0.65rem; font-weight: 700;
    padding: 0.1rem 0.4rem; border-radius: 3px;
    background: rgba(255,255,255,0.05); color: var(--text-muted);
    vertical-align: middle; margin-left: 4px;
  }

  /* ── ALERT BOXES ── */
  .doc-alert {
    display: flex;
    gap: 12px;
    padding: 1rem 1.2rem;
    border-radius: 9px;
    margin: 1.2rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .doc-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
  .doc-alert.info { background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2); color: var(--text-secondary); }
  .doc-alert.info svg { color: var(--accent-light); }
  .doc-alert.warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); color: var(--text-secondary); }
  .doc-alert.warning svg { color: var(--amber); }
  .doc-alert.success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: var(--text-secondary); }
  .doc-alert.success svg { color: var(--green); }

  /* ── FAQ ── */
  .faq-item {
    border: 1px solid var(--navy-border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }
  .faq-question {
    width: 100%;
    background: var(--navy-card);
    border: none;
    padding: 1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: background 0.15s;
  }
  .faq-question:hover { background: rgba(255,255,255,0.03); }
  .faq-question svg { width: 16px; height: 16px; color: var(--text-muted); transition: transform 0.25s; flex-shrink: 0; }
  .faq-question.open svg { transform: rotate(180deg); }
  .faq-answer {
    display: none;
    padding: 0 1.4rem 1.2rem;
    background: var(--navy-card);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    border-top: 1px solid var(--navy-border);
  }
  .faq-answer.open { display: block; }
  .faq-answer p { margin-top: 0.9rem; }
  .faq-answer p:first-child { margin-top: 0.9rem; }

  /* ── SECURITY OPTIONS TABLE ── */
  .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  .option-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 10px;
    padding: 1.2rem;
  }
  .option-card h4 {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 8px;
  }
  .option-card h4 svg { width: 14px; height: 14px; }
  .option-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .docs-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--navy-border); }
    .docs-content { padding: 2rem 1.5rem; }
    .options-grid { grid-template-columns: 1fr; }
    .api-endpoint-header { flex-wrap: wrap; }
    .endpoint-desc { margin-left: 0; }
  }