@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap");

* {
  font-family: "Inter", "Poppins", sans-serif;
}

:root {
  /* Primary Colors - Purple/Indigo */
  --primary-purple: #7c3aed;
  --primary-purple-hover: #6d28d9;
  --primary-indigo: #4f46e5;
  --primary-indigo-hover: #4338ca;

  /* Secondary Colors - Blue */
  --primary-blue: #3b82f6;
  --primary-blue-hover: #2563eb;

  /* Success - Green/Emerald */
  --success-green: #10b981;
  --success-emerald: #059669;

  /* Text Colors */
  --dark-text: #111827;
  --medium-text: #4b5563;
  --light-text: #6b7280;

  /* Background Colors */
  --bg-gray-50: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --bg-gray-800: #1f2937;
  --bg-gray-900: #111827;
}

/* Gradient Background - Modern Purple Theme */
.gradient-bg {
  background: linear-gradient(
    135deg,
    #faf5ff 0%,
    #f3e8ff 25%,
    #e9d5ff 50%,
    #ddd6fe 75%,
    #c4b5fd 100%
  );
  position: relative;
}

/* Subtle grid overlay */
.gradient-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle at 2px 2px,
    rgba(124, 58, 237, 0.03) 1px,
    transparent 0
  );
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Glass effect for header */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-indigo) 100%
  );
  color: white;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-indigo) 0%,
    var(--primary-purple-hover) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  border: 2px solid var(--primary-purple);
  color: var(--primary-purple);
  font-weight: 600;
  transition: all 0.3s ease;
  background: white;
}

.btn-secondary:hover {
  background: var(--primary-purple);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.25);
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* Floating decorative elements */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-indigo) 100%
  );
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-indigo) 100%
  );
  bottom: -50px;
  left: -50px;
  animation-delay: 2s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--success-green) 0%,
    var(--success-emerald) 100%
  );
  top: 50%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(-15px) rotate(240deg);
  }
}

/* Dashboard Image Container - Enhanced Browser Mockup */
.dashboard-container {
  position: relative;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.dashboard-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(124, 58, 237, 0.2),
    0 20px 40px rgba(124, 58, 237, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 2px solid rgba(124, 58, 237, 0.1);
  transform: rotateY(-5deg) rotateX(5deg);
}

.dashboard-wrapper:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
  box-shadow: 0 50px 100px rgba(124, 58, 237, 0.25),
    0 25px 50px rgba(124, 58, 237, 0.2), 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Browser Chrome */
.browser-chrome {
  position: relative;
  height: 48px;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 2;
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #27c93f;
}

.browser-url {
  flex: 1;
  margin-left: 16px;
  height: 28px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  color: var(--light-text);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* Stats Badge */
.stats-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
  text-align: center;
}

.stats-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

/* Feature Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(79, 70, 229, 0.1) 100%
  );
  color: var(--primary-purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Scroll Animation Styles */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-animate-fade {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.scroll-animate-fade.animate-in {
  opacity: 1;
}

.scroll-animate-slide-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-wrapper {
    transform: none;
  }

  .shape-1,
  .shape-2,
  .shape-3 {
    display: none;
  }
  
  /* Improve text sizes on mobile */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }
  
  /* Better spacing on mobile */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Stats grid responsive */
  .stats-badge {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    min-width: 140px;
  }
  
  /* Better card spacing on mobile */
  .grid {
    gap: 1rem !important;
  }
}

@media (max-width: 640px) {
  /* Stack grids on small mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Adjust button sizes */
  .btn-primary, .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile menu sidebar */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(124, 58, 237, 0.15);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(124, 58, 237, 0.15);
}

.mobile-menu-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
  flex-shrink: 0;
}

.mobile-menu-close-btn:hover {
  background: var(--primary-purple);
  transform: rotate(90deg);
}

.mobile-menu-close-btn:hover svg {
  color: white;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu nav a {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.mobile-menu nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(8px);
}

.mobile-menu nav .btn-primary {
  margin-top: 1.5rem;
  text-align: center;
}

.mobile-menu-item {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-item svg {
  flex-shrink: 0;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.mobile-menu-item:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-indigo) 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--primary-purple-hover) 100%);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }
}