:root {
  --primary-color: #8C52FF;
  --secondary-color: #FFB703;
  --accent-color: #FF6600;
  --text-color: #1a1a1a;
  --bg-color: #F8F9FE;
  --white: #ffffff;
  --header-bg: #8C52FF;
  --footer-bg: #111;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

/* Header */
header {
  background: var(--header-bg);
  color: var(--white);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  font-weight: 500;
  font-size: 0.9rem;
}

.btn-contact {
  background: var(--white);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background: var(--header-bg);
  color: var(--white);
  text-align: center;
  padding: 60px 20px 100px;
  border-bottom-left-radius: 50% 10%;
  border-bottom-right-radius: 50% 10%;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.hero-image {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.hero-image img {
  max-width: 280px;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--white);
}

/* Stats Section */
.stats {
  background: #1a0b2e;
  color: var(--white);
  padding: 30px;
  max-width: 900px;
  margin: -40px auto 60px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Features Generic */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  color: #2D0561;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 50px;
  font-size: 0.9rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #f0f0f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-icon img {
  width: 100%;
}

.feature-text h3 {
  color: #2D0561;
  margin-bottom: 5px;
}

.feature-text p {
  font-size: 0.9rem;
  color: #666;
}

/* Big Feature Section */
.big-feature {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.big-feature.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-visual img {
  max-width: 300px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(140, 82, 255, 0.2);
  transform: rotate(-5deg);
}

.tag {
  background: #E0D4FC;
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: inline-block;
}

.feature-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #2D0561;
  margin-bottom: 15px;
}

.feature-content p {
  color: #555;
  margin-bottom: 25px;
}

/* Testimonials */
.testimonials-section {
  background: #1a0b2e;
  color: var(--white);
  padding: 80px 20px;
  border-radius: 20px;
  margin-bottom: 80px;
  text-align: center;
}

.testimonials-section h2 {
  margin-bottom: 50px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  color: var(--text-color);
  padding: 25px;
  border-radius: 15px;
  text-align: left;
  display: flex;
  gap: 15px;
}

.avatar {
  width: 50px;
  height: 50px;
  background: #ddd;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-text h4 {
  color: #2D0561;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.testimonial-text p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #444;
  margin-bottom: 10px;
}

.author {
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Download/CTA */
.download-cta {
  background: #7B3FE4;
  /* slightly darker purple */
  text-align: center;
  color: var(--white);
  padding: 80px 20px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.download-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.bg-decoration {
  /* could add clouds/stars here */
}

/* Footer */
footer {
  background: #7B3FE4;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    max-width: 300px;
    text-align: center;
  }

  .big-feature {
    flex-direction: column !important;
    text-align: center;
    gap: 40px;
  }

  .feature-visual img {
    transform: rotate(0);
  }

  .nav-links {
    display: none;
  }

  /* Simplified mobile nav */
}

/* Video Modal */
.video-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-content {
  position: relative;
  width: 90%;
  max-width: 360px;
  background: #000;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px rgba(140, 82, 255, 0.5);
  padding: 0;
  line-height: 0;
}

.video-content video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close-modal:hover {
  color: var(--secondary-color);
}