/* Vici Professional Design System - Cohesive & Elite */
:root {
  /* Brand Colors - Exact iOS Match */
  --vici-primary: #771BF1;
  --vici-secondary: #5925E9;
  --vici-accent: #9E1DE3;
  --vici-gradient-primary: linear-gradient(135deg, #771BF1 0%, #5925E9 50%, #9E1DE3 100%);
  --vici-gradient-subtle: linear-gradient(135deg, rgba(119, 27, 241, 0.1) 0%, rgba(89, 37, 233, 0.05) 100%);
  
  /* Neutral Palette */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Typography Scale */
  --font-display: 'SF Pro Display', system-ui, -apple-system, sans-serif;
  --font-body: 'SF Pro Text', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  
  /* Spacing Scale (Consistent 8pt grid) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  
  /* Border Radius Scale */
  --radius-sm: 0.375rem;  /* 6px */
  --radius: 0.5rem;       /* 8px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* Shadow Scale */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Brand Shadows */
  --shadow-brand: 0 10px 25px -5px rgba(119, 27, 241, 0.2);
  --shadow-brand-lg: 0 20px 40px -10px rgba(119, 27, 241, 0.3);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-900);
  background: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography System */
.text-display-xl {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.text-display-lg {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-display-md {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.text-heading-xl {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.text-heading-lg {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.text-heading-md {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.text-body-xl {
  font-size: 1.25rem;
  line-height: 1.6;
}

.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
}

.text-body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-caption {
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Color Utilities */
.text-primary { color: var(--gray-900); }
.text-secondary { color: var(--gray-600); }
.text-muted { color: var(--gray-500); }
.text-brand { 
  background: var(--vici-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Grid System */
.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Flexbox Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Spacing Utilities */
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* Professional Card System */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-brand {
  border: 1px solid rgba(119, 27, 241, 0.2);
  box-shadow: var(--shadow-brand);
}

.card-brand:hover {
  box-shadow: var(--shadow-brand-lg);
}

/* Professional Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--vici-gradient-primary);
  color: white;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-lg);
}

.btn-secondary {
  background: white;
  color: var(--vici-primary);
  border: 1px solid var(--vici-primary);
}

.btn-secondary:hover {
  background: var(--vici-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
}

/* Professional Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 50;
  transition: all 0.2s;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.mobile-menu-toggle:hover {
  background: var(--gray-100);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.mobile-nav-content {
  padding: var(--space-4);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  color: var(--gray-600);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  margin-bottom: var(--space-2);
}

.mobile-nav-link:hover {
  background: var(--gray-50);
  color: var(--vici-primary);
}

.mobile-nav-cta {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.mobile-nav.open {
  display: block;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
}

.navbar-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--vici-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar-link {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.navbar-link:hover {
  color: var(--vici-primary);
}

.navbar-link.active {
  color: var(--vici-primary);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--vici-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

/* Professional Icon System */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-xl {
  width: 2rem;
  height: 2rem;
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.icon-container-brand {
  background: var(--vici-gradient-primary);
  color: white;
  box-shadow: var(--shadow-brand);
}

.icon-container-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
}

.icon-container-info {
  background: linear-gradient(135deg, var(--info), #1d4ed8);
  color: white;
}

.icon-container-warning {
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: white;
}

/* Professional Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.badge-brand {
  background: var(--vici-gradient-subtle);
  color: var(--vici-primary);
  border: 1px solid rgba(119, 27, 241, 0.2);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Professional Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-16);
}

.section-badge {
  margin-bottom: var(--space-6);
}

.section-title {
  margin-bottom: var(--space-6);
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Feature Grid System */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  padding: var(--space-8);
  text-align: center;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-lg);
}

.feature-title {
  margin-bottom: var(--space-4);
}

.feature-description {
  color: var(--gray-600);
  line-height: 1.7;
}

/* Two-Column Feature Layout */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.feature-content {
  max-width: 500px;
}

.feature-visual {
  position: relative;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--vici-primary);
  margin-bottom: var(--space-1);
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Professional List Styles */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.feature-list-item:last-child {
  margin-bottom: 0;
}

.feature-bullet {
  width: 6px;
  height: 6px;
  background: var(--vici-primary);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
}

/* Professional CTA Sections */
.cta-section {
  background: var(--vici-gradient-primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.05) 49%, rgba(255, 255, 255, 0.05) 51%, transparent 52%);
  background-size: 60px 60px;
}

.cta-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  margin-bottom: var(--space-6);
}

.cta-subtitle {
  opacity: 0.9;
  margin-bottom: var(--space-8);
}

/* Professional Footer */
.footer {
  background: var(--gray-900);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.footer-description {
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-section-title {
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer-copyright {
  color: var(--gray-500);
  font-size: 0.875rem;
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-800);
  margin-top: var(--space-8);
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out 0.4s forwards;
}

.animate-slide-up-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out 0.6s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .feature-section {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .text-display-xl { font-size: 3rem; }
  .text-display-lg { font-size: 2.5rem; }
  .text-display-md { font-size: 2rem; }
  
  .navbar-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .feature-section {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .text-display-xl { font-size: 2.5rem; }
  .text-display-lg { font-size: 2rem; }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
.btn:focus,
.navbar-link:focus {
  outline: 2px solid var(--vici-primary);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-none { max-width: none; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

/* Background Utilities */
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-white { background-color: white; }
.bg-brand { background: var(--vici-gradient-primary); }
.bg-brand-subtle { background: var(--vici-gradient-subtle); }