/* Landing Page Styles - Compatible with Tailwind CDN */
/* FIXED: Removed opacity: 0 from animate-fade-in-up to prevent FOUC */

/* Custom animations and effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Feature Cards */
.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.feature-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-badge.free {
    background-color: #dcfce7;
    color: #166534;
}

.feature-badge.pro {
    background-color: #dbeafe;
    color: #1e40af;
}

.feature-badge.usage-based {
  background-color: #fef3c7; /* amber-100 */
  color: #92400e;            /* amber-800 */
}

/* Step Cards */
.step-card {
    text-align: center;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background-color: #3B82F6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
}

/* Pricing Cards */
.pricing-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.pricing-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.pricing-card.pro {
    border: 2px solid #3B82F6;
    transform: scale(1.05);
}

.pricing-card.pro:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3B82F6;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-price {
    margin-bottom: 1rem;
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-cta {
    margin-top: auto;
}

/* Usage Cards */
.usage-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.usage-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* FAQ Items */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

/* Button Styles */
.btn-primary {
    background-color: #3B82F6;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #3B82F6;
    color: #3B82F6;
    background-color: transparent;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #3B82F6;
    color: white;
}

/* Header Effects */
header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* FIXED: Fade in animation without initial opacity: 0 */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    /* Removed opacity: 0 to prevent FOUC */
}

/* Alternative approach: Use CSS-only animation triggers */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.container-padding {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }

    .pricing-card.pro {
        transform: scale(1);
    }

    .pricing-card.pro:hover {
        transform: translateY(-4px);
    }
    
    .container-padding {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}