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

:root {
  --bg:           #0a0a0f;
  --bg-alt:       #0f0f18;
  --bg-dark:      #06060c;
  --surface:      #14141f;
  --border:       #1e1e2e;
  --accent:       #7c6af7;
  --accent-light: #a89ef9;
  --accent-dim:   rgba(124, 106, 247, 0.15);
  --text:         #e8e8f0;
  --text-muted:   #8888a0;
  --text-light:   #c0c0d8;
  --radius:       12px;
  --radius-sm:    8px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: #2e2e44; }
.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-dim); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  text-align: center;
}
.hero .container { position: relative; z-index: 1; }
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(124, 106, 247, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sections ── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 48px;
  color: var(--text);
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.section-sub.light { color: var(--text-light); }

/* ── Problem ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.problem-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 14px;
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(124, 106, 247, 0.4);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Steps ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 48px;
  bottom: 48px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-dim), var(--border), var(--accent-dim));
}
.step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  align-items: flex-start;
  position: relative;
}
.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}
.step-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 14px;
  color: var(--text);
}
.step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
}

/* ── SDK ── */
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sdk-feature {
  background: var(--surface);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sdk-feature strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
}
.sdk-feature span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Architecture pills ── */
.arch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}
.arch-pills span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Compare table ── */
.compare-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.compare-col {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.compare-col-gerry {
  border-color: rgba(124, 106, 247, 0.5);
  box-shadow: 0 0 0 1px rgba(124, 106, 247, 0.2), 0 4px 24px rgba(124, 106, 247, 0.08);
}
.compare-header {
  padding: 20px 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.compare-col-gerry .compare-header {
  background: var(--accent-dim);
  border-bottom-color: rgba(124, 106, 247, 0.2);
}
.compare-category {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.compare-col-gerry .compare-category {
  color: var(--accent-light);
}
.compare-examples {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.compare-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
}
.compare-col-gerry .compare-row {
  background: rgba(124, 106, 247, 0.03);
}
.compare-row:last-child { border-bottom: none; }
.compare-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.compare-value {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}
.compare-yes  { color: #6ee7b7; }
.compare-no   { color: #6b6b80; }
.compare-partial { color: #fbbf24; }
.compare-footnote {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

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

/* ── Scroll animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .steps::before { display: none; }
  .step { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
