/* ── How It Works Page ─────────────────────────────────────── */

.hiw-hero {
    padding: 130px 0 90px;
    background: var(--brand-gradient);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hiw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.10) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.07) 0%, transparent 50%);
    pointer-events: none;
}

.hiw-hero .badge-pill {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 1.6rem;
    letter-spacing: 0.02em;
}

.hiw-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.hiw-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Audience Tabs ─────────────────────────────────────────── */
.hiw-tabs {
    padding: 80px 0 60px;
    background: var(--surface-color);
}

.hiw-tabs .section-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-start);
    margin-bottom: 0.75rem;
}

.hiw-tabs .section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.hiw-tabs .section-sub {
    font-size: 1.05rem;
    color: var(--muted-text);
    max-width: 520px;
    margin: 0 auto 3rem;
}

.audience-switcher {
    display: inline-flex;
    background: var(--surface-muted);
    border-radius: 50px;
    padding: 5px;
    gap: 4px;
    margin-bottom: 3.5rem;
    border: 1px solid var(--border-color);
}

.audience-switcher button {
    border: none;
    background: transparent;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audience-switcher button.active {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--brand-start-rgb), 0.28);
}

/* ── Steps Grid ────────────────────────────────────────────── */
.steps-grid {
    display: none;
    gap: 2rem;
}

.steps-grid.active {
    display: grid;
}

.steps-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.steps-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.step-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.4rem 2rem;
    position: relative;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.step-card:hover::before { opacity: 1; }

.step-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(var(--brand-start-rgb), 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-start);
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.6rem;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--muted-text);
    line-height: 1.7;
    margin: 0;
}

/* ── Why Choose Us ─────────────────────────────────────────── */
.hiw-why {
    padding: 90px 0;
    background: var(--surface-muted);
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.2rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.feature-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.4rem;
}

.feature-body p {
    font-size: 0.89rem;
    color: var(--muted-text);
    line-height: 1.65;
    margin: 0;
}

/* ── Stats Banner ──────────────────────────────────────────── */
.hiw-stats {
    padding: 80px 0;
    background: var(--brand-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hiw-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.stat-item { position: relative; z-index: 1; }

.stat-item .stat-value {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-item .stat-label {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.25);
    margin: 0 auto;
    height: 60px;
    align-self: center;
}

/* ── CTA ───────────────────────────────────────────────────── */
.hiw-cta {
    padding: 90px 0 110px;
    background: var(--surface-color);
}

.hiw-cta .cta-box {
    background: var(--brand-gradient);
    border-radius: 28px;
    padding: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 5vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(var(--brand-deep-rgb), 0.28);
}

.hiw-cta .cta-box::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 65%; height: 160%;
    background: radial-gradient(circle, rgba(255,255,255,0.20) 0%, transparent 70%);
    pointer-events: none;
}

.hiw-cta .cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hiw-cta .cta-box p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}

.hiw-cta .btn-white {
    background: #fff;
    color: var(--brand-start);
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2.4rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
    box-shadow: 0 8px 22px rgba(15,23,42,0.18);
    position: relative;
    z-index: 1;
}

.hiw-cta .btn-white:hover {
    background: var(--brand-gradient);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(var(--brand-deep-rgb),0.26);
    text-decoration: none;
}

.hiw-cta .btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    padding: 0.9rem 2.4rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.22s ease;
    position: relative;
    z-index: 1;
}

.hiw-cta .btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 992px) {
    .steps-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .steps-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hiw-hero { padding: 100px 0 70px; }
    .hiw-tabs  { padding: 60px 0 40px; }
    .hiw-why   { padding: 60px 0; }
    .hiw-stats { padding: 60px 0; }
    .hiw-cta   { padding: 60px 0 80px; }

    .steps-grid.cols-4,
    .steps-grid.cols-3 { grid-template-columns: 1fr; }

    .stat-divider { display: none; }

    .audience-switcher button { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
}
