/* How It Works / Process Section - Modern Design */

.how-it-works {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0a15 50%, #0a0a0f 100%);
    padding: 80px var(--spacing-lg) !important;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.how-it-works::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 0;
}

.how-it-works h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3rem);
}

.how-it-works h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 2px;
}

.process-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-3xl);
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Vertical connector line */
.process-steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    z-index: 0;
}

/* Process Step Card */
.process-step {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: var(--spacing-lg) var(--spacing-xl);
    padding-left: 100px;
    transition: all var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.8s ease-out both;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }
.process-step:nth-child(6) { animation-delay: 0.6s; }

/* Gradient top border */
.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

/* Step number circle */
.step-number {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
    z-index: 2;
    transition: all var(--transition-base);
}

.process-step:hover .step-number {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4);
}

/* Step icon */
.step-icon {
    display: none;
}

/* Step title */
.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 var(--spacing-sm) 0;
    transition: all var(--transition-base);
}

.process-step:hover .step-title {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Step description */
.step-description {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* Hover effect */
.process-step:hover {
    transform: translateX(8px);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08));
}

/* Final note box */
.process-note {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out 0.6s both;
}

.process-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 12px 12px 0 0;
}

.process-note p {
    color: #d1d5db;
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
}

.process-note a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.process-note a:hover {
    color: #ec4899;
    text-decoration: underline;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .how-it-works {
        padding: 60px var(--spacing-md) !important;
    }

    .process-steps::before {
        left: 20px;
    }

    .process-step {
        padding: var(--spacing-xl);
        padding-left: var(--spacing-2xl);
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .process-step:hover {
        transform: translateX(4px);
    }
}
