:root {
  --bg: #080a08;
  --surface: #111611;
  --surface-elevated: #171e17;
  --border: rgba(139, 155, 105, 0.22);
  --border-gold: rgba(212, 175, 55, 0.42);
  --text: #eef2ee;
  --text-muted: #9da89d;
  --olive: #8b9b69;
  --gold: #d4af37;
  --gold-soft: #f3e5b5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 18% 0%, rgba(139, 155, 105, 0.1), transparent 45%),
              radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.07), transparent 42%),
              var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.api-container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

.api-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 10, 8, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.api-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.api-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.api-brand-title {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.api-brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.api-back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.api-back-link:hover {
  color: #fff;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--gold);
  color: #080a08;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d4af37, #b99324);
  color: #090b09 !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.22);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.34);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-soft) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 10px;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.16);
}

.api-hero {
  padding: 54px 0 36px;
}

.api-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive);
  margin-bottom: 6px;
}

.api-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
}

.api-claim {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0 0 14px;
}

.api-intro {
  max-width: 780px;
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0 0 28px;
}

.api-quick-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  max-width: 520px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
  font-weight: 600;
  font-size: 0.96rem;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.api-quick-link:hover {
  border-color: var(--gold);
  background: var(--surface-elevated);
  transform: translateX(3px);
}

.api-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  flex-shrink: 0;
}

.api-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.api-section h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: var(--gold);
}

.api-section-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.tier-card.featured {
  border-color: var(--border-gold);
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.06), var(--surface));
}

.tier-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(139, 155, 105, 0.16);
  color: var(--olive);
  margin-bottom: 10px;
}

.tier-card.featured .tier-badge {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-soft);
}

.tier-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  color: #fff;
}

.tier-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

.tier-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.89rem;
}

.tier-list li {
  margin-bottom: 7px;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.term-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.term-box h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: var(--gold-soft);
}

.term-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.get-started-box {
  background: linear-gradient(155deg, rgba(23, 30, 23, 0.95), rgba(14, 18, 14, 0.98));
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 30px;
}

.get-started-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.api-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .pricing-grid, .terms-grid {
    grid-template-columns: 1fr;
  }
  .api-header-inner {
    padding: 10px 0;
  }
}
