/* Base Styles and Variables */
:root {
  --primary: #6A1B9A;
  --secondary: #8E24AA;
  --accent: #E1BEE7;
  --text: #212121;
  --text-light: #757575;
  --background: #FFFFFF;
  --background-alt: #F5F5F5;
  --shadow: 0 4px 15px rgba(106, 27, 154, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

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

.container {
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 0.5rem auto;
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* Header */
header {
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-container h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 800;
  color: var(--primary);
}

.logo-container span {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  font-weight: 600;
  color: var(--text);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

.cta-button {
  background-color: var(--primary);
  color: white !important;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

/* Hero Section */
#hero {
  padding: 5rem 5%;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(142, 36, 170, 0.05) 0%, rgba(106, 27, 154, 0.1) 100%);
  min-height: 90vh;
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content h2 {
  font-size: 3.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-content h2::after {
  margin: 0.5rem 0;
}

.hero-content h2 span {
  color: var(--primary);
  display: block;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.primary-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(142, 36, 170, 0.3);
  transition: var(--transition);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(142, 36, 170, 0.5);
  color: white;
}

.chat-bubbles {
  max-width: 100%;
  height: auto;
}

.chat-bubble {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.delay-1 {
  animation-delay: 0.5s;
}

.delay-2 {
  animation-delay: 1s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Section */
#features {
  padding: 5rem 5%;
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature {
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: var(--background);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(106, 27, 154, 0.3);
}

.feature-icon {
  margin-bottom: 1.5rem;
}

.feature h3 {
  margin-bottom: 1rem;
}

/* Demo Section */
#demo {
  padding: 5rem 5%;
  background-color: var(--background-alt);
}

.demo-container {
  max-width: 600px;
  margin: 0 auto;
}

.chat-window {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-header {
  padding: 1rem;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-header h3 {
  margin: 0;
  color: white;
}

.chat-messages {
  padding: 1.5rem;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  padding: 1rem;
  border-radius: var(--border-radius);
  max-width: 80%;
}

.message p {
  margin: 0;
  color: inherit;
}

.message.ai {
  background-color: var(--accent);
  align-self: flex-start;
  color: var(--primary);
}

.message.user {
  background-color: var(--primary);
  color: white;
  align-self: flex-end;
}

.chat-input {
  padding: 1.5rem;
  border-top: 1px solid var(--accent);
  text-align: center;
}

.demo-note {
  margin-bottom: 1rem;
  font-style: italic;
}

.secondary-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

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

/* FAQ Section */
#faq {
  padding: 5rem 5%;
  background-color: var(--background);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: var(--background);
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin-bottom: 0.75rem;
}

/* Start Section */
#start {
  padding: 5rem 5%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
}

#start h2 {
  color: white;
}

#start h2::after {
  background: var(--accent);
}

#start p {
  color: white;
  opacity: 0.9;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

#start .primary-button {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

#start .primary-button:hover {
  background: var(--accent);
  color: var(--primary);
}

.keywords {
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Footer */
footer {
  background-color: #212121;
  color: white;
  padding: 4rem 5% 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-large {
  width: 80px;
  height: 80px;
}

.footer-text h3 {
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.footer-text p {
  color: white;
  opacity: 0.7;
}

.footer-links h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: white;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  color: white;
  opacity: 0.5;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  #hero {
    flex-direction: column;
    padding: 3rem 5%;
    min-height: auto;
  }
  
  .hero-content, .hero-visual {
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .features-grid {
    gap: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-links ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .feature {
    padding: 1.5rem;
  }
  
  .primary-button, .secondary-button, .cta-button {
    display: block;
    width: 100%;
    text-align: center;
  }
}
