/* How It Works Section Styles */

.how-it-works {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.5) 100%);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.step-reverse {
    direction: rtl;
}

.step-reverse > * {
    direction: ltr;
}

.step-visual {
    padding: 3rem;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--bright-blue), var(--purple-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.step-illustration {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step 1 - Microphone */
.mic-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--bright-blue), var(--purple-accent));
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.mic-icon::before {
    content: '🎙️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
}

/* Step 2 - AI Brain */
.ai-brain {
    width: 150px;
    height: 150px;
    position: relative;
}

.brain-pulse {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--purple-accent) 0%, transparent 70%);
    border-radius: 50%;
    animation: brain-pulse 3s ease-in-out infinite;
}

.brain-pulse::before {
    content: '🧠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 10;
}

@keyframes brain-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Step 3 - Dashboard */
.dashboard-preview {
    width: 200px;
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--bright-blue), var(--purple-accent));
    border-radius: 4px;
    animation: chart-grow 2s ease-in-out infinite;
}

.chart-bar:nth-child(1) {
    height: 60%;
    animation-delay: 0s;
}

.chart-bar:nth-child(2) {
    height: 80%;
    animation-delay: 0.2s;
}

.chart-bar:nth-child(3) {
    height: 50%;
    animation-delay: 0.4s;
}

@keyframes chart-grow {
    0%, 100% {
        transform: scaleY(0.8);
    }
    50% {
        transform: scaleY(1);
    }
}

/* Step Content */
.step-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.step-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-features li {
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1.5rem;
    position: relative;
}

.step-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bright-blue);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .step,
    .step-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .step-visual {
        min-height: 300px;
    }
    
    .step-content h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .steps-container {
        gap: 3rem;
    }
    
    .step-visual {
        padding: 2rem;
        min-height: 250px;
    }
    
    .step-number {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }
    
    .step-content h3 {
        font-size: 1.5rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
}
