:root {
  --bg: #f7f7f5;
  --surface: #fff;
  --text: #111;
  --muted: #5c5c58;
  --border: #e7e7e1;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --soft: #eff6ff;
  --code: #151515;
  --code-text: #f5f5f5;
  --success: #157347;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 231, 225, 0.85);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  appearance: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}
.nav-links a { color: #444; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
}
.checkout-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f5c2c7;
  background: #fff5f5;
  color: #842029;
  font-size: 0.95rem;
  font-weight: 600;
}
.success-steps {
  margin: 22px 0 0;
  padding-left: 1.2rem;
  color: #4e4e49;
  max-width: 720px;
}
.success-steps li { margin: 10px 0; }
.success-steps code {
  font-size: 0.9em;
  background: #f0f0eb;
  border-radius: 6px;
  padding: 1px 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }

.hero { padding: 86px 0 66px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 780px; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.025em; }
.lead { font-size: 1.2rem; color: #4f4f4b; max-width: 720px; margin: 24px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.subnote { margin-top: 14px; color: var(--muted); font-size: 0.93rem; }
.trust-line {
  margin: 12px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.works-with {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.marketplace-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.mkt-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mkt-badge:hover {
  border-color: #2563eb;
  color: #2563eb;
}
.quick-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  counter-reset: step;
}
.quick-steps li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.quick-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quick-steps strong { color: var(--text); }
.quick-steps code {
  font-size: 0.88em;
  background: #f0f0eb;
  border-radius: 6px;
  padding: 1px 6px;
}
@media (max-width: 800px) {
  .quick-steps { grid-template-columns: 1fr; }
}

.terminal {
  background: var(--code);
  color: var(--code-text);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #2a2a2a;
}
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid #2d2d2d;
}
.dots { display: flex; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4a4a4a; }
.term-title { font-size: 0.78rem; color: #aaa; }
.copy-btn {
  appearance: none;
  border: 1px solid #3a3a3a;
  background: #222;
  color: #ddd;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 0.78rem;
  cursor: pointer;
}
.copy-btn:hover { background: #2d2d2d; }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.terminal pre {
  padding: 18px;
  font: 500 0.9rem/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.demo { padding: 44px 0 84px; }
.demo-carousel { margin-top: 30px; }
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.demo-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: 700 0.85rem/1 Inter, system-ui, sans-serif;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.demo-tab.is-active {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.demo-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}
.demo-slide { display: none; }
.demo-slide.is-active { display: block; animation: demoFade 0.35s ease; }
@keyframes demoFade {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 12px;
}
.demo-quote {
  font-size: 1.02rem;
  color: #393936;
  line-height: 1.65;
  flex: 1;
}
.md-box {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font: 500 0.86rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  max-height: min(420px, 55vh);
  overflow: auto;
  flex: 1;
}
.demo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #d4d4ce;
  cursor: pointer;
}
.demo-dot.is-active { background: var(--accent); }

.model-block {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid #dbe7ff;
  border-radius: 12px;
}
.model-block-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.model-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.model-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 7px 0;
  border-bottom: 1px solid #e4ecff;
  font-size: 0.92rem;
  color: var(--text);
}
.model-list li:last-child { border-bottom: 0; }
.model-list code {
  font-size: 0.84em;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}
.model-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #c7d7ff;
  border-radius: 999px;
  padding: 2px 7px;
}
.card .model-list { margin-top: 14px; }
.card .model-list li { border-bottom-color: var(--border); }

section { padding: 82px 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { font-size: 1.08rem; color: var(--muted); margin: 14px 0 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  box-sizing: border-box;
}
.card p { margin: 10px 0 0; color: var(--muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  white-space: nowrap;
}
.price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.05em; margin: 18px 0 4px; }
.price small { font-size: 0.95rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 26px; }
.feature-list li { padding: 8px 0; border-bottom: 1px solid #f0f0eb; }
.feature-list li::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 9px; }
.price-card .model-block { margin-bottom: 0; flex: 1; }
.price-card .feature-list:last-of-type { flex: 1; margin-bottom: 0; }
.price-card-actions {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card-actions .btn { width: 100%; text-align: center; box-sizing: border-box; }
.monthly-link {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  min-height: 1.4em;
}
.monthly-link--spacer {
  visibility: hidden;
  pointer-events: none;
  text-decoration: none;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.compare th:nth-child(n+2), .compare td:nth-child(n+2) { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: #fbfbf8; font-size: 0.9rem; }
.compare-vs th:nth-child(3),
.compare-vs td:nth-child(3) { background: var(--soft); }
.workflow-note {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}
.check { color: var(--success); font-weight: 900; }
.dash { color: #aaa; }

.faq { display: grid; gap: 12px; max-width: 860px; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
summary { cursor: pointer; font-weight: 800; letter-spacing: -0.015em; }
details p { color: var(--muted); margin: 12px 0 0; }

.band {
  background: #111;
  color: #fff;
  border-radius: 24px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.band p { color: #c8c8c8; margin: 12px 0 0; }
.band .btn { background: #fff; color: #111; border-color: #fff; white-space: nowrap; }

.site-footer {
  padding: 38px 0 46px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.site-footer__link { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }

.legal-page { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 40px; }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-page h2 { margin-top: 32px; }
.legal-page p, .legal-page li { color: #4e4e49; }
.legal-updated { color: var(--muted); margin-bottom: 1.5rem; }
.legal-back { margin-top: 2.5rem; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 850px) {
  .hero-grid, .demo-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .nav-links a:hover { background: var(--soft); }
  .nav-links a.btn {
    margin-top: 6px;
    justify-content: center;
  }
  .band { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .md-box { max-height: min(360px, 50vh); }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1120px); }
  .hero { padding-top: 42px; }
  section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .demo-tabs { gap: 6px; }
  .demo-tab { padding: 7px 12px; font-size: 0.8rem; }
  .md-box { max-height: min(320px, 45vh); font-size: 0.82rem; }
  .compare { font-size: 0.86rem; }
  .compare th, .compare td { padding: 11px 9px; }
}
