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

:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #64748b;
  --primary: #6366f1;
  --border: #e5e7eb;
  --green: #10b981;
  --radius: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.btn-outline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 13px !important;
}
.btn-outline:hover { background: var(--bg); }

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary {
  display: inline-block;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.hero { max-width: 1100px; margin: 0 auto; padding: 80px 24px 60px; text-align: center; }
.badge {
  display: inline-block;
  background: #eef2ff;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; }
.hero-code {
  max-width: 680px; margin: 0 auto; text-align: left;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px; overflow-x: auto;
}
.hero-code pre, .hero-code code { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #334155; line-height: 1.7; }
.code-comment { color: #94a3b8; }
.code-url { color: #6366f1; }
.code-str { color: #059669; }

.stats { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

.pricing { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.pricing h2, .features h2, .docs h2, .models-section h2 { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.subtitle { font-size: 16px; font-weight: 400; color: var(--muted); }

.pricing-table { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 32px; }
.pricing-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 12px 20px; background: #f8fafc; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.pricing-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 12px 20px; font-size: 14px; border-bottom: 1px solid var(--border); }
.pricing-row:last-child { border-bottom: none; }
.model-name { font-weight: 600; }
.pricing-loading { padding: 40px; text-align: center; color: var(--muted); }

.features { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

.docs { max-width: 700px; margin: 0 auto; padding: 60px 24px; }
.docs-content { margin-top: 32px; }
.doc-step { display: flex; gap: 20px; margin-bottom: 32px; }
.step-num { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.doc-step h3 { font-size: 16px; margin-bottom: 8px; }
.doc-step p { color: var(--muted); font-size: 14px; }
.doc-step pre { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 16px; overflow-x: auto; }
.doc-step code { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #334155; }

.models-section { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.provider-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.provider-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.provider-models { color: var(--muted); font-size: 13px; }

.cta { background: linear-gradient(135deg, #6366f1, #818cf8); color: #fff; text-align: center; padding: 80px 24px; }
.cta h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta p { opacity: 0.95; margin-bottom: 32px; font-size: 18px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--primary); }
.cta .btn-secondary { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }

.footer { background: #f8fafc; color: #94a3b8; padding: 48px 24px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-inner strong { color: #334155; display: block; margin-bottom: 12px; font-size: 14px; }
.footer-inner p, .footer-inner a { font-size: 13px; display: block; margin-bottom: 6px; color: #94a3b8; text-decoration: none; }
.footer-bottom { max-width: 900px; margin: 0 auto; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; text-align: center; }

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .stats-grid, .features-grid, .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
