/* ================================================================
   HOW WE WORK — Dark Sticky Scroll-Driven Section
   Sticky driver: page scroll moves cards horizontally.
   Dark bg + dark glass cards + animated gradient border glow.
   ================================================================ */

/* ─── SCROLL DRIVER (tall wrapper that drives sticky) ─────────── */
.hww-scroll-driver {
    /* height is set by JS: 100vh + total card scroll distance */
    position: relative;
}

/* ─── STICKY SECTION ─────────────────────────────────────────── */
.hww-section {
    background: var(--creo-dark);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    /* padding-top clears the fixed nav bar (~80px) */
    padding-top: 80px;
    box-sizing: border-box;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.hww-header {
    text-align: center;
    padding: 20px 24px 20px;
    flex-shrink: 0;
}

.hww-header .badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 106, 0, 0.1);
    color: var(--creo-accent-hover);
    border: 1px solid rgba(255, 106, 0, 0.25);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
    display: block;
}

.hww-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--creo-white);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hww-header .subtitle {
    max-width: 560px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(239, 229, 207, 0.6);
}

/* ─── SCROLL TRACK (overflow hidden on section, translate via JS) */
.hww-track-wrap {
    overflow: visible;
    /* section clips, JS drives position */
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.hww-track {
    display: flex;
    gap: 20px;
    padding: 12px max(24px, calc((100vw - 1280px) / 2 + 24px));
    width: max-content;
    will-change: transform;
    transition: transform 0.05s linear;
}

/* ─── CARD ───────────────────────────────────────────────────── */
.hww-card {
    width: 370px;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 36px 32px 30px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* bordered via ::before pseudo-element */
    transition: transform 0.3s ease;
}

/* Animated gradient border glow */
.hww-card::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 21px;
    background: linear-gradient(135deg,
            rgba(255, 106, 0, 0.7),
            rgba(255, 255, 255, 0.08) 30%,
            rgba(11, 23, 61, 0.05) 60%,
            rgba(255, 106, 0, 0.5));
    background-size: 300% 300%;
    animation: hwwBorderGlow 5s ease-in-out infinite;
    z-index: -1;
}

/* Inner fill to mask the gradient border and show card bg */
.hww-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 19px;
    background: #0e1e4a;
    /* slightly lighter than --creo-dark */
    z-index: -1;
}

@keyframes hwwBorderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hww-card:hover {
    transform: translateY(-4px);
}

/* Big ghost number */
.hww-card__num {
    position: absolute;
    bottom: -20px;
    right: 8px;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
}

/* Step label */
.hww-card__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--creo-accent-hover);
    margin-bottom: var(--space-3);
}

/* Step title */
.hww-card__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--creo-white);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

/* Description */
.hww-card__desc {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(239, 229, 207, 0.6);
    flex: 1;
    margin-bottom: var(--space-5);
}

/* Outcome pill */
.hww-card__outcome {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.hww-card__outcome-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(239, 229, 207, 0.35);
}

.hww-card__outcome-value {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--creo-light);
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

/* ─── PROGRESS BAR ───────────────────────────────────────────── */
.hww-footer {
    padding: 12px 24px 28px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hww-progress-wrap {
    width: min(600px, 100%);
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.hww-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.8), var(--creo-accent-hover));
    border-radius: 2px;
    transition: width 0.08s linear;
}

/* Dots indicator */
.hww-dots {
    display: flex;
    gap: 8px;
}

.hww-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hww-dot.is-active {
    background: var(--creo-accent-hover);
    transform: scale(1.4);
}

/* CTA */
.hww-cta {
    text-align: center;
}

/* Scroll hint — shown before user scrolls into section */
.hww-scroll-hint {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(239, 229, 207, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hww-scroll-hint svg {
    animation: hwwBounce 1.4s ease-in-out infinite;
}

@keyframes hwwBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* ─── MOBILE: native horizontal scroll ──────────────────────── */
@media (max-width: 768px) {
    .hww-scroll-driver {
        height: auto !important;
        /* override JS height */
    }

    .hww-section {
        position: relative;
        height: auto;
        padding: 64px 0 48px;
    }

    .hww-header {
        padding: 0 24px 32px;
    }

    .hww-track-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        cursor: default;
    }

    .hww-track-wrap::-webkit-scrollbar {
        display: none;
    }

    .hww-track {
        transition: none;
        padding: 12px 24px;
    }

    .hww-card {
        width: 295px;
        min-height: 340px;
        padding: 32px 26px 28px;
    }

    .hww-card__num {
        font-size: 6rem;
    }

    .hww-card__title {
        font-size: 20px;
    }
}