/* ================================================
   MOLLYRA AI - Component Styles
   ================================================ */

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: var(--space-md) 0; background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-default); transition: var(--transition-base); }
.header.scrolled { padding: var(--space-sm) 0; background: rgba(10, 10, 15, 0.95); }
.header-container { display: flex; align-items: center; justify-content: space-between; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }

.logo { display: flex; align-items: center; gap: var(--space-sm); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.logo-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--purple-primary) 0%, var(--neon-pink) 100%); border-radius: var(--radius-md); box-shadow: 0 0 20px var(--purple-primary-glow); }
.logo-icon svg { width: 24px; height: 24px; fill: var(--text-primary); }
.logo-text { background: linear-gradient(135deg, var(--text-primary) 0%, var(--purple-primary-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav-list { display: flex; align-items: center; gap: var(--space-lg); list-style: none; }
.nav-link { position: relative; padding: var(--space-sm) 0; font-size: 0.9375rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: var(--transition-fast); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--purple-primary), var(--neon-pink)); transition: var(--transition-base); }
.nav-link:hover, .nav-link.active { color: var(--text-primary); text-shadow: var(--neon-glow-soft); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: var(--space-sm); background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition-fast); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: var(--space-4xl) 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-lg); margin-bottom: var(--space-xl); background: var(--bg-glass); border: 1px solid var(--border-default); border-radius: var(--radius-full); font-size: 0.875rem; color: var(--text-secondary); }
.hero-badge-dot { width: 8px; height: 8px; background: var(--neon-cyan); border-radius: 50%; animation: pulse-glow 2s infinite; }
.hero h1 { margin-bottom: var(--space-lg); font-size: 5rem; line-height: 1.1; }
.hero-description { max-width: 600px; margin: 0 auto var(--space-xl); font-size: 1.25rem; color: var(--text-secondary); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: var(--space-3xl); margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: 1px solid var(--border-default); }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 2.5rem; font-weight: 700; background: linear-gradient(135deg, var(--purple-primary-light) 0%, var(--neon-cyan) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: var(--space-xs); }

.features { position: relative; padding: var(--space-4xl) 0; }
.features-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-3xl); }
.features-header h2 { margin-bottom: var(--space-md); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-xl); }

.feature-card { padding: var(--space-xl); background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); transition: var(--transition-base); }
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-neon); }
.feature-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-muted) 100%); border-radius: var(--radius-md); margin-bottom: var(--space-lg); box-shadow: 0 0 20px var(--purple-primary-glow); }
.feature-icon svg { width: 28px; height: 28px; stroke: var(--text-primary); fill: none; stroke-width: 2; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.feature-card p { font-size: 0.9375rem; color: var(--text-muted); }

.how-it-works { position: relative; padding: var(--space-4xl) 0; background: var(--bg-dark-secondary); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-xl); margin-top: var(--space-3xl); }
.step-card { position: relative; padding: var(--space-xl); text-align: center; }
.step-number { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-lg); font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, var(--purple-primary) 0%, var(--neon-pink) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; border: 2px solid var(--border-default); border-radius: var(--radius-full); }
.step-card h3 { margin-bottom: var(--space-sm); }
.step-card p { font-size: 0.9375rem; color: var(--text-muted); }

.testimonials { position: relative; padding: var(--space-4xl) 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: var(--space-xl); }
.testimonial-card { padding: var(--space-xl); background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); transition: var(--transition-base); }
.testimonial-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-neon); }
.testimonial-content { font-size: 1.0625rem; color: var(--text-secondary); margin-bottom: var(--space-lg); line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--purple-primary) 0%, var(--neon-pink) 100%); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--text-primary); }
.testimonial-info h4 { font-size: 1rem; color: var(--text-primary); }
.testimonial-info p { font-size: 0.875rem; color: var(--text-muted); }

.cta { position: relative; padding: var(--space-4xl) 0; background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%); overflow: hidden; }
.cta-content { position: relative; z-index: 10; text-align: center; max-width: 700px; margin: 0 auto; }
.cta h2 { margin-bottom: var(--space-md); }
.cta p { max-width: 500px; margin: 0 auto var(--space-xl); font-size: 1.125rem; }
.cta-actions { display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }

.footer { position: relative; padding: var(--space-3xl) 0 var(--space-xl); background: var(--bg-dark); border-top: 1px solid var(--border-default); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
.footer-brand { max-width: 300px; }
.footer-brand p { margin-top: var(--space-md); font-size: 0.9375rem; color: var(--text-muted); }
.footer-social { display: flex; gap: var(--space-md); margin-top: var(--space-lg); }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-dark-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-full); color: var(--text-secondary); transition: var(--transition-fast); }
.footer-social a:hover { border-color: var(--purple-primary); color: var(--purple-primary-light); box-shadow: var(--neon-glow-medium); }
.footer-column h4 { font-size: 1rem; color: var(--text-primary); margin-bottom: var(--space-lg); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a { font-size: 0.9375rem; color: var(--text-muted); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--purple-primary-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-xl); border-top: 1px solid var(--border-default); }
.footer-bottom p { font-size: 0.875rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a { font-size: 0.875rem; color: var(--text-muted); }

.page-header { position: relative; padding: calc(var(--space-4xl) + 60px) 0 var(--space-3xl); text-align: center; background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%); }
.page-header h1 { margin-bottom: var(--space-md); }
.page-header p { max-width: 600px; margin: 0 auto; font-size: 1.125rem; }
.breadcrumb { display: flex; justify-content: center; gap: var(--space-sm); margin-bottom: var(--space-lg); font-size: 0.875rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text-muted); }

#three-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.loader-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--bg-dark); transition: opacity 0.5s ease, visibility 0.5s ease; }
.loader-overlay.hidden { opacity: 0; visibility: hidden; }
.loader { width: 60px; height: 60px; border: 3px solid var(--border-default); border-top-color: var(--purple-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--purple-primary); color: var(--text-primary); border: none; border-radius: var(--radius-full); cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition-base); box-shadow: var(--shadow-neon); z-index: 100; }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-4px); box-shadow: var(--neon-glow-strong); }

.toast-container { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--bg-dark-tertiary); color: var(--text-primary); padding: 1rem 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--border-default); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem; transform: translateY(100px); opacity: 0; transition: var(--transition-base); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-color: var(--neon-cyan); }
.toast-error { border-color: #ef4444; }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.25rem; }

@media (max-width: 1023px) {
  .nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; flex-direction: column; align-items: flex-start; padding: 5rem 2rem 2rem; background: var(--bg-dark); border-left: 1px solid var(--border-default); transition: var(--transition-base); z-index: 300; }
  .nav.active { right: 0; }
  .nav-list { flex-direction: column; align-items: flex-start; width: 100%; gap: var(--space-md); }
  .nav-actions { flex-direction: column; width: 100%; margin-top: var(--space-lg); }
  .mobile-toggle { display: flex; z-index: 310; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl); }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}

@media (max-width: 767px) {
  :root { --container-padding: 1rem; --space-4xl: 3rem; --space-3xl: 2rem; --space-2xl: 1.5rem; }
  h1 { font-size: 2rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.25rem; }
  .hero h1 { font-size: 3.5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: var(--space-lg); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
