/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020810;
}
::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.5);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(2, 8, 16, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Step cards */
.step-card .bg-white\:\[0\.02\] {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.step-card:hover .bg-white\:\[0\.02\] {
    transform: translateY(-4px);
}

/* Feature cards */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* FAQ */
.faq-item {
    transition: border-color 0.3s ease;
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.3s ease;
}
.faq-content.open {
    max-height: 300px;
}
.faq-content p {
    padding-top: 0;
}
.faq-content:not(.open) p {
    padding-top: 0;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero stats counter */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating badges animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.floating-badge-1 {
    animation: float 4s ease-in-out infinite;
}
.floating-badge-2 {
    animation: float 4s ease-in-out infinite 1s;
}

/* Pulse ring on hero accent */
@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}
.animate-pulse-ring {
    animation: pulseRing 2s ease-in-out infinite;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}
img[data-loaded="false"] {
    opacity: 0;
}
img[data-loaded="true"] {
    opacity: 1;
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid rgba(45, 212, 191, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, #faq, .cta-section { display: none; }
    body { background: white; color: black; }
}
