/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --bg-section-dark: #08080d;
  --border: #1e1e2e;
  --border-hover: #2e2e44;
  --text: #e4e4ed;
  --text-muted: #8888a0;
  --text-dim: #555566;
  --primary: #6c5ce7;
  --primary-hover: #7c6cf7;
  --primary-glow: rgba(108, 92, 231, 0.3);
  --accent: #00d2ff;
  --danger: #ff4757;
  --success: #2ed573;
  --warning: #ffa502;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 18px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  color: var(--text);
}

.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ===== Hero ===== */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  max-width: 900px; margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 60px; }
.hero-stats {
  display: flex; justify-content: center; gap: 60px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 32px; font-weight: 800; color: var(--text); }
.stat span { font-size: 13px; color: var(--text-muted); }

/* ===== Sections ===== */
.section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-dark {
  background: var(--bg-section-dark);
  max-width: 100%; padding-left: 24px; padding-right: 24px;
}
.section-dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 12px;
}
.section-desc {
  text-align: center; color: var(--text-muted);
  font-size: 16px; margin-bottom: 48px;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
  position: relative;
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.feature-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
}

/* ===== Pricing Toggle ===== */
.toggle-wrap {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 48px;
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 4px; width: fit-content; margin-left: auto; margin-right: auto;
  border: 1px solid var(--border);
}
.toggle-btn {
  padding: 8px 20px; border-radius: 6px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.2s;
}
.toggle-btn.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.save-badge {
  font-size: 11px; background: var(--success); color: #000;
  padding: 2px 6px; border-radius: 4px; font-weight: 700;
  margin-left: 4px; pointer-events: none;
}

/* ===== Pricing Cards ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.2s;
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 12px;
}
.pricing-header { text-align: center; margin-bottom: 28px; }
.pricing-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.price { margin-bottom: 8px; }
.price-amount { font-size: 48px; font-weight: 800; }
.price-period { font-size: 14px; color: var(--text-muted); }
.pricing-desc { font-size: 13px; color: var(--text-muted); }

.pricing-features {
  list-style: none; margin-bottom: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.pricing-features li {
  font-size: 14px; padding-left: 24px;
  position: relative;
}
.pricing-features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}
.pricing-features li.disabled {
  color: var(--text-dim);
}
.pricing-features li.disabled::before {
  content: '—'; color: var(--text-dim);
}

/* ===== Enterprise Banner ===== */
.enterprise-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.enterprise-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.enterprise-inner h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.enterprise-inner p { font-size: 14px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; cursor: pointer;
  font-weight: 600; font-size: 15px;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--text-muted); font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 24px 18px;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  gap: 60px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { max-width: 240px; }
.footer-brand .logo-icon { font-size: 20px; margin-right: 6px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; gap: 60px; }
.footer-links h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.footer-links a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim); text-align: center;
}

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 24px;
  box-shadow: var(--shadow);
  font-size: 14px; z-index: 200;
  transform: translateY(120%);
  transition: transform 0.3s ease;
}
.toast.show { transform: translateY(0); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 120px 16px 60px; }
  .hero-stats { gap: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 32px; }
  .enterprise-inner { flex-direction: column; text-align: center; }
}
