/* Modern, responsive CSS with optimized performance */
:root {
  --primary-color: #6e57e0;
  --accent-color: #ff5e94;
  --dark-bg: #1a1a2e;
  --light-bg: #f5f5f7;
  --text-dark: #2d2d2d;
  --text-light: #f7f7f7;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-bg: linear-gradient(135deg, #6e57e0 0%, #ff5e94 100%);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

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

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
}

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

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

ul {
  list-style-type: none;
}

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

section {
  padding: 80px 0;
}

/* Header styles */
header {
  background-color: var(--dark-bg);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow-color);
}

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

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

.logo-svg {
  height: 50px;
  width: 200px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
}

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

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

/* Hero section */
.hero {
  background: var(--gradient-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  text-align: center;
  padding-top: 80px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1.2s ease;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 94, 148, 0.3);
  animation: fadeInUp 1.4s ease;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 94, 148, 0.4);
  color: white;
}

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

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

/* Features section */
.features {
  background-color: white;
}

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

.feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-color);
  text-align: center;
  transition: var(--transition);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

/* How it works section */
.how-it-works {
  background-color: var(--light-bg);
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.step {
  text-align: center;
  flex: 1;
  padding: 0 20px;
  position: relative;
}

.step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 40px;
  right: -15%;
  width: 30%;
  height: 2px;
  background: var(--primary-color);
}

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

/* Pricing section */
.pricing {
  background-color: white;
}

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

.pricing-card {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-color);
  text-align: center;
  transition: var(--transition);
  position: relative;
  border: 1px solid transparent;
}

.pricing-card.featured {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

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

.pricing-card.featured:hover {
  transform: translateY(-10px) scale(1.05);
}

.popular-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: white;
  padding: 5px 15px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.price span {
  font-size: 1rem;
  color: #777;
}

.pricing-card ul {
  margin: 25px 0;
}

.pricing-card ul li {
  margin-bottom: 12px;
}

/* Footer styles */
footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.logo-svg-footer {
  height: 50px;
  width: 200px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-section {
  margin-right: 60px;
  margin-bottom: 30px;
}

.footer-section h4 {
  margin-bottom: 20px;
  position: relative;
}

.footer-section h4:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #aaa;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

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

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step {
    margin-bottom: 40px;
  }
  
  .step:not(:last-child):after {
    display: none;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }
  
  nav ul {
    display: none;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 1rem;
  }
}
