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

:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --card: #161620;
  --border: rgba(255,255,255,.08);
  --text: #e4e4e7;
  --text-dim: #9ca3af;
  --primary: #6366f1;
  --primary2: #a855f7;
  --grad: linear-gradient(135deg, #6366f1, #a855f7);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: all .25s ease; cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,.4); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Nav ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .3s ease; padding: 16px 0;
}
#nav.scrolled {
  background: rgba(10,10,15,.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 10px 0;
}
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-size: 14px; color: var(--text-dim); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35;
  animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: #6366f1; top: -10%; left: -5%; }
.orb-2 { width: 400px; height: 400px; background: #a855f7; bottom: -10%; right: -5%; animation-delay: -5s; }
.orb-3 { width: 350px; height: 350px; background: #ec4899; top: 40%; left: 50%; animation-delay: -10s; opacity: .2; }

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(.95); }
}

.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 0 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px; color: var(--text-dim); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 8px #22c55e; }

.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-sub { font-size: 18px; color: var(--text-dim); max-width: 580px; margin: 0 auto 36px; }

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-trust { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-trust > span { font-size: 13px; color: var(--text-dim); }
.trust-logos { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.trust-logos span { font-size: 14px; color: var(--text-dim); }

/* ===== Stats ===== */
.stats { padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-card { text-align: center; }
.stat-num { font-size: clamp(32px,5vw,52px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 14px; color: var(--text-dim); margin-top: 8px; }

/* ===== Sections ===== */
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary2);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px,4vw,40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--text-dim); max-width: 540px; margin: 0 auto; }

/* ===== Features ===== */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all .3s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.4); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(99,102,241,.12);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--text-dim); }

/* ===== How it works ===== */
.how { padding: 100px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: flex; align-items: stretch; gap: 16px; justify-content: center; }
.step {
  flex: 1; max-width: 300px; text-align: center; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 24px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff;
  font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-dim); }
.step-arrow { display: flex; align-items: center; font-size: 28px; color: var(--text-dim); }

/* ===== Pricing ===== */
.pricing { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; display: flex; flex-direction: column; position: relative; transition: all .3s ease;
}
.price-card:hover { border-color: rgba(255,255,255,.15); }
.price-card.featured {
  border-color: var(--primary); box-shadow: 0 0 40px rgba(99,102,241,.15);
  transform: scale(1.03);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 100px; white-space: nowrap;
}
.price-head { margin-bottom: 28px; }
.price-head h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.price { font-size: 40px; font-weight: 800; }
.price span { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.price-head p { font-size: 14px; color: var(--text-dim); margin-top: 8px; }
.price-features { flex: 1; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.price-features li { font-size: 14px; }
.price-features li.muted { color: #4b5563; }
.price-features li:not(.muted) { color: var(--text); }

/* ===== FAQ ===== */
.faq { padding: 100px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; padding: 20px 24px; background: none; border: none; color: var(--text);
  font-size: 16px; font-weight: 600; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; font-family: inherit;
}
.faq-icon { font-size: 22px; color: var(--text-dim); transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 20px; font-size: 15px; color: var(--text-dim); }
.faq-item.open .faq-a { max-height: 200px; }

/* ===== CTA Banner ===== */
.cta-banner { padding: 80px 0; }
.cta-content {
  text-align: center; background: var(--grad); border-radius: 24px; padding: 64px 32px;
  position: relative; overflow: hidden;
}
.cta-content::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='rgba(255,255,255,.08)' stroke-width='1'/%3E%3C/svg%3E");
}
.cta-content h2 { font-size: clamp(24px,4vw,36px); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-content p { font-size: 17px; opacity: .9; margin-bottom: 28px; position: relative; }
.cta-content .btn { position: relative; background: #fff; color: var(--primary); }
.cta-content .btn:hover { background: #f0f0f0; }

/* ===== Footer ===== */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: var(--text-dim); margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--text-dim); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg2); padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
}