/* VoiciMonAvis Design System - Inspired by Modern SaaS Design */

/* ===========================
   1. CSS Variables & Design Tokens
   =========================== */
:root {
  /* Brand Colors - Purple Palette */
  --vma-purple-50: #f5f3ff;
  --vma-purple-100: #ede9fe;
  --vma-purple-200: #ddd6fe;
  --vma-purple-300: #c4b5fd;
  --vma-purple-400: #a78bfa;
  --vma-purple-500: #8b5cf6;
  --vma-purple-600: #7c3aed;
  --vma-purple-700: #6d28d9;
  --vma-purple-800: #5b21b6;
  --vma-purple-900: #4c1d95;
  
  /* Neutral Colors */
  --vma-gray-50: #f9fafb;
  --vma-gray-100: #f3f4f6;
  --vma-gray-200: #e5e7eb;
  --vma-gray-300: #d1d5db;
  --vma-gray-400: #9ca3af;
  --vma-gray-500: #6b7280;
  --vma-gray-600: #4b5563;
  --vma-gray-700: #374151;
  --vma-gray-800: #1f2937;
  --vma-gray-900: #111827;
  
  /* Semantic Colors */
  --vma-success: #10b981;
  --vma-warning: #f59e0b;
  --vma-error: #ef4444;
  --vma-info: #3b82f6;
  
  /* Typography Scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  
  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 4rem);
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-purple: 0 20px 25px -5px rgba(139, 92, 246, 0.25);
  
  /* Animations */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   2. Base Styles & Reset
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--vma-gray-800);
  background-color: white;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--vma-gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin: 0;
  color: var(--vma-gray-600);
}

a {
  color: var(--vma-purple-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--vma-purple-700);
}

/* ===========================
   3. Utility Classes
   =========================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-padding {
  padding: var(--space-5xl) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--space-4xl) 0;
  }
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--vma-purple-600) 0%, var(--vma-purple-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Background Gradient */
.bg-gradient {
  background: linear-gradient(135deg, var(--vma-purple-600) 0%, var(--vma-purple-700) 100%);
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===========================
   4. Components
   =========================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Primary Button with Animated Border */
.btn-primary {
  background: var(--vma-purple-600);
  color: white;
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(90deg, var(--vma-purple-400), var(--vma-purple-600), var(--vma-purple-400));
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  animation: gradient-shift 3s ease infinite;
  z-index: -1;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--vma-purple-700);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--vma-purple-600);
  border: 2px solid var(--vma-purple-200);
}

.btn-secondary:hover {
  background: var(--vma-purple-50);
  border-color: var(--vma-purple-300);
  transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--vma-gray-600);
  border: none;
  padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
  background: var(--vma-gray-100);
  color: var(--vma-gray-800);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-lg);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--vma-gray-100);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--vma-purple-200);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--vma-purple-400), var(--vma-purple-600));
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.card:hover::before {
  transform: scaleX(1);
}

/* Feature Card */
.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--vma-gray-100);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-purple);
  border-color: var(--vma-purple-200);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--vma-purple-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--vma-purple-600);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--vma-purple-600);
  color: white;
  transform: scale(1.1);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--vma-purple-100);
  color: var(--vma-purple-700);
}

/* Input */
.input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-base);
  border: 2px solid var(--vma-gray-200);
  border-radius: var(--radius-md);
  background: white;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.input:focus {
  outline: none;
  border-color: var(--vma-purple-400);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* ===========================
   5. Animations
   =========================== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-slide-in {
  animation: slide-in 0.6s ease-out forwards;
}

/* ===========================
   6. Layout Components
   =========================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--vma-gray-600);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vma-gray-100);
  z-index: 1000;
  padding: var(--space-md) 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav-logo {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--vma-gray-900);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--vma-gray-600);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--vma-purple-600);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .nav-menu {
    display: none;
  }
}