/* Landing Page Custom Styles */

/* Smooth animations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero section enhancements */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Button styles */
.btn-primary {
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* Pricing card hover effects */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

/* Feature card animations */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* FAQ accordion styling */
.faq-item summary {
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: bold;
    color: #3b82f6;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

/* Comparison table responsiveness */
.comparison-table {
    min-width: 100%;
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
}

/* Email input focus state */
#emailInput:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.5);
}

/* Testimonial card styling */
.testimonials .bg-white {
    transition: all 0.3s ease;
}

.testimonials .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Stats animation on scroll */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat {
    animation: countUp 0.6s ease-out;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Problem card pulse effect */
.problem-card {
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.2);
}

/* Step number styling */
.step .inline-flex {
    transition: all 0.3s ease;
}

.step:hover .inline-flex {
    transform: scale(1.1) rotate(5deg);
}

/* Loading spinner for form submission */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

/* Trust badge styling */
footer .opacity-75 div {
    transition: opacity 0.3s ease;
}

footer .opacity-75 div:hover {
    opacity: 1;
}

/* Smooth scroll padding for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Mobile menu optimization */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .hero,
    .final-cta,
    footer {
        break-inside: avoid;
    }
}

/* Accessibility improvements */
.btn-primary:focus,
.btn-secondary:focus,
#emailInput:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode overrides if needed */
}

/* Image lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* CTA button pulse animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.btn-primary:hover {
    animation: pulse 2s infinite;
}

/* Success/Error message animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#signupMessage {
    animation: slideIn 0.3s ease-out;
}
