/* ==========================================================================
   HUB WHY INTEGRATED — The Integrated Approach
   Dark background, animated 4-step horizontal timeline, GEO callout.
   ========================================================================== */

.hub-why {
    position: relative;
    background: var(--color-dark);
    padding: var(--section-padding-mobile);
    overflow: hidden;
}

@media (min-width: 992px) {
    .hub-why { padding: var(--section-padding); }
}

/* ── Animated Background ──────────────────────────────────────────────────── */
.hub-why__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hub-why__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46,196,182,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,196,182,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: hwiGridDrift 25s linear infinite;
}

@keyframes hwiGridDrift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hub-why__bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hub-why__bg-glow--1 {
    width: 500px; height: 500px;
    background: var(--color-secondary);
    top: -150px; right: -100px;
    opacity: 0.07;
    animation: hwiGlowPulse 10s ease-in-out infinite alternate;
}

.hub-why__bg-glow--2 {
    width: 350px; height: 350px;
    background: var(--color-primary);
    bottom: 0; left: -80px;
    opacity: 0.05;
    animation: hwiGlowPulse 10s ease-in-out 4s infinite alternate;
}

@keyframes hwiGlowPulse {
    0%   { opacity: 0.05; transform: scale(1); }
    100% { opacity: 0.10; transform: scale(1.12); }
}

/* ── Inner wrapper ────────────────────────────────────────────────────────── */
.hub-why__inner {
    position: relative;
    z-index: 1;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.hub-why__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 80px;
}

.hub-why__headline {
    font-size: var(--font-size-h2);
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: -0.02em;
    margin: 12px 0 20px;
    line-height: 1.15;
}

.hub-why__intro {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ── Steps Grid ───────────────────────────────────────────────────────────── */
.hub-why__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 72px;
}

@media (min-width: 768px) {
    .hub-why__steps { grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
}

@media (min-width: 1024px) {
    .hub-why__steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
}

/* ── Individual Step ──────────────────────────────────────────────────────── */
.hub-why__step {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Stagger animation per step */
.hub-why__step[data-step="0"] { transition-delay: 0.05s; }
.hub-why__step[data-step="1"] { transition-delay: 0.18s; }
.hub-why__step[data-step="2"] { transition-delay: 0.31s; }
.hub-why__step[data-step="3"] { transition-delay: 0.44s; }

.hub-why__step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .hub-why__step {
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-bottom: none;
    }
}

/* ── Track: number + connector line ──────────────────────────────────────── */
.hub-why__step-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .hub-why__step-track {
        flex-direction: row;
        align-items: center;
        margin-bottom: 28px;
    }
}

.hub-why__step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(46,196,182,0.1);
    border: 1.5px solid rgba(46,196,182,0.3);
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.hub-why__step.is-visible .hub-why__step-num {
    background: rgba(46,196,182,0.18);
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 6px rgba(46,196,182,0.08);
}

/* ── Animated connector line ──────────────────────────────────────────────── */
.hub-why__step-line {
    display: none;
}

@media (min-width: 1024px) {
    .hub-why__step-line {
        display: block;
        flex: 1;
        height: 2px;
        background: rgba(255,255,255,0.06);
        margin-left: 8px;
        overflow: hidden;
        border-radius: 2px;
    }

    .hub-why__step-line-fill {
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, var(--color-secondary) 0%, rgba(46,196,182,0.3) 100%);
        border-radius: 2px;
        transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
        transition-delay: 0.5s;
    }

    .hub-why__step.is-visible .hub-why__step-line-fill {
        width: 100%;
    }
}

/* ── Step content ─────────────────────────────────────────────────────────── */
.hub-why__step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 1024px) {
    .hub-why__step-content { padding-right: 0; }
}

.hub-why__step-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(46,196,182,0.1);
    border: 1px solid rgba(46,196,182,0.15);
    color: var(--color-secondary);
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

@media (min-width: 1024px) {
    .hub-why__step-icon { display: flex; }
}

.hub-why__step-icon svg {
    width: 20px; height: 20px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.hub-why__step-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.3;
}

.hub-why__step-body {
    font-size: var(--font-size-sm);
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* ── GEO Callout ──────────────────────────────────────────────────────────── */
.hub-why__geo-callout {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(46,196,182,0.2);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
    overflow: hidden;
    align-items: center;
}

@media (min-width: 768px) {
    .hub-why__geo-callout {
        grid-template-columns: 1fr 1fr;
    }
}

.hub-why__geo-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 75% 50%, rgba(46,196,182,0.09) 0%, transparent 55%),
        linear-gradient(rgba(46,196,182,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,196,182,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
}

/* Content side */
.hub-why__geo-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
}

.hub-why__geo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46,196,182,0.12);
    border: 1px solid rgba(46,196,182,0.3);
    color: var(--color-secondary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    width: fit-content;
}

.hub-why__geo-eyebrow svg {
    width: 8px;
    height: 8px;
    fill: var(--color-secondary);
    flex-shrink: 0;
}

.hub-why__geo-headline {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    line-height: 1.2;
}

.hub-why__geo-body {
    font-size: var(--font-size-sm);
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    margin: 0 0 28px;
}

/* Stats rows */
.hub-why__geo-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.hub-why__geo-stat {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--color-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.hub-why__geo-stat-value {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    flex-shrink: 0;
}

.hub-why__geo-stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

/* Orbital visual */
.hub-why__geo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hub-why__geo-orbit-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.hub-why__geo-orbit-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(46,196,182,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hub-why__geo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 10px rgba(46,196,182,0.1), 0 0 0 20px rgba(46,196,182,0.05);
}

.hub-why__geo-center-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: 0.05em;
}

.hub-why__geo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(46,196,182,0.2);
    transform-origin: center center;
}

.hub-why__geo-ring--1 {
    width: 160px;
    height: 160px;
    margin-top: -80px;
    margin-left: -80px;
    animation: hwiGeoOrbit1 8s linear infinite;
}

.hub-why__geo-ring--2 {
    width: 260px;
    height: 260px;
    margin-top: -130px;
    margin-left: -130px;
    animation: hwiGeoOrbit2 14s linear infinite;
}

@keyframes hwiGeoOrbit1 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes hwiGeoOrbit2 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

.hub-why__geo-node {
    position: absolute;
    background: var(--color-dark);
    border: 1px solid rgba(46,196,182,0.4);
    color: var(--color-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.hub-why__geo-ring--1 .hub-why__geo-node {
    animation: hwiGeoCounterRotate1 8s linear infinite;
}

.hub-why__geo-ring--2 .hub-why__geo-node {
    animation: hwiGeoCounterRotate2 14s linear infinite;
}

@keyframes hwiGeoCounterRotate1 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

@keyframes hwiGeoCounterRotate2 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hub-why__geo-node--top    { top: -12px;    left: 50%; transform: translateX(-50%); }
.hub-why__geo-node--bottom { bottom: -12px;  left: 50%; transform: translateX(-50%); }
.hub-why__geo-node--right  { right: -32px;   top: 50%;  transform: translateY(-50%); }
.hub-why__geo-node--left   { left: -32px;    top: 50%;  transform: translateY(-50%); }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .hub-why__geo-callout { padding: 32px 24px; }
    .hub-why__geo-visual { display: none; }
}
