/* ── Tokens ── */
:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --border: #1a1a1a;
  --border-light: #262626;
  --text: #ededed;
  --text-secondary: #888888;
  --text-tertiary: #555555;
  --accent: #ffffff;
  --green: #22c55e;
  --amber: #f59e0b;
  --purple: #a78bfa;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --max-w: 1100px;
  --transition: 150ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; }

.nav-logo {
  height: 49px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a:hover { color: var(--text); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.btn-nav:hover {
  background: var(--bg-card);
  border-color: var(--text-tertiary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
  background: var(--bg-card);
}

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

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #999999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
}

/* ── Code block ── */
.hero-code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-align: left;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}

.code-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.hero-code pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
}

.hero-code code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.c-gray { color: var(--text-tertiary); }
.c-green { color: var(--green); }
.c-amber { color: var(--amber); }
.c-purple { color: var(--purple); }
.c-cyan { color: #22d3ee; }

/* ── Providers ── */
.providers {
  padding: 64px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.providers-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.provider-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.provider-grid span {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: all var(--transition);
}

.provider-grid span:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ── Features ── */
.features {
  padding: 100px 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: var(--text-tertiary);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Install ── */
.install {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.install-steps {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.install-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 6px;
}

.step-code code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.step-alt {
  font-size: 12px;
  color: var(--text-tertiary);
}

.step-alt code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── Install one-liner ── */
.install-oneliner {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
}

.step-code-hero {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px 24px;
  margin-bottom: 10px;
}

.step-code-hero code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
}

.install-divider {
  max-width: 560px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.install-divider::before,
.install-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.install-divider span {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ── CTA ── */
.cta {
  padding: 80px 24px 100px;
}

.cta-card {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 64px 32px;
}

.cta-card h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 35px;
  width: auto;
  opacity: 0.6;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links a:hover { color: var(--text-secondary); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 120px 20px 60px; }

  .hero-actions { flex-direction: column; align-items: center; }

  .nav-links a:not(.btn-nav) { display: none; }

  .cta-actions { flex-direction: column; align-items: center; }

  .footer-inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .provider-grid span { font-size: 12px; padding: 6px 14px; }
}
