
:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --purple: #8a2be2;
    --orange: #ffa500;
    --pink: #ff1493;
    --button-bg: #4040ff;
}

.how-it-works {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.how-it-works .title-spaced {
    margin-bottom: clamp(25.45px, 14vh, 999rem);
}

.container {
    max-width: 1200px;
    padding: 
        clamp(48px, 3.23vw, 999rem)
        clamp(24px, 1.67vw, 999rem);
    text-align: center;
}

.how-it-works h1 {
    font-size: 2.5rem;
    letter-spacing: 0.5rem;
    margin-bottom: 4rem;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 4.5rem;
    margin-bottom: 4rem;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    position: relative;
}

.circular-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-radius: 999px;
    border-top: 8px solid #8b5cf6;
    border-left: 8px solid #8b5cf6;
    border-bottom: 8px solid #8b5cf6;
    transform: rotate(45deg);
}




.circle-end {
    position: absolute;
    top: 52%;
    right: 4px;
    width: 30px;
    height: 30px;
    background: linear-gradient(329.34deg, #3739AF 14.7%, #3A3BBB 26.3%, #7732E0 80.56%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.step-overlay-bg
{
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    background-color: #F3F3F60A;
    border-radius: 999px;
}

.step-circle{
    width: 250px;
    height: 250px;
    border-radius: 50%;
    /* border: 2px solid; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
}



.step:nth-child(1) .circular-border {
    border-color: var(--purple) transparent var(--purple)  var(--purple);
}

.step:nth-child(2) .circular-border {
    border-color: var(--orange) transparent var(--orange) var(--orange) ;
}

.step:nth-child(3) .circular-border {
    border-color: var(--pink) transparent var(--pink) var(--pink);
}

.step:nth-child(1) .circle-end {
    background: linear-gradient(329.34deg, #3739AF 14.7%, #3A3BBB 26.3%, #7732E0 80.56%);

}

.step:nth-child(2) .circle-end {
    background: linear-gradient(329.34deg, #DAA155 14.7%, #D8973F 26.52%, #DE703D 53.32%, #DC5C39 80.56%);

}

.step:nth-child(3) .circle-end {
    background: linear-gradient(329.34deg, #A3165F 14.7%, #C6106B 26.52%, #C50E4E 53.32%, #AD0542 80.56%);

}

.step-circle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    bottom: -10px;
    right: 20px;
}

.step::after
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    background-color: #F3F3F60A;
    border-radius: 999px;
}

.step h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.join-button {
    background-color: var(--button-bg);
    color: var(--text-color);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.join-button:hover {
    background-color: #3030ff;
}

.join-button img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin-bottom: 2rem;
    }
}