/* How HanuPayout Works Section - Advanced UI Design */

.how-it-works-section {
    padding: 100px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e0e7ff 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.how-it-works-container {
    position: relative;
    z-index: 1;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-it-works-subtitle {
    color: #4A6CF7;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.how-it-works-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1D2144;
}

.how-it-works-title .text-gradient {
    background: linear-gradient(to right, #4A6CF7, #6366F1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-it-works-description {
    font-size: 16px;
    color: #64748B;
    max-width: 700px;
    margin: 0 auto;
}

/* Removed .how-it-works-content as it's no longer needed with the new layout */

/* Dashboard Image */
.dashboard-image-container {
    width: 872px;
    height: 550px;
    margin: 0 auto 60px;
    position: relative;
    display: flex;
    justify-content: center;
}

.dashboard-image {
    width: 872px;
    height: 550px;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
}

/* Responsive styles for dashboard image */
@media (max-width: 992px) {
    .dashboard-image-container {
        width: 100%;
        height: auto;
        max-width: 700px;
    }
    
    .dashboard-image {
        width: 100%;
        height: auto;
        max-width: 700px;
    }
}

/* Status Pills - Kept for reference in case needed elsewhere */
.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

.status-pill.success {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-pill.processing {
    background-color: #fef9c3;
    color: #ca8a04;
}

/* Steps */
.steps-container {
    flex: 1;
    margin-top: 80px;
    padding: 0 20px;
}

.steps-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

/* Connecting lines between steps */
.steps-horizontal::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 90px;
    right: 90px;
    height: 2px;
    background: linear-gradient(90deg, rgba(74, 108, 247, 0.2), rgba(99, 102, 241, 0.5), rgba(74, 108, 247, 0.2));
    z-index: 0;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
    padding: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .steps-horizontal::before {
        left: 60px;
        right: 60px;
    }
}

@media (max-width: 768px) {
    .steps-horizontal {
        flex-direction: column;
        gap: 40px;
    }
    
    .steps-horizontal::before {
        display: none;
    }
    
    .step-item {
        max-width: 400px;
        margin: 0 auto;
    }
}

.step-item.active {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A6CF7, #6366F1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 2;
    border: 3px solid white;
}

.step-content {
    padding-top: 10px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #1D2144;
    margin-bottom: 10px;
}

.step-description {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
}

/* Animation for chart bars */
@keyframes grow-bar {
    from { height: 0; }
    to { height: var(--bar-height); }
}

.chart-bar {
    animation: grow-bar 1.5s ease forwards;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .how-it-works-content {
        flex-direction: column;
    }
    
    .laptop-display {
        order: 1;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 40px;
    }
    
    .steps-container {
        order: 2;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .how-it-works-title {
        font-size: 28px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .step-title {
        font-size: 18px;
    }
}
