/* ===== Hero Section ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 32px 80px;
  min-height: calc(100vh - 64px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(134, 249, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 24px;
}

.hero-sub {
  max-width: 500px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Terminal mockup */
.hero-terminal {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.terminal-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-chrome .dot:nth-child(1) { background: #ff5f57; }
.terminal-chrome .dot:nth-child(2) { background: #febc2e; }
.terminal-chrome .dot:nth-child(3) { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin: 0 auto;
  font-family: var(--font-sans);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
}
.terminal-body pre {
  margin: 0;
  white-space: pre;
}

/* ===== Value Props Section ===== */
.value-props {
  padding: 96px 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  text-align: center;
  margin-bottom: 48px;
}

.value-props .card {
  padding: 40px 32px;
}
.value-props .card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.35;
}
.value-props .card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.9375rem;
}

.card-audience {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===== Demo Section ===== */
.demo-section {
  padding: 96px 0;
}

.demo-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}
.demo-section .demo-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 48px;
  font-size: 1.0625rem;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== Extensibility Section ===== */
.extensibility {
  padding: 96px 0;
}
.ext-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ext-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}
.ext-text p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 24px;
  font-size: 0.9375rem;
}
.ext-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ext-chip {
  display: inline-block;
  padding: 5px 14px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ext-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ext-layer {
  padding: 12px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.ext-layer:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.ext-layer-core {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  border-color: var(--border-strong);
}
.ext-layer-custom {
  border-style: dashed;
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(134, 249, 248, 0.04);
}

@media (max-width: 768px) {
  .extensibility { padding: 64px 0; }
  .ext-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== Projects Section ===== */
.projects-section {
  padding: 80px 0;
}
.projects-section .card {
  padding: 32px;
}
.projects-section .card-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.projects-section .card-footer {
  margin-top: auto;
  padding-top: 16px;
}

/* ===== APIs Teaser ===== */
.apis-teaser {
  padding: 80px 0;
  text-align: center;
}
.apis-teaser h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.apis-teaser .teaser-desc {
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: 1rem;
}
.pill-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pill-link {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.pill-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 64px 32px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

/* ===== Download Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.modal-overlay.visible .modal-card {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover {
  color: var(--text);
}
.modal-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}
.modal-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.modal-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 28px;
}
.modal-input-row {
  display: flex;
  gap: 8px;
}
.modal-input {
  flex: 1;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}
.modal-input:focus {
  outline: none;
  border-color: var(--accent);
}
.modal-msg {
  margin-top: 10px;
  font-size: 0.8125rem;
  min-height: 20px;
}
.modal-msg.success { color: #22c55e; }
.modal-msg.error { color: #ef4444; }
.modal-pricing-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color var(--transition);
}
.modal-pricing-link:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .modal-card { padding: 32px 24px; }
  .modal-input-row { flex-direction: column; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 16px 40px;
    min-height: auto;
    gap: 40px;
  }
  .hero-visual {
    order: 2;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-sub {
    font-size: 1rem;
  }

  .value-props { padding: 64px 0; }
  .demo-section { padding: 64px 0; }

  .stats-bar {
    flex-wrap: wrap;
    gap: 32px;
    padding: 32px 0;
  }
  .stat-divider {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .apis-teaser { padding: 48px 0; }
}

@media (max-width: 480px) {
  .hero {
    padding: 32px 16px 24px;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }

  .terminal-body {
    padding: 16px;
    font-size: 0.6875rem;
  }

  .stats-bar {
    gap: 24px;
  }
}
