.liquid-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
    transform: perspective(800px) translateZ(0);
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
    white-space: nowrap;
    z-index: 1;
}

.liquid-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid var(--glass-border);
    z-index: -2;
    transition: all 0.3s;
}

.liquid-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 3px 3px 0.5px -3px rgba(255,255,255,0.6),
        inset -3px -3px 0.5px -3px rgba(255,255,255,0.6),
        inset 0 0 6px 6px rgba(255,255,255,0.08),
        inset 0 0 2px 2px rgba(255,255,255,0.04),
        0 0 8px rgba(0,0,0,0.03),
        0 2px 6px rgba(0,0,0,0.08),
        0 0 12px rgba(255,255,255,0.08);
    z-index: -1;
    transition: all 0.3s;
}

.liquid-btn:hover {
    transform: perspective(800px) translateZ(8px) scale(1.04);
    filter: brightness(1.1);
}
.liquid-btn:hover::before {
    border-color: var(--glass-border-hover);
}
.liquid-btn:hover::after {
    box-shadow:
        inset 3px 3px 0.5px -3px rgba(255,255,255,0.8),
        inset -3px -3px 0.5px -3px rgba(255,255,255,0.8),
        inset 0 0 8px 8px rgba(255,255,255,0.12),
        inset 0 0 3px 3px rgba(255,255,255,0.06),
        0 0 12px rgba(0,0,0,0.05),
        0 4px 12px rgba(0,0,0,0.12),
        0 0 20px rgba(255,255,255,0.12);
}

.liquid-btn:active {
    transform: perspective(800px) translateZ(-2px) scale(0.97);
    filter: brightness(0.92);
}

.liquid-btn--primary {
    color: #fff;
}
.liquid-btn--primary::before {
    background: linear-gradient(135deg, var(--color-cyan), #2563eb);
    border-color: rgba(59, 130, 246, 0.4);
}
.liquid-btn--primary::after {
    box-shadow:
        inset 2px 2px 1px -2px rgba(255,255,255,0.5),
        inset -2px -2px 1px -2px rgba(255,255,255,0.3),
        inset 0 0 6px 4px rgba(255,255,255,0.08),
        0 4px 16px rgba(59, 130, 246, 0.35),
        0 0 20px rgba(59, 130, 246, 0.15);
}
.liquid-btn--primary:hover::after {
    box-shadow:
        inset 2px 2px 1px -2px rgba(255,255,255,0.7),
        inset -2px -2px 1px -2px rgba(255,255,255,0.5),
        inset 0 0 8px 6px rgba(255,255,255,0.1),
        0 6px 24px rgba(59, 130, 246, 0.5),
        0 0 30px rgba(59, 130, 246, 0.2);
}

.liquid-btn--outline::before {
    background: transparent;
    border: 1px solid var(--glass-border-hover);
}

.liquid-btn--danger {
    color: #fff;
}
.liquid-btn--danger::before {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: rgba(239, 68, 68, 0.4);
}

.liquid-btn--sm { padding: 8px 18px; font-size: 0.78rem; border-radius: 8px; }
.liquid-btn--lg { padding: 16px 42px; font-size: 1.1rem; border-radius: 16px; }
.liquid-btn--full { width: 100%; }

.card-3d {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
    transform: perspective(1000px) rotateX(0) rotateY(0) translateZ(0);
    transform-style: preserve-3d;
    will-change: transform;
}
.card-3d:hover {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg) translateZ(12px);
    box-shadow: 
        var(--glass-shadow-hover),
        0 20px 60px -15px rgba(59, 130, 246, 0.15);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}
.fade-in.visible { opacity: 1; }

.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children > *:nth-child(6) { transition-delay: 400ms; }

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.float-gentle { animation: float-gentle 6s ease-in-out infinite; }
.float-slow { animation: float-slow 10s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

.shimmer {
    background: linear-gradient(
        90deg,
        var(--glass-bg) 0%,
        var(--glass-bg-strong) 50%,
        var(--glass-bg) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.stat-value {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card:hover .stat-value {
    transform: scale(1.1);
}

.hero-orb {
    animation: float-slow 20s ease-in-out infinite alternate;
    will-change: transform;
}
.hero-orb--1 { animation-duration: 18s; }
.hero-orb--2 { animation-duration: 24s; animation-direction: alternate-reverse; }

.nav-item {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: perspective(600px) translateZ(0);
}
.nav-item:hover {
    transform: perspective(600px) translateZ(4px);
    text-shadow: 0 0 20px var(--color-cyan-glow);
}

.glass-card {
    transform: perspective(800px) rotateX(0) rotateY(0);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.glass-card:hover {
    transform: perspective(800px) translateY(-4px) translateZ(8px);
}
