/* Base Styles */
:root {
  --primary-color: #8E24AA;
  --secondary-color: #AB47BC;
  --accent-color: #E1BEE7;
  --dark-color: #4A148C;
  --text-color: #212121;
  --light-text: #FFFFFF;
  --background: #FAFAFA;
  --card-bg: #FFFFFF;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --shadow: 0 5px 15px rgba(142, 36, 170, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 8px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--background);
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo svg {
  height: 32px;
  width: auto;
  margin-right: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.cta-button {
  background-image: var(--gradient);
  color: var(--light-text);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(142, 36, 170, 0.3);
}

.cta-button:hover {
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(142, 36, 170, 0.4);
}

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 70%;
  background-color: var(--accent-color);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.hero-container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

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

.chat-illustration {
  width: 100%;
  max-width: 400px;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-image: var(--gradient);
  border-radius: 3px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image: var(--gradient);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(142, 36, 170, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

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

/* How It Works Section */
.how-it-works {
  padding: 5rem 0;
  background-color: #F3E5F5;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-image: var(--gradient);
  color: var(--light-text);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background-color: var(--accent-color);
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background-image: var(--gradient);
  color: var(--light-text);
  text-align: center;
}

.cta-title {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.cta-text {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-button-large {
  background-color: var(--light-text);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-large:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Footer */
.footer {
  background-color: #212121;
  color: #9E9E9E;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #9E9E9E;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-logo {
  display: flex;
  align-items: center;
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-logo svg {
  height: 30px;
  width: auto;
  margin-right: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 3rem;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--background);
    padding: 1rem 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    visibility: hidden;
  }
  
  .main-nav.active {
    max-height: 300px;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav li {
    margin: 1rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

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

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

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

.delay-3 {
  animation-delay: 0.6s;
}

/* Chat UI Elements */
.chat-bubble {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
  max-width: 80%;
  margin-bottom: 1rem;
  position: relative;
}

.chat-bubble.ai {
  background-color: var(--accent-color);
  color: var(--dark-color);
  border-top-left-radius: 0;
}

.chat-bubble.user {
  background-color: var(--primary-color);
  color: var(--light-text);
  border-top-right-radius: 0;
  margin-left: auto;
}
