/* ── AstroVeda Website Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Custom Properties ── */
:root {
  --bg-primary: #0A0A1A;
  --bg-secondary: #141428;
  --bg-card: #1A1A35;
  --purple: #8B6FF0;
  --purple-light: #A78BFA;
  --gold: #D4AF37;
  --gold-light: #F0D060;
  --text-primary: #F0F0F5;
  --text-secondary: #A0A0B8;
  --text-muted: #6B6B80;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1140px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--purple); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }

/* ── Utilities ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(139,111,240,.4); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--purple); color: var(--purple-light); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #0A0A1A; }
.btn-gold:hover { box-shadow: 0 8px 30px rgba(212,175,55,.4); color: #0A0A1A; }

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,26,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,111,240,.1);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.logo img { width: 32px; height: 32px; }
.logo span { color: var(--purple); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text-primary); }

.nav-cta.btn-primary {
  padding: 10px 24px; font-size: .85rem;
  background: linear-gradient(135deg, #8B6FF0, #A78BFA);
  color: #fff;
  box-shadow: 0 0 20px rgba(139,111,240,.5);
}
.nav-cta.btn-primary:hover {
  box-shadow: 0 0 28px rgba(139,111,240,.7);
  color: #fff;
}

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text-primary);
  margin: 5px 0; transition: .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  padding: 140px 0 80px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
/* Starfield background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(167,139,250,.8), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 20% 80%, rgba(212,175,55,.6), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 60% 90%, rgba(139,111,240,.5), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: .6; } 100% { opacity: 1; } }

.hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 48px;
}
.hero-text { flex: 1; }
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--purple); }
.hero h1 .gold { color: var(--gold); }
.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Phone mockup */
.phone-mockup {
  width: 260px; flex-shrink: 0;
  border: 3px solid #333;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(139,111,240,.2);
}
.hero .phone-mockup { width: 280px; }
.phone-mockup img { width: 100%; display: block; }

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(139,111,240,.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(139,111,240,.15);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: .9rem; }
.feature-card .phone-mockup {
  width: 100%; max-width: 280px;
  margin: 20px auto 0;
  border-radius: 24px;
}

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.step-number {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  margin: 0 auto 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-secondary); font-size: .9rem; }

/* ── Premium ── */
.premium {
  background: var(--bg-secondary);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.premium h2 { color: var(--gold); }
.premium-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
  text-align: left;
}
.premium-benefits li {
  padding: 12px 16px;
  background: rgba(212,175,55,.08);
  border-radius: var(--radius);
  color: var(--text-secondary);
}
.premium-benefits li::before {
  content: '✦ ';
  color: var(--gold);
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(139,111,240,.1);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text-secondary); font-size: .9rem; margin-bottom: 16px; font-style: italic; }
.testimonial-card .author { font-weight: 600; font-size: .85rem; color: var(--text-primary); }

/* ── Download CTA ── */
.download-cta {
  text-align: center;
  padding: 80px 0;
}
.download-cta h2 { margin-bottom: 16px; }
.download-cta p { color: var(--text-secondary); margin-bottom: 32px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(139,111,240,.1);
  padding: 40px 0;
  text-align: center;
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer .copyright { color: var(--text-muted); font-size: .8rem; margin-bottom: 8px; }
.footer .disclaimer { color: var(--text-muted); font-size: .75rem; max-width: 600px; margin: 0 auto; }

/* ── Legal Pages ── */
.legal {
  padding: 100px 0 60px;
  max-width: 780px;
  margin: 0 auto;
}
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .last-updated { color: var(--text-muted); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin-top: 36px; margin-bottom: 12px; color: var(--purple-light); }
.legal h3 { font-size: 1.1rem; margin-top: 20px; margin-bottom: 8px; }
.legal p { color: var(--text-secondary); margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin-bottom: 12px; }
.legal ul li { color: var(--text-secondary); margin-bottom: 6px; list-style: disc; }
.legal strong { color: var(--text-primary); }

/* ── Support / FAQ ── */
.support-contact {
  text-align: center;
  margin-bottom: 48px;
}
.support-contact a { font-size: 1.1rem; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(139,111,240,.1);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none; border: none; color: var(--text-primary);
  padding: 18px 24px;
  font-size: 1rem; font-weight: 600; font-family: 'Space Grotesk', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--purple); transition: transform .3s; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: .9rem; line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 18px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(10,10,26,.97);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a { padding: 16px 24px; display: block; border-bottom: 1px solid rgba(139,111,240,.08); }
  .hamburger { display: block; }
  .hero-content { flex-direction: column; text-align: center; }
  .hero-text { text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero .phone-mockup { width: 240px; }
  .features-grid, .testimonials-grid, .steps { grid-template-columns: 1fr; }
  .premium { padding: 32px 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 110px 0 56px; }
}
