:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --bg-dark: #0a0a0a;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e5e5e7;
  --accent: #c8956a;
  --accent-hover: #b07f57;
  --green: #166534;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }

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

.centered { text-align: center; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 400;
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}
.nav a { color: var(--text-muted); transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.nav .btn { font-size: 14px; padding: 8px 16px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px auto 0;
  max-width: 800px;
  font-weight: 600;
}
.hero p.lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 24px auto 0;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 14px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* Section */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--bg-dark); color: #fff; }

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 16px;
}
h2.centered, .centered h2 { text-align: center; }
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  line-height: 1.55;
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.stat-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Model grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.model-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
}
.model-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.model-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.model-provider {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.model-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 12px 0;
  line-height: 1.5;
}
.model-price {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-family: var(--mono);
}
.model-price .in { color: var(--text); }
.model-price .out { color: var(--text-muted); }
.model-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  border-collapse: collapse;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
}
.pricing-table thead {
  background: var(--bg-alt);
}
.pricing-table th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.pricing-table tbody tr {
  border-top: 1px solid var(--border);
}
.pricing-table tbody tr:hover { background: var(--bg-alt); }
.pricing-table .model-cell {
  font-weight: 500;
  color: var(--text);
}
.pricing-table .price-cell {
  font-family: var(--mono);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pricing-table .savings {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.step code {
  display: block;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
}

/* Code block */
.code-block {
  background: var(--bg-dark);
  color: #e5e5e7;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}
.code-block .comment { color: #6b7280; }
.code-block .string { color: #a5d6a7; }
.code-block .key { color: #7dd3fc; }

/* Value props */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.value-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}
.value-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CTA */
.cta-section {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
  border-radius: 24px;
  margin: 80px auto;
  max-width: 1080px;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p {
  color: #a1a1a6;
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

/* Mobile */
@media (max-width: 768px) {
  .hero { padding: 60px 0 48px; }
  section { padding: 56px 0; }
  .nav { gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .pricing-table { font-size: 13px; }
  .pricing-table th, .pricing-table td { padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .cta-section { margin: 56px 16px; padding: 56px 24px; }
}
