/* --- Why Choose Returny Section --- */
.section-why {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: var(--bg-light);
    transition: background 0.5s ease;
}

[data-theme="dark"] .section-why {
    background: #0a0518;
}

/* Ambient Background for Section */
.why-ambient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.why-orb {
    position: absolute;
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    animation: whyOrbFloat 15s infinite alternate ease-in-out;
}

.why-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-violet), transparent);
    top: 10%;
    left: -100px;
}

.why-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    bottom: 10%;
    right: -100px;
    animation-delay: -7s;
}

@keyframes whyOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

/* Header */
.why-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 1;
}

.why-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary-light);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

[data-theme="dark"] .why-title {
    color: var(--text-primary-dark);
}

/* Grid Layout */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* Feature Cards */
.why-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .why-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.why-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-violet);
}

[data-theme="dark"] .why-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* Card Icons */
.why-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(109, 40, 217, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-violet);
    transition: transform 0.3s ease;
}

.why-card:hover .why-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-violet);
    color: white;
}

/* AI Glow Effect */
.ai-retain-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    animation: aiPulse 4s infinite;
}

.why-card.ai-feature:hover .ai-retain-glow {
    opacity: 1;
}

@keyframes aiPulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.3; }
}

/* Card Content */
.why-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary-light);
    line-height: 1.3;
}

[data-theme="dark"] .why-card-title {
    color: var(--text-primary-dark);
}

.why-card-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* AI Thinking Micro-animation */
.ai-thinking {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-violet);
    margin-top: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.why-card:hover .ai-thinking {
    opacity: 1;
    transform: translateY(0);
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.thinking-dot {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite;
}

.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-card {
        padding: 32px;
    }
    .why-header {
        margin-bottom: 50px;
    }
}
