/* iOS Color Palette Variables */
:root {
  /* Light Theme */
  --primary: #007AFF;
  --primary-hover: #0056CC;
  --primary-disabled: #80BDFF;
  --secondary: #007AFF;
  --accent: #80BDFF;
  
  --background: #FAFAFA;
  --surface: #FFFFFF;
  --hover-surface: #F5F5F5;
  
  --success: #28A745;
  --warning: #FFC107;
  --error: #DC3545;
  
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-disabled: #9CA3AF;
  
  --border: #E5E7EB;
  
  /* Light blue background */
  --light-blue-bg: #EFF6FF;
  
  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0F0F0F;
    --surface: #1E1E1E;
    --hover-surface: #374151;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-disabled: #4B5563;
    
    --border: #374151;
  }
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

/* Clean iOS-style animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Utility classes */
.animate-fade-up {
  animation: fadeInUp 0.6s ease-out;
}

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

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* Clean glass effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* iOS-style gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light blue background */
.bg-light-blue {
  background-color: var(--light-blue-bg);
}

/* Clean button styles */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--hover-surface);
  transform: translateY(-1px);
}

/* Section spacing */
section {
  margin: 0;
  position: relative;
}

/* Clean hero section */
#hero {
  background: #FFFFFF;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Feature cards */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Pricing cards */
.pricing-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.premium {
  background: var(--primary);
  color: white;
  border: none;
}

.pricing-card.premium::before {
  content: '✨ Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warning);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Navigation styles */
nav {
  transition: all 0.2s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}


/* Mobile-first responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .pricing-card {
    padding: 24px 20px;
  }
  
  nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-card {
    padding: 16px;
  }
  
  .hero-description {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .download-buttons {
    gap: 0.75rem;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .feature-card {
    padding: 12px;
  }
  
  .pricing-card {
    padding: 20px 16px;
  }
}

/* Smooth scrolling for anchor links */
a[href^="#"] {
  scroll-behavior: smooth;
}

/* Clean iOS-style scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Loading states */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Focus states for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Touch optimization for mobile */
@media (pointer: coarse) {
  button,
  a,
  .touch-target {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gradient-text {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: var(--text-primary);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-fade-up,
  .animate-float,
  .animate-scale-in {
    animation: none;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}