:root {
  --bg: #14161a;
  --surface: #1d2024;
  --surface-2: #22262b;
  --line: #2c3038;
  --line-bright: #3a4048;
  --amber: #f5a623;
  --teal: #4fd1c5;
  --text: #eceae4;
  --text-muted: #8b9099;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ---------- NAV ---------- */

.nav {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}
.nav-mark span { color: var(--amber); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--line-bright);
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-cta:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 96px 24px 64px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.08;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero h1 .hl { color: var(--amber); }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0;
}

/* ---------- PIPELINE ---------- */

.pipeline {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.pipe-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  isolation: isolate;
}

.pipe-track::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.pipe-track::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--amber);
  z-index: 1;
  transition: width 1.4s cubic-bezier(.16,1,.3,1);
}

.pipe-track.lit::after { width: 100%; }

.node {
  position: relative;
  z-index: 2;
  padding: 0 20px 0 0;
  border-right: 1px solid var(--line);
}
.node:last-child { border-right: none; padding-right: 0; }

.node-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-bright);
  margin-bottom: 22px;
  position: relative;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  transition-delay: calc(var(--i) * 0.25s);
}
.pipe-track.lit .node-dot {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.15);
}

.node-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 14px;
}

.node h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 12px;
  line-height: 1.3;
}

.node p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 18px;
  padding-right: 8px;
}

.queue {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
}
.queue li { margin-bottom: 8px; opacity: 0.85; }

/* ---------- STATUS STRIP ---------- */

.strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.strip p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(79,209,197,0.18);
  flex-shrink: 0;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px);
  margin: 0 0 16px;
}
.cta p {
  color: var(--text-muted);
  margin: 0 0 32px;
}
.cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  color: var(--bg);
  background: var(--amber);
  padding: 14px 28px;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,166,35,0.25); }

/* ---------- FOOTER ---------- */

footer {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 24px 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-sep { opacity: 0.4; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 860px) {
  .pipe-track { grid-template-columns: 1fr; gap: 36px; }
  .pipe-track::before, .pipe-track::after { display: none; }
  .node { border-right: none; border-left: 1px solid var(--line); padding: 0 0 0 20px; }
  .node-dot { margin-bottom: 16px; }
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pipe-track::after { transition: none; }
  .node-dot { transition: none; }
}

/* ---------- FOCUS ---------- */

a:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
