/* ═══════════════════════════════════════════════════════════════
   GroundedRAG — Organic Intelligence Design System
   Premium Fluidity · Playfair Display + Inter + JetBrains Mono
═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bg-cream: #fcfbf9;
  --bg-dark: #171717;
  --accent: #4338ca;
  --accent-light: #6366f1;
  --accent-glow: rgba(67, 56, 202, 0.15);
  --accent-glow-strong: rgba(67, 56, 202, 0.35);
  --border: #e5e5e5;
  --border-dark: rgba(255,255,255,0.08);
  --text-dark: #171717;
  --text-mid: #525252;
  --text-light: #a3a3a3;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 80px;
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
.serif { font-family: 'Playfair Display', serif; }
.mono  { font-family: 'JetBrains Mono', monospace; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 0.9; }
em { font-style: italic; font-family: 'Playfair Display', serif; }

p {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  color: var(--text-mid);
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: var(--accent-light);
  background: rgba(99,102,241,0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* code on dark backgrounds (pipeline section) */
.pipeline code {
  color: #a5b4fc;
  background: rgba(165,180,252,0.1);
}

/* ── SECTION LABEL (mono pill) ─────────────────────────────── */
.section-label {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.section-label span,
.section-label-inline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-light);
}

/* ── SECTION HEADINGS ──────────────────────────────────────── */
.section-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 0.92;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.section-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* ── SECTION INNER WRAPPER ─────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
}

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 500ms var(--ease-premium), box-shadow 500ms var(--ease-premium);
}

/* On hero (dark bg): header stays transparent, white text visible */
.site-header.header-on-dark {
  background: transparent;
}

/* On light sections: cream background + dark text */
.site-header.header-on-light {
  background: rgba(252,251,249,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.header-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: color 400ms var(--ease-premium);
}

.header-logo em {
  font-style: italic;
}

/* In dark-header mode, keep logo white */
.header-on-dark .header-logo {
  color: #fff;
}

.header-on-light .header-logo {
  color: var(--text-dark);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 400ms var(--ease-premium);
}

.header-on-light .nav-link {
  color: var(--text-mid);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 600ms var(--ease-premium);
}

.nav-link:hover::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  color: #fff;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: border-color 400ms var(--ease-premium), color 400ms var(--ease-premium);
}

.header-cta:hover { border-color: currentColor; }

.header-on-light .header-cta {
  border-color: rgba(23,23,23,0.25);
  color: var(--text-dark);
}

.header-on-light .header-cta:hover {
  border-color: var(--text-dark);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Drifting mesh */
.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.mesh-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.5) 0%, rgba(67,56,202,0.2) 50%, transparent 70%);
  top: -150px;
  left: -100px;
  animation: mesh-drift-1 30s infinite linear;
}

.mesh-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.4) 0%, rgba(139,92,246,0.15) 50%, transparent 70%);
  bottom: 100px;
  right: -100px;
  animation: mesh-drift-2 25s infinite linear;
}

.mesh-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(67,56,202,0.3) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation: mesh-drift-3 35s infinite linear;
}

@keyframes mesh-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, 40px) scale(1.05); }
  66%  { transform: translate(-30px, 80px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes mesh-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-50px, -30px) scale(1.08); }
  66%  { transform: translate(40px, -60px) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes mesh-drift-3 {
  0%   { transform: translateX(-50%) scale(1) rotate(0deg); }
  50%  { transform: translateX(-50%) scale(1.1) rotate(180deg); }
  100% { transform: translateX(-50%) scale(1) rotate(360deg); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 2rem;
  padding-top: var(--header-h);
  /* Push text well above the wave curve (wave is ~28vh, curve starts ~55% in) */
  padding-bottom: 22vh;
}

.hero-label {
  display: inline-block;
  margin-bottom: 2rem;
  animation: reveal-up 1000ms var(--ease-premium) 200ms both;
}

.hero-label span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.5);
}

.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 700;
  line-height: 0.88;
  color: #fff;
  margin-bottom: 2rem;
  animation: reveal-up 1000ms var(--ease-premium) 350ms both;
}

.hero-heading em {
  color: #a5b4fc;
  font-style: italic;
}

.hero-subtext {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.80);
  margin-bottom: 3rem;
  animation: reveal-up 1000ms var(--ease-premium) 500ms both;
  /* Safety net: dark halo ensures visibility regardless of overlap */
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
}

/* Wave transition */
.wave-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 28vh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  /* Keep the wave curve BELOW hero text */
  z-index: 2;
}

.wave-curve {
  position: absolute;
  bottom: 0;
  width: 130%;
  height: 200%;
  background: var(--bg-cream);
  border-radius: 50% 50% 0 0;
  transform: translate(-11.5%, 55%);
}

.wave-cta {
  position: relative;
  z-index: 3;
  margin-top: 1.5rem;
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  transition: transform 600ms var(--ease-premium), box-shadow 600ms var(--ease-premium);
  animation: wave-btn-pulse 3s infinite var(--ease-premium);
}

.wave-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(67,56,202,0.4);
}

@keyframes wave-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(67,56,202,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(67,56,202,0.25); }
}

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1000ms var(--ease-premium), transform 1000ms var(--ease-premium);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   ARCHITECTURE — AGENT GRID
════════════════════════════════════════════════════════════ */
.architecture {
  background: var(--bg-cream);
  position: relative;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

/* Staggered vertical offset */
.agent-card:nth-child(even) { margin-top: 2rem; }

.agent-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-cream);
  overflow: hidden;
  cursor: default;
  transition: transform 600ms var(--ease-premium), box-shadow 600ms var(--ease-premium), border-color 400ms var(--ease-premium);
}

.agent-card:hover {
  transform: translateY(-1rem) scale(1.02);
  box-shadow: 0 24px 60px rgba(67,56,202,0.1);
  border-color: rgba(99,102,241,0.3);
}

.card-inner {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.card-orb {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(40px);
  transition: opacity 600ms var(--ease-premium);
}

.agent-card:hover .card-orb { opacity: 0.6; }

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-light);
}

.card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  background: rgba(67,56,202,0.06);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(67,56,202,0.15);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-light);
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.card-hover-pill {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text-dark);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 500ms var(--ease-premium), transform 500ms var(--ease-premium);
}

.agent-card:hover .card-hover-pill {
  opacity: 1;
  transform: translateY(0);
}

/* Graph flow diagram */
.graph-flow {
  margin-top: 5rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #f5f4f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
}

.gf-node {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-cream);
  color: var(--text-dark);
  white-space: nowrap;
}

.gf-start, .gf-end {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
  letter-spacing: 0.4em;
  font-size: 9px;
}

.gf-agent { border-color: rgba(99,102,241,0.4); color: var(--accent); }
.gf-refuse { border-color: rgba(239,68,68,0.4); color: #dc2626; }
.gf-meta { border-color: rgba(167,139,250,0.4); color: #7c3aed; }

.gf-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.2em;
  text-align: center;
}

.gf-fork {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.gf-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.gf-fork-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.gf-branch-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* ════════════════════════════════════════════════════════════
   PIPELINE SECTION
════════════════════════════════════════════════════════════ */
.pipeline {
  background: var(--bg-dark);
  color: #fff;
}

.pipeline .section-heading { color: #fff; }
.pipeline .section-sub { color: rgba(255,255,255,0.55); }
.pipeline .section-label span { color: rgba(255,255,255,0.35); }

.pipeline-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.pipeline-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.metric-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #a5b4fc;
  line-height: 1;
}

.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.pipeline-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.flow-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.flow-content { flex: 1; padding-bottom: 1.5rem; }

.flow-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.flow-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.flow-bar {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: hidden;
}

.flow-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #818cf8 100%);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1200ms var(--ease-premium);
}

.flow-step.bar-animated .flow-fill { transform: scaleX(1); }

.flow-connector {
  width: 1px;
  height: 1.5rem;
  background: rgba(255,255,255,0.1);
  margin-left: 1.2rem;
}

/* ════════════════════════════════════════════════════════════
   CAPABILITIES — ACCORDION
════════════════════════════════════════════════════════════ */
.capabilities { background: var(--bg-cream); }

.capabilities-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.cap-left { position: sticky; top: calc(var(--header-h) + 2rem); }

.cap-cta {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 400ms var(--ease-premium);
}

.cap-cta:hover { border-color: var(--accent); }

.accordion { display: flex; flex-direction: column; }

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 300ms var(--ease-premium);
}

.acc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-light);
  flex-shrink: 0;
}

.acc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #a3a3a3;
  flex: 1;
  transition: color 300ms var(--ease-premium);
}

.accordion-header:hover .acc-title,
.accordion-item.open .acc-title {
  color: var(--text-dark);
}

.acc-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: var(--text-light);
  transition: transform 400ms var(--ease-premium), color 300ms;
  flex-shrink: 0;
}

.accordion-item.open .acc-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 600ms var(--ease-premium);
}

.accordion-item.open .accordion-body {
  max-height: 600px;
}

.accordion-body p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-mid);
  padding-top: 0.25rem;
  padding-bottom: 1rem;
}

.acc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.75rem;
}

.acc-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(67,56,202,0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: rgba(67,56,202,0.04);
}

/* ════════════════════════════════════════════════════════════
   SETUP SECTION
════════════════════════════════════════════════════════════ */
.setup { background: var(--bg-cream); border-top: 1px solid var(--border); }

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.setup-step {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--bg-cream);
  transition: border-color 400ms var(--ease-premium), box-shadow 400ms var(--ease-premium);
}

.setup-step:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 8px 30px rgba(67,56,202,0.06);
}

.setup-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.setup-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.code-block {
  background: var(--bg-dark);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.7;
}

.code-block code {
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.85);
  background: none;
  padding: 0;
  font-size: inherit;
}

.setup-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}

/* Config block */
.config-block {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.config-header {
  padding: 1.25rem 2rem;
  background: #f5f4f1;
  border-bottom: 1px solid var(--border);
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.config-item {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.config-item:nth-child(3n) { border-right: none; }
.config-item:nth-last-child(-n+3) { border-bottom: none; }

.config-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.config-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.config-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-dark);
  position: relative;
  border-radius: 5rem 5rem 0 0;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at top, rgba(67,56,202,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2.5rem 3rem;
  position: relative;
  z-index: 1;
}

.footer-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 5rem;
  border-left: none;
  font-style: normal;
}

.footer-quote em {
  color: #a5b4fc;
  font-style: italic;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 300ms var(--ease-premium);
}

.footer-links a:hover { color: #fff; }

.footer-links span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(165,180,252,0.7);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
}

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.2);
}

.footer-github-link {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 300ms var(--ease-premium);
}

.footer-github-link:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .pipeline-split,
  .capabilities-split { grid-template-columns: 1fr; gap: 3rem; }
  .cap-left { position: static; }
  .setup-grid { grid-template-columns: 1fr; }
  .config-grid { grid-template-columns: 1fr 1fr; }
  .config-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .config-item:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gf-fork { flex-direction: column; align-items: center; gap: 0.5rem; }
  .gf-fork-inner { flex-direction: column; align-items: center; }
  .agent-card:nth-child(even) { margin-top: 0; }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .section-inner { padding: 4rem 1.5rem; }
  .hero-heading { font-size: clamp(3rem, 14vw, 5rem); }
  .config-grid { grid-template-columns: 1fr; }
  .config-item { border-right: none !important; }
  .config-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .config-item:last-child { border-bottom: none; }
}
