/* Enhanced USP Section Styles */

/* Advanced animations */
@keyframes gradientFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        transform: translate(10px, -15px) rotate(90deg);
        border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%;
    }
    50% {
        transform: translate(-10px, -20px) rotate(180deg);
        border-radius: 30% 70% 40% 60% / 40% 50% 60% 30%;
    }
    75% {
        transform: translate(15px, -10px) rotate(270deg);
        border-radius: 70% 30% 60% 40% / 30% 70% 40% 50%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4),
                    0 0 30px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0),
                    0 0 50px rgba(99, 102, 241, 0.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Enhanced floating elements */
.usp-floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.usp-floating-element {
    position: absolute;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(59, 130, 246, 0.1) 100%);
    animation: gradientFloat 20s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.usp-floating-element:nth-child(1) {
    top: 10%;
    right: 5%;
    width: 120px;
    height: 120px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.usp-floating-element:nth-child(2) {
    bottom: 15%;
    left: 8%;
    width: 80px;
    height: 80px;
    animation-delay: -5s;
    animation-duration: 22s;
}

.usp-floating-element:nth-child(3) {
    top: 40%;
    left: 15%;
    width: 60px;
    height: 60px;
    animation-delay: -10s;
    animation-duration: 16s;
}

.usp-floating-element:nth-child(4) {
    bottom: 30%;
    right: 20%;
    width: 100px;
    height: 100px;
    animation-delay: -7s;
    animation-duration: 25s;
}

/* Enhanced pricing comparison table */
.usp-comparison-table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.usp-comparison-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        #6366f1 0%, 
        #8b5cf6 25%, 
        #3b82f6 50%, 
        #06b6d4 75%, 
        #10b981 100%);
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 100%;
}

.usp-comparison-header {
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.usp-comparison-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 2s ease-in-out infinite;
}

.usp-comparison-row {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.usp-comparison-row:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(4px);
}

.usp-comparison-row:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366f1 0%, #3b82f6 100%);
}

/* Enhanced benefit cards */
.usp-benefit-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.usp-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.usp-benefit-card:hover::before {
    left: 100%;
}

.usp-benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.usp-benefit-icon {
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.usp-benefit-card:hover .usp-benefit-icon {
    transform: scale(1.1) rotate(5deg);
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Interactive statistics */
.usp-stat-counter {
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: countUp 0.8s ease-out;
}

.usp-stat-label {
    position: relative;
    overflow: hidden;
}

.usp-stat-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    transition: width 0.6s ease;
}

.usp-stat-item:hover .usp-stat-label::after {
    width: 100%;
}

/* Enhanced testimonial */
.usp-testimonial {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.usp-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.usp-testimonial::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6366f1, #3b82f6, #8b5cf6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.usp-testimonial:hover::before {
    opacity: 1;
}

/* Call-to-action buttons */
.usp-cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
}

.usp-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.usp-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.usp-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/* Advanced check marks */
.usp-check-mark {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.usp-check-mark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.usp-check-mark:hover::before {
    width: 40px;
    height: 40px;
}

.usp-check-mark:hover {
    transform: scale(1.1);
    animation: pulseGlow 1.5s ease-in-out infinite;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .usp-floating-element {
        opacity: 0.5;
        transform: scale(0.7);
    }
    
    .usp-benefit-card {
        margin-bottom: 1rem;
    }
    
    .usp-comparison-table {
        font-size: 0.875rem;
    }
    
    .usp-stat-counter {
        font-size: 1.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .usp-floating-element,
    .usp-benefit-card,
    .usp-check-mark {
        animation: none;
        transition: none;
    }
    
    .usp-comparison-row:hover {
        transform: none;
    }
    
    .usp-benefit-card:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .usp-comparison-table {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        color: #f9fafb;
    }
    
    .usp-benefit-card {
        background: rgba(31, 41, 55, 0.8);
        border-color: rgba(75, 85, 99, 0.3);
        color: #f9fafb;
    }
    
    .usp-testimonial {
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.1) 0%, 
            rgba(59, 130, 246, 0.1) 100%);
        color: #f9fafb;
    }
}

/* Loading states */
.usp-loading {
    opacity: 0;
    animation: slideInFromBottom 0.8s ease-out forwards;
}

.usp-loading:nth-child(1) { animation-delay: 0.1s; }
.usp-loading:nth-child(2) { animation-delay: 0.2s; }
.usp-loading:nth-child(3) { animation-delay: 0.3s; }
.usp-loading:nth-child(4) { animation-delay: 0.4s; }

/* Interactive elements */
.usp-interactive-icon {
    transition: all 0.3s ease;
    cursor: pointer;
}

.usp-interactive-icon:hover {
    animation: rotateIcon 0.6s ease-in-out;
    color: #6366f1;
}

/* Performance optimizations */
.usp-benefit-card,
.usp-comparison-table,
.usp-testimonial {
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}
