/* ═══════════════════════════════════════════════════
   JesusSaves Documentation Site — styles.css
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  /* Core palette */
  --bg:           #080d18;
  --bg-alt:       #0d1525;
  --surface:      #101c30;
  --surface-2:    #152340;
  --surface-3:    #1a2d50;

  /* Gold accent (cross / faith motif) */
  --gold:         #c9973a;
  --gold-light:   #e6b95e;
  --gold-dim:     #7a5a1e;
  --gold-glow:    rgba(201, 151, 58, 0.18);

  /* UE Blue accent */
  --blue:         #4a9eff;
  --blue-dark:    #1c64d1;
  --blue-dim:     #1a3d78;

  /* Text */
  --text:         #dde6f5;
  --text-muted:   #7a94b5;
  --text-dim:     #4a6080;
  --text-inv:     #080d18;

  /* Borders */
  --border:       #1b2d4a;
  --border-mid:   #243d60;
  --border-strong:#2e4f78;

  /* Semantic */
  --amber:        #c9973a;
  --green:        #38c87e;
  --cyan:         #22d3ee;
  --violet:       #a78bfa;
  --red:          #f87171;

  /* Docs (maps to docs_v3 vars) */
  --page:         #080d18;
  --paper:        #101c30;
  --paper-2:      #0d1525;
  --ink:          #dde6f5;
  --muted:        #7a94b5;
  --soft:         #4a6080;
  --line:         #1b2d4a;
  --line-strong:  #2e4f78;
  --code:         #c8e6ff;
  --nav:          #060b14;
  --nav-2:        #08101e;
  --nav-line:     #162035;
  --focus:        #4a9eff;
  --shadow:       0 20px 60px rgba(0, 0, 0, 0.6);
  --sidebar:      300px;

  /* Layout */
  --nav-h:        64px;
  --radius:       8px;
  --radius-lg:    14px;
  --max-w:        1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
code { font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace; }
ul { list-style: none; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 11, 20, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}
.site-nav.scrolled {
  background: rgba(6, 11, 20, 0.98);
  border-bottom-color: var(--gold-dim);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  color: var(--gold); font-family: 'Cinzel', serif;
  font-size: 17px; font-weight: 700; letter-spacing: 0.04em;
  flex-shrink: 0; transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-cross { width: 16px; height: 20px; }
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.nav-link {
  padding: 6px 12px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link--api {
  color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 5px 12px; border-radius: 6px;
}
.nav-link--api:hover { background: var(--gold-glow); color: var(--gold-light); border-color: var(--gold); }
.nav-link--guide {
  color: var(--violet); border: 1px solid #5e49a8;
  padding: 5px 12px; border-radius: 6px;
}
.nav-link--guide:hover,
.nav-link--guide[aria-current="page"] { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; border-color: var(--violet); }
.nav-fab-cta {
  margin-left: auto; flex-shrink: 0;
  padding: 8px 18px; border-radius: 6px;
  background: var(--gold); color: var(--text-inv);
  font-size: 13px; font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}
.nav-fab-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--text);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: 0.3s; }

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 32px 100px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  opacity: 0.35;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero:hover .hero-bg-img { transform: scale(1.0); }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 20%, rgba(8,13,24,0.7) 70%),
    linear-gradient(to bottom, rgba(8,13,24,0.5) 0%, rgba(8,13,24,0.2) 40%, rgba(8,13,24,0.85) 85%, var(--bg) 100%),
    linear-gradient(to right, rgba(8,13,24,0.6) 0%, transparent 30%, transparent 70%, rgba(8,13,24,0.6) 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 860px;
  animation: heroIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}
.hero-eyebrow {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 20px;
  animation: heroIn 1.1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title {
  font-family: 'Cinzel', serif; line-height: 0.95;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.hero-title-jesus {
  display: block; font-size: clamp(64px, 12vw, 130px);
  font-weight: 900; color: #fff;
  text-shadow: 0 0 60px rgba(255,255,255,0.12);
  animation: heroIn 1.1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title-saves {
  display: block; font-size: clamp(64px, 12vw, 130px);
  font-weight: 900; color: var(--gold);
  text-shadow: 0 0 80px rgba(201,151,58,0.4);
  animation: heroIn 1.1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px); color: var(--text-muted);
  font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 36px;
  animation: heroIn 1.1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-verse {
  max-width: 600px; margin: 0 auto 42px;
  padding: 20px 28px; border-left: 2px solid var(--gold);
  background: rgba(201, 151, 58, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: left;
  animation: heroIn 1.1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-verse blockquote {
  font-size: 16px; font-style: italic; color: var(--text);
  line-height: 1.65; margin-bottom: 8px;
}
.hero-verse figcaption {
  font-size: 12.5px; color: var(--gold); font-weight: 600;
  letter-spacing: 0.08em;
}
.hero-ctas {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  animation: heroIn 1.1s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn--primary { background: var(--gold); color: var(--text-inv); }
.btn--primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,151,58,0.35); }
.btn--outline { border: 1.5px solid var(--border-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); transform: translateY(-1px); }
.btn--ghost { color: var(--text-muted); font-size: 13.5px; }
.btn--ghost:hover { color: var(--text); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: heroIn 1.2s 0.6s both;
}
.hero-scroll-line {
  width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ═══════════════════════════════════════════════════
   PAGE SECTIONS
   ═══════════════════════════════════════════════════ */
.page-section { padding: 96px 0; }
.alt-bg { background: var(--bg-alt); }

.section-header {
  text-align: center; max-width: 700px; margin: 0 auto 64px;
}
.section-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  padding: 4px 12px; border: 1px solid var(--gold-dim);
  border-radius: 999px; background: var(--gold-glow);
}
.section-title {
  font-family: 'Cinzel', serif; font-size: clamp(28px, 5vw, 44px);
  font-weight: 700; line-height: 1.15; color: #fff;
  margin-bottom: 18px; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-lead {
  font-size: 17px; color: var(--text-muted); line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   FEATURE GRID
   ═══════════════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--gold-dim);
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--surface-2);
  color: var(--gold); margin-bottom: 18px;
  border: 1px solid var(--border-mid);
}
.feature-card h3 {
  font-size: 16px; font-weight: 600; color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.65;
}

/* ═══════════════════════════════════════════════════
   PHILOSOPHY SECTION
   ═══════════════════════════════════════════════════ */
.philosophy-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.philosophy-visual { position: relative; }
.philosophy-img-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  position: relative;
}
.philosophy-img-wrap img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center; }
.philosophy-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(13,21,37,0.7) 100%);
}
.phil-block { margin-bottom: 32px; }
.phil-block h3 {
  font-size: 17px; font-weight: 600; color: var(--gold-light);
  margin-bottom: 10px;
}
.phil-block p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }
.terminology-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  margin-top: 4px;
}
.term-heading { font-size: 13px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.term-list { display: flex; flex-direction: column; gap: 0; }
.term-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.term-row:last-child { border-bottom: none; padding-bottom: 0; }
.term-row dt { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.term-row dd { font-size: 13px; color: var(--text-muted); }
.term-row code { font-size: 11.5px; color: var(--cyan); background: rgba(34,211,238,0.1); padding: 1px 6px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════
   QUICK START
   ═══════════════════════════════════════════════════ */
.steps-layout {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0; align-items: start; margin-bottom: 48px;
}
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color 0.25s;
}
.step-card:hover { border-color: var(--gold-dim); }
.step-num {
  font-family: 'Cinzel', serif; font-size: 36px; font-weight: 900;
  color: var(--gold-dim); line-height: 1; margin-bottom: 16px;
  opacity: 0.6;
}
.step-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.step-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.step-link { font-size: 13px; color: var(--gold); font-weight: 600; transition: color 0.2s; }
.step-link:hover { color: var(--gold-light); }
.step-connector {
  align-self: center; width: 32px; height: 1px;
  background: linear-gradient(to right, var(--border-mid), var(--border-mid));
  position: relative; margin-top: -20px;
}
.step-connector::after {
  content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
  border-left: 6px solid var(--border-mid);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.inline-code {
  background: var(--nav); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 14px; margin-top: 10px;
  font-size: 12px; overflow-x: auto;
}
.inline-code code { color: var(--code); white-space: pre; }
.ck { color: #85b8ff; }
.ct { color: #9fe3bc; }
.cf { color: #ffd18a; }
.ic { font-size: 0.88em; color: var(--cyan); background: rgba(34,211,238,0.1); padding: 1px 6px; border-radius: 4px; }

.qs-resources {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.resource-card {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.25s, transform 0.2s;
}
.resource-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.resource-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.resource-icon--yt { background: rgba(255, 80, 80, 0.15); color: #ff5050; }
.resource-icon--dc { background: rgba(88, 101, 242, 0.15); color: #5865f2; }
.resource-body h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.resource-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.55; }
.resource-cta { font-size: 13px; font-weight: 600; color: var(--gold); transition: color 0.2s; }
.resource-card:hover .resource-cta { color: var(--gold-light); }

/* ═══════════════════════════════════════════════════
   ARCHITECTURE DIAGRAM
   ═══════════════════════════════════════════════════ */
.arch-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 40px;
}
.arch-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.arch-panel-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted);
}
.arch-legend {
  display: flex; align-items: center; gap: 20px;
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-dot--ext { background: var(--green); }
.legend-dot--locked { background: var(--red); opacity: 0.6; }
.legend-dot--ue { background: var(--blue); }

.arch-tree { padding: 32px 24px 28px; }

.arch-root {
  display: flex; justify-content: center; margin-bottom: 8px;
}
.arch-node {
  display: inline-flex; flex-direction: column;
  border-radius: var(--radius); padding: 10px 16px;
  border: 1px solid; font-size: 12.5px; position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.arch-node--ue {
  background: rgba(74, 158, 255, 0.08); border-color: var(--blue-dim);
  color: #93c5fd; font-weight: 600;
}
.arch-node--ext {
  background: rgba(56, 200, 126, 0.07); border-color: rgba(56,200,126,0.25);
  color: var(--text);
}
.arch-node--ext:hover { border-color: var(--green); box-shadow: 0 0 0 3px rgba(56,200,126,0.1); }
.arch-node--locked {
  background: rgba(248, 113, 113, 0.06); border-color: rgba(248,113,113,0.2);
  color: var(--text-muted);
}
.anode-name { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.anode-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; max-width: 260px; }
.anode-badge {
  position: absolute; top: -9px; right: 10px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 2px 6px; border-radius: 999px;
}
.arch-node--ext .anode-badge { background: rgba(56,200,126,0.35); color: var(--green); border: 1px solid rgba(56,200,126,0.65); }
.arch-node--locked .anode-badge { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid rgba(248,113,113,0.25); opacity: 0.8; }

.arch-branches {
  display: flex; gap: 40px; justify-content: center; align-items: flex-start;
  position: relative;
}
.arch-branches::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 1px; height: 100%; background: transparent;
}
.arch-branch {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.arch-branch-spine { display: none; }
.arch-branch-node { margin-bottom: 0; }
.arch-subsystem-label {
  margin: 6px 0; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-dim); padding: 4px 12px;
  border: 1px dashed var(--border-mid); border-radius: 999px;
}
.arch-branch-children {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; gap: 8px; position: relative;
}
.arch-branch-children::before { display: none; }
.arch-child {
  display: flex; flex-direction: column; align-items: center;
  position: relative; width: 100%;
}
.arch-child-connector { display: none; }
.arch-child > .arch-node { width: calc(100% - 16px); max-width: 340px; }
.arch-sub-children {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 8px; width: 100%;
}
.arch-sub-children .arch-child > .arch-node {
  max-width: 300px; margin-left: 24px;
}

.arch-notes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.arch-note {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.arch-note h4 { font-size: 14px; font-weight: 600; color: var(--gold-light); margin-bottom: 8px; }
.arch-note p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════ */
.component-flow {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 40px; padding: 24px 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap; gap: 8px; justify-content: center;
}
.flow-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border-mid);
  font-size: 14px; color: var(--text);
}
.flow-num {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); color: var(--gold-light); border-radius: 50%;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.flow-step strong { color: #fff; }
.flow-arrow { color: var(--border-strong); font-size: 20px; padding: 0 4px; }

.table-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 24px;
}
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th {
  background: var(--surface-2); padding: 12px 18px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.comp-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-muted); vertical-align: top;
  transition: background 0.15s;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tbody tr:hover td { background: var(--surface); }
.comp-table code {
  font-size: 12px; color: var(--cyan);
  background: rgba(34,211,238,0.08); padding: 2px 7px; border-radius: 4px;
}
.info-callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--radius);
  background: rgba(74,158,255,0.07); border: 1px solid rgba(74,158,255,0.2);
  font-size: 14px; color: var(--text-muted); margin-bottom: 48px;
}
.callout-icon { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.info-callout strong { color: var(--text); }
.info-callout code.ic { color: var(--cyan); background: rgba(34,211,238,0.1); font-size: 12.5px; padding: 1px 6px; border-radius: 4px; }
.troubleshoot-heading {
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 20px;
  font-family: 'Cinzel', serif;
}
.troubleshoot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.troubleshoot-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.tc-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--amber);
  margin-bottom: 12px;
}
.troubleshoot-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }
.troubleshoot-card p:last-child { margin-bottom: 0; }
.troubleshoot-card strong { color: var(--text); }
.troubleshoot-card code.ic { color: var(--cyan); background: rgba(34,211,238,0.08); font-size: 12px; padding: 1px 6px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════
   API REFERENCE SECTION
   ═══════════════════════════════════════════════════ */
.api-section {
  display: none;
}
.api-mode .api-section {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  overflow: hidden;
}
.api-mode #site-content,
.api-mode .site-footer {
  display: none;
}
.api-mode .docs-sidebar {
  position: static;
  height: 100%;
}
.api-mode .docs-main {
  height: 100%;
}
.api-mode .nav-link--api {
  background: var(--gold-glow);
  color: var(--gold-light);
  border-color: var(--gold);
}
.api-section-top {
  display: flex; align-items: center;
  height: 38px; flex-shrink: 0;
  padding: 0 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.api-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.docs-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

/* ── Docs Sidebar ── */
.docs-sidebar {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  background: var(--nav); color: #c8d8f0;
  border-right: 1px solid #0b1520;
  display: flex; flex-direction: column; overflow: hidden;
}
.docs-brand { padding: 20px 20px 16px; border-bottom: 1px solid var(--nav-line); }
.docs-brand-kicker {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #7a94b5; font-weight: 700; margin-bottom: 6px;
}
.docs-brand-title {
  font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700;
  line-height: 1.15; color: var(--gold);
}
.docs-brand-sub { color: #7a94b5; margin-top: 5px; font-size: 12px; }

.mode-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  padding: 12px 14px; border-bottom: 1px solid var(--nav-line);
  background: var(--nav-2);
}
.mode-tabs button {
  height: 34px; border: 1px solid #1e3050;
  background: #0a1220; color: #8eaacb; border-radius: 6px;
  cursor: pointer; font-weight: 700; font-size: 12px;
  transition: all 0.2s;
}
.mode-tabs button.active { background: var(--gold); color: var(--text-inv); border-color: var(--gold); }
.mode-tabs button:not(.active):hover { background: var(--surface); color: var(--text); }

.search-wrap { padding: 12px 14px 10px; border-bottom: 1px solid var(--nav-line); }
.search {
  width: 100%; height: 36px; border-radius: 6px;
  border: 1px solid #243d60; background: #08111e;
  color: #c8d8f0; padding: 0 11px; outline: none; font-size: 13px;
}
.search:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(201,151,58,0.15); }
.search::placeholder { color: #4a6080; }

.filters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.filter {
  border: 1px solid #243d60; background: #0d1a2e;
  color: #8eaacb; border-radius: 999px;
  padding: 3px 8px; font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all 0.18s;
}
.filter.active { background: var(--gold-glow); border-color: var(--gold-dim); color: var(--gold); }
.filter:hover:not(.active) { background: var(--surface); color: var(--text); }

.nav-scroll { overflow-y: auto; padding: 10px 0 24px; flex: 1; }
.nav-scroll::-webkit-scrollbar { width: 4px; }
.nav-scroll::-webkit-scrollbar-track { background: transparent; }
.nav-scroll::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.nav-section { margin-bottom: 10px; }
.nav-heading {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 16px; color: #5a7898;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800;
}
.nav-count { color: #405a72; font-weight: 700; }
.nav-scroll .nav-link {
  display: grid; grid-template-columns: 8px minmax(0,1fr);
  gap: 9px; align-items: center; padding: 6px 16px;
  color: #b0c4de; font-size: 12.5px;
  border-left: 3px solid transparent; transition: all 0.15s;
}
.nav-scroll .nav-link:hover, .nav-scroll .nav-link.active {
  background: rgba(255,255,255,0.04); color: #fff; border-left-color: var(--gold);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.uenum    { background: var(--amber); }
.dot.ustruct  { background: var(--green); }
.dot.uclass   { background: var(--blue); }
.dot.uinterface, .dot.uinterface_marker { background: var(--violet); }
.nav-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Docs Main ── */
.docs-main {
  background: var(--page);
  overflow-y: auto;
  height: calc(100vh - var(--nav-h));
}
.docs-main::-webkit-scrollbar { width: 6px; }
.docs-main::-webkit-scrollbar-track { background: transparent; }
.docs-main::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }

/* Docs content styles (ported from docs_v3.html) */
.docs-main .main { padding: 40px 44px 76px; max-width: 1080px; }
.hero-dm { margin-bottom: 28px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumbs span { color: var(--soft); padding: 0 5px; }
.docs-main h1 { font-family: 'Cinzel', serif; font-size: 36px; line-height: 1.1; margin: 0 0 11px; font-weight: 700; color: var(--gold-light); letter-spacing: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(0,0,0,.2); margin-bottom: 16px; overflow: hidden; }
.panel-pad { padding: 16px 18px; }
.section-title-doc { font-size: 17px; margin: 0 0 12px; font-weight: 700; color: #c8d8f0; }
.section-subtitle { margin: 0 0 12px; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.summary-item--full { grid-column: 1 / -1; }
.summary-item { border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--paper-2); }
.summary-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--soft); font-weight: 850; }
.summary-value { margin-top: 4px; color: #c8d8f0; font-weight: 600; word-break: break-word; }
.summary-value code { font-weight: 700; }
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); font-weight: 850; text-align: left; background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 8px 11px; }
.ref-table td { border-bottom: 1px solid var(--line); padding: 10px 11px; vertical-align: top; color: var(--text-muted); }
.ref-table tr:last-child td { border-bottom: 0; }
.ref-table code, .code { font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace; color: var(--cyan); font-size: 12px; }
.muted { color: var(--muted); }
.doc { scroll-margin-top: calc(var(--nav-h) + 12px); margin: 24px 0 38px; }
.doc-head { border-bottom: 1px solid var(--line-strong); padding-bottom: 16px; margin-bottom: 16px; }
.kind-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  display: inline-flex; align-items: center; height: 20px;
  padding: 0 7px; border-radius: 999px; font-size: 9.5px; line-height: 1;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 850; border: 1px solid;
}
.badge.uenum    { color: var(--amber); background: rgba(201,151,58,.12); border-color: rgba(201,151,58,.3); }
.badge.ustruct  { color: var(--green); background: rgba(56,200,126,.1); border-color: rgba(56,200,126,.3); }
.badge.uclass   { color: var(--blue);  background: rgba(74,158,255,.1); border-color: rgba(74,158,255,.3); }
.badge.uinterface, .badge.uinterface_marker { color: var(--violet); background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.3); }
.badge.neutral  { color: #8eaacb; background: rgba(142,170,203,.08); border-color: rgba(142,170,203,.2); }
.badge.bp          { color: var(--cyan);   background: rgba(34,211,238,.1);  border-color: rgba(34,211,238,.25); }
.badge.badge--event { color: var(--violet); background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.3); }
.doc h2 { font-family: 'Cinzel', serif; font-size: 26px; line-height: 1.2; margin: 0 0 7px; letter-spacing: 0; color: #fff; }
.doc-desc { color: #7a94b5; max-width: 820px; margin: 0; white-space: pre-line; }
.api-path { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.api-path code { color: var(--text-dim); }
.syntax {
  background: #070d1a; color: #c8e0ff;
  border-radius: var(--radius); border: 1px solid var(--border);
  overflow-x: auto; padding: 13px 15px; margin: 0;
  font: 12px/1.65 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace; white-space: pre;
}
.syntax .kw { color: #85b8ff; }
.syntax .ty { color: #9fe3bc; }
.syntax .fn { color: #ffd18a; }
.syntax .cm { color: #4a6080; }
.member-section { margin-top: 16px; }
.member-heading { font-size: 12px; text-transform: uppercase; letter-spacing: .11em; color: #5a7898; font-weight: 850; margin: 0 0 8px; }
.sig {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px; overflow-x: auto;
  white-space: nowrap; color: var(--text); font-size: 12px;
}
.params { margin-top: 8px; }
.detail { color: #7a94b5; white-space: pre-line; font-size: 13.5px; margin-top: 8px; }
.empty { color: var(--soft); font-style: italic; }
.hidden { display: none !important; }
.no-results {
  padding: 24px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); color: var(--muted); background: var(--paper);
}
.footer-docs {
  border-top: 1px solid var(--line); padding-top: 16px;
  color: var(--muted); font-size: 11.5px; margin-top: 32px;
}

/* Blueprint node */
.bp-node-wrap { margin: 4px 0 8px; }
.bp-node {
  display: inline-flex; flex-direction: column;
  border-radius: 5px; overflow: hidden; border: 1px solid #0a0a0a;
  box-shadow: 0 4px 16px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
  min-width: 200px; font-size: 11.5px; line-height: 1;
}
.bp-node__title {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 8px;
  background: linear-gradient(180deg,#2a6099 0%,#1d4870 100%);
  color: #fff; font-size: 12px; font-weight: 700;
  border-bottom: 1px solid #0d2a45; letter-spacing: .01em;
}
.bp-node--pure .bp-node__title { background: linear-gradient(180deg,#1e6e3a 0%,#144d29 100%); border-bottom-color:#082215; }
.bp-node--event .bp-node__title,
.bp-node--native_event .bp-node__title { background: linear-gradient(180deg,#7c2020 0%,#541414 100%); border-bottom-color:#350a0a; }
.bp-node__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.18); font-size: 8.5px; font-style: italic; flex-shrink: 0;
}
.bp-node__body { background: #1e1e1e; display: flex; padding: 4px 0 6px; }
.bp-col { display: flex; flex-direction: column; gap: 1px; }
.bp-col--right { margin-left: auto; align-items: flex-end; }
.bp-exec {
  display: flex; align-items: center; height: 20px;
  padding: 0 7px; gap: 4px; color: #888; font-size: 9.5px; letter-spacing:.05em;
}
.bp-exec--right { flex-direction: row-reverse; }
.bp-exec__shape {
  width: 12px; height: 14px;
  clip-path: polygon(0 0,62% 0,100% 50%,62% 100%,0 100%);
  background: #ccc; flex-shrink: 0;
}
.bp-pin {
  display: flex; align-items: center; height: 18px;
  padding: 0 7px; gap: 5px; font-size: 10.5px; color: #bbb; white-space: nowrap;
}
.bp-pin--right { flex-direction: row-reverse; }
.bp-pin__label { color: #d8d8d8; font-weight: 500; }
.bp-pin__dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; flex-shrink: 0; background: #1e1e1e; }
.bp-pin__diamond { width: 8px; height: 8px; transform: rotate(45deg); border: 2px solid currentColor; flex-shrink: 0; background: #1e1e1e; }
.bp-c-bool   { color: #9a1c1c; }
.bp-c-int    { color: #28c875; }
.bp-c-float  { color: #96dd46; }
.bp-c-string { color: #e8179a; }
.bp-c-name   { color: #a668d4; }
.bp-c-text   { color: #e8a0c0; }
.bp-c-vector { color: #d8c030; }
.bp-c-rotator   { color: #7098d8; }
.bp-c-transform { color: #e07820; }
.bp-c-obj    { color: #3e9ae8; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--nav); border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 9px;
  color: var(--gold); font-family: 'Cinzel', serif;
  font-size: 17px; font-weight: 700; margin-bottom: 16px;
}
.footer-brand p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin-bottom: 8px; }
.footer-verse { font-style: italic; color: var(--gold-dim) !important; font-size: 13px !important; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 28px; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom p { font-size: 12.5px; color: var(--text-dim); }
.footer-legal { font-size: 11.5px !important; }
.noai-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.2);
  color: var(--red); letter-spacing: 0.06em; vertical-align: middle;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --sidebar: 270px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-layout { grid-template-columns: 1fr; }
  .philosophy-visual { max-width: 600px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .steps-layout { grid-template-columns: 1fr; gap: 16px; }
  .step-connector { display: none; }
  .qs-resources { grid-template-columns: 1fr; }
  .arch-branches { flex-direction: column; align-items: center; }
  .arch-branch { width: 100%; max-width: 400px; }
  .arch-notes { grid-template-columns: 1fr; }
  .troubleshoot-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar { position: relative; height: auto; }
  .nav-scroll { max-height: 300px; }
  .docs-main { height: auto; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; gap: 4px; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--nav); border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-fab-cta { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .page-section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .docs-main .main { padding: 24px 18px 50px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .ref-table th:nth-child(4), .ref-table td:nth-child(4) { display: none; }
  .component-flow { display: none; }
}
@media (max-width: 480px) {
  .hero-title-jesus, .hero-title-saves { font-size: 56px; }
  .summary-grid { grid-template-columns: 1fr; }
}
