:root {
  --bg: #0e0e12;
  --bg-mid: #14141a;
  --bg-card: #1a1a22;
  --amber: #e8a427;
  --amber-dim: rgba(232, 164, 39, 0.15);
  --amber-glow: rgba(232, 164, 39, 0.08);
  --text: #faf8f5;
  --text-dim: rgba(250, 248, 245, 0.55);
  --text-muted: rgba(250, 248, 245, 0.3);
  --border: rgba(250, 248, 245, 0.08);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-mark { color: var(--amber); font-size: 1rem; }
.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav-tagline {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse at center, var(--amber-dim) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 440px;
}

/* Pipeline diagram */
.pipeline-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.pipe-stage {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pipe-node {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg-mid);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.node-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.node-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.pipe-arrow {
  color: var(--amber);
  font-size: 1.2rem;
  opacity: 0.7;
  min-width: 1.5rem;
  text-align: center;
}
.node-intake { border-color: var(--amber-glow); }
.node-intake .node-label { color: var(--amber); }
.node-analyze { }
.node-score { }
.node-route { }
.node-decision { border-color: var(--amber); }
.node-decision .node-label { color: var(--amber); }

/* === PIPELINE SECTION === */
.pipeline-section { padding: 7rem 2.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.pipeline-header { margin-bottom: 5rem; }
.pipeline-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 600px;
}
.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stage-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stage-card--accent { background: var(--amber-glow); }
.stage-number {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 2rem;
  color: var(--text-muted);
  line-height: 1;
}
.stage-content h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.stage-content p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* === INTAKE SECTION === */
.intake-section {
  padding: 7rem 2.5rem;
  background: var(--bg-mid);
}
.intake-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.intake-text h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.intake-text > p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.intake-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.intake-list li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 1.25rem;
  position: relative;
}
.intake-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
}

/* Doc diagram */
.intake-visual { display: flex; align-items: center; justify-content: center; }
.doc-diagram {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  min-width: 160px;
  position: relative;
}
.doc-icon {
  width: 32px; height: 40px;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.doc-lines { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.doc-line {
  height: 6px;
  background: var(--text-muted);
  border-radius: 1px;
}
.doc-line--short { width: 60%; }
.doc-line--medium { width: 80%; }
.doc-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.doc-tag--amber { color: var(--amber); }
.doc-arrow-flow {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--amber);
}
.arrow-body {
  width: 40px; height: 2px;
  background: var(--amber);
  opacity: 0.5;
}
.arrow-head { font-size: 1.5rem; }

/* Output card */
.output-grid { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.output-row { display: flex; justify-content: space-between; align-items: center; }
.output-key { font-size: 0.7rem; color: var(--text-muted); }
.output-val { font-size: 0.85rem; font-weight: 600; color: var(--text); font-family: 'Figtree', monospace; }
.output-val--amber { color: var(--amber); }
.doc-output { border-color: var(--amber); }

/* === ROUTING SECTION === */
.routing-section { padding: 7rem 2.5rem; }
.routing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.routing-text h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.routing-text p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Network diagram */
.network-diagram {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.network-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--amber);
  color: var(--bg);
  padding: 1.25rem 1.75rem;
  text-align: center;
  z-index: 2;
}
.hub-label { font-size: 0.6rem; letter-spacing: 0.15em; font-weight: 700; text-transform: uppercase; }
.hub-sub { font-size: 1.2rem; font-weight: 700; margin-top: 0.25rem; font-family: 'Fraunces', serif; }

.network-nodes {
  position: absolute;
  inset: 0;
}
.net-node {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 2px;
  min-width: 90px;
}
.net-node-name { font-size: 0.7rem; font-weight: 600; margin-bottom: 0.2rem; }
.net-node-rate { font-size: 0.65rem; color: var(--amber); }

.net-node--1 { top: 10%; left: 15%; }
.net-node--2 { top: 10%; right: 15%; }
.net-node--3 { bottom: 10%; left: 15%; }
.net-node--4 { bottom: 10%; right: 15%; }
.net-node--5 { bottom: 35%; right: 0; }

.network-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.net-line {
  position: absolute;
  height: 1px;
  background: var(--amber-glow);
  transform-origin: left center;
}
.net-line--1 { width: 30%; top: 38%; left: 20%; transform: rotate(-25deg); }
.net-line--2 { width: 30%; top: 38%; right: 20%; transform: rotate(25deg); }
.net-line--3 { width: 30%; bottom: 38%; left: 20%; transform: rotate(25deg); }
.net-line--4 { width: 30%; bottom: 38%; right: 20%; transform: rotate(-25deg); }
.net-line--5 { width: 20%; bottom: 48%; right: 8%; transform: rotate(60deg); }

/* === COMPLIANCE SECTION === */
.compliance-section {
  padding: 7rem 2.5rem;
  background: var(--bg-mid);
}
.compliance-inner { max-width: 1200px; margin: 0 auto; }
.compliance-header {
  margin-bottom: 4rem;
}
.compliance-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.compliance-item {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compliance-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  opacity: 0.5;
}
.compliance-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
}
.compliance-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* === MANIFESTO === */
.manifesto-section {
  padding: 8rem 2.5rem;
  background: var(--bg);
  position: relative;
}
.manifesto-section::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}
.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.manifesto-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 3rem;
  border-left: 3px solid var(--amber);
  padding-left: 2rem;
}
.manifesto-body p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2.5rem 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner,
  .intake-inner,
  .routing-inner { grid-template-columns: 1fr; gap: 3rem; }
  .pipeline-stages { grid-template-columns: 1fr 1fr; }
  .compliance-items { grid-template-columns: 1fr; }
  .nav-tagline { display: none; }
  .hero { padding-top: 6rem; }
}
@media (max-width: 600px) {
  .hero-headline { font-size: 2.2rem; }
  .pipeline-stages { grid-template-columns: 1fr; }
  .pipeline-diagram { display: none; }
  .network-diagram { display: none; }
}