.hiw-section-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.hiw-section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px 0;
    line-height: 1.2;
}

.hiw-section-header .section-label {
    font-size: 36px;
}

.hiw-subtitle {
    font-size: 16px;
    color: var(--muted);
    max-width: 540px;
    text-align: center;
    margin: 0;
    line-height: 1.65;
    font-weight: 400;
}

.hiw-card {
    position: relative;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hiw-diagram-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.hiw-svg {
    min-width: 620px;
    width: 100%;
    height: auto;
    display: block;
}

.hiw-arrow-head {
    fill: var(--accent);
    opacity: 0.7;
}

.hiw-line {
    stroke: rgba(123, 156, 255, 0.25);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.hiw-dot {
    fill: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
}

.hiw-node-hub {
    fill: var(--accent-soft);
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 14px rgba(123, 156, 255, 0.2));
    animation: hiwHubMarch 1.2s linear infinite;
}

@keyframes hiwHubMarch {
    to { stroke-dashoffset: -10; }
}

@media (prefers-reduced-motion: reduce) {
    .hiw-node-hub { animation: none; }
}


.hiw-node-market {
    fill: var(--bg);
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
    transition: fill 0.45s ease, stroke 0.45s ease, stroke-width 0.45s ease;
}

.hiw-node-market-any {
    stroke: var(--accent);
    stroke-width: 1;
    stroke-dasharray: 4 3;
    opacity: 0.75;
}

.hiw-market-group {
    cursor: default;
}

.hiw-market-logo {
    filter: grayscale(100%) opacity(0.45);
    transition: filter 0.45s ease;
}

.hiw-market-group:hover .hiw-market-logo,
.hiw-market-group.hiw-active .hiw-market-logo {
    filter: grayscale(0%) opacity(1);
}

.hiw-text-market {
    fill: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: fill 0.45s ease;
}

.hiw-market-group:hover .hiw-text-market,
.hiw-market-group.hiw-active .hiw-text-market {
    fill: var(--accent);
}

.hiw-market-group:hover .hiw-node-market,
.hiw-market-group.hiw-active .hiw-node-market {
    fill: var(--accent-soft);
    stroke: var(--accent);
    stroke-width: 1.5;
}

.hiw-market-group:hover .hiw-node-market-any,
.hiw-market-group.hiw-active .hiw-node-market-any {
    stroke-dasharray: none;
    opacity: 1;
}

.hiw-text {
    font-family: "Manrope", system-ui, sans-serif;
    text-anchor: middle;
    dominant-baseline: central;
}

.hiw-text-hub {
    fill: var(--text);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 720px) {
    .hiw-card {
        padding: 0;
    }

    .hiw-diagram-wrap {
        border-radius: 16px;
        scrollbar-width: thin;
        scrollbar-color: rgba(123, 156, 255, 0.3) transparent;
    }

    .hiw-diagram-wrap::-webkit-scrollbar {
        height: 4px;
    }

    .hiw-diagram-wrap::-webkit-scrollbar-track {
        background: transparent;
    }

    .hiw-diagram-wrap::-webkit-scrollbar-thumb {
        background: rgba(123, 156, 255, 0.3);
        border-radius: 999px;
    }
}

@media (max-width: 480px) {
    .hiw-section-header {
        margin-bottom: 24px;
    }

    .hiw-subtitle {
        font-size: 14px;
    }
}
