:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --purple: #7c3aed;
  --bg: #ffffff;
  --bg-dark: #0f0f23;
  --bg-light: #f8f9fc;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

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

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

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

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-container { display: flex; align-items: center; height: 64px; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 800; color: var(--text); }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(67,97,238,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--primary); background: #f0f5ff; }
.btn-download { background: linear-gradient(135deg, var(--primary), var(--purple)); color: #fff; }
.btn-download:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(67,97,238,0.4); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #f0f5ff 0%, #fff 100%);
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(67,97,238,0.1); color: var(--primary); font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 18px; color: var(--text-secondary); max-width: 640px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-secondary); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }
.section-light { background: var(--bg-light); }
.section-title { font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-subtitle { font-size: 17px; color: var(--text-secondary); text-align: center; max-width: 600px; margin: 0 auto 48px; }

/* Pain Points */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pain-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.pain-icon { font-size: 32px; margin-bottom: 12px; }
.pain-card h4 { margin-bottom: 4px; }
.pain-card p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Use Cases */
.usecase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usecase-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all 0.3s;
}
.usecase-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.usecase-card h3 { font-size: 16px; margin-bottom: 8px; }
.usecase-card p { font-size: 13px; color: var(--text-secondary); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; position: relative; transition: all 0.3s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.popular { border: 2px solid var(--primary); }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 12px; font-size: 12px; font-weight: 600;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 12px; }
.price { font-size: 42px; font-weight: 800; margin-bottom: 20px; color: var(--text); }
.price span { font-size: 16px; font-weight: 400; color: var(--text-secondary); }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-card li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid #f5f5f5; }
.pricing-card li::before { content: '✓'; color: var(--primary); font-weight: 700; margin-right: 8px; }

/* CTA */
.section-cta {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff; text-align: center; padding: 80px 0;
}
.section-cta h2 { font-size: 36px; margin-bottom: 12px; }
.section-cta p { font-size: 17px; opacity: 0.8; margin-bottom: 32px; }

/* Footer */
.footer { background: var(--bg-dark); color: #fff; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 13px; }

/* ===== Auth Pages ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0f5ff, #faf5ff);
  padding: 20px;
}
.auth-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 40px; width: 100%; max-width: 420px;
}
.auth-card h2 { font-size: 24px; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; transition: border-color 0.2s; outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,97,238,0.1); }
.code-row { display: flex; gap: 10px; }
.code-row .form-input { flex: 1; }
.code-row .btn { white-space: nowrap; flex-shrink: 0; }
.form-error { color: #ef4444; font-size: 13px; margin-top: 4px; display: none; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }
  .pain-grid, .features-grid, .usecase-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
