/* ===== COMPONENTS ===== */

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  margin-bottom: 4rem;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.badge {
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
  color: var(--primary-700);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--primary-200);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-orb {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  box-shadow: 
    0 0 60px rgba(99, 102, 241, 0.4),
    0 0 100px rgba(236, 72, 153, 0.2);
}

.visual-wave {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid var(--primary-300);
  border-radius: 50%;
  animation: wave 4s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes wave {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Feature Stats */
.feature-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.stat {
  text-align: center;
  flex: 1;
}

.stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 0.25rem;
}

.stat .stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Feature Tags */
.feature-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Progress Ring */
.progress-ring {
  position: relative;
  margin: 1.5rem auto 0;
}

.progress-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-600);
}

/* Mode Icons */
.mode-icons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.mode-icons span {
  font-size: 1.5rem;
  opacity: 0.8;
  transition: all var(--transition);
}

.mode-icons span:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Demo Grid */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.demo-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.demo-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-lg);
}

/* Story Container */
.story-container {
  margin-top: 1rem;
}

.story-text {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-500);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.8;
}

/* Haptic Demo */
.haptic-demo {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.haptic-intensity {
  margin-top: 1.5rem;
}

.haptic-intensity label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Cognitive Demo */
.cognitive-demo {
  text-align: center;
}

.load-visual {
  margin: 1.5rem 0;
}

.demo-tip {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 1rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--primary-50), var(--white));
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-300);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.author-name {
  font-weight: 600;
  color: var(--gray-800);
}

.author-role {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Stats Section */
.stats-section {
  margin: 4rem 0;
}

/* Ripple Effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 300px;
    order: -1;
  }
  
  .visual-orb {
    width: 150px;
    height: 150px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .demo-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .badge,
[data-theme="dark"] .tag {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

[data-theme="dark"] .story-text {
  background: var(--gray-900);
}

[data-theme="dark"] .testimonial-card {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

[data-theme="dark"] .author-name {
  color: var(--gray-200);
}

[data-theme="dark"] .badge,
[data-theme="dark"] .tag {
  background: var(--gray-700);
  color: var(--gray-300);
}