/* Clara Assistant - Styles */
:root {
  --primary: #6366f1;
  --secondary: #f1f5f9;
  --success: #10b981;
  --text: #1e293b;
  --bg: #ffffff;
  --border: #e2e8f0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Landing Page */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
}

.hero .logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

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

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

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

.embudo {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--secondary);
}

.embudo h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.embudo ol {
  list-style: none;
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.embudo li {
  margin: 1.5rem 0;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

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

.feature {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.feature h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Chat Page */
.chat-header {
  text-align: center;
  padding: 2rem;
  background: var(--primary);
  color: white;
}

.chat-header .logo {
  width: 80px;
  margin-bottom: 1rem;
}

.chat-header h1 {
  margin-bottom: 0.5rem;
}

#chat {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

#messages {
  height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--secondary);
}

.user, .clara {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  max-width: 80%;
}

.user {
  background: var(--primary);
  color: white;
  margin-left: auto;
}

.clara {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

#input-area {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#user-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

#send-btn, #voice-btn {
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

#send-btn:hover, #voice-btn:hover {
  background: #4f46e5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.chip {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.chip:hover {
  background: var(--primary);
  color: white;
}

.cta {
  text-align: center;
  padding: 2rem;
  background: var(--secondary);
  border-radius: 8px;
  margin-top: 2rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--text);
  color: white;
  margin-top: 4rem;
}

footer label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .cta-container {
    flex-direction: column;
    align-items: center;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  #input-area {
    flex-direction: column;
  }
  
  .chips {
    justify-content: center;
  }
}