/* ════════════════════════════════════════════
   Hero Header V3 — Neon Pulse — scw-hh3
   ════════════════════════════════════════════ */

.scw-hh3 {
    position: relative;
    background: var(--scw-hh3-bg, #08080E);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ── Animated background glows ── */
.scw-hh3__glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.15;
    pointer-events: none;
}

.scw-hh3__glow--1 {
    background: var(--scw-hh3-glow-1, #FF3B6E);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    animation: scwHh3GlowFloat1 8s ease-in-out infinite;
}

.scw-hh3__glow--2 {
    background: var(--scw-hh3-glow-2, #6C3AED);
    bottom: -300px;
    right: -100px;
    animation: scwHh3GlowFloat2 10s ease-in-out infinite;
}

@keyframes scwHh3GlowFloat1 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-30px); }
}

@keyframes scwHh3GlowFloat2 {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(30px); }
}

/* ── Noise texture overlay ── */
.scw-hh3::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ── Main content area ── */
.scw-hh3__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 40px 60px;
    position: relative;
    z-index: 5;
}

/* ── Floating avatar orbit ── */
.scw-hh3__orbit {
    position: absolute;
    width: min(800px, 85vw);
    height: min(800px, 85vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.scw-hh3__orbit-img {
    position: absolute;
    width: 110px;
    height: 140px;
    border-radius: var(--scw-hh3-avatar-radius, 16px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.scw-hh3__orbit-img:hover {
    transform: scale(1.08) !important;
    z-index: 20;
    border-color: var(--scw-hh3-accent, #FF3B6E);
}

.scw-hh3__orbit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Orbit positions (6 images around the center) */
.scw-hh3__orbit-img:nth-child(1) { top: -20px;  left: calc(50% - 55px); }
.scw-hh3__orbit-img:nth-child(2) { top: 15%;    right: -15px; }
.scw-hh3__orbit-img:nth-child(3) { bottom: 15%; right: -5px; }
.scw-hh3__orbit-img:nth-child(4) { bottom: -20px; left: calc(50% - 55px); }
.scw-hh3__orbit-img:nth-child(5) { bottom: 15%; left: -15px; }
.scw-hh3__orbit-img:nth-child(6) { top: 15%;    left: -15px; }

/* Float animation per card (staggered) */
.scw-hh3__orbit-img:nth-child(1) { animation: scwHh3CardFloat 4.0s ease-in-out infinite; }
.scw-hh3__orbit-img:nth-child(2) { animation: scwHh3CardFloat 4.5s ease-in-out infinite 0.5s; }
.scw-hh3__orbit-img:nth-child(3) { animation: scwHh3CardFloat 3.8s ease-in-out infinite 1.0s; }
.scw-hh3__orbit-img:nth-child(4) { animation: scwHh3CardFloat 4.2s ease-in-out infinite 0.3s; }
.scw-hh3__orbit-img:nth-child(5) { animation: scwHh3CardFloat 4.8s ease-in-out infinite 0.8s; }
.scw-hh3__orbit-img:nth-child(6) { animation: scwHh3CardFloat 3.5s ease-in-out infinite 1.2s; }

@keyframes scwHh3CardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ── Headline area (above orbit z-index) ── */
.scw-hh3__headline {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Live counter pill ── */
.scw-hh3__live-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--scw-hh3-live-accent, #FF3B6E), transparent 90%);
    border: 1px solid color-mix(in srgb, var(--scw-hh3-live-accent, #FF3B6E), transparent 80%);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--scw-hh3-live-accent, #FF3B6E);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scw-hh3__live-dot {
    width: 7px;
    height: 7px;
    background: #22C55E;
    border-radius: 50%;
    animation: scwHh3LivePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes scwHh3LivePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50%      { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ── Title with gradient text ── */
.scw-hh3__title {
    font-size: clamp(40px, 6.5vw, 80px);
    font-weight: 800;
    line-height: 1.0;
    margin: 0 0 20px;
    letter-spacing: -0.04em;
    background: linear-gradient(
        180deg,
        var(--scw-hh3-heading-color, #FFFFFF) 30%,
        color-mix(in srgb, var(--scw-hh3-heading-color, #FFFFFF), transparent 50%) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scw-hh3__accent {
    -webkit-text-fill-color: var(--scw-hh3-accent, #FF3B6E);
}

/* ── Description ── */
.scw-hh3__desc {
    font-size: 18px;
    color: var(--scw-hh3-desc-color, rgba(255, 255, 255, 0.45));
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 44px;
}

/* ── CTA button group ── */
.scw-hh3__cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Glow primary button */
.scw-hh3__cta-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--scw-hh3-cta-bg, #FF3B6E);
    color: var(--scw-hh3-cta-color, #ffffff);
    border: none;
    padding: 18px 48px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 40px color-mix(in srgb, var(--scw-hh3-cta-bg, #FF3B6E), transparent 70%);
}

.scw-hh3__cta-glow:hover {
    background: var(--scw-hh3-cta-hover, #E0245E);
    transform: translateY(-2px);
    box-shadow: 0 0 60px color-mix(in srgb, var(--scw-hh3-cta-bg, #FF3B6E), transparent 50%);
}

.scw-hh3__cta-glow:active {
    transform: translateY(0);
}

/* Ghost secondary button */
.scw-hh3__cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--scw-hh3-ghost-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--scw-hh3-ghost-border, rgba(255, 255, 255, 0.1));
    color: var(--scw-hh3-ghost-color, #F5F5F7);
    padding: 18px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scw-hh3__cta-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Bottom stats ── */
.scw-hh3__stats {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
}

.scw-hh3__stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scw-hh3__stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--scw-hh3-stat-num-color, #FFFFFF);
    letter-spacing: -0.02em;
    line-height: 1;
}

.scw-hh3__stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--scw-hh3-stat-lbl-color, rgba(255, 255, 255, 0.35));
}

/* ── Bottom note ── */
.scw-hh3__note {
    font-size: 12px;
    color: var(--scw-hh3-note-color, rgba(255, 255, 255, 0.25));
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

/* ── Bottom curve SVG ── */
.scw-hh3__curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    pointer-events: none;
    z-index: 5;
}

.scw-hh3__curve svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ── Fade-in animations ── */
@keyframes scwHh3FadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.scw-hh3__live-count { animation: scwHh3FadeInUp 0.6s ease both 0.15s; }
.scw-hh3__title      { animation: scwHh3FadeInUp 0.6s ease both 0.25s; }
.scw-hh3__desc       { animation: scwHh3FadeInUp 0.6s ease both 0.4s; }
.scw-hh3__cta-group  { animation: scwHh3FadeInUp 0.6s ease both 0.55s; }
.scw-hh3__stats      { animation: scwHh3FadeInUp 0.6s ease both 0.7s; }

/* ════════════════════════════════════════════
   Responsive — Tablet (≤ 1024px)
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .scw-hh3__orbit {
        width: min(620px, 80vw);
        height: min(620px, 80vw);
    }

    .scw-hh3__orbit-img {
        width: 90px;
        height: 115px;
    }

    /* Adjust center positions for smaller orbit images */
    .scw-hh3__orbit-img:nth-child(1) { left: calc(50% - 45px); }
    .scw-hh3__orbit-img:nth-child(4) { left: calc(50% - 45px); }

    .scw-hh3__title {
        font-size: clamp(36px, 5.5vw, 60px);
    }

    .scw-hh3__desc {
        font-size: 16px;
    }

    .scw-hh3__stats {
        gap: 40px;
    }

    .scw-hh3__stat-num {
        font-size: 26px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .scw-hh3 {
        min-height: auto;
        padding-bottom: 80px;
    }

    .scw-hh3__inner {
        padding: 32px 24px 40px;
    }

    .scw-hh3__glow {
        width: 400px;
        height: 400px;
    }

    /* Orbit becomes a horizontal avatar row */
    .scw-hh3__orbit {
        position: relative;
        width: auto;
        height: auto;
        top: auto;
        left: auto;
        transform: none;
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-bottom: 28px;
        pointer-events: auto;
    }

    .scw-hh3__orbit-img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 52px;
        height: 52px;
        border-radius: 50% !important;
        animation: none !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .scw-hh3__title {
        font-size: clamp(32px, 8vw, 48px);
        letter-spacing: -0.03em;
    }

    .scw-hh3__desc {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .scw-hh3__stats {
        gap: 28px;
        margin-top: 40px;
    }

    .scw-hh3__stat-num {
        font-size: 24px;
    }

    .scw-hh3__curve svg {
        height: 50px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Small mobile (≤ 480px)
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
    .scw-hh3__inner {
        padding: 24px 16px 32px;
    }

    .scw-hh3__orbit-img {
        width: 42px;
        height: 42px;
    }

    .scw-hh3__orbit {
        gap: 8px;
    }

    .scw-hh3__live-count {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 24px;
    }

    .scw-hh3__title {
        font-size: 30px;
    }

    .scw-hh3__desc {
        font-size: 14px;
    }

    .scw-hh3__cta-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .scw-hh3__cta-glow,
    .scw-hh3__cta-ghost {
        width: 100%;
        padding: 16px 32px;
        font-size: 14px;
    }

    .scw-hh3__stats {
        gap: 20px;
    }

    .scw-hh3__stat-num {
        font-size: 22px;
    }

    .scw-hh3__curve svg {
        height: 36px;
    }
}
