/* Base Styles and Variables */
:root {
  --primary: #7e22ce;
  --primary-light: #9333ea;
  --secondary: #d946ef;
  --secondary-light: #e879f9;
  --dark: #1e1b4b;
  --dark-2: #312e81;
  --light: #faf5ff;
  --text: #27272a;
  --text-light: #f8fafc;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: #fcfaff;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

h1 {
  font-size: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--border-radius-sm);
}

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

/* Button Styles */
.cta-button, .secondary-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-button {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-sm);
}

.cta-button:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: white;
}

.secondary-button {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* Layout Containers */
.header-container,
.section-container,
.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

.get-started-btn a {
  background: var(--gradient);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.get-started-btn a:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: white;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background-color: #f5f3ff;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(126, 34, 206, 0.05) 0%, rgba(217, 70, 239, 0.05) 90%),
    radial-gradient(circle at 90% 80%, rgba(126, 34, 206, 0.05) 0%, rgba(217, 70, 239, 0.05) 90%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  padding: 2rem;
  text-align: center;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--dark-2);
}

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

.hero-visual {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Features Section */
.features {
  padding: 5rem 0;
  text-align: center;
  background-color: white;
}

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

.feature {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

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

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem 0;
}

.step {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 250px;
  flex: 1;
}

.step-number {
  background: var(--gradient);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}

.step-connector {
  width: 100px;
  display: flex;
  align-items: center;
}

.cta-container {
  margin-top: 3rem;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  text-align: center;
  background-color: white;
}

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

.testimonial {
  background-color: #f5f3ff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-icon {
  margin-bottom: 1rem;
}

.quote-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-name {
  font-weight: 600;
  color: var(--primary);
}

.author-title {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  text-align: center;
  background-color: #faf5ff;
}

.faq-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.faq-item {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
}

.toggle-icon {
  transition: all 0.3s ease;
}

.faq-item.active .toggle-icon {
  transform: rotate(90deg);
}

.faq-item.active .vertical {
  display: none;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
  text-align: left;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Call to Action Section */
.call-to-action {
  padding: 5rem 0;
  text-align: center;
  background: var(--gradient);
  position: relative;
  color: white;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="2" fill="white" opacity="0.1"/></svg>');
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cta-content h2 {
  color: white;
}

.cta-content h2::after {
  background: white;
}

.cta-content p {
  margin-bottom: 2rem;
}

.call-to-action .cta-button {
  background: white;
  color: var(--primary);
}

.call-to-action .cta-button:hover {
  background: var(--light);
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--text-light);
  padding: 4rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: var(--secondary-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-column a {
  color: var(--text-light);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--secondary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: white;
    box-shadow: var(--shadow-md);
    padding: 2rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
  }
  
  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    pointer-events: all;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step-connector {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-container {
    grid-template-columns: 1fr;
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
