.how-it-works-section {
    position: relative;
    z-index: 1;
    padding: 20px 20px 30px;
    background: #13131e;
    width: 100%;
    min-height: fit-content;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .how-it-works-section {
        padding: 30px 24px 40px;
    }
}

@media (min-width: 1024px) {
    .how-it-works-section {
        padding: 30px 40px 40px;
    }
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}


/* Section Header */
.how-it-works-header {
    text-align: center;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .how-it-works-header {
        margin-bottom: 40px;
    }
}

.how-it-works-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.04em;
    line-height: 1.1;
    padding: 0 10px;
}

@media (min-width: 640px) {
    .how-it-works-title {
        font-size: 2.5rem;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .how-it-works-title {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
}

.how-it-works-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
}

@media (min-width: 640px) {
    .how-it-works-subtitle {
        font-size: 1.125rem;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .how-it-works-subtitle {
        font-size: 1.25rem;
    }
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    position: relative;
    width: 100%;
}

@media (min-width: 640px) {
    .steps-container {
        gap: 24px;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .steps-container {
        gap: 24px;
        flex-wrap: nowrap;
    }
}

/* Step Card */
.step-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(4px);
    padding: 32px 24px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

@media (min-width: 640px) {
    .step-card {
        max-width: 400px;
        flex: 1 1 auto;
    }
}

@media (min-width: 768px) {
    .step-card {
        padding: 36px 28px 28px;
        max-width: none;
        min-width: 0;
        flex: 1 1 0;
        min-height: auto;
    }
}

@media (min-width: 1024px) {
    .step-card {
        min-height: auto;
    }
}

.step-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(167, 139, 250, 0.08), transparent 70%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 20px;
}

.step-card:hover {
    border-color: rgba(167, 139, 250, 0.4);
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 32px rgba(167, 139, 250, 0.2),
        0 0 0 1px rgba(167, 139, 250, 0.1) inset;
}

.step-card:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Step Header */
.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
    min-height: 100px;
}

/* Step Number */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 50%;
    color: #10b981;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.step-card:hover .step-number {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    border-color: rgba(16, 185, 129, 0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Step Icon */
.step-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(66, 42, 213, 0.1));
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(66, 42, 213, 0.2));
    border-color: rgba(167, 139, 250, 0.5);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.2);
}

.step-icon svg {
    width: 36px;
    height: 36px;
    color: #a78bfa;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon svg {
    color: #c4b5fd;
    transform: scale(1.1);
}

/* Step Content */
.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .step-title {
        font-size: 1.375rem;
    }
}

@media (min-width: 768px) {
    .step-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
}

.step-description {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 640px) {
    .step-description {
        font-size: 0.9375rem;
    }
}

@media (min-width: 768px) {
    .step-description {
        font-size: 1rem;
    }
}

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

@media (min-width: 768px) {
    .step-connector {
        display: block;
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, rgba(167, 139, 250, 0.3), rgba(167, 139, 250, 0.1));
        margin-top: 40px;
        position: relative;
        flex-shrink: 0;
    }
    
    .step-connector::after {
        content: '';
        position: absolute;
        right: -4px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid rgba(167, 139, 250, 0.3);
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
    }
}

@media (min-width: 1024px) {
    .step-connector {
        width: 60px;
    }
}

