/* CSS Custom Properties for Theming */
:root {
  --color-primary: #6366F1;
  --color-secondary: #0F172A;
  --color-accent: #10B981;
  --color-danger: #EF4444;
  --color-warning: #F59E0B;
}

/* Dark mode (default) */
[data-theme="dark"] {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --border-color: #334155;
}

/* Light mode */
[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --border-color: #E2E8F0;
}

/* Smooth transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Fade-in animation for scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ accordion styles */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content.active {
  max-height: 500px;
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-toggle.active .faq-icon {
  transform: rotate(45deg);
}

/* Mobile menu */
#mobile-menu {
  transition: max-height 0.3s ease;
}

#mobile-menu.hidden {
  max-height: 0;
  overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1E293B;
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

/* Perfect For Cards - Expandable */
.perfect-for-card {
  position: relative;
  transition: all 0.3s ease;
}

/* Collapsed state - hover effects */
.perfect-for-card:not(.expanded):hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
  border-color: #6366F1;
}

/* Expanded state */
.perfect-for-card.expanded {
  border-color: #6366F1;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

/* Collapse button - only visible when expanded */
.card-collapse-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  display: none;
}

.perfect-for-card.expanded .card-collapse-btn {
  display: block;
}

/* Learn more link - only visible when collapsed */
.card-learn-more {
  transition: opacity 0.3s ease;
}

.perfect-for-card.expanded .card-learn-more {
  display: none !important;
}

/* CTA button - hidden by default, shown when expanded */
.card-cta-button {
  display: none !important;
}

.perfect-for-card.expanded .card-cta-button {
  display: inline-block !important;
}

.card-expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.perfect-for-card.expanded .card-expand-content {
  max-height: 1000px;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}



/* Pricing Section Styles */
.pricing-beta-trial {
  z-index: 1;
  position: relative;
}

.pricing-beta-trial::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  border-radius: 0.75rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-beta-trial:hover::before {
  opacity: 1;
}

.pricing-performance {
  opacity: 0.95;
}

@media (max-width: 1024px) {
  .pricing-beta-trial,
  .pricing-performance {
    width: 100%;
  }
}

/* Smooth animations for card expansion */
@keyframes cardExpand {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 1000px;
    opacity: 1;
  }
}

/* Prevent text selection on card click area */
.perfect-for-card {
  user-select: none;
}

.perfect-for-card a {
  user-select: auto;
}

