/* ==================== Animations ==================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }

/* ==================== Smooth scroll ==================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* ==================== Navbar shadow on scroll ==================== */
#navbar.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==================== Form focus states ==================== */
input:focus,
textarea:focus {
    outline: none;
}

/* ==================== Mobile menu transition ==================== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

/* ==================== CTA button pulse ==================== */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2); }
    50% { box-shadow: 0 4px 12px -1px rgba(217, 119, 6, 0.35); }
}

/* ==================== Selection color ==================== */
::selection {
    background-color: rgba(217, 119, 6, 0.15);
    color: #0F172A;
}

/* ==================== Comparison table responsive ==================== */
@media (max-width: 640px) {
    table {
        font-size: 0.8125rem;
    }
    th, td {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
