/* ===============================================
   ONLO Platform - ULTRA SMOOTH Animations
   60 FPS Guaranteed
   =============================================== */

/* ============================================
   PERFORMANCE BOOST (CRITICAL)
   ============================================ */

/* Force GPU for everything */
*,
*::before,
*::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hardware Acceleration */
.page-section,
.bento-card,
.modal-overlay,
.modal-container,
button,
a,
input,
select {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   PAGE TRANSITIONS (NO FOOTER JUMP!)
   ============================================ */

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: smoothFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ============================================
   GLASS HEADER
   ============================================ */

.glass-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    will-change: background;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   BENTO CARDS (ULTRA SMOOTH)
   ============================================ */

.bento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    will-change: transform, box-shadow;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover {
    transform: translate3d(0, -12px, 0) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

/* ============================================
   BUTTONS (SMOOTH)
   ============================================ */

button,
a {
    will-change: transform;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

button:hover,
a:hover {
    transform: translate3d(0, -2px, 0);
}

button:active {
    transform: translate3d(0, 0, 0);
    transition-duration: 0.1s;
}

/* ============================================
   INPUTS (SMOOTH)
   ============================================ */

input,
select,
textarea {
    will-change: background-color, border-color;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

input:focus,
select:focus {
    transform: translate3d(0, -1px, 0);
}

/* ============================================
   FEATURE ICONS
   ============================================ */

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-icon-box:hover {
    transform: scale(1.15) rotate(8deg);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

details>summary {
    list-style: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open]>summary {
    margin-bottom: 1rem;
}

/* ============================================
   ANIMATIONS (60 FPS)
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -20px, 0);
    }
}

@keyframes shimmer {
    from {
        transform: translate3d(-100%, 0, 0);
    }

    to {
        transform: translate3d(100%, 0, 0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    will-change: opacity, transform;
}

.animate-float {
    animation: float 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    will-change: transform;
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    will-change: opacity, transform;
}

.animate-shimmer {
    animation: shimmer 2s linear infinite;
    will-change: transform;
}

.animate-spin {
    animation: spin 1s linear infinite;
    will-change: transform;
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */

html {
    scroll-behavior: smooth;
}

* {
    scroll-behavior: smooth;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}