.how-it-works-section {
    position: relative;
    padding: 60px 24px 130px;
    margin-top: 0;
    background: 
        radial-gradient(circle at 6% 45%, rgba(254, 205, 211, 0.6) 0%, rgba(254, 205, 211, 0) 45%),
        radial-gradient(circle at 94% 52%, rgba(186, 230, 253, 0.7) 0%, rgba(186, 230, 253, 0) 45%),
        radial-gradient(circle at 50% 65%, rgba(221, 214, 254, 0.45) 0%, rgba(221, 214, 254, 0) 50%),
        linear-gradient(180deg, 
            #FFFFFF 0%, 
            #FFFFFF 340px, 
            #FFF5F5 480px, 
            #F0F9FF 800px, 
            #FAF5FF 1200px, 
            #FFFFFF 100%
        );
    overflow: visible;
    z-index: 5;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(180deg, 
        #FFFFFF 0%, 
        #FFFFFF 65%, 
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.hiw-ambient-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

.hiw-ambient-mesh.mesh-left {
    top: 480px;
    left: -140px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, #FB7185 0%, #FBBF24 45%, rgba(251, 113, 133, 0) 70%);
}

.hiw-ambient-mesh.mesh-right {
    top: 640px;
    right: -140px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, #00D2FF 0%, #818CF8 50%, rgba(0, 210, 255, 0) 70%);
}

.hiw-ambient-mesh.mesh-center {
    top: 1050px;
    left: 20%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #A78BFA 0%, rgba(167, 139, 250, 0) 70%);
}

.hiw-header-group {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 3;
}

.hiw-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EEF2FF;
    border: 1px solid #E0E7FF;
    color: #4F46E5;
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
}

.hiw-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4F46E5;
    box-shadow: 0 0 10px #4F46E5;
}

.hiw-main-headline {
    font-size: 3.3rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #0F172A;
    margin-bottom: 22px;
}

.hiw-sub-description {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.65;
    font-weight: 500;
    margin: 0;
}

.hiw-sticky-scroll-container {
    position: relative;
    height: 280vh;
    margin-bottom: 60px;
    z-index: 3;
}

.hiw-sticky-stage {
    position: sticky;
    top: 110px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hiw-progress-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 6px 12px;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.progress-step-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    border: none;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.25s ease;
}

.progress-step-btn:hover {
    color: #0F172A;
}

.progress-step-btn.active {
    background: #EEF2FF;
    color: #4F46E5;
}

.progress-step-btn .step-num {
    font-size: 0.76rem;
    font-weight: 900;
    opacity: 0.7;
}

.hiw-deck-viewport {
    position: relative;
    width: 100%;
    min-height: 480px;
}

.hiw-deck-card {
    position: absolute;
    inset: 0;
    width: 100%;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 
        0 25px 60px -15px rgba(15, 23, 42, 0.08),
        0 10px 25px -10px rgba(15, 23, 42, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.97);
    transition: 
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.5s;
    pointer-events: none;
}

.hiw-deck-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 5;
}

.hiw-deck-card.is-prev {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-30px) scale(0.97);
    pointer-events: none;
}

.hiw-deck-card.theme-cyan {
    background: 
        radial-gradient(circle at 10% 20%, #FEF3C7 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, #BAE6FD 0%, transparent 50%),
        linear-gradient(135deg, #ECFEFF 0%, #E0F2FE 50%, #C7D2FE 100%);
    border: 1.5px solid rgba(14, 165, 233, 0.25);
}

.hiw-deck-card.theme-violet {
    background: 
        radial-gradient(circle at 10% 20%, #FCE7F3 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, #C4B5FD 0%, transparent 50%),
        linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 50%, #E9D5FF 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.25);
}

.hiw-deck-card.theme-amber {
    background: 
        radial-gradient(circle at 10% 20%, #FFFBEB 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, #FED7AA 0%, transparent 50%),
        linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #FDBA74 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.25);
}

.card-wave-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.card-inner-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    padding: 50px;
    align-items: center;
}

.step-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.badge-cyan { color: #0284C7; }
.badge-violet { color: #7C3AED; }
.badge-amber { color: #D97706; }

.meta-divider { opacity: 0.4; }

.card-headline {
    font-size: 2.1rem;
    font-weight: 900;
    color: #0F172A;
    line-height: 1.25;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.card-paragraph {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 28px;
    font-weight: 500;
}

.card-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E293B;
}

.feature-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.check-cyan { color: #0284C7; }
.check-violet { color: #7C3AED; }
.check-amber { color: #D97706; }

.visual-satellite-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.satellite-center-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    z-index: 2;
}

.center-card-badge {
    margin-bottom: 12px;
}

.center-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 4px;
}

.center-card-status {
    font-size: 0.78rem;
    font-weight: 700;
    color: #059669;
}

.satellite-pill {
    position: absolute;
    z-index: 3;
}

.pill-top { top: 10px; left: 50%; transform: translateX(-50%); }
.pill-left { left: 10px; top: 50%; transform: translateY(-50%); }
.pill-right { right: 10px; top: 50%; transform: translateY(-50%); }

.pill-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.icon-purple { background: #FFFFFF; color: #7C3AED; }
.icon-green { background: #10B981; color: #FFFFFF; }
.icon-coral { background: #FB7185; color: #FFFFFF; }

.visual-stack-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 320px;
    margin: 0 auto;
}

.stack-base-card {
    position: absolute;
    inset: 10px 20px 20px 10px;
    background: #0F172A;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.stack-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stack-title {
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 800;
}

.stack-badge-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #A7F3D0;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.calendar-grid-mock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cal-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cal-col span {
    font-size: 0.72rem;
    color: #94A3B8;
}

.slot-bar {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

.slot-free { background: rgba(255, 255, 255, 0.08); }
.slot-picked { background: #10B981; }

.stack-overlay-floating {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-donut-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.donut-visual {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 7px solid #10B981;
    border-top-color: #E2E8F0;
}

.donut-meta {
    display: flex;
    flex-direction: column;
}

.donut-meta strong {
    font-size: 1.15rem;
    color: #0F172A;
}

.donut-meta span {
    font-size: 0.72rem;
    color: #64748B;
    font-weight: 700;
}

.floating-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F0FDF4;
    border: 1px solid #DCFCE7;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #15803D;
}

.visual-doc-flow-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.doc-card {
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.doc-main {
    position: relative;
    width: 160px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-pin-circle {
    position: absolute;
    top: -14px;
    right: 18px;
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.doc-line {
    height: 6px;
    border-radius: 9999px;
}

.line-primary { width: 80%; background: #3B82F6; }
.line-sub { width: 100%; background: #E2E8F0; }
.line-purple { width: 60%; background: #8B5CF6; }
.line-orange { width: 60%; background: #F97316; }

.doc-tag-pill {
    margin-top: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #059669;
    background: #ECFDF5;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
}

.doc-connector-dash {
    flex: 1;
    height: 2px;
    border-top: 2px dashed #CBD5E1;
}

.doc-mini {
    width: 85px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hiw-cod-banner {
    position: relative;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    border-radius: 28px;
    padding: 38px 44px;
    color: #FFFFFF;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 15;
}

.cod-banner-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.cod-banner-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A7F3D0;
    flex-shrink: 0;
}

.cod-banner-text {
    flex: 1;
}

.cod-banner-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #A7F3D0;
    margin-bottom: 6px;
}

.cod-banner-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.cod-banner-desc {
    font-size: 0.98rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin: 0;
}

.cod-banner-metrics {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.metric-box {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.metric-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: #38BDF8;
    line-height: 1;
    letter-spacing: -1px;
}

.metric-lbl {
    font-size: 0.76rem;
    color: #94A3B8;
    font-weight: 700;
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .card-inner-split {
        grid-template-columns: 1fr;
        padding: 36px 24px;
        gap: 30px;
    }

    .hiw-main-headline {
        font-size: 2.4rem;
    }

    .cod-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cod-banner-metrics {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 20px;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 30px 16px 80px;
    }

    .hiw-sticky-scroll-container {
        height: auto;
    }

    .hiw-sticky-stage {
        position: static;
    }

    .hiw-deck-viewport {
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-height: auto;
    }

    .hiw-deck-card {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .hiw-progress-nav {
        display: none;
    }

    .card-headline {
        font-size: 1.6rem;
    }

    .hiw-cod-banner {
        padding: 26px 20px;
    }
}