/*
 * @package BusinessSaleTheme
 * Extracted from: sections-how-it-works.css
 */
/* ── Section ── */
.hiw-section {
    position: relative;
    padding: 5rem 1.5rem;
    background: #050505;
    overflow: hidden;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Ambient glows */
.hiw-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.hiw-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56,189,248,0.05), transparent 70%);
    top: 20%;
    left: -100px;
}
.hiw-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.04), transparent 70%);
    bottom: 10%;
    right: -80px;
}

.hiw-container {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.hiw-header {
    text-align: center;
    margin-bottom: 3rem;
}
.hiw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #38bdf8;
    margin-bottom: 0.75rem;
}
.hiw-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1.15;
}
.hiw-desc {
    margin: 0;
    font-size: 1rem;
    color: #a1a1aa;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ── Stats Bar ── */
.hiw-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.25rem 0;
    margin-bottom: 3.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hiw-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0 1.5rem;
}
.hiw-stat-val {
    font-size: 1.5rem;
    font-weight: 600;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hiw-stat-suffix {
    font-size: 0.875rem;
    font-weight: 500;
    color: #38bdf8;
    margin-left: 1px;
}
.hiw-stat-label {
    font-size: 0.6875rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-top: 0.125rem;
}
.hiw-stat-bar {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.04);
    border-radius: 100px;
    margin-top: 0.625rem;
    overflow: hidden;
}
.hiw-stat-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hiw-stat-fill.animated {
    width: var(--fill);
}
.hiw-stat-div {
    width: 1px;
    background: rgba(255,255,255,0.06);
    align-self: stretch;
    margin: 0.5rem 0;
}

/* ── Steps ── */
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    margin-bottom: 3rem;
}

/* Connector line */
.hiw-connector {
    display: none;
    position: absolute;
    top: 2.25rem;
    left: calc(16.666% + 1rem);
    right: calc(16.666% + 1rem);
    height: 2px;
    z-index: 0;
}
.hiw-connector-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(56,189,248,0.3), 
        rgba(129,140,248,0.3), 
        rgba(192,132,252,0.3)
    );
    border-radius: 100px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.hiw-connector-line.animated {
    transform: scaleX(1);
}

/* Step */
.hiw-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(24px);
}
.hiw-step.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--delay),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--delay);
}

/* Step number */
.hiw-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.15);
    color: #38bdf8;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    transition: all 0.3s;
}
.hiw-step:nth-child(2) .hiw-step-number {
    background: rgba(129,140,248,0.08);
    border-color: rgba(129,140,248,0.15);
    color: #818cf8;
}
.hiw-step:nth-child(3) .hiw-step-number {
    background: rgba(192,132,252,0.08);
    border-color: rgba(192,132,252,0.15);
    color: #c084fc;
}
.hiw-step:hover .hiw-step-number {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(56,189,248,0.15);
}
.hiw-step:nth-child(2):hover .hiw-step-number {
    box-shadow: 0 0 20px rgba(129,140,248,0.15);
}
.hiw-step:nth-child(3):hover .hiw-step-number {
    box-shadow: 0 0 20px rgba(192,132,252,0.15);
}

/* Step card */
.hiw-step-card {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hiw-step:hover .hiw-step-card {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Step icon */
.hiw-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.875rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    color: #52525b;
    transition: all 0.3s;
}
.hiw-step:hover .hiw-step-icon {
    background: rgba(56,189,248,0.06);
    border-color: rgba(56,189,248,0.1);
    color: #38bdf8;
}
.hiw-step:nth-child(2):hover .hiw-step-icon {
    background: rgba(129,140,248,0.06);
    border-color: rgba(129,140,248,0.1);
    color: #818cf8;
}
.hiw-step:nth-child(3):hover .hiw-step-icon {
    background: rgba(192,132,252,0.06);
    border-color: rgba(192,132,252,0.1);
    color: #c084fc;
}

/* Step title */
.hiw-step-title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #e4e4e7;
    letter-spacing: -0.01em;
}

/* Step description */
.hiw-step-desc {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #52525b;
    line-height: 1.6;
}

/* Step features */
.hiw-step-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.hiw-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #a1a1aa;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}
.hiw-feature svg {
    color: #38bdf8;
    flex-shrink: 0;
}
.hiw-step:nth-child(2) .hiw-feature svg {
    color: #818cf8;
}
.hiw-step:nth-child(3) .hiw-feature svg {
    color: #c084fc;
}

/* ── CTA Row ── */
.hiw-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.hiw-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(99,102,241,0.2);
}
.hiw-cta-primary:hover {
    background: linear-gradient(135deg, #818cf8, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}
.hiw-cta-primary:active {
    transform: translateY(0);
}
.hiw-cta-primary svg {
    transition: transform 0.2s;
}
.hiw-cta-primary:hover svg {
    transform: translateX(3px);
}
.hiw-cta-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.07);
    color: #a1a1aa;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
}
.hiw-cta-secondary:hover {
    border-color: rgba(255,255,255,0.15);
    color: #d4d4d8;
    background: rgba(255,255,255,0.03);
}

/* ── Responsive ── */
@media (min-width: 769px) {
    .hiw-connector {
        display: block;
    }
}

@media (max-width: 768px) {
    .hiw-section {
        padding: 3.5rem 1rem;
    }
    .hiw-header {
        margin-bottom: 2rem;
    }
    .hiw-stats {
        margin-bottom: 2.5rem;
        padding: 1rem 0;
        flex-direction: column;
        border-radius: 12px;
    }
    .hiw-stat {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1.25rem;
        gap: 0.75rem;
    }
    .hiw-stat-bar {
        display: none;
    }
    .hiw-stat-div {
        width: auto;
        height: 1px;
        margin: 0 1.25rem;
    }
    .hiw-steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    .hiw-step-card {
        text-align: left;
    }
    .hiw-step-icon {
        margin: 0 0 0.875rem;
    }
    .hiw-step-features {
        justify-content: flex-start;
    }
    .hiw-cta-row {
        flex-direction: column;
        width: 100%;
        max-width: 18rem;
        margin-left: auto;
        margin-right: auto;
    }
    .hiw-cta-primary, .hiw-cta-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hiw-stat-val {
        font-size: 1.25rem;
    }
    .hiw-step-card {
        padding: 1.25rem;
    }
}

