/* Landing Page Styles - Improved version */

/* Hero Section */
.hero {
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.3;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
  color: white;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  color: white;
}

.hero-description {
  font-size: 0.95rem;
  margin: 0 auto 1.75rem;
  max-width: 900px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  color: white;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-button {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-button-primary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-button-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.hero-button-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Modes Section */
.modes-section {
  padding: 3.5rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.75rem;
}

.section-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mode-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mode-color-start) 0%, var(--mode-color-end) 100%);
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--mode-color-start);
}

.mode-card.clean-chat {
  --mode-color-start: #10b981;
  --mode-color-end: #059669;
}

.mode-card.agents {
  --mode-color-start: #3b82f6;
  --mode-color-end: #1e40af;
}

.mode-card.workflows {
  --mode-color-start: #f59e0b;
  --mode-color-end: #d97706;
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.mode-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.75rem;
}

.mode-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.mode-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.mode-features li {
  padding: 0.4rem 0;
  color: #374151;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mode-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mode-color-start) 0%, var(--mode-color-end) 100%);
  color: white;
  font-weight: bold;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.mode-example {
  background: #f9fafb;
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  border-left: 3px solid var(--mode-color-start);
}

/* Agents Gallery Section */
.agents-section {
  padding: 3.5rem 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.agents-container {
  max-width: 1200px;
  margin: 0 auto;
}

.agents-category {
  margin-bottom: 3rem;
}

.agents-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-description {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.agent-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.agent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.agent-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.agent-card.role .agent-avatar {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.agent-card.hat .agent-avatar {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.agent-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.4rem;
}

.agent-description {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Scenarios Section */
.scenarios-section {
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
  color: white;
}

.scenarios-section .section-title,
.scenarios-section .section-description {
  color: white;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
}

.scenario-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  color: #1f2937;
}

.scenario-card:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.scenario-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #1f2937;
}

.scenario-flow {
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  border-left: 3px solid #3b82f6;
}

.scenario-description {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* Features Section */
.features-section {
  padding: 3.5rem 2rem;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
}

.feature-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #667eea;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
  display: block;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.6rem;
}

.feature-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Tech Stack Section */
.tech-section {
  padding: 3.5rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 2.5rem auto 0;
}

.tech-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.tech-card:hover {
  transform: translateY(-3px);
  border-color: #667eea;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
}

.tech-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.tech-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.4rem;
}

.tech-description {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  text-align: center;
}

.cta-content {
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-description {
  font-size: 1rem;
  margin: 0 0 1.75rem;
  line-height: 1.6;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.cta-button-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 1.85rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .modes-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1.5rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .hero-description {
    font-size: 0.875rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-button {
    width: 100%;
    justify-content: center;
  }
  
  .modes-section,
  .agents-section,
  .scenarios-section,
  .features-section,
  .tech-section,
  .cta-section {
    padding: 2.5rem 1.5rem;
  }
  
  .section-title {
    font-size: 1.35rem;
  }
  
  .section-description {
    font-size: 0.9rem;
  }
  
  .agents-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .scenarios-grid,
  .features-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-description {
    font-size: 0.9rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
