/**
 * How We Help You WIN - The Winning Formula Section
 * Process-focused with 3-step system visualization
 * REDESIGNED: High contrast, bold visibility, matches Victory Hero aesthetic
 */

/* Section Container */
.winning-formula-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(180deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    overflow: hidden;
}

/* Section Header */
.winning-formula-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.winning-formula-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(200, 157, 92, 0.25), rgba(16, 185, 129, 0.2));
    border: 2px solid var(--gold-primary);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 30px rgba(200, 157, 92, 0.3);
}

.winning-formula-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--white);
}

.title-gradient {
    background: linear-gradient(135deg, var(--gold-primary), var(--victory-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.winning-formula-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-weight: 500;
}

/* Process Steps Container */
.winning-formula-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Connector Lines (Desktop Only) */
.step-connector {
    display: none;
    position: absolute;
    top: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--victory-green));
    opacity: 0.6;
    z-index: 0;
    box-shadow: 0 0 20px rgba(200, 157, 92, 0.5);
}

@media (min-width: 1024px) {
    .step-connector {
        display: block;
    }
    
    .step-connector-1 {
        left: 33.33%;
        width: 16.66%;
    }
    
    .step-connector-2 {
        right: 33.33%;
        width: 16.66%;
    }
}

/* Individual Process Step */
.process-step {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process-step:nth-child(1) {
    transition-delay: 0.1s;
}

.process-step:nth-child(2) {
    transition-delay: 0.3s;
}

.process-step:nth-child(3) {
    transition-delay: 0.5s;
}

/* Step Card */
.step-card {
    background: linear-gradient(135deg, rgba(200, 157, 92, 0.15), rgba(16, 185, 129, 0.1));
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--victory-green);
    box-shadow: 0 25px 70px rgba(200, 157, 92, 0.4);
    background: linear-gradient(135deg, rgba(200, 157, 92, 0.2), rgba(16, 185, 129, 0.15));
}

/* Step Number */
.step-number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-primary), #d4a962);
    border: 4px solid #0f1419;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #0f1419;
    z-index: 2;
    box-shadow: 0 5px 25px rgba(200, 157, 92, 0.6);
}

/* Step Icon */
.step-icon-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(200, 157, 92, 0.3), rgba(16, 185, 129, 0.25));
    border: 3px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(200, 157, 92, 0.4);
}

.step-icon {
    width: 45px;
    height: 45px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 8px rgba(200, 157, 92, 0.6));
}

/* Animated Pulse Effect */
.step-icon-container::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    opacity: 0;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Step Content */
.step-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.step-description {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.step-highlight {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--victory-green);
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    border: 1px solid var(--victory-green);
}

/* CTA Section */
.winning-formula-cta {
    max-width: 900px;
    margin: 5rem auto 0;
    padding: 0 2rem;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, rgba(200, 157, 92, 0.2), rgba(16, 185, 129, 0.15));
    border: 3px solid var(--gold-primary);
    border-radius: var(--radius-xl);
    padding: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(200, 157, 92, 0.3);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-primary), var(--victory-green), var(--gold-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.cta-description {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 500;
}

a.cta-button,
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold-primary), #d4a962) !important;
    color: #0f1419 !important;
    padding: 1.5rem 3.5rem;
    font-size: 1.1875rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(200, 157, 92, 0.5);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 500px;
    height: 500px;
}

a.cta-button:hover,
.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 70px rgba(200, 157, 92, 0.7);
}

.cta-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-subtext {
    display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .winning-formula-section {
        padding: 4rem 0;
    }
    
    .winning-formula-header {
        margin-bottom: 3rem;
    }
    
    .winning-formula-steps {
        gap: 3rem;
        grid-template-columns: 1fr;
    }
    
    .step-card {
        padding: 2.5rem 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        top: -25px;
    }
    
    .step-icon-container {
        width: 80px;
        height: 80px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
    }
    
    .winning-formula-cta {
        margin-top: 3rem;
    }
    
    .cta-box {
        padding: 2.5rem 2rem;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 1.25rem 2rem;
    }
}
