/* Base styles and variables */
:root {
  --primary-color: #9933FF;
  --secondary-color: #FF3366;
  --dark-color: #202030;
  --light-color: #F8F9FA;
  --accent-color: #50E3C2;
  --gradient: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 10px for easier rem calculations */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f5f5f8;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.8rem;
}

p {
  margin-bottom: 1.6rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header styles */
header {
  background: var(--gradient);
  color: white;
  padding: 2rem 0;
  box-shadow: var(--box-shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 2.4rem;
  font-weight: 700;
}

.logo svg {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
}

.logo a {
  color: white;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  padding: 10rem 0;
  text-align: center;
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' opacity='0.1'%3E%3Cpath d='M500,82.5c-230.5,0-417.5,187-417.5,417.5c0,230.5,187,417.5,417.5,417.5c230.5,0,417.5-187,417.5-417.5C917.5,269.5,730.5,82.5,500,82.5z M500,751.3c-138.9,0-251.3-112.4-251.3-251.3c0-138.9,112.4-251.3,251.3-251.3c138.9,0,251.3,112.4,251.3,251.3C751.3,638.9,638.9,751.3,500,751.3z'/%3E%3Cpath d='M500,300c-110.5,0-200,89.5-200,200c0,110.5,89.5,200,200,200c110.5,0,200-89.5,200-200C700,389.5,610.5,300,500,300z'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 5.6rem;
  margin-bottom: 2rem;
  color: white;
}

.hero p {
  font-size: 2rem;
  max-width: 800px;
  margin: 0 auto 4rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--dark-color);
  font-weight: 700;
  padding: 1.2rem 3rem;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--dark-color);
}

/* Features section */
.features {
  padding: 10rem 0;
  background-color: white;
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

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

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

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  color: white;
  font-size: 3rem;
}

.feature-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

/* How it works section */
.how-it-works {
  padding: 10rem 0;
  background-color: var(--light-color);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: white;
  font-size: 2.4rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-content h3 {
  margin-bottom: 1rem;
}

/* Testimonials section */
.testimonials {
  padding: 10rem 0;
  background: white;
}

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

.testimonial-card {
  background: var(--light-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  position: relative;
}

.testimonial-card::before {
  content: """;
  position: absolute;
  top: 0;
  left: 2rem;
  font-size: 8rem;
  line-height: 1;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-text {
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
}

.testimonial-info h4 {
  margin-bottom: 0.3rem;
  font-size: 1.8rem;
}

.testimonial-info p {
  margin: 0;
  font-size: 1.4rem;
  color: #777;
}

/* CTA section */
.cta {
  padding: 10rem 0;
  background: var(--gradient);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 2rem;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1.8rem;
}

.cta .btn {
  background-color: white;
  color: var(--primary-color);
  font-size: 1.8rem;
  padding: 1.5rem 4rem;
}

.cta .btn:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 6rem 0 2rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
}

.footer-logo svg {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
}

.footer-about p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: white;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

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

/* Utilities */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 4rem;
}

/* Responsive styles */
@media (max-width: 991px) {
  html {
    font-size: 56.25%; /* 9px */
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%; /* 8px */
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-color);
    padding: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }
  
  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 4.2rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
}
