/* ==========================================
   PREMIUM HOW IT WORKS SECTION
   Light Mode - Brand Consistent Design
   ========================================== */

.how-it-works-premium {
    position: relative;
    padding: 1px 24px;
    margin: 8px 0;
    background: none;
    overflow: hidden;
    margin-bottom: 71px;
}

/* Subtle Mesh Gradient Background Effect */
.how-it-works-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.05) 0%, transparent 50%);
    opacity: 0.6;
    animation: none;
    /* Removed animation for subtlety */
}

@keyframes meshMove {

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

    50% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

.how-it-works-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header-premium {
    text-align: center;
    margin-bottom: 14px;
}

.premium-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #FF8C00, #fb923c);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: none;
    /* Removed backdrop-filter */
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3);
    margin-bottom: 20px;
    margin-top: 22px;
}

.premium-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1e293b;
    background: none;
    /* Removed background clip for text */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.premium-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Steps Flow Container */
.steps-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

/* Clean White Card */
.glass-card {
    position: relative;
    width: 277px;
    padding: 11px 15px;
    background: #ffffff;
    backdrop-filter: none;
    /* Removed backdrop-filter */
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    /* Changed to visible */
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    display: none;
    /* Hide the top line */
}

.glass-card:hover {
    transform: translateY(-12px);
    border-color: #FF8C00;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12),
        0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* Step Number */
.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: #f1f5f9;
    background: none;
    /* Removed background clip for text */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    opacity: 0.5;
}

/* Icon Container */
.step-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon Glow Effect - Subtle for Light Mode */
.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    animation: glowPulse 3s ease-in-out infinite;
}

.upload-glow {
    background: radial-gradient(circle, #3b82f6, transparent);
}

.ai-glow {
    background: radial-gradient(circle, #FF8C00, transparent);
}

.success-glow {
    background: radial-gradient(circle, #10b981, transparent);
}

@keyframes glowPulse {

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

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* Step Icon */
.step-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    backdrop-filter: none;
    /* Removed backdrop-filter */
    z-index: 1;
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: #ffffff;
    /* Default color, overridden by specific icons */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.upload-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
}

.upload-icon svg {
    color: #3b82f6;
}

.ai-icon {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    border-color: #fdba74;
}

.ai-icon svg {
    color: #FF8C00;
}

.success-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #6ee7b7;
}

.success-icon svg {
    color: #10b981;
}

/* Upload Particles Animation */
.upload-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 2s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 50%;
    animation-delay: 0.6s;
}

.particle:nth-child(3) {
    left: 80%;
    animation-delay: 1.2s;
}

@keyframes particleFloat {
    0% {
        bottom: 10%;
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        bottom: 90%;
        opacity: 0;
    }
}

/* AI Brain Waves */
.ai-brain-waves {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF8C00, transparent);
    opacity: 0;
    animation: waveMove 2s ease-in-out infinite;
}

.wave:nth-child(1) {
    top: 30%;
    animation-delay: 0s;
}

.wave:nth-child(2) {
    top: 50%;
    animation-delay: 0.3s;
}

.wave:nth-child(3) {
    top: 70%;
    animation-delay: 0.6s;
}

@keyframes waveMove {

    0%,
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 0.6;
        transform: translateX(0);
    }
}

/* Success Rings */
.success-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid #10b981;
    border-radius: 50%;
    opacity: 0;
    animation: ringExpand 2s ease-out infinite;
}

.ring:nth-child(2) {
    animation-delay: 1s;
}

@keyframes ringExpand {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }

    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* Step Content */
.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    text-align: center;
    margin-top: -38px;
}

.step-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    text-align: center;
}

/* Flow Connector - Subtle for Light Mode */
.flow-connector {
    display: flex;
    align-items: center;
    gap: 1px;
    position: relative;
}

.flow-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #cbd5e1, #94a3af);
    position: relative;
    overflow: hidden;
}

.flow-pulse {
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: flowPulse 2s ease-in-out infinite;
}

@keyframes flowPulse {
    0% {
        left: -20px;
    }

    100% {
        left: 100%;
    }
}

.flow-arrow {
    width: 24px;
    height: 24px;
    color: #94a3af;
    filter: none;
    /* Removed filter */
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {

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

    50% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .steps-flow {
        flex-direction: column;
        gap: 1px;
    }

    .flow-connector {
        transform: rotate(90deg);
    }

    .flow-line {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .how-it-works-premium {
        padding: 5px 1px;
        margin: 40px 0;
    }

    .premium-title {
        font-size: 2.5rem;
    }

    .glass-card {
        width: 100%;
        max-width: 400px;
    }

    .section-header-premium {
        margin-bottom: 60px;
    }
}