:root {
  --brand: #165dff;
  --brand-hover: #0f4de6;
  --brand-soft: #eef2ff;
  --brand-line: #d9e5ff;
  --text-1: #1d2129;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-brand: #f0f5ff;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(22,93,255,0.08);
  --shadow-lg: 0 16px 40px rgba(22,93,255,0.10);
  --radius: 12px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 64px;
  color: var(--text-1);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(229,231,235,0.8);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong { font-size: 15px; font-weight: 700; color: var(--text-1); }
.brand-text small { font-size: 12px; color: var(--text-3); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.site-nav a:hover { color: var(--brand); }
.nav-cta {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 16px;
  border-radius: 8px;
  background: var(--brand) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(22,93,255,0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.nav-cta:hover { background: var(--brand-hover) !important; color: #fff !important; box-shadow: 0 4px 16px rgba(22,93,255,0.35); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text-1);
}

/* Hero */
.hero-section {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  padding: 56px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: center; gap: 56px;
}
.hero-kicker {
  margin: 0 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--brand);
}
.hero-copy h1 {
  margin: 0;
  font-size: 36px; font-weight: 800; line-height: 1.18;
  color: var(--text-1); letter-spacing: -0.02em;
}
.hero-lead {
  margin: 20px 0 0;
  font-size: 15px; color: var(--text-2); line-height: 1.7;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text-1); }
.btn-full { width: 100%; }
.pricing-features + .btn { margin-top: 20px; }

/* Hero diagram */
.api-card-stack {
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.api-card-top {
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--bg-brand);
  border: 1px solid var(--brand-line);
  text-align: center;
}
.api-card-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--brand);
  text-transform: uppercase;
}
.api-card-top strong { display: block; margin: 6px 0 4px; font-size: 18px; font-weight: 700; color: var(--text-1); }
.api-card-top p { margin: 0; font-size: 13px; color: var(--text-3); }
.api-branches { margin-top: 20px; display: grid; gap: 12px; }
.api-branch-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: 8px; background: var(--bg-alt);
  border: 1px solid var(--border);
}
.api-branch-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0; margin-top: 7px;
}
.api-branch-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-1); }
.api-branch-item p { margin: 3px 0 0; font-size: 12px; color: var(--text-3); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-brand { background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%); }

.section-head { margin-bottom: 48px; }
.section-head-center { text-align: center; }
.section-kicker {
  margin: 0 0 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--brand);
}
.section-kicker.light { color: var(--brand); }
.section-head h2 {
  margin: 0;
  font-size: 28px; font-weight: 700; color: var(--text-1); line-height: 1.25;
}
.section-divider {
  display: inline-block; width: 48px; height: 3px;
  margin-top: 16px; background: var(--brand); border-radius: 999px;
}

/* API Access block */
.api-access-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f5f8ff 0%, #eef2ff 100%);
  border: 1px solid var(--brand-line);
}
.api-access-info { display: grid; gap: 14px; flex: 1; }
.api-info-item { display: flex; align-items: baseline; gap: 16px; }
.api-info-label {
  font-size: 12px; font-weight: 600; color: var(--text-3);
  min-width: 72px; letter-spacing: 0.04em;
}
.api-info-code {
  font-size: 13px; font-weight: 600;
  background: #fff; color: var(--brand);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--brand-line);
  font-family: "Consolas", "Monaco", monospace;
}
.api-info-value { font-size: 14px; color: var(--text-2); }
.api-access-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

/* Price table */
.price-table-wrap { overflow-x: auto; }
.price-table {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.price-table-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 14px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.price-table-head span {
  font-size: 12px; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.04em;
}
.price-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.price-table-row:last-of-type { border-bottom: 0; }
.price-table-row:hover { background: var(--bg-alt); }
.price-table-row span { font-size: 14px; color: var(--text-2); }
.modelname, .price-table-row .model-name { font-weight: 600; color: var(--text-1) !important; }
.price-table-note {
  margin: 0; padding: 14px 24px;
  font-size: 12px; color: var(--text-3);
  border-top: 1px solid var(--border);
}

/* What is 通用API */
.what-is-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.what-is-text p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}
.what-is-text p:last-child { margin-bottom: 0; }
.what-is-text strong { color: var(--text-1); font-weight: 600; }
.what-is-points { display: grid; gap: 16px; }
.what-is-point {
  padding: 20px 22px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.what-is-point strong { display: block; font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.what-is-point p { margin: 0; font-size: 13px; color: var(--text-3); }
.what-is-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Model categories */
.model-categories { display: grid; gap: 24px; }
.model-group { }
.model-group h3 {
  margin: 0 0 12px;
  font-size: 14px; font-weight: 600; color: var(--text-1);
  letter-spacing: 0.02em;
}
.model-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.model-tag {
  padding: 5px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.model-tag:hover { border-color: var(--brand); color: var(--brand); }
.model-note {
  margin: 8px 0 0;
  font-size: 13px; color: var(--text-3);
}
.model-note a { color: var(--brand); text-decoration: underline; }
.model-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* Compare table */
.compare-table-wrap { overflow-x: auto; }
.compare-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.compare-table {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.compare-table-head {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  padding: 14px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.compare-table-head span { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 0.04em; }
.compare-table-head .col-brand { color: var(--brand); }
.compare-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.compare-row:last-child { border-bottom: 0; }
.compare-row:hover { background: var(--bg-alt); }
.compare-row span { font-size: 14px; color: var(--text-2); }
.compare-row span:first-child { font-weight: 500; color: var(--text-1); }
.cell-brand { color: var(--brand) !important; font-weight: 500 !important; }

/* Code examples */
.code-examples { }
.code-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.code-tab {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}
.code-tab:hover { border-color: var(--brand); color: var(--brand); }
.code-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.code-panel { display: none; }
.code-panel.active { display: block; }
.code-block {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: #0f1724;
  border: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #e2e8f0;
}
.code-block .code-comment { color: #64748b; }
.code-block .code-keyword { color: #7dd3fc; }
.code-block .code-string { color: #86efac; }
.code-block .code-step { color: #fbbf24; font-weight: 600; }
.code-tips {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.code-tips strong { color: var(--text-1); }
.code-tips code {
  padding: 2px 6px; border-radius: 4px;
  background: #fff; border: 1px solid var(--brand-line);
  font-size: 12px; color: var(--brand);
  font-family: "Consolas", "Monaco", monospace;
}
.code-tips a { color: var(--brand); text-decoration: underline; }
.code-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* API categories */
.api-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.api-category {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.api-category:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.api-category-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand);
}
.api-category h3 { margin: 16px 0 0; font-size: 17px; font-weight: 600; color: var(--text-1); }
.api-category-desc { margin: 10px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.api-feature-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.api-feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.check-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%; background: var(--brand-soft);
  position: relative;
}
.check-icon::after {
  content: "";
  position: absolute; top: 4px; left: 3px;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(-45deg);
}

/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pricing-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card-main {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  position: absolute; top: -1px; right: 24px;
  padding: 4px 12px; border-radius: 0 0 8px 8px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700;
}
.pricing-label {
  font-size: 12px; font-weight: 600; color: var(--brand); letter-spacing: 0.04em;
}
.pricing-card h3 { margin: 8px 0 0; font-size: 18px; font-weight: 700; color: var(--text-1); }
.pricing-desc { margin: 10px 0 0; font-size: 14px; color: var(--text-2); }
.pricing-features { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.pricing-features .check-icon { background: var(--brand-soft); }

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.why-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
}
.why-item h3 { margin: 16px 0 0; font-size: 16px; font-weight: 600; color: var(--text-1); }
.why-item p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.case-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-num {
  font-size: 12px; font-weight: 700; color: var(--brand);
  letter-spacing: 0.04em;
}
.case-card h3 { margin: 8px 0 0; font-size: 16px; font-weight: 600; color: var(--text-1); }
.case-card p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.cases-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* FAQ */
.faq-list { max-width: 800px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  padding: 20px 0;
  font-size: 15px; font-weight: 500; color: var(--text-1);
  cursor: pointer; list-style: none;
  position: relative; padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 20px;
  font-size: 20px; color: var(--brand); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0; padding: 0 0 18px;
  font-size: 14px; color: var(--text-2); line-height: 1.7;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.contact-copy h2 { margin: 0; font-size: 28px; font-weight: 700; color: var(--text-1); line-height: 1.25; }
.contact-copy p { margin: 16px 0 0; font-size: 15px; color: var(--text-2); line-height: 1.7; }
.contact-channels { margin-top: 28px; display: grid; gap: 14px; }
.contact-channel {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: 10px; background: #fff; border: 1px solid var(--border);
}
.channel-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px; background: var(--brand-soft); color: var(--brand);
}
.contact-channel small { font-size: 11px; color: var(--text-3); display: block; }
.contact-channel strong { font-size: 15px; font-weight: 600; color: var(--text-1); margin-top: 2px; display: block; }

.contact-step { padding-top: 48px; }

/* Floating CTA Bar */
.floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  padding: 12px 24px;
}
.floating-bar.is-visible { display: block; }
.floating-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.floating-bar span {
  font-size: 14px;
  color: var(--text-2);
}
.btn-floating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  min-height: 40px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(22,93,255,0.25);
}
.btn-floating:hover {
  background: var(--brand-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22,93,255,0.35);
}

/* Inline CTA in cards */
.btn-cta-inline {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 0 14px;
  min-height: 34px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-cta-inline:hover { background: #d9e5ff; color: var(--brand); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 36px 28px 28px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--border); }
.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
}
.modal-desc {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}
.modal-qr {
  margin: 20px auto 0;
  width: 240px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.modal-qr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--brand);
  text-decoration: underline;
}
.modal-link:hover { color: var(--brand-hover); }


.step-title { font-size: 13px; font-weight: 600; color: var(--text-3); margin: 0 0 20px; }
.step-list { display: grid; gap: 20px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700;
}
.step-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-1); }
.step-item p { margin: 4px 0 0; font-size: 13px; color: var(--text-3); }

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .api-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-step { padding-top: 0; }
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none; position: absolute;
    top: calc(100% + 8px); left: 20px; right: 20px;
    padding: 16px; flex-direction: column; align-items: flex-start; gap: 12px;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 15px; }
  .hero-section { padding: 40px 0 36px; }
  .hero-copy h1 { font-size: 28px; }
  .section { padding: 60px 0; }
  .api-categories,
  .pricing-cards,
  .why-grid,
  .cases-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
  .api-access-block { flex-direction: column; align-items: flex-start; }
  .api-access-actions { flex-direction: row; width: 100%; flex-wrap: wrap; }
  .api-access-actions .btn { flex: 1 1 160px; }
  .what-is-grid { grid-template-columns: 1fr; gap: 28px; }
  .compare-table-head,
  .compare-row { grid-template-columns: 120px 1fr 1fr; }
  .compare-table-head span, .compare-row span { font-size: 12px; }
  .code-tabs { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-right { align-items: flex-start; text-align: left; }
  .footer-filing { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Footer */
.site-footer {
  background: var(--text-1);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.footer-brand > p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 480px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }
.footer-copy { margin: 0; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-filing { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.footer-filing a { color: rgba(255,255,255,0.4); font-size: 12px; text-decoration: none; transition: color 0.2s; }
.footer-filing a:hover { color: rgba(255,255,255,0.8); }
.footer-filing span { color: rgba(255,255,255,0.3); font-size: 12px; }