*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

code, pre {
  font-family: 'DM Mono', monospace;
}

/* ── Container ── */
.mkt-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Header ── */
.mkt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.mkt-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mkt-logo {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.mkt-logo em { color: var(--accent); font-style: normal; }

.mkt-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mkt-nav-link {
  color: var(--muted);
  font-size: .855rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s;
  white-space: nowrap;
}
.mkt-nav-link:hover { color: var(--text); }

.mkt-nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.btn-nav-signin {
  color: var(--muted);
  font-size: .855rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-nav-signin:hover { color: var(--text); border-color: var(--muted); }

.btn-nav-cta {
  background: var(--accent);
  color: #fff;
  font-size: .855rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 6px;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-nav-cta:hover { opacity: .88; }

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(79,142,247,.09) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  background: rgba(79,142,247,.1);
  border: 1px solid rgba(79,142,247,.25);
  border-radius: 20px;
  padding: 4px 13px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 22px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: .94rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  transition: opacity .15s;
  font-family: inherit;
}
.btn-primary:hover { opacity: .88; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .94rem;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* Hero code block */
.hero-code {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}

.hero-code-header {
  background: var(--mid);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-code-dots {
  display: flex;
  gap: 6px;
}
.hero-code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.hero-code-dots span:nth-child(1) { background: #FF5F57; }
.hero-code-dots span:nth-child(2) { background: #FEBC2E; }
.hero-code-dots span:nth-child(3) { background: #28C840; }

.hero-code-label {
  font-size: .72rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

.hero-code pre {
  background: var(--dark);
  padding: 20px 22px;
  font-size: .82rem;
  line-height: 1.65;
  overflow-x: auto;
  color: var(--text);
}

.c-comment { color: var(--muted); }
.c-key     { color: #79B8FF; }
.c-str     { color: #9ECE6A; }
.c-fn      { color: var(--accent); }
.c-kw      { color: #BB9AF7; }
.c-num     { color: var(--gold); }

/* ── Section common ── */
.mkt-section {
  padding: 80px 0;
}

.mkt-section + .mkt-section {
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: .95rem;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  transition: border-color .18s;
}
.feature-card:hover { border-color: rgba(79,142,247,.4); }

.feature-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 16px;
}

.feature-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Endpoints ── */
.endpoint-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ep-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ep-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--mid);
  border-bottom: 1px solid var(--border);
}

.ep-group-icon {
  font-size: 1rem;
  line-height: 1;
}

.ep-group-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.ep-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-size: .855rem;
}
.ep-row:last-child { border-bottom: none; }

.ep-method {
  font-size: .65rem;
  font-weight: 600;
  font-family: 'DM Mono', monospace;
  background: rgba(79,142,247,.12);
  color: var(--accent);
  border: 1px solid rgba(79,142,247,.25);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.ep-path {
  font-family: 'DM Mono', monospace;
  font-size: .8rem;
  color: var(--text);
}

.ep-desc {
  color: var(--muted);
  font-size: .82rem;
}

.ep-credits {
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--green);
  background: rgba(76,175,130,.1);
  border: 1px solid rgba(76,175,130,.22);
  border-radius: 4px;
  padding: 2px 8px;
}
.ep-credits--mid  { color: var(--gold);  background: rgba(200,164,90,.1);  border-color: rgba(200,164,90,.22); }
.ep-credits--high { color: var(--red);   background: rgba(207,102,121,.1); border-color: rgba(207,102,121,.22); }

@media (max-width: 640px) {
  .ep-row { grid-template-columns: auto 1fr auto; }
  .ep-desc { display: none; }
}

/* ── Pricing ── */
.pricing-wrap {
  display: flex;
  justify-content: center;
}

.pricing-card {
  background: var(--card);
  border: 1px solid rgba(79,142,247,.3);
  border-radius: 16px;
  padding: 40px 44px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(79,142,247,.08), 0 24px 48px rgba(0,0,0,.3);
}

.pricing-plan {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
}

.pricing-period {
  font-size: .9rem;
  color: var(--muted);
  padding-bottom: 6px;
}

.pricing-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}

.pricing-check {
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: 8px;
  transition: opacity .15s;
  font-family: inherit;
}
.pricing-cta:hover { opacity: .88; }

.pricing-note {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ── Quick start ── */
.quickstart-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.qs-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
}

.qs-num {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}

.qs-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.qs-desc {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
}

.qs-code {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.qs-code-header {
  background: var(--mid);
  border-bottom: 1px solid var(--border);
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

.qs-code pre {
  background: var(--dark);
  padding: 18px 20px;
  font-size: .81rem;
  line-height: 1.65;
  overflow-x: auto;
  color: var(--text);
}

/* ── Footer ── */
.mkt-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 40px;
  margin-top: 80px;
}

.mkt-footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.footer-logo em { color: var(--accent); font-style: normal; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: .82rem;
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); }

.footer-note {
  font-size: .78rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .mkt-section { padding: 56px 0; }
  .mkt-nav .mkt-nav-link { display: none; }
  .mkt-nav-divider { display: none; }
  .hero-code { display: none; }
  .pricing-card { padding: 28px 22px; }
  .mkt-footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
