body {
  padding-top: var(--nav-h);
  scroll-snap-type: y proximity;
}

.section, .hero-section, .live-stats-section {
  scroll-snap-align: start;
}

/* ── Landing: Hero ─────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--gr-rgb), 0.05) 50%, var(--bg) 100%);
  padding: var(--space-3xl) 0;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--gr-rgb), 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto;
}
.hero-content .hero-tag {
  display: inline-block;
  margin-bottom: var(--space-md);
}
.hero-content h1 {
  margin-bottom: var(--space-md);
}
.hero-content .subtitle {
  margin: 0 auto var(--space-xl);
  text-align: center;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 700px;
  margin: 0 auto;
}
.hero-pricing {
  max-width: 960px;
  margin: 0 auto;
}
.hero-pricing .pricing-card {
  text-align: left;
  min-width: 0;
}
@media (max-width: 600px) {
  .hero-metrics { grid-template-columns: 1fr 1fr; }
}

/* ── Landing: Problem ──────────────────────────────────────────── */
.problem-section { }
.problem-section .hero-quote { max-width: 680px; }

/* ── Landing: Solution ─────────────────────────────────────────── */
.solution-section { }

/* ── Landing: Why ──────────────────────────────────────────────── */
.why-section { }

/* ── Landing: Live Stats ──────────────────────────────────────── */
.live-stats-section {
  padding: var(--space-2xl) 0;
  background: var(--sf);
  border-bottom: 1px solid var(--bd);
}
.live-stats-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gr);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
.live-stats-header h3 {
  margin-bottom: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color 0.3s ease;
}
.stat-card:hover {
  border-color: var(--gr);
}
.stat-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-icon {
  color: var(--gr);
  display: flex;
  align-items: center;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--mt);
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--tx);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-sparkline {
  display: block;
  margin-top: 4px;
}
.stat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--mt);
  white-space: nowrap;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── Landing: CTA ──────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.cta-section h2 { max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .subtitle { margin-left: auto; margin-right: auto; text-align: center; }
.cta-section .hero-metric { display: inline-block; }
.cta-pilot {
  margin: var(--space-lg) auto;
  padding: var(--space-lg) var(--space-xl);
  background: var(--sf);
  border: 1px solid var(--gr);
  border-radius: var(--radius-xl);
  display: inline-block;
}

/* ── Models Page ───────────────────────────────────────────────── */
.models-header {
  padding: var(--space-2xl) 0 var(--space-lg);
  text-align: center;
}
.models-header h1 { margin-bottom: var(--space-sm); }
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .models-grid { grid-template-columns: 1fr; }
}

/* ── Docs Page ─────────────────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-lg));
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - var(--space-xl));
  overflow-y: auto;
}
.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.docs-sidebar a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mt);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--gr);
  background: rgba(var(--gr-rgb), 0.08);
}
.docs-content {
  min-width: 0;
}
.docs-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--bd);
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 {
  margin-top: var(--space-lg);
}
.docs-content .code-block {
  margin: var(--space-md) 0;
}

@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    border-bottom: 1px solid var(--bd);
    padding-bottom: var(--space-md);
  }
  .docs-sidebar nav { flex-direction: row; flex-wrap: wrap; }
}

/* ── Chat Page ─────────────────────────────────────────────────── */
.chat-placeholder {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-3xl) 0;
}
.chat-placeholder .chat-icon {
  font-size: 64px;
  color: var(--gr);
  opacity: 0.4;
  margin-bottom: var(--space-sm);
}
.chat-placeholder h1 {
  font-size: 32px;
  color: var(--tx);
}
.chat-placeholder p {
  text-align: center;
  margin: 0 auto;
}
