/* ═══════════════════════════════════════════════════════════════
   AstroAI Landing Page — Cosmic Dark Theme
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #07060b;
  --bg-secondary: #0e0d15;
  --bg-card: #13121c;
  --bg-card-hover: #1a1928;
  --border-subtle: rgba(139, 92, 246, 0.12);
  --border-hover: rgba(139, 92, 246, 0.3);

  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --secondary: #ec4899;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --container: 1200px;
  --font: 'Outfit', system-ui, -apple-system, sans-serif;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Decorative Orbs ──────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
  top: -150px; left: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 70%);
  top: 200px; right: -150px;
}
.orb-3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(236,72,153,0.08), transparent 70%);
  bottom: -200px; left: 30%;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(7, 6, 11, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-main); }

.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none; border: none;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.45);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #e67e22);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover {
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--primary-light);
}

.btn-sm { padding: 8px 20px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Section Commons ──────────────────────────────────────── */
section {
  position: relative;
  padding: 100px 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero .container {
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-visual {
  margin-top: 64px;
  position: relative;
}
.hero-visual img,
.hero-visual .hero-mockup {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glow), 0 20px 60px rgba(0,0,0,0.5);
}

/* ── Stats ────────────────────────────────────────────────── */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item .stat-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-main), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Features ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-icon.purple { background: rgba(139, 92, 246, 0.12); }
.feature-icon.amber  { background: rgba(245, 158, 11, 0.12); }
.feature-icon.pink   { background: rgba(236, 72, 153, 0.12); }
.feature-icon.teal   { background: rgba(20, 184, 166, 0.12); }
.feature-icon.blue   { background: rgba(59, 130, 246, 0.12); }
.feature-icon.green  { background: rgba(34, 197, 94, 0.12); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}
.step-number {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.step-connector {
  display: none;
}

/* ── AI Demo / Chat Preview ───────────────────────────────── */
.demo-section {
  background: var(--bg-secondary);
}
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}
.demo-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.demo-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.demo-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.demo-feature {
  display: flex;
  align-items: start;
  gap: 12px;
}
.demo-feature .check {
  width: 24px; height: 24px;
  min-width: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
  font-size: 0.75rem;
  color: #22c55e;
  margin-top: 2px;
}
.demo-feature span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Chat mockup */
.chat-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.chat-header {
  padding: 16px 20px;
  background: rgba(139, 92, 246, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.chat-header-info .chat-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.chat-header-info .chat-status {
  font-size: 0.72rem;
  color: #22c55e;
  display: flex; align-items: center; gap: 4px;
}
.chat-header-info .chat-status::before {
  content: '';
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
}
.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.6;
}
.chat-msg.user {
  align-self: flex-end;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--text-main);
}
.chat-msg.ai {
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.12);
  color: var(--text-muted);
}
.chat-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chat-tag {
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--primary-light);
  font-weight: 500;
}
.chat-input-mock {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.chat-input-mock .send-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.8rem;
  color: #fff;
  margin-left: auto;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-avatar.v1 { background: rgba(139, 92, 246, 0.15); color: var(--primary-light); }
.testimonial-avatar.v2 { background: rgba(245, 158, 11, 0.15); color: var(--accent-light); }
.testimonial-avatar.v3 { background: rgba(236, 72, 153, 0.15); color: var(--secondary); }
.testimonial-avatar.v4 { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.testimonial-avatar.v5 { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.testimonial-avatar.v6 { background: rgba(20, 184, 166, 0.15); color: #14b8a6; }

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.testimonial-location {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--border-hover); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font);
  width: 100%;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary-light); }
.faq-toggle {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  font-size: 1.1rem;
  color: var(--primary-light);
  transition: transform 0.3s, background 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: rgba(139, 92, 246, 0.2);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(245, 158, 11, 0.05));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(139,92,246,0.06), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(245,158,11,0.04), transparent 50%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-box p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: var(--border-hover);
  background: rgba(139, 92, 246, 0.08);
}

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(7, 6, 11, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .hero h1 { font-size: 2.2rem; }
  .hero-ctas { flex-direction: column; align-items: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .demo-layout { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .cta-box { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes float-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
