/* — Reset & Base — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1623;
  --bg-card: #1a2332;
  --bg-card-2: #141c2b;
  --fg: #f0f2f7;
  --fg-muted: #8892a4;
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.18);
  --amber: #f59e0b;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --radius: 12px;
  --radius-sm: 7px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* — Typography helpers — */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 56px;
}

/* — Nav — */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 22, 35, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--fg); }

/* — Hero — */
.hero {
  padding: 80px 32px 96px;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 440px;
}

/* — Pipeline (hero visual) — */
.hero-pipeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--accent-glow), 0 24px 64px rgba(0,0,0,0.4);
}

.pipeline-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pipeline-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

.pipeline-count {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.pipeline-card {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.pipeline-card:hover { background: rgba(124,58,237,0.06); }
.pipeline-card.dimmed { opacity: 0.6; }

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card-rank {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  min-width: 24px;
}

.card-info { flex: 1; }

.card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  font-family: var(--font-head);
}

.card-role {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.card-score {
  text-align: center;
  min-width: 40px;
}

.score-num {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.score-label {
  font-size: 9px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.card-reason {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.reason-tag {
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,0.25);
}

.card-status {
  font-size: 11px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.available { background: #22c55e; box-shadow: 0 0 4px #22c55e; }
.status-dot.passive { background: #f59e0b; }

.pipeline-footer {
  padding: 12px 18px;
  background: rgba(124,58,237,0.08);
  border-top: 1px solid rgba(124,58,237,0.2);
}

.agent-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #a78bfa;
}

.agent-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

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

/* — Proof strip — */
.proof-strip {
  background: var(--bg-card-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 32px;
}

.proof-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.proof-stat {
  padding: 0 40px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.proof-div {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* — Features — */
.features {
  padding: 96px 32px;
  background: var(--bg);
}

.features-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.feature-item {
  padding: 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-item h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* — How — */
.how {
  padding: 96px 32px;
  background: var(--bg-card-2);
}

.how-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.step-num {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: rgba(124,58,237,0.3);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* — Principles — */
.principles {
  padding: 96px 32px;
  background: var(--bg);
}

.principles-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.principle {
  padding: 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.principle:nth-child(2n) { border-right: none; }
.principle:nth-last-child(-n+2) { border-bottom: none; }

.principle-line {
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

.principle h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.principle p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* — Closing — */
.closing {
  padding: 96px 32px 120px;
  background: linear-gradient(180deg, var(--bg) 0%, #0a0f1a 100%);
  text-align: center;
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* — Footer — */
.footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  background: #0a0f1a;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 12px;
  color: var(--fg-muted);
}

/* — Responsive — */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-pipeline { display: none; }
  .proof-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .proof-div { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none !important; }
  .feature-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { border-right: none !important; }
  .principle:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .principle:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 20px 64px; }
  .proof-strip { padding: 32px 20px; }
  .proof-inner { grid-template-columns: 1fr; gap: 20px; }
  .features, .how, .principles { padding: 64px 20px; }
  .closing { padding: 64px 20px 80px; }
}