.how_to_section_anchor {
    width: 10px;
    height: 2px;
    max-width: 10px;
    max-height: 2px;
    background: transparent;
    position: absolute;
    margin-top: -60px;
}

/* how to section styles */
.how_to_section {
    padding-top: 0px;
    padding-bottom: 50px;
    padding-left: 32px;
    padding-right: 32px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.how_to_content {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.section_title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    margin-top: 4px;
    color: var(--text_color);
    text-align: center;
    position: relative;
}

.section_title:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-purple));
}

.how_to_grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    padding: 2rem 0;
}

.how_to_grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        var(--accent-color) 15%,
        var(--accent-purple) 85%,
        transparent 100%
    );
    transform: translateX(-50%);
    z-index: 1;
}

.how_to_card {
    background-color: rgba(17, 17, 17, 0.98);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: calc(50% - 10.2rem);
    min-height: none;
    max-height: min-content;
    z-index: 2;
}

[data-theme="light"] .how_to_card {
    background-color: var(--block_background);
    box-shadow: var(--block_shadow);
}

.how_to_card:nth-child(odd) {
    margin-left: auto;
    margin-right: 3rem;
}

.how_to_card:nth-child(even) {
    margin-right: auto;
    margin-left: 3rem;
}

.how_to_card::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid var(--body_background);
    box-shadow: 0 0 0 2px var(--accent-color);
    z-index: 5;
}

.how_to_card:nth-child(odd)::before {
    left: -4rem;
}

.how_to_card:nth-child(even)::before {
    right: -4rem;
}

.how_to_card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    transform: translateY(-50%);
    z-index: 2;
}

.how_to_card:nth-child(odd)::after {
    left: -2rem;
}

.how_to_card:nth-child(even)::after {
    right: -2rem;
    background: linear-gradient(to left, var(--accent-color), transparent);
}

/* special handling for first two cards */
.how_to_card:nth-child(1)::before,
.how_to_card:nth-child(2)::before {
    display: none;
}

.how_to_card:nth-child(1)::after {
    left: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.how_to_card:nth-child(2)::after {
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to left, var(--accent-color), transparent);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* create the joining node */
.how_to_grid::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--body_background);
    box-shadow: 0 0 0 2px var(--accent-color);
    z-index: 5;
}

.how_to_card:first-child {
    background: rgba(17, 17, 17, 0.8);
    min-height: none;
}

[data-theme="light"] .how_to_card:first-child {
    background: var(--block_background);
}

.pulse_container {
    display: none;
}

.how_to_card:hover {
    box-shadow: 0 8px 30px rgba(109, 58, 255, 0.15);
    border-color: rgba(109, 58, 255, 0.3);
}

.card_number {
    position: absolute;
    top: -17.5px;
    right: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-dark);
    opacity: 0.15;
    z-index: 1;
}

.how_to_card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    color: var(--text_color);
    position: relative;
    z-index: 2;
}

.how_to_card p {
    color: var(--text_color);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    margin-top: 0px;
}

.how_to_card .option_divider {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
}

.how_to_card .card_actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    justify-content: flex-end;
}

.how_to_card .card_actions a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
}

.how_to_card .card_actions a:hover {
    background: var(--accent-color);
    color: var(--text_color);
}

.docs_link {
    text-align: center;
    margin-top: 2rem;
}

.docs_link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.docs_link a:hover {
    background: var(--accent-color);
    color: var(--text_color);
    transform: translateY(-2px);
}

.docs_link a::after {
    content: "→";
    font-size: 1.2em;
}

/* media queries for how to section */
@media (max-width: 768px) {
    .how_to_section {
        padding: 3rem 1.5rem;
        padding-top: 0px;
    }
    
    .section_title {
        font-size: 2rem;
    }

    .how_to_grid::before {
        left: 2rem;
    }
    
    .how_to_card {
        width: calc(100% - 5rem);
        margin-top: -24px !important; /* top */ 
        margin-left: 5rem !important; /* left */ 
        margin-right: 0 !important; /* right */ 
        margin-bottom: 0 !important; /* bottom */
        min-height: auto;
        position: relative !important;
    }
    
    .how_to_card::before {
        left: -8px;
    }

    .how_to_card::after {
        left: -1rem !important;
    }
    
    .pulse_container {
        width: 300px;
        height: 300px;
    }

    /* Show circles for all cards on mobile */
    .how_to_card:nth-child(1)::before,
    .how_to_card:nth-child(2)::before {
        display: block;
    }
}

@media (max-width: 480px) {
    .how_to_grid {
        grid-template-columns: 1fr;
    }
}

.how_to_card_1 {
    --height-now: 154px;
    max-height: var(--height-now);
    min-height: var(--height-now);
}

.how_to_grid::after {
    top: 128px;
}

@media (max-width: 960px) {
    .how_to_card_1 {
        --height-now: 220px;
        max-height: var(--height-now);
        min-height: var(--height-now);
    }
    .how_to_grid::after {
        top: 161px;
    }
}

@media (max-width: 825px) {
    .how_to_card_1 {
        --height-now: 240px;
        max-height: var(--height-now);
        min-height: var(--height-now);
    }
    .how_to_grid::after {
        top: 171px;
    }
}

@media (max-width: 767px) {
    .how_to_card_1 {
        --height-now: 170px;
        max-height: var(--height-now);
        min-height: var(--height-now);
    }
    .how_to_grid::after {
        top: 151px;
        display: none;
    }
    .how_to_grid {
        margin-left: -30px;
    }
    .how_to_card {
       max-width: calc(100vw - 160px);
    }
    .how_to_card:nth-child(1)::after {
        margin-left: -15px;
    }
    .how_to_card:nth-child(odd)::before, .how_to_card::before {
        left: -62px;
    }
    .how_to_card:nth-child(2)::after {
        margin-left: -15px;
        transform: rotate(180deg);
    }
    .how_to_card::after {
        margin-left: -15px;
    }
    .how_to_card:nth-child(4)::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 560px) {
    .how_to_card_1 {
        --height-now: 190px;
        max-height: var(--height-now);
        min-height: var(--height-now);
    }
    .how_to_grid::after {
        top: 171px;
    }
}