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

:root {
  --bg-base:    #0a0f1e;
  --bg-dark:    #0d1224;
  --bg-navy:    #0f172a;
  --bg-card:    #131929;
  --bg-card2:   #1a2235;
  --border:     #1e2d45;
  --border-dim: #162032;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #475569;
  --accent:     #3b82f6;
  --accent-dim: #1d4ed8;
  --accent-glow:rgba(59,130,246,0.15);
  --green:      #22c55e;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Nav ────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-link:hover { color: var(--text); }

.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.15s;
}

.nav-cta:hover { color: #60a5fa; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 70%),
              var(--bg-base);
  border-bottom: 1px solid var(--border);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: #334155;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.meta-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.meta-sep { color: var(--border); }

/* ─── Shared section ─────────────────────────────────────────────────── */
.section-dark  { background: var(--bg-dark);  padding: 5rem 0; }
.section-navy  { background: var(--bg-navy);  padding: 5rem 0; }

.eyebrow-light {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f1f5f9;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-intro-light {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ─── Problem ────────────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 1.75rem;
}

.problem-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.6rem;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Steps ──────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 800px) {
  .steps { flex-direction: column; }
  .step-divider { transform: rotate(90deg); align-self: center; }
}

.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--bg-base);
  border: 1px solid var(--border-dim);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.4;
}

.step-divider {
  color: var(--text-dim);
  font-size: 1.25rem;
  padding-top: 3rem;
  flex-shrink: 0;
}

/* ─── Architecture ───────────────────────────────────────────────────── */
.arch-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 800px) {
  .arch-block { grid-template-columns: 1fr; }
}

.arch-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arch-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.arch-box.agent { background: rgba(59,130,246,0.07); border-color: rgba(59,130,246,0.3); }
.arch-box.engine { background: var(--bg-card2); }

.arch-label {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.arch-items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.arch-items span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.arch-items span::before {
  content: "– ";
  color: var(--text-dim);
}

.arch-arrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  padding: 0.4rem 0;
}

/* ─── Features ───────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 1000px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.15s;
}

.feature-card:hover { border-color: var(--border); }

.feature-icon {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── CTA section ────────────────────────────────────────────────────── */
.section-cta {
  background: var(--bg-dark);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.section-cta h2 { margin-bottom: 1.25rem; }

.cta-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: #334155;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-dim);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-wordmark {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-copy a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-copy a:hover { color: var(--text); }
