/* HowItWorks Section */
.howItWorksSection {
    background: #0a0a0a;
    /* Solid background to prevent overlap transparency */
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin-top: -2px;
    min-height: 80vh;
    z-index: 50;
    /* Ensure it covers the fixed Hero section */
}

.howItWorksContainer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

/* Left Column */
.howItWorksContent {
    flex: 1;
    min-width: 300px;
    padding-top: 20px;
}

/* ======================== */
/* Animated Text Area       */
/* ======================== */
.hiw-text-area {
    transition: opacity 0.25s ease, transform 0.25s ease;
    height: 260px;
    /* Fixed height — buttons never move */
    overflow: hidden;
}

.hiw-text--visible {
    opacity: 1;
    transform: translateY(0);
}

.hiw-text--hidden {
    opacity: 0;
    transform: translateY(8px);
}

.howItWorksTitle {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.howItWorksDescription {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 450px;
}

/* Scenario Bullets */
.scenarioBullets-wrapper {
    min-height: 80px;
    /* Reserve space so layout doesn't shift */
}

.scenarioBullets {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.scenarioBullets li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    animation: bulletSlideIn 0.35s ease-out both;
}

@keyframes bulletSlideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    transition: background 0.4s ease;
}

/* ======================== */
/* Category Buttons         */
/* ======================== */
.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    position: relative;
    /* Anchor for Interaction Hint */
}

/* ... existing category-btn styles ... */

/* --- Interaction Hint Arrow --- */
.interaction-hint {
    position: absolute;
    right: -220px;
    /* Positions it to the right of the buttons */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    width: 200px;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
    max-width: 340px;
}

.category-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow, transparent), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: inherit;
}

.category-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(6px);
}

.category-btn:hover::before {
    opacity: 1;
}

.category-btn--active {
    color: #fff;
    border-color: var(--accent, #fff);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px var(--accent-glow, transparent),
        inset 0 0 20px var(--accent-glow, transparent);
    transform: translateX(8px);
}

.category-btn--active::before {
    opacity: 1;
}

.category-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.35s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.category-btn--active .category-btn__icon {
    background: var(--accent-glow, rgba(255, 255, 255, 0.1));
    color: var(--accent, #fff);
}

.category-btn:hover .category-btn__icon {
    background: rgba(255, 255, 255, 0.1);
}

.category-btn__label {
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.category-btn__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
    transition: all 0.35s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.category-btn--active .category-btn__indicator {
    box-shadow: 0 0 10px var(--accent, #fff);
}

/* CTA Wrapper — always in layout, visibility toggles with animation */
.hiw-cta-wrapper {
    transition: opacity 0.35s ease, transform 0.35s ease;
    overflow: visible;
    height: 80px;
    /* Fixed height so it doesn't shift layout */
    margin-top: 10px;
}

.hiw-cta--visible {
    opacity: 1;
    transform: translateY(0);
}

.hiw-cta--hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* CTA Button */
.hiw-cta-button {
    margin-top: 4px;
    padding: 12px 28px;
    background: var(--accent, #00f0ff);
    border: none;
    color: #000;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--accent-glow, transparent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hiw-cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow, transparent);
}

/* Right Column — Orb placeholder */
.howItWorksVisual {
    flex: 1;
    min-width: 350px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.orb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Hint pulse removed as we have new interactive hint */
.orb-hint {
    display: none;
}

/* --- Interaction Hint Arrow --- */
.interaction-hint {
    position: absolute;
    right: -140px;
    /* Moved further left (closer to buttons) */
    top: 50%;
    /* Vertically centered relative to buttons (gap between 2 and 3) */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    width: 200px;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.interaction-hint-arrow {
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy turn */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.interaction-hint-arrow svg {
    display: block;
}

/* Default State (No selection): Arrow points LEFT (Rotated 180deg from right-pointing SVG) */
.interaction-hint .interaction-hint-arrow {
    transform: rotate(180deg);
}

/* Active State (Selection made): Arrow points RIGHT (0deg) */
.interaction-hint--active .interaction-hint-arrow {
    transform: rotate(0deg);
    color: #fff;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
}

.interaction-hint-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 180px;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.interaction-hint--active .interaction-hint-text {
    color: #fff;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Media Queries */
@media (max-width: 1400px) {
    .howItWorksTitle {
        font-size: 2rem;
    }

    .howItWorksDescription {
        font-size: 1rem;
        max-width: 400px;
    }

    .category-btn {
        padding: 10px 16px;
        gap: 10px;
        max-width: 300px;
    }

    .category-btn__icon {
        width: 32px;
        height: 32px;
    }

    .category-btn__label {
        font-size: 0.95rem;
    }

    .hiw-text-area {
        height: 240px;
    }
}

@media (max-width: 900px) {
    .howItWorksContainer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .howItWorksContent {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .category-buttons {
        align-items: center;
    }

    .category-btn {
        max-width: 100%;
    }

    .category-btn:hover,
    .category-btn--active {
        transform: translateX(0) translateY(-2px);
    }

    .scenarioBullets li {
        justify-content: center;
    }

    .howItWorksVisual {
        min-height: 450px;
        /* Increased for Orb space */
    }

    /* --- Mobile Interaction Hint --- */
    .interaction-hint {
        position: relative;
        /* Flow naturally in column layout */
        right: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
        width: 100%;
        max-width: 300px;
        flex-direction: column-reverse;
        /* Text on top, Arrow below pointing down? No, let's keep std order */
    }

    /* 
       Mobile Arrow Logic:
       IDLE (Default): Point UP towards buttons (-90deg from right-svg)
       ACTIVE: Point DOWN towards Orb (90deg from right-svg)
    */
    .interaction-hint .interaction-hint-arrow {
        transform: rotate(-90deg);
        /* Points UP */
        margin-bottom: 5px;
    }

    .interaction-hint--active .interaction-hint-arrow {
        transform: rotate(90deg);
        /* Points DOWN */
        margin-top: 5px;
        margin-bottom: 0;
    }

    .interaction-hint-text {
        font-size: 0.95rem;
        max-width: 250px;
    }
}