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

:root {
  --orange: #f6821f;
  --orange-dark: #d96f0f;
  --navy: #1a1a2e;
  --navy-mid: #2a2a3d;
  --surface: #f7f8fc;
  --text: #1a1a2e;
  --muted: #6b7280;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
}

/* ── Utilities ──────────────────────────────────────── */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1.5rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  background: rgba(246,130,31,0.12);
  color: var(--orange);
  border: 1px solid rgba(246,130,31,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.18s ease;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--ghost {
  color: var(--muted);
  background: transparent;
}
.btn--ghost:hover { color: var(--navy); }

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,248,252,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin-inline: auto;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--navy); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, #fff 0%, var(--surface) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero__social-proof {
  font-size: 0.85rem;
  color: var(--muted);
}
.hero__social-proof strong { color: var(--navy); }

.hero__mockup {
  position: relative;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 560 / 380;
}

.mockup-svg { width: 100%; height: auto; display: block; border-radius: 16px; }

/* ── Features ───────────────────────────────────────── */
.features {
  padding: 5rem 0;
  background: #fff;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  border: 1px solid #eaecf0;
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.feature-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(246,130,31,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Pricing ────────────────────────────────────────── */
.pricing {
  padding: 5rem 0;
  background: var(--surface);
}

.pricing__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing__card {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.pricing__card--pro {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(246,130,31,0.12);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }

.plan-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

/* ── API Demo ───────────────────────────────────────── */
.api-demo {
  padding: 5rem 0;
  background: var(--navy);
  color: #fff;
}

.api-demo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.api-demo .badge {
  background: rgba(246,130,31,0.2);
  border-color: rgba(246,130,31,0.4);
}

.api-demo__copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.api-demo__copy p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

code {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.1em 0.45em;
  font-size: 0.88em;
  color: #f6821f;
}

.api-demo__terminal {
  background: #0d0d1a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.terminal-chrome {
  background: #1e1e2e;
  padding: 0.65rem 1rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.terminal-chrome span {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-chrome span:nth-child(1) { background: #ff5f57; }
.terminal-chrome span:nth-child(2) { background: #febc2e; }
.terminal-chrome span:nth-child(3) { background: #28c840; }

.response {
  padding: 1.25rem 1.5rem;
  color: #a8ff78;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 120px;
  line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer .nav__logo { color: #fff; }

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__inner,
  .api-demo__inner { grid-template-columns: 1fr; }
  .hero__mockup { order: -1; }
  .features__grid,
  .pricing__inner { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
