:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --text: #111827;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --bg-dark: #0f172a;
  --border: #e5e7eb;
  --code-bg: #1e293b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

/* Navigation */
.nav {
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

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

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: var(--primary-dark);
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--primary);
}

.subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-demo {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin: 48px 0;
  flex-wrap: wrap;
}

.code-example, .code-result {
  background: var(--code-bg);
  border-radius: 12px;
  padding: 24px;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  text-align: left;
}

.code-example pre, .code-result pre {
  font-size: 13px;
  line-height: 1.7;
  color: #e2e8f0;
}

.code-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.code-result pre {
  color: var(--primary);
}

.arrow {
  font-size: 24px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid var(--border);
  display: inline-block;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text);
}

.trust-badge {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 80px 0;
}

.features h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
  font-weight: 700;
}

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

.feature {
  padding: 28px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.feature:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature p {
  color: var(--text-light);
  font-size: 14px;
}

/* Use Cases */
.use-cases {
  background: var(--bg-dark);
  padding: 80px 0;
  color: white;
}

.use-cases h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.use-case {
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.use-case h4 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.use-case p {
  color: #9ca3af;
  font-size: 13px;
}

/* Pricing */
.pricing {
  padding: 80px 0;
  background: var(--bg-light);
}

.pricing h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 12px;
}

.pricing-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.price {
  font-size: 44px;
  font-weight: 800;
  color: var(--text);
  margin: 12px 0;
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--primary);
  display: block;
  text-align: center;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.pricing-note {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Docs */
.docs {
  padding: 80px 0;
}

.docs h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
}

.docs-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.code-block {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  background: #0f172a;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 13px;
  border-bottom: 1px solid #334155;
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.copy-btn:hover {
  background: var(--primary-dark);
}

.code-block pre {
  padding: 20px;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

.docs-endpoints h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.endpoint {
  background: var(--bg-light);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid var(--primary);
}

.endpoint code {
  background: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--primary);
  font-size: 13px;
}

.endpoint p {
  margin-top: 8px;
  color: var(--text-light);
  font-size: 14px;
}

/* CTA */
.cta {
  background: var(--primary);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.cta p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta .btn-secondary {
  border-color: white;
  color: white;
}

.cta .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.cta-note {
  margin-top: 24px;
  opacity: 0.8;
  font-size: 14px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #9ca3af;
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  max-width: 280px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .docs-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .subtitle {
    font-size: 17px;
  }
  
  .hero-demo {
    flex-direction: column;
    align-items: center;
  }
  
  .arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-cta, .cta-buttons {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
