/* JobPilot — refined dev-tool UI. One accent, crisp surfaces, restrained motion. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:        #0a0a0c;
  --bg-2:      #0d0d10;
  --surface:   rgba(255,255,255,0.024);
  --surface-2: rgba(255,255,255,0.05);
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --text:      #ededf0;
  --text-2:    #a1a1aa;
  --muted:     #6b6b76;
  --accent:    #ff6a3d;
  --accent-hi: #ff8a5f;
  --accent-dk: #e8552a;
  --green:     #36d399;
  --amber:     #fbbf24;
  --red:       #f87171;
  --radius:    12px;
  --radius-lg: 16px;
  --maxw:      1140px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:        #fbfbfc;
  --bg-2:      #f4f4f6;
  --surface:   rgba(10,10,15,0.018);
  --surface-2: rgba(10,10,15,0.045);
  --border:    rgba(10,10,15,0.09);
  --border-2:  rgba(10,10,15,0.15);
  --text:      #16161a;
  --text-2:    #55555f;
  --muted:     #8a8a95;
  --accent:    #ed5a2b;
  --accent-hi: #f4733a;
  --accent-dk: #d4491f;
  --green:     #15a06a;
  --amber:     #b97e0a;
  --red:       #dc4b4b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  position: relative;
}
/* Single soft top glow — replaces the busy grid mesh */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(255,106,61,0.08), transparent 60%),
    radial-gradient(700px 700px at 88% 8%, rgba(255,106,61,0.035), transparent 55%);
  pointer-events: none; z-index: 0;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(237,90,43,0.07), transparent 60%),
    radial-gradient(700px 700px at 88% 8%, rgba(237,90,43,0.03), transparent 55%);
}
body > * { position: relative; z-index: 1; }

code, pre, .mono { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(255,106,61,0.28); color: #fff; }

/* ── LAYOUT ── */
.container        { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 800px;       margin: 0 auto; padding: 0 28px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 13px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand-logo {
  width: 28px; height: 28px;
  background: linear-gradient(150deg, var(--accent-hi), var(--accent-dk));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
  box-shadow: 0 2px 10px rgba(255,106,61,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--text-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 15px;
  background: var(--accent); color: #fff !important;
  border-radius: 8px; font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 4px 14px rgba(255,106,61,0.3);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,106,61,0.42); }

/* Theme toggle */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px;
  transition: all 0.18s var(--ease); flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--border-2); }
[data-theme="dark"]  .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark  { display: none; }

/* ── HERO ── */
.hero { padding: 120px 0 96px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 11px;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12.5px; font-weight: 500;
  margin-bottom: 30px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,106,61,0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,106,61,0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(255,106,61,0.05); }
}
h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  color: var(--text);
}
.accent-text {
  background: linear-gradient(100deg, var(--accent-hi), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 18.5px; color: var(--text-2);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.65;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, border-color 0.18s, color 0.18s;
  cursor: pointer; font-family: inherit;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 22px rgba(255,106,61,0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 30px rgba(255,106,61,0.45); }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }

/* ── STAT BAR ── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin: 64px 0 110px;
}
.stat { text-align: center; padding: 36px 16px; background: var(--bg); }
.stat-num {
  font-size: 44px; font-weight: 800; line-height: 1;
  color: var(--text); letter-spacing: -0.04em;
}
.stat-num .u { color: var(--accent); }
.stat-lbl {
  margin-top: 10px; font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600;
}

/* ── SECTION ── */
section { padding: 100px 0; position: relative; }
.section-head { margin: 0 auto 56px; text-align: center; max-width: 720px; }
.section-eyebrow {
  display: inline-block; font-size: 12px;
  color: var(--accent); letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 14px;
}
h2 {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 16px; color: var(--text);
}
h3 { font-size: 17px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.015em; }
.section-sub { color: var(--text-2); font-size: 17px; max-width: 580px; margin: 0 auto; line-height: 1.6; }

/* ── PIPELINE FLOW ── */
.pipeline-flow {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin-top: 44px; position: relative;
}
.pipeline-flow::before {
  content: ''; position: absolute; z-index: 0;
  top: 33px; left: 36px; right: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2) 12%, var(--border-2) 88%, transparent);
}
.pipe-step {
  /* Opaque fill layered over an accent tint so the connector line only shows in the gaps */
  background: linear-gradient(var(--surface), var(--surface)), var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 15px 16px; position: relative; z-index: 1;
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s;
}
.pipe-step:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-3px); }
.pipe-step.manual { border-color: rgba(251,191,36,0.35); background: linear-gradient(rgba(251,191,36,0.05), rgba(251,191,36,0.05)), var(--bg); }
.pipe-step.manual:hover { border-color: rgba(251,191,36,0.5); }
.pipe-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 8px; font-weight: 700; font-size: 12px; color: var(--accent);
  margin-bottom: 13px; font-family: 'JetBrains Mono', monospace;
}
.pipe-step.manual .pipe-num { color: var(--amber); border-color: rgba(251,191,36,0.4); }
.pipe-name { font-weight: 700; font-size: 13.5px; margin-bottom: 5px; }
.pipe-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.pipe-tag {
  display: inline-block; margin-top: 10px; padding: 2px 8px;
  background: rgba(251,191,36,0.12); color: var(--amber);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; border-radius: 5px;
}

/* ── ARCHITECTURE DIAGRAM ── */
.arch-wrap { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; }
.arch-lane-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 14px; padding: 22px 0 13px;
}
.arch-lane-label::before, .arch-lane-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%);
}
.arch-lane-label::after { transform: scaleX(-1); }
.arch-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.arch-row-1 { display: grid; grid-template-columns: 1fr; }
.arch-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 17px;
  display: flex; gap: 13px; align-items: flex-start;
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s;
}
.arch-node:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-1px); }
.arch-num {
  min-width: 27px; height: 27px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; color: var(--accent);
  flex-shrink: 0; font-family: 'JetBrains Mono', monospace;
}
.arch-title { font-weight: 700; font-size: 13.5px; color: var(--text); margin-bottom: 3px; }
.arch-sub { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.arch-merge-block { display: flex; flex-direction: column; align-items: center; }
.arch-merge-lines { display: grid; grid-template-columns: 1fr 1fr; width: 80%; height: 18px; }
.arch-merge-v { border-right: 1px solid var(--border-2); }
.arch-merge-v:last-child { border-right: none; border-left: 1px solid var(--border-2); }
.arch-file-pill {
  background: var(--surface); border: 1px dashed var(--border-2);
  border-radius: 8px; padding: 7px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--muted); width: 100%; text-align: center;
}
.arch-file-pill strong { color: var(--accent); }
.arch-single-v { width: 1px; height: 22px; background: var(--border-2); margin: 0 auto; }
.arch-gate {
  position: relative; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(120deg, rgba(251,191,36,0.55), rgba(251,191,36,0.12) 50%, rgba(251,191,36,0.55));
  background-size: 200% 200%; animation: border-flow 4s ease infinite;
}
@keyframes border-flow {
  0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}
.arch-gate-inner {
  background: var(--bg-2); border-radius: calc(var(--radius) - 1px);
  padding: 15px 19px; display: flex; align-items: center; gap: 13px;
}
.arch-gate-star { font-size: 17px; color: var(--amber); flex-shrink: 0; }
.arch-gate-title { font-weight: 700; font-size: 13.5px; color: var(--amber); margin-bottom: 3px; }
.arch-gate-sub { font-size: 11.5px; color: color-mix(in srgb, var(--amber) 70%, var(--muted)); }
.arch-history {
  margin-top: 22px; border-top: 1px dashed var(--border);
  padding-top: 14px; text-align: center;
  font-size: 11.5px; color: var(--muted); line-height: 1.7;
}
.arch-history-mono { font-family: 'JetBrains Mono', monospace; color: var(--accent); margin-right: 6px; }

/* ── TERMINAL ── */
.terminal {
  background: #060608;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
  margin: 40px auto 0; max-width: 880px;
}
.terminal-bar {
  background: rgba(255,255,255,0.025); padding: 11px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.terminal-title { margin-left: 10px; font-size: 12px; color: #6b6b76; font-family: 'JetBrains Mono', monospace; }
.terminal-body {
  padding: 22px 26px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  line-height: 1.75; color: #a1a1aa; overflow-x: auto;
}
.t-prompt { color: var(--accent); font-weight: 600; }
.t-cmd { color: #f4f4f6; font-weight: 500; }
.t-comment { color: #5a5a64; }
.t-ok { color: var(--green); }
.t-warn { color: var(--amber); }
.t-accent { color: var(--accent); font-weight: 600; }
.t-dim { color: #34343c; }

/* ── FEATURE GRID ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px; margin-top: 44px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px;
  transition: transform 0.24s var(--ease), border-color 0.24s, background 0.24s, box-shadow 0.24s;
  position: relative; overflow: hidden;
}
/* Accent hairline that fades in along the top on hover */
.feature::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.28s var(--ease);
}
.feature:hover {
  border-color: var(--border-2); background: var(--surface-2); transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.5);
}
.feature:hover::after { opacity: 0.7; }
.feature-icon {
  width: 42px; height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent);
  transition: border-color 0.24s, background 0.24s, transform 0.24s var(--ease);
}
.feature-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.feature:hover .feature-icon {
  border-color: rgba(255,106,61,0.45);
  background: rgba(255,106,61,0.08);
  transform: scale(1.06);
}
.feature h3 { font-size: 15.5px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.feature-tag {
  display: inline-block; margin-top: 12px; padding: 3px 9px;
  background: rgba(255,106,61,0.1); color: var(--accent);
  border: 1px solid rgba(255,106,61,0.22);
  border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
}

/* ── CSV SCREENSHOT MOCK ── */
.screenshot-frame {
  background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,0.7);
  margin: 40px 0;
}
.window-bar {
  background: var(--surface); padding: 11px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.window-title { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.csv-mock { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.csv-mock th, .csv-mock td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.csv-mock th {
  background: var(--surface); font-weight: 600; color: var(--text-2);
  text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em;
}
.csv-mock td { color: var(--text-2); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.csv-mock tbody tr { transition: background 0.15s; }
.csv-mock tbody tr:hover { background: var(--surface); }
.score-high { color: var(--green); font-weight: 700; }
.score-med  { color: var(--amber); font-weight: 700; }
.score-low  { color: var(--red);   font-weight: 700; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.tag-email    { background: rgba(255,106,61,0.12); color: var(--accent); border: 1px solid rgba(255,106,61,0.22); }
.tag-apply    { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-2); }
.tag-skip     { background: rgba(248,113,113,0.1); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }
.tag-pending  { background: rgba(251,191,36,0.1); color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }
.tag-approved { background: rgba(54,211,153,0.1); color: var(--green); border: 1px solid rgba(54,211,153,0.22); }

/* ── PORTAL GRID ── */
.portals-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-top: 40px;
}
.portal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 14px; text-align: center;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.portal:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-3px); }
.portal.featured { border-color: rgba(255,106,61,0.28); background: rgba(255,106,61,0.04); }
.portal.featured:hover { border-color: rgba(255,106,61,0.5); }
.portal-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.portal-meta { font-size: 11px; color: var(--muted); }
.portal-soon { color: var(--amber); font-size: 11px; font-weight: 600; }

/* ── CODE ── */
pre.code {
  background: #060608; border: 1px solid var(--border-2); border-radius: 10px;
  padding: 20px 24px; overflow-x: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; color: #a1a1aa;
}
pre.code .c { color: #5a5a64; } pre.code .k { color: var(--accent); }
pre.code .s { color: var(--green); } pre.code .n { color: var(--text); }
code.inline {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 7px; font-size: 0.87em; color: var(--accent);
}

/* ── DOCS ── */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 56px 28px; max-width: var(--maxw); margin: 0 auto; }
.docs-sidebar { position: sticky; top: 92px; align-self: start; }
.docs-sidebar h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 24px 0 10px; font-weight: 700; }
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar ul { list-style: none; }
.docs-sidebar li { margin-bottom: 3px; }
.docs-sidebar a { display: block; padding: 6px 10px; border-radius: 7px; font-size: 14px; color: var(--text-2); transition: all 0.15s; }
.docs-sidebar a:hover { background: var(--surface); color: var(--text); }
.docs-sidebar a.active { background: rgba(255,106,61,0.09); color: var(--accent); }
.docs-content { max-width: 740px; }
.docs-content h1 { font-size: 38px; margin-bottom: 12px; letter-spacing: -0.035em; }
.docs-content h2 { font-size: 26px; margin: 52px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); letter-spacing: -0.025em; }
.docs-content h2:first-of-type { border-top: none; padding-top: 0; }
.docs-content h3 { font-size: 18px; margin: 30px 0 12px; }
.docs-content p { color: var(--text-2); margin-bottom: 16px; font-size: 15px; }
.docs-content ul, .docs-content ol { color: var(--text-2); margin: 0 0 20px 22px; }
.docs-content li { margin-bottom: 7px; font-size: 15px; }
.docs-content strong { color: var(--text); font-weight: 600; }
.docs-content a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.docs-content a:hover { border-bottom-color: var(--accent); }
.docs-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.docs-content th, .docs-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.docs-content th { background: var(--surface); color: var(--text); font-weight: 600; }
.docs-content td { color: var(--text-2); }
.docs-content blockquote { background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; color: var(--text-2); }

/* ── FOOTER ── */
footer { padding: 60px 0 44px; border-top: 1px solid var(--border); margin-top: 90px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px;
}
.footer-brand { color: var(--text-2); font-size: 14px; max-width: 280px; }
.footer-col h5 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 15px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-2); font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pipeline-flow { grid-template-columns: repeat(2, 1fr); }
  .pipeline-flow::before { display: none; }
  .arch-row-2 { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; padding: 40px 22px; gap: 28px; }
  .docs-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 76px 0 60px; }
  section { padding: 68px 0; }
  .container, .container-narrow { padding: 0 18px; }
}
