/* Apple-inspired Dark Design System */
:root {
  /* Dark Theme Colors */
  --color-primary: #2997ff;
  --color-primary-bright: #0a84ff;
  --color-secondary: #30d158;
  --color-background: #000000;
  --color-surface: #1c1c1e;
  --color-surface-elevated: #2c2c2e;
  --color-surface-card: #1c1c1e;
  --color-text-primary: #ffffff;
  --color-text-secondary: #98989d;
  --color-text-tertiary: #636366;
  --color-accent: #ff9f0a;
  --color-accent-purple: #bf5af2;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-border: linear-gradient(135deg, rgba(41, 151, 255, 0.3) 0%, rgba(191, 90, 242, 0.3) 100%);
  
  /* Font */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadows - Dark Theme */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(41, 151, 255, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-system);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  color: var(--color-text-primary);
  text-align: center;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(41, 151, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(191, 90, 242, 0.15) 0%, transparent 50%);
  animation: gradient-shift 15s ease infinite;
  pointer-events: none;
}

@keyframes gradient-shift {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--spacing-lg) var(--spacing-md);
  animation: fade-in-up 1s ease;
}

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

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #2997ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(41, 151, 255, 0.3));
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-primary);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: 980px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(41, 151, 255, 0.4);
}

.cta-button:hover {
  background: var(--color-primary-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(41, 151, 255, 0.6);
}

/* Introduction Section */
.intro-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-surface);
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.section-description {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Models Section */
.models-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-background);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.model-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.model-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(41, 151, 255, 0.3);
  background: var(--color-surface-elevated);
}

.model-card.featured {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.08) 0%, rgba(191, 90, 242, 0.08) 100%);
  border: 2px solid rgba(41, 151, 255, 0.3);
}

.model-card.featured:hover {
  border-color: rgba(41, 151, 255, 0.5);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(41, 151, 255, 0.4);
}

.model-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

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

.model-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
}

.model-company {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.model-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.model-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.feature-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(41, 151, 255, 0.15);
  color: var(--color-primary);
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(41, 151, 255, 0.2);
}

.feature-tag:hover {
  background: var(--color-primary);
  color: var(--color-background);
  transform: scale(1.05);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(41, 151, 255, 0.5);
}

/* Comparison Section */
.comparison-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-surface);
  text-align: center;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.comparison-card {
  background: var(--color-surface-elevated);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(41, 151, 255, 0.3);
  background: var(--color-surface-card);
}

.comparison-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.comparison-card p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-xl) 0;
  background: var(--gradient-hero);
  color: var(--color-text-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(41, 151, 255, 0.15) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

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

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.cta-description {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.cta-button-large {
  padding: 18px 48px;
  background: var(--color-text-primary);
  color: var(--color-background);
  border: none;
  border-radius: 980px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.cta-button-large:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
  background: var(--color-primary);
  color: var(--color-text-primary);
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  background: #000000;
  color: var(--color-text-tertiary);
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .models-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, #1c1c1e 4%, #2c2c2e 25%, #1c1c1e 36%);
  background-size: 1000px 100%;
}

/* Glow Effects for Dark Theme */
.model-card.featured .model-icon {
  filter: drop-shadow(0 0 10px rgba(41, 151, 255, 0.5));
}

/* Subtle grid pattern background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}
