/* AIMake Landing Page Styles */

/* ==================== Custom Styles ==================== */

.gradient-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

/* Card Hover Effect */

.card-hover {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgb(59 130 246 / 20%);
}

/* Button Interactions */

button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.95);
}

button:hover {
  box-shadow: 0 8px 16px rgb(59 130 246 / 30%);
}

/* Fade In Up Animation */

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse Animation for CTA */
@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.9;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Badge Animation */

.badge-popular {
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Mobile Menu */

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 500px;
}

/* Custom Details/Summary (FAQ) */

details summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
  color: #3b82f6;
}

details[open] summary::after {
  content: '−';
  transform: rotate(90deg);
}

details[open] summary {
  color: #3b82f6;
}

/* Smooth Details Content */

details .faq-content {
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Audio Player Skeleton */

.loading-skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Progress Bar Animation */

.progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 9999px;
  transition: width 0.1s linear;
}

/* Number Counter Animation */

.stat-number {
  display: inline-block;
}

/* Toggle Switch */

.toggle-switch {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  background: #d1d5db;
  border-radius: 9999px;
  transition: background 0.3s;
}

.toggle-switch.active {
  background: #3b82f6;
}

.toggle-slider {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(1.5rem);
}

/* Comparison Table */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #1f2937;
}

.comparison-table tr:hover {
  background: #f9fafb;
}

/* Sticky CTA Button (Mobile) */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.sticky-cta.visible {
  transform: translateY(0);
}

/* Responsive Utilities */
@media (width <= 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .gradient-bg {
    background: #fff;
    color: #000;
  }

  button {
    display: none;
  }
}
