/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #969FFF 0%, #5F6DF7 100%);
  --secondary-gradient: linear-gradient(135deg, #4A90E2 0%, #50E3C2 100%);
  --hero-bg-gradient: radial-gradient(circle at top right, #FFF1E6 0%, #FFF 50%, #FFF8F0 100%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(150, 159, 255, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(150, 159, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(150, 159, 255, 0); }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Hero Section */
.hero-section {
  position: relative;
  background: var(--hero-bg-gradient);
  overflow: hidden;
}

/* Background Pattern (Grid) */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  z-index: 0;
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(150, 159, 255, 0.4);
}

.btn-cta {
  background: var(--primary-gradient);
  color: white;
  animation: pulse-glow 2s infinite;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  animation: none;
  box-shadow: 0 15px 30px -5px rgba(150, 159, 255, 0.5);
}

/* Phone Mockup */
.mockup-container {
  position: relative;
  z-index: 10;
  max-width: 320px;
  margin: 0 auto;
}

.phone-mockup {
  position: relative;
  border-radius: 40px;
  background: #ffffff;
  border: 12px solid #1f2937;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    inset 0 0 0 2px #e5e7eb;
  overflow: hidden;
  aspect-ratio: 9/19.5;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #1f2937;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 20;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Mockup inner UI elements to make it look lively */
.mockup-header {
  height: 80px;
  background: var(--primary-gradient);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  margin-bottom: 20px;
}

.mockup-card {
  background: white;
  border-radius: 12px;
  margin: 10px 20px;
  height: 100px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
}

.mockup-line {
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  margin-bottom: 8px;
}

.mockup-line.w-1-2 { width: 50%; }
.mockup-line.w-3-4 { width: 75%; }
.mockup-line.w-1-3 { width: 33%; }
.mockup-line.primary { background: #969FFF; opacity: 0.3; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Gradient Text */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
