:root {
  --primary-color: #6A1E9C;
  --secondary-color: #4B1461;
  --accent-color: #9B59B6;
  --light-color: #E8DAEF;
  --dark-color: #261E6B;
  --gradient-primary: linear-gradient(135deg, #6A1E9C 0%, #9B59B6 100%);
  --hover-color: #571A7D;
  --background-color: #FAF8FC;
  --text-color: #2C1A40;
  --border-color: rgba(106, 30, 156, 0.2);
  --divider-color: rgba(75, 20, 97, 0.15);
  --shadow-color: rgba(106, 30, 156, 0.12);
  --highlight-color: #F4D03F;
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Inter', sans-serif;
}

/* Mobile Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.hamburger .line {
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 1px;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .mobile-nav {
  max-height: 350px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--border-color);
  z-index: 1000;
}

.mobile-nav ul {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.mobile-nav li {
  margin: 0.8rem 0;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Feature Cards */
.feature-card {
  background: white;
  border: 3px solid transparent;
  border-radius: 25px;
  padding: 2.6rem 2rem;
  box-shadow: 0 6px 27px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background-image: linear-gradient(white, white), var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.feature-card:hover {
  transform: translateY(-7px) rotate(1deg);
  box-shadow: 0 14px 40px var(--shadow-color);
  border-color: transparent;
}

.feature-icon {
  font-size: 2.8rem;
  margin: 0 auto 1.6rem auto;
  color: white;
  width: 92px;
  height: 92px;
  background: var(--gradient-primary);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(106, 30, 156, 0.3);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  background: var(--gradient-primary);
  border-radius: 27px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.feature-card:hover .feature-icon::after {
  opacity: 0.3;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 10px 28px rgba(106, 30, 156, 0.4);
}

/* Testimonials */
.testimonial {
  background: linear-gradient(145deg, white, var(--light-color));
  border: none;
  border-radius: 24px;
  padding: 2.7rem 2.4rem;
  margin: 1rem 0;
  box-shadow: 0 8px 31px var(--shadow-color);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: 24px 24px 0 0;
}

.testimonial:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 39px var(--shadow-color);
}

.testimonial::before {
  content: '◆';
  position: absolute;
  bottom: 20px;
  left: 25px;
  font-size: 3rem;
  color: var(--accent-color);
  opacity: 0.2;
}

/* FAQ Items */
.faq-item {
  background: white;
  border: 2px solid var(--light-color);
  border-radius: 20px;
  margin: 1.2rem 0;
  box-shadow: 0 6px 26px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 2.7rem;
  position: relative;
}

.faq-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 0 20px 0 50%;
  transition: all 0.3s ease;
}

.faq-item:hover::after {
  width: 80px;
  height: 80px;
  opacity: 0.15;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 34px var(--shadow-color);
  border-color: var(--accent-color);
}

.faq-item h3 {
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
}

.faq-item h3::before {
  content: '▸';
  margin-right: 1.2rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Form Styles */
input,
textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 1.4rem;
  background-color: white;
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(106, 30, 156, 0.13);
}

input:hover,
textarea:hover {
  border-color: var(--accent-color);
}

/* Button Styles */
button,
.btn {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.4rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 6px 20px rgba(106, 30, 156, 0.3);
}

button:hover,
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 28px rgba(106, 30, 156, 0.4);
}

/* Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.7;
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
}

/* Statistics Cards */
.stat-card {
  background: linear-gradient(135deg, white, var(--light-color));
  border: none;
  border-radius: 24px;
  padding: 3rem 2.2rem;
  text-align: center;
  box-shadow: 0 8px 28px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, var(--accent-color) 45deg, transparent 90deg);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.stat-card:hover::before {
  opacity: 0.08;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 38px var(--shadow-color);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--main-font);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.stat-text {
  font-size: 1.02rem;
  color: var(--text-color);
  margin-top: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Trust Indicators */
.trust-indicator {
  background: white;
  padding: 2.1rem 1.7rem;
  border-radius: 19px;
  border: 2px solid var(--light-color);
  box-shadow: 0 6px 22px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.trust-indicator:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 30px var(--shadow-color);
  border-color: var(--primary-color);
}

.trust-indicator::before {
  content: '★';
  position: absolute;
  top: -14px;
  right: -14px;
  font-size: 2rem;
  color: var(--primary-color);
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--shadow-color);
}

/* Header and Footer */
header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(13px);
  color: var(--text-color);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 3px 24px var(--shadow-color);
}

footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3.5rem 0 1.5rem;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Grid Layouts */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.8rem;
  margin: 2.5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.8rem;
  margin: 2.5rem 0;
}

/* Pattern Background */
.pattern-bg {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(106, 30, 156, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(155, 89, 182, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, transparent 25%, rgba(106, 30, 156, 0.02) 25%, rgba(106, 30, 156, 0.02) 50%, transparent 50%, transparent 75%, rgba(155, 89, 182, 0.02) 75%, rgba(155, 89, 182, 0.02));
  background-size: 100% 100%, 100% 100%, 60px 60px;
}

/* Responsive Design */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .navigation {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    padding: 0 1rem;
  }
  
  .container {
    padding: 0 1rem;
    max-width: 100vw;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    margin: 1rem 0;
    padding: 2rem 1.5rem;
    max-width: 100%;
    word-wrap: break-word;
  }
  
  .grid {
    gap: 1.5rem;
  }
  
  .space-x-8 {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    padding: 0 0.5rem;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    margin: 1rem 0;
    padding: 1.5rem 1rem;
    max-width: 100%;
  }

  .trust-indicator {
    margin: 1rem 0;
    padding: 1.5rem 1rem;
    max-width: 100%;
  }

  .stat-number {
    font-size: 2.2rem;
  }
  
  .container {
    padding: 0 0.5rem;
  }
  
  .grid {
    gap: 1rem;
  }
  
  input, textarea {
    font-size: 16px;
    padding: 1rem;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}