/* ============================================
   VIRALCLIP PREMIUM STYLES
   Pixel-perfect recreation with PNG assets
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Color palette from reference image */
  --bg-gradient: radial-gradient(1200px 600px at 10% -10%, #efe7ff 0%, rgba(239, 231, 255, 0) 60%),
                 radial-gradient(900px 700px at 110% 10%, #ffe7f2 0%, rgba(255, 231, 242, 0) 55%),
                 #f7f3ff;
  --purple: #7f3af2;
  --purple-dark: #6b3bff;
  --pink: #ec4899;
  --pink-light: #ff6db6;
  --peach: #ffc6a4;
  
  /* Glass morphism */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.3);
  
  /* Shadows (deep, soft) */
  --shadow-deep: 0 40px 80px rgba(50, 30, 100, 0.25);
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  
  /* Spacing */
  --max-width: 1280px;
  --section-padding: 80px 64px;
  --card-radius: 24px;
  
  /* Animation timing */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-slow: 1.2s;
  --duration-medium: 0.8s;
  --duration-fast: 0.4s;
}

/* ============================================
   BASE RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-gradient);
  color: #1e1e2f;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 20px 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: #1e1e2f;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  transition: color var(--duration-fast) var(--ease-premium);
}

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

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-login {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
}

.nav-cta {
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--duration-fast) var(--ease-premium);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(127, 58, 242, 0.3);
}

/* ============================================
   HERO SECTION
   Layered PNGs with parallax and animations
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 64px 80px;
  overflow: hidden;
}

/* Background gradient */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-gradient);
}

/* PNG: Fog overlay (foreground layer) */
/* CRITICAL: max-width prevents overflow, absolute positioning constrained */
.hero-fog {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: auto;
  z-index: 3;
  opacity: 0.6;
  pointer-events: none;
}

/* PNG: Particle overlay (sparkles, glows) */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0.4;
  pointer-events: none;
}

/* PNG: Floating platform icons */
/* ANIMATION: Applied via .animate-float in animations.css */
/* Positioning uses % to maintain aspect ratios */
.float-icon {
  position: absolute;
  width: 88px;
  height: auto;
  aspect-ratio: 1;
  z-index: 4;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.float-ig {
  left: 6%;
  top: 55%;
}

.float-tt {
  right: 16%;
  top: 28%;
}

.float-yt {
  right: 6%;
  top: 52%;
}

/* Hero content (text, CTAs) */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  text-align: left;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #1e1e2f;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, #f59e0b, var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-subtitle strong {
  color: #1e1e2f;
  font-weight: 600;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--duration-fast) var(--ease-premium);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  box-shadow: 0 8px 20px rgba(127, 58, 242, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(127, 58, 242, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Platform badges */
.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-badge {
  padding: 8px 16px;
  background: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* PNG: Dashboard mockup */
/* Container constrains overflow, PNG scales within */
.hero-visual-container {
  position: absolute;
  right: 6%;
  bottom: 6%;
  width: 520px;
  max-width: 40vw;
  z-index: 5;
  /* Prevents PNG from overflowing viewport */
  overflow: visible;
}

.hero-dashboard {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: contain;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.2));
}

/* ============================================
   TRUST SECTION (Stats bar)
   ============================================ */
.trust {
  background: white;
  padding: 48px 64px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 60px;
}

.stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* ============================================
   PRODUCT PREVIEW SECTION
   Glass cards with icons
   ============================================ */
.product-preview {
  padding: var(--section-padding);
  position: relative;
}

.product-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 64px;
  color: #1e1e2f;
  letter-spacing: -0.02em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* Glass morphism cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-medium) var(--ease-premium);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
}

.product-card .card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e1e2f;
}

.product-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

/* ============================================
   STATS SECTION
   Large rounded glass cards
   ============================================ */
.stats {
  padding: var(--section-padding);
  position: relative;
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.stats-card {
  padding: 48px;
}

.stats-card .stats-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.stats-card h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1e1e2f;
}

.stats-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

/* ============================================
   FOOTER
   Cloud fade-out effect
   ============================================ */
.footer {
  position: relative;
  padding: 64px;
  text-align: center;
  overflow: hidden;
}

.footer-cloud-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--duration-fast) var(--ease-premium);
}

.footer-links a:hover {
  color: var(--purple);
}

/* ============================================
   RESPONSIVE RULES
   Desktop first, graceful mobile degradation
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 40px 60px;
  }
  
  .hero-visual-container {
    max-width: 50vw;
  }
  
  .product-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 24px;
  }
  
  .nav-container {
    padding: 0 24px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 100px 24px 40px;
    flex-direction: column;
    min-height: auto;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-platforms {
    justify-content: center;
  }
  
  .hero-visual-container {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
  }
  
  .float-icon {
    display: none;
  }
  
  .trust {
    padding: 40px 24px;
  }
  
  .trust-container {
    flex-direction: column;
    gap: 32px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
