/* Main variables */
:root {
  --primary-color: #6A1B9A;
  --secondary-color: #4CAF50;
  --dark-color: #1A1A1A;
  --light-color: #F8F8F8;
  --gradient: linear-gradient(135deg, #6A1B9A, #4CAF50);
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--dark-color);
  background-color: var(--light-color);
}

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

ul {
  list-style: none;
}

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

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

section {
  padding: 8rem 0;
}

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

h1 {
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 {
  font-size: 3.2rem;
  position: relative;
}

h3 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 2rem;
}

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

/* Button */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--gradient);
  color: white;
  border-radius: 3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

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

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(106, 27, 154, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(106, 27, 154, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(106, 27, 154, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
  backdrop-filter: blur(10px);
}

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

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

.logo svg {
  height: 4rem;
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
  margin-left: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 3rem;
}

nav a {
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
}

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

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 18rem;
  padding-bottom: 10rem;
  background-color: #f5f5f5;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(106, 27, 154, 0.1), transparent 70%),
              radial-gradient(circle at bottom left, rgba(76, 175, 80, 0.1), transparent 70%);
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
}

.hero-content h1 {
  margin-bottom: 2rem;
}

.hero-content p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Features Section */
.features {
  background-color: white;
  position: relative;
}

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

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1rem;
  transform: translateX(-50%);
  width: 6rem;
  height: 0.3rem;
  background: var(--gradient);
}

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

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

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 8rem;
  height: 8rem;
  margin-bottom: 2rem;
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* How It Works Section */
.how-it-works {
  background-color: #f9f9f9;
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center left, rgba(106, 27, 154, 0.05), transparent 60%);
  z-index: 0;
}

.steps {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 6rem;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 2rem;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 3.5rem;
  right: -3rem;
  width: 6rem;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

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

.step-title {
  margin-bottom: 1rem;
}

/* Demo Section */
.demo {
  background-color: white;
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.demo-content h2 {
  margin-bottom: 3rem;
}

.demo-content p {
  margin-bottom: 3rem;
}

.demo-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.comparison-item {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  text-align: center;
}

.comparison-item h4 {
  margin-top: 1.5rem;
  color: var(--primary-color);
}

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

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

.cta p {
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
  opacity: 0.9;
}

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

.cta .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 6rem;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo svg {
  height: 4rem;
}

.footer-about p {
  margin-bottom: 3rem;
}

.footer-heading {
  color: white;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4rem;
  height: 2px;
  background: var(--gradient);
}

.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(--secondary-color);
  padding-left: 0.5rem;
}

.copyright {
  margin-top: 5rem;
  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.5);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  html {
    font-size: 55%;
  }
  
  .hero-container, .demo-container {
    grid-template-columns: 1fr;
  }
  
  .hero-image, .demo-image {
    order: -1;
    margin-bottom: 4rem;
  }
  
  .steps {
    flex-direction: column;
    gap: 4rem;
  }
  
  .step:not(:last-child)::after {
    top: auto;
    bottom: -4rem;
    right: auto;
    width: 2px;
    height: 4rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 50%;
  }
  
  h1 {
    font-size: 3.2rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
}
