:root {
  --bg: #0f0a1f;
  --bg-2: #1a1130;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dark: #5b21b6;
  --text: #f5f3ff;
  --text-muted: #b8b3cc;
  --card: #1e1538;
  --card-hover: #251a44;
  --border: #2d2150;
  --accent: #ec4899;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 10, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 20px 80px;
  background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.25), transparent 60%);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.blob-1 {
  width: 400px; height: 400px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.6), transparent 70%);
  animation: drift1 18s ease-in-out infinite;
}

.blob-2 {
  width: 350px; height: 350px;
  top: 40%; right: -120px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45), transparent 70%);
  animation: drift2 22s ease-in-out infinite;
}

.blob-3 {
  width: 320px; height: 320px;
  bottom: -80px; left: 30%;
  background: radial-gradient(circle, rgba(91, 33, 182, 0.55), transparent 70%);
  animation: drift3 20s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(120px, 80px) scale(1.15); }
  66%      { transform: translate(60px, 160px) scale(0.9); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-150px, -80px) scale(1.2); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(80px, -100px) scale(1.1); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.hero img.app-icon {
  width: 130px;
  height: 130px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.5);
  margin-bottom: 24px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--purple);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--purple-light);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin-bottom: 20px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--card);
  box-shadow: none;
}

/* Stats */
.stats {
  padding: 60px 20px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections */
section { padding: 90px 20px; }

.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  color: var(--purple-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.feature:hover {
  border-color: var(--purple);
  transform: translateY(-6px);
  background: var(--card-hover);
}

.feature:hover::before { transform: scaleX(1); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.1));
  border-radius: 14px;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature h3 { margin-bottom: 10px; font-size: 1.25rem; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* How it works */
.how-it-works { background: var(--bg-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  text-align: center;
  padding: 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 950px;
  margin: 0 auto;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
}

.price-card.featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12), var(--card));
  transform: scale(1.03);
}

.price-card:hover { transform: translateY(-4px); }
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.price-name {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-period {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
}

.price-features li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--purple-light);
  font-weight: 700;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--purple-light);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  color: var(--text-muted);
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.1));
  border-radius: 14px;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-card h3 { margin-bottom: 8px; }
.contact-card p, .contact-card a { color: var(--text-muted); font-size: 0.95rem; }
.contact-card a:hover { color: var(--purple-light); }

/* Legal pages */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px;
}

.legal h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--purple-light);
}

.legal h3 { font-size: 1.1rem; margin: 20px 0 8px; }

.legal p, .legal li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal ul { padding-left: 24px; margin-bottom: 16px; }

/* Footer */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { max-width: 320px; }

.footer-col h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--purple-light); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Mobile */
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-2);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 70px 20px 60px; }
  section { padding: 60px 20px; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
