/* Gamified Landing Page Styles */

/* Global Styles */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #ede9fe;
  --secondary: #ec4899;
  --secondary-dark: #db2777;
  --accent: #8b5cf6;
  --text-light: #f3f4f6;
  --text-dark: #1f2937;
}

body {
  position: relative;
}

/* Background Effects */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23f9fafb'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23f9fafb'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23f9fafb'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

.magic-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.magic-particles:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.2;
  animation: particles-fade 15s infinite alternate;
}

/* Glowing Text */
.glow-text {
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.7), 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Hero Phone Mockup */
.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  margin: 0 auto;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.5);
  border: 8px solid #1f2937;
  background-color: #000;
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

/* Button Styles */
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: transparent;
  color: var(--primary);
  font-weight: bold;
  border: 2px solid var(--primary);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
  text-align: center;
}

/* Benefit Cards */
.benefit-card {
  background-color: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
}

.benefit-card:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

/* Step Cards */
.step-card {
  background-color: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
}

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

/* Testimonial Cards */
.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

/* Pricing Cards */
.pricing-card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
}

.pricing-card.popular {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.25);
  border: 2px solid var(--primary);
}

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

.popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.pricing-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price {
  margin: 1.5rem 0;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--text-dark);
}

.amount {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1;
  color: var(--primary);
}

.cents {
  font-size: 1.5rem;
  vertical-align: top;
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary);
}

.period {
  font-size: 1rem;
  color: var(--text-dark);
  opacity: 0.7;
}

.original {
  display: block;
  text-decoration: line-through;
  color: var(--text-dark);
  opacity: 0.5;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.pricing-features {
  padding: 2rem;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li:before {
  content: '✓';
  color: var(--primary);
  position: absolute;
  left: 0;
}

.pricing-cta {
  padding: 0 2rem 2rem;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 33.333%;
  min-width: 33.333%;
  padding: 0 15px;
  transition: opacity 0.3s ease;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background-color: var(--primary);
  color: white;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

/* Animations */
@keyframes floating {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes particles-fade {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(236, 72, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
  }
}

.pulse-effect {
  position: relative;
}

.pulse-effect:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  animation: pulse-border 2s infinite;
  z-index: -1;
}

@keyframes pulse-border {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.glow-effect {
  position: relative;
}

.glow-effect:after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover:after {
  opacity: 0.5;
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.6;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .phone-mockup {
    width: 250px;
    height: 500px;
  }
  
  .pricing-card.popular {
    transform: scale(1);
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
}