/* Base styles and CSS variables */
:root {
  --primary-color: #ff3366;
  --secondary-color: #9933ff;
  --text-color: #333;
  --bg-color: #fff;
  --accent-color: #5d2e8c;
  --light-bg: #f9f4fb;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --shadow: 0 4px 16px rgba(153, 51, 255, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

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(--text-color);
  background-color: var(--bg-color);
}

/* Typography */
h1, h2, h3, h4, h5 {
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

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

h2 {
  font-size: 3.6rem;
  color: var(--primary-color);
}

h3 {
  font-size: 2.4rem;
  color: var(--secondary-color);
}

p {
  margin-bottom: 1.6rem;
}

/* Container and layout */
.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

.section.alt {
  background-color: var(--light-bg);
}

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

.hero-content {
  max-width: 70rem;
  z-index: 2;
  position: relative;
}

.hero h1 {
  color: white;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: white;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover, .btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(153, 51, 255, 0.2);
}

.btn-primary {
  background: white;
  color: var(--primary-color);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 3rem;
  background: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-icon {
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
}

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

.cta h2 {
  color: white;
}

/* Footer */
footer {
  padding: 5rem 0;
  background-color: #170b29;
  color: white;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo svg {
  width: 3.2rem;
  height: 3.2rem;
}

.footer-logo span {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 4rem;
}

.footer-links h4 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.copyright {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

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

/* Responsive design */
@media (max-width: 768px) {
  html {
    font-size: 56.25%; /* 9px = 1rem */
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .hero {
    padding: 8rem 0 6rem;
  }
  
  .features {
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  }
  
  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 50%; /* 8px = 1rem */
  }
  
  h1 {
    font-size: 3.2rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
}

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

.animate {
  animation: fadeIn 0.8s ease-out forwards;
}

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

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

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