/* ==========================================================
   HOME HERO — 3D isometric explainer (light theme, looping)
   ========================================================== */

.hx-hero {
    --hx-cyan: #00B4F1;
    --hx-blue: #0081ad;
    --hx-lav: #C9C4E1;
    --hx-ink: #1A1D21;
    --hx-mute: #64748B;
    --hx-line: rgba(0, 129, 173, 0.14);
    --hx-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --u: 62px;

    position: relative;
    min-height: 100vh;
    padding: 85px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--hx-ink);
    background:
        radial-gradient(ellipse 55% 60% at 78% 38%, rgba(0, 180, 241, 0.13) 0%, transparent 70%),
        radial-gradient(ellipse 40% 45% at 8% 92%, rgba(201, 196, 225, 0.45) 0%, transparent 70%),
        linear-gradient(180deg, #F5F9FC 0%, #FFFFFF 100%);
    isolation: isolate;
}

/* faint dot pattern */
.hx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(0, 129, 173, 0.13) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
    pointer-events: none;
}

.hx-hero__body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.hx-hero__row {
    width: 100%;
    align-items: center;
}

/* ---------- Copy (left) ---------- */
.hx-copy {
    position: relative;
    display: grid;
}

/* all scenes share one grid cell: the copy is as tall as the tallest scene */
.hx-scene {
    grid-area: 1 / 1;
    align-self: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

.hx-scene.is-active,
.hx-scene.is-leaving {
    visibility: visible;
}

.hx-scene.is-active {
    pointer-events: auto;
}

.hx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hx-cyan);
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(12px);
}

.hx-eyebrow::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--hx-cyan);
    transition: width 0.8s var(--hx-ease) 0.1s;
}

.hx-title {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: clamp(2.4rem, 4.2vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--hx-ink);
    margin: 0 0 24px;
}

.hx-line {
    display: block;
    padding-bottom: 0.04em;
}

.hx-line--long {
    font-size: 0.88em;
}

.hx-word {
    display: inline-block;
    white-space: nowrap;
}

.hx-char {
    display: inline-block;
    white-space: pre;
    transform: translateY(105%);
    opacity: 0;
}

.hx-line--accent .hx-char {
    /* extend the box so the clipped gradient also paints descenders (g, p, y) */
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
    background: linear-gradient(90deg, #00B4F1 0%, #0081ad 50%, #00B4F1 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hxShimmer 5s linear infinite;
}

@keyframes hxShimmer {
    from { background-position: 0% 50%; }
    to   { background-position: 200% 50%; }
}

.hx-desc {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--hx-mute);
    max-width: 500px;
    margin: 0 0 34px;
    opacity: 0;
    transform: translateY(14px);
}

.hx-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    opacity: 0;
    transform: translateY(14px);
}

.hx-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 36px;
    background: var(--hx-cyan);
    border: 1px solid var(--hx-cyan);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 180, 241, 0.28);
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--hx-ease);
}

.hx-btn:hover,
.hx-btn:focus-visible {
    background: var(--hx-blue);
    border-color: var(--hx-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 129, 173, 0.32);
}

.hx-btn i {
    transition: transform 0.4s var(--hx-ease);
}

.hx-btn:hover i {
    transform: translateX(5px);
}

.hx-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--hx-ink);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--hx-lav);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.hx-link:hover,
.hx-link:focus-visible {
    color: var(--hx-blue);
    border-color: var(--hx-cyan);
}

/* scene choreography */
.hx-scene.is-active .hx-eyebrow,
.hx-scene.is-active .hx-desc,
.hx-scene.is-active .hx-cta {
    opacity: 1;
    transform: none;
}

.hx-scene.is-active .hx-eyebrow { transition: opacity 0.7s ease 0.05s, transform 0.8s var(--hx-ease) 0.05s; }
.hx-scene.is-active .hx-eyebrow::before { width: 36px; }
.hx-scene.is-active .hx-desc { transition: opacity 0.8s ease 0.65s, transform 0.9s var(--hx-ease) 0.65s; }
.hx-scene.is-active .hx-cta { transition: opacity 0.8s ease 0.85s, transform 0.9s var(--hx-ease) 0.85s; }

.hx-scene.is-active .hx-char {
    transform: none;
    opacity: 1;
    transition:
        transform 0.9s var(--hx-ease) calc(0.2s + var(--i) * 0.03s),
        opacity 0.5s ease calc(0.2s + var(--i) * 0.03s);
}

.hx-scene.is-leaving .hx-eyebrow,
.hx-scene.is-leaving .hx-desc,
.hx-scene.is-leaving .hx-cta {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.45s ease;
}

.hx-scene.is-leaving .hx-char {
    opacity: 0;
    transform: translateY(-105%);
    transition:
        transform 0.5s cubic-bezier(0.7, 0, 0.84, 0) calc(var(--i) * 0.01s),
        opacity 0.4s ease calc(var(--i) * 0.01s);
}

/* ---------- 3D stage (right) ---------- */
.hx-stage-wrap {
    position: relative;
    height: 560px;
}

.hx-chip {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--hx-line);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 129, 173, 0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hx-blue);
    backdrop-filter: blur(6px);
}

.hx-chip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hx-cyan);
    box-shadow: 0 0 0 4px rgba(0, 180, 241, 0.18);
    animation: hxPulse 1.6s ease-in-out infinite;
}

@keyframes hxPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.6); opacity: 0.5; }
}

.hx-viewport {
    position: absolute;
    inset: 0;
    perspective: 2200px;
    perspective-origin: 50% 35%;
}

.hx-cam,
.hx-sway,
.hx-world {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

.hx-cam {
    transform: rotateX(var(--crx, 58deg)) rotateZ(var(--crz, -40deg)) scale(var(--cs, 1));
    transition: transform 2s cubic-bezier(0.45, 0, 0.2, 1);
}

.hx-sway {
    left: 0;
    top: 0;
    animation: hxSway 14s ease-in-out infinite alternate;
}

@keyframes hxSway {
    from { transform: rotateZ(-5deg); }
    to   { transform: rotateZ(5deg); }
}

.hx-world {
    left: 0;
    top: 0;
}

/* floor */
.hx-floor {
    position: absolute;
    width: calc(var(--u) * 10);
    height: calc(var(--u) * 10);
    left: calc(var(--u) * -5);
    top: calc(var(--u) * -5);
    background-image:
        linear-gradient(var(--hx-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hx-line) 1px, transparent 1px);
    background-size: var(--u) var(--u);
    background-position: calc(var(--u) / 2) calc(var(--u) / 2);
    -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
    mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
}

.hx-floor::after {
    content: '';
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 241, 0.16), transparent 70%);
}

/* blocks (cuboids) */
.hx-blk {
    --x: 0; --y: 0; --z: 0; --sx: 1; --sy: 1; --sz: 1; --r: 0;
    --top: #ffffff; --s1: #e4f0f8; --s2: #cfe3f0; --ic: var(--hx-blue);
    position: absolute;
    width: var(--u);
    height: var(--u);
    left: calc(var(--u) / -2);
    top: calc(var(--u) / -2);
    transform-style: preserve-3d;
    transform:
        translate3d(calc(var(--x) * var(--u)), calc(var(--y) * var(--u)), calc(var(--z) * var(--u)))
        rotateZ(calc(var(--r) * 1deg))
        scale3d(var(--sx), var(--sy), var(--sz));
    transition: transform 1.2s cubic-bezier(0.34, 1.3, 0.5, 1);
}

.hx-blk .f {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--u);
    height: var(--u);
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: background-color 0.9s ease, opacity 0.6s ease;
    backface-visibility: visible;
}

.hx-blk .f-top {
    background: var(--top);
    transform: translateZ(var(--u));
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(0, 129, 173, 0.08);
}

.hx-blk .f-s { background: var(--s1); transform-origin: 50% 100%; transform: rotateX(-90deg); }
.hx-blk .f-e { background: var(--s2); transform-origin: 100% 50%; transform: rotateY(90deg); }
.hx-blk .f-n { background: var(--s2); transform-origin: 50% 0; transform: rotateX(90deg); }
.hx-blk .f-w { background: var(--s1); transform-origin: 0 50%; transform: rotateY(-90deg); }
.hx-blk .f-shadow {
    background: rgba(0, 60, 90, 0.22);
    filter: blur(8px);
    transform: translate3d(6px, 6px, 1px);
    border: 0;
}

.hx-blk .f-top i {
    font-size: calc(var(--u) * 0.42);
    color: var(--ic);
    transition: color 0.6s ease;
}

.hx-blk .f-top i.pop {
    animation: hxPop 0.6s var(--hx-ease);
}

@keyframes hxPop {
    0% { transform: scale(0.2); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.hx-blk.is-hidden .f {
    opacity: 0;
}

.hx-blk.c-white { --top: #ffffff; --s1: #e4f0f8; --s2: #cfe3f0; --ic: var(--hx-blue); }
.hx-blk.c-lav   { --top: #ece9f7; --s1: #d6d1ea; --s2: #bfb9dc; --ic: #6b62a8; }
.hx-blk.c-cyan  { --top: #3cc9f6; --s1: #00a6de; --s2: #0090c2; --ic: #ffffff; }
.hx-blk.c-blue  { --top: #1d97c1; --s1: #0081ad; --s2: #006b90; --ic: #ffffff; }

/* beams on the floor */
.hx-beam {
    --bx: 0; --by: 0; --len: 1; --ang: 0;
    position: absolute;
    left: 0;
    top: -2px;
    height: 4px;
    width: calc(var(--len) * var(--u));
    transform-origin: 0 50%;
    transform: translate3d(calc(var(--bx) * var(--u)), calc(var(--by) * var(--u)), 2px) rotateZ(calc(var(--ang) * 1deg));
}

.hx-beam span {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg, var(--hx-cyan) 0 10px, rgba(0, 180, 241, 0.25) 10px 20px);
    background-size: 40px 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    transition: transform 0.9s var(--hx-ease);
    animation: hxFlow 0.8s linear infinite;
}

.hx-beam.on span {
    transform: scaleX(1);
}

@keyframes hxFlow {
    from { background-position: 0 0; }
    to   { background-position: 40px 0; }
}

.hx-beam.belt {
    top: calc(var(--u) * -0.35);
    height: calc(var(--u) * 0.7);
}

.hx-beam.belt span {
    border-radius: 6px;
    background:
        repeating-linear-gradient(90deg, rgba(0, 129, 173, 0.22) 0 3px, transparent 3px 22px),
        #e8f3fa;
    background-size: 44px 100%;
    box-shadow: inset 0 0 0 1px rgba(0, 129, 173, 0.2);
    animation-duration: 1.2s;
}

/* packets riding the conveyor (scene 3 only) */
.hx-packet {
    position: absolute;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
    animation: hxPacket 4.5s linear infinite;
    animation-delay: calc(var(--d) * -1.5s);
    visibility: hidden;
}

.hx-world.is-belt .hx-packet {
    visibility: visible;
}

.hx-world.is-fast .hx-packet {
    animation-duration: 2.4s;
    animation-delay: calc(var(--d) * -0.8s);
}

.hx-packet .hx-blk {
    --sx: 0.42; --sy: 0.42; --sz: 0.42;
    transition: none;
}

/* no opacity here: opacity would flatten the 3D packet */
@keyframes hxPacket {
    from { transform: translate3d(calc(var(--u) * -3), 0, 0); }
    to   { transform: translate3d(calc(var(--u) * 3), 0, 0); }
}

/* caption ("subtitle") card */
.hx-caption {
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 92%;
    padding: 12px 20px 12px 12px;
    background: #fff;
    border: 1px solid var(--hx-line);
    border-radius: 60px;
    box-shadow: 0 18px 40px rgba(0, 129, 173, 0.12);
    white-space: nowrap;
}

.hx-caption__step {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--hx-cyan), var(--hx-blue));
    color: #fff;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-weight: 600;
    font-size: 15px;
}

.hx-caption__text {
    font-size: 15px;
    font-weight: 600;
    color: var(--hx-ink);
    overflow: hidden;
    text-overflow: ellipsis;
}

.hx-caption__dots {
    display: flex;
    gap: 5px;
    margin-left: 4px;
}

.hx-caption__dots b {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hx-line);
    transition: background 0.4s ease, width 0.4s ease;
}

.hx-caption__dots b.on {
    width: 16px;
    border-radius: 6px;
    background: var(--hx-cyan);
}

.hx-caption.swap .hx-caption__text,
.hx-caption.swap .hx-caption__step {
    animation: hxCap 0.6s var(--hx-ease);
}

@keyframes hxCap {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: none; }
}

/* ---------- Player bar ---------- */
.hx-player {
    position: relative;
    z-index: 4;
    padding: 18px 0 28px;
}

.hx-player__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hx-play {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--hx-line);
    background: #fff;
    color: var(--hx-blue);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 129, 173, 0.1);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hx-play:hover,
.hx-play:focus-visible {
    background: var(--hx-cyan);
    color: #fff;
    transform: scale(1.06);
    outline: none;
}

.hx-play .fa-play { display: none; margin-left: 2px; }
.hx-play[aria-pressed="false"] .fa-play { display: inline-block; }
.hx-play[aria-pressed="false"] .fa-pause { display: none; }

.hx-chapters {
    flex: 1 1 auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hx-chapter {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 8px 0;
    cursor: pointer;
}

.hx-chapter__bar {
    position: relative;
    display: block;
    height: 3px;
    border-radius: 3px;
    background: rgba(0, 129, 173, 0.12);
    overflow: hidden;
    margin-bottom: 10px;
}

.hx-chapter__fill {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hx-cyan), var(--hx-blue));
    transform-origin: left center;
    transform: scaleX(0);
}

.hx-chapter__label {
    display: flex;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.hx-chapter__label b {
    color: var(--hx-cyan);
    font-weight: 700;
}

.hx-chapter.is-active .hx-chapter__label,
.hx-chapter:hover .hx-chapter__label,
.hx-chapter:focus-visible .hx-chapter__label {
    color: var(--hx-ink);
}

.hx-chapter:focus-visible .hx-chapter__bar {
    outline: 2px solid var(--hx-cyan);
    outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .hx-hero { --u: 50px; }
    .hx-stage-wrap { height: 500px; }
}

@media (max-width: 991px) {
    .hx-hero {
        --u: 38px;
        min-height: 0;
    }

    .hx-hero__row {
        flex-direction: column-reverse;
    }

    .hx-stage-wrap {
        height: 400px;
        margin-top: 10px;
    }

    .hx-copy {
        text-align: center;
    }

    .hx-scene {
        align-self: start;
        padding-top: 18px;
    }

    .hx-eyebrow,
    .hx-cta {
        justify-content: center;
    }

    .hx-eyebrow::before {
        display: none;
    }

    .hx-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hx-chapter__label span {
        display: none;
    }
}

@media (max-width: 575px) {
    .hx-hero { --u: 30px; }

    .hx-stage-wrap { height: 330px; }

    .hx-chip { display: none; }

    .hx-caption {
        left: 12px;
        right: 12px;
        transform: none;
        max-width: none;
        padding: 8px 14px 8px 8px;
        gap: 10px;
        border-radius: 18px;
    }

    .hx-caption__step {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .hx-caption__text {
        font-size: 13px;
        white-space: normal;
        line-height: 1.3;
    }

    .hx-caption__dots { display: none; }

    .hx-title { font-size: clamp(2.1rem, 10vw, 2.8rem); }

    .hx-btn { padding: 14px 26px; letter-spacing: 2px; }

    .hx-chapters { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .hx-sway,
    .hx-beam span,
    .hx-line--accent .hx-char,
    .hx-chip i,
    .hx-packet {
        animation: none;
    }

    .hx-cam,
    .hx-blk {
        transition-duration: 0.01s;
    }

    .hx-scene .hx-char,
    .hx-scene.is-active .hx-char,
    .hx-scene.is-leaving .hx-char {
        transition-duration: 0.01s !important;
        transition-delay: 0s !important;
    }
}

/* ==========================================================
   Dark navy theme (matches the prototype hero palette)
   ========================================================== */
.hx-hero {
    --hx-ink: #ffffff;
    --hx-mute: rgba(226, 238, 248, 0.8);
    --hx-line: rgba(255, 255, 255, 0.12);
    --hx-glass: rgba(255, 255, 255, 0.07);
    --hx-glass-line: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(ellipse 45% 55% at 82% 18%, rgba(0, 150, 220, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 10% 85%, rgba(30, 80, 140, 0.45) 0%, transparent 70%),
        linear-gradient(135deg, #0b1f3a 0%, #0d2d52 45%, #0a3a63 100%);
}

.hx-hero::before {
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}

.hx-eyebrow {
    color: #33c3f5;
}

.hx-eyebrow::before {
    background: #33c3f5;
}

.hx-line--accent .hx-char {
    background-image: linear-gradient(90deg, #7fdcff 0%, #00B4F1 50%, #7fdcff 100%);
}

/* buttons: white pill + outline pill */
.hx-btn {
    padding: 15px 30px;
    border-radius: 50px;
    background: #fff;
    border-color: #fff;
    color: #0b1f3a;
    font-size: 15px;
    letter-spacing: 0.2px;
    text-transform: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.hx-btn:hover,
.hx-btn:focus-visible {
    background: #33c3f5;
    border-color: #33c3f5;
    color: #0b1f3a;
    box-shadow: 0 18px 40px rgba(0, 180, 241, 0.35);
}

.hx-link {
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    font-size: 15px;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #fff;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hx-link:hover,
.hx-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.hx-cta {
    gap: 14px;
}

/* stats in a glass strip */
.hx-hero .tq-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    max-width: 520px;
    border: 1px solid var(--hx-glass-line);
    border-radius: 16px;
    background: var(--hx-glass);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.hx-hero .tq-hero-stats div {
    padding: 18px 20px;
}

.hx-hero .tq-hero-stats div + div {
    border-left: 1px solid var(--hx-glass-line);
}

.hx-hero .tq-hero-stats div b {
    color: #fff;
}

.hx-hero .tq-hero-stats div span {
    color: rgba(226, 238, 248, 0.75);
}

/* stage chrome: glass chip + caption */
.hx-chip,
.hx-caption {
    background: rgba(13, 45, 82, 0.6);
    border-color: var(--hx-glass-line);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.hx-chip {
    color: #9fe6ff;
}

.hx-caption__text {
    color: #fff;
}

.hx-caption__dots b {
    background: rgba(255, 255, 255, 0.25);
}

.hx-floor::after {
    background: radial-gradient(circle, rgba(0, 180, 241, 0.28), transparent 70%);
}

/* player bar */
.hx-play {
    background: var(--hx-glass);
    border-color: var(--hx-glass-line);
    color: #fff;
    box-shadow: none;
}

.hx-chapter__bar {
    background: rgba(255, 255, 255, 0.15);
}

.hx-chapter__fill {
    background: linear-gradient(90deg, #33c3f5, #7fdcff);
}

.hx-chapter__label {
    color: rgba(226, 238, 248, 0.55);
}

.hx-chapter__label b {
    color: #33c3f5;
}

.hx-chapter.is-active .hx-chapter__label,
.hx-chapter:hover .hx-chapter__label,
.hx-chapter:focus-visible .hx-chapter__label {
    color: #fff;
}

@media (max-width: 991px) {
    .hx-hero .tq-hero-stats {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575px) {
    .hx-hero .tq-hero-stats div {
        padding: 14px 10px;
        text-align: center;
    }

    .hx-cta {
        justify-content: center;
    }
}

/* ==========================================================
   Intro: glass Rubik's cube that transforms into the first scene
   ========================================================== */
.hx-rubik {
    position: absolute;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
}

.hx-rubik.is-off {
    visibility: hidden;
}

.hx-blk.c-glass {
    --top: rgba(214, 210, 240, 0.5);
    --s1: rgba(199, 196, 226, 0.34);
    --s2: rgba(150, 190, 235, 0.26);
    transition: transform 1.2s cubic-bezier(0.45, 0, 0.2, 1);
}

.hx-blk.c-glass .f {
    border: 1.5px solid rgba(214, 210, 240, 0.95);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12);
    transition: background-color 1s ease, border-color 1s ease, opacity 0.9s ease, box-shadow 1s ease;
}

.hx-blk.c-glass .f-shadow {
    display: none;
}

/* corner cubies turn into solid white scene blocks */
.hx-blk.c-glass.to-solid {
    --top: #ffffff;
    --s1: #e4f0f8;
    --s2: #cfe3f0;
}

.hx-blk.c-glass.to-solid .f {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}
/* the rest fold into the centre and dissolve */
.hx-blk.c-glass.to-merge .f {
    opacity: 0;
}

/* during the intro the caption bubble steps aside */
.hx-caption {
    transition: opacity 0.5s ease;
}

.hx-hero.hx-intro .hx-caption {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hx-rubik {
        display: none;
    }
}

/* logo pose: solid lavender tops like the TechRAQ mark, floor grid fades back */
.hx-hero.hx-logo .hx-blk.c-glass {
    --top: rgba(199, 196, 226, 0.95);
}

.hx-floor {
    transition: opacity 1.2s ease;
}

/* keep the logo pose perfectly square: no sway during the intro.
   Negative delay starts the sway at its 0deg midpoint so it resumes without a jump. */
.hx-sway {
    animation-delay: -7s;
}

.hx-hero.hx-intro .hx-sway {
    animation: none;
}

/* ---------- Caption: understated text line (no box) ---------- */
.hx-caption {
    gap: 12px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    bottom: 10px;
}

/* no step number here: it read as the chapter numbers in the player bar below.
   A small cyan dot leads the caption instead. */
.hx-caption__step {
    display: none;
}

.hx-caption__text::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 12px;
    border-radius: 50%;
    vertical-align: middle;
    background: var(--hx-cyan);
    box-shadow: 0 0 10px rgba(0, 180, 241, 0.8);
    transform: translateY(-1px);
}

.hx-caption__text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 12px rgba(0, 20, 40, 0.6);
}

.hx-caption__dots {
    display: none;
}

@media (max-width: 575px) {
    .hx-caption {
        padding: 0;
        border-radius: 0;
    }

    .hx-caption__text {
        font-size: 12.5px;
    }
}

/* ---------- "How it works" chip: soft sentence-case label (no box),
   deliberately unlike the uppercase chapter labels in the player bar ---------- */
.hx-chip {
    gap: 8px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-transform: none;
    color: rgba(255, 255, 255, 0.55);
    top: 10px;
    right: 12px;
}

.hx-chip i {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 10px rgba(0, 180, 241, 0.8);
    animation: none;
}

.hx-chip b {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.hx-chip b::before {
    content: ': ';
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

/* sit the 3D scene a little lower so it reads centred between the label and the caption */
.hx-cam,
.hx-sway {
    top: 57%;
}

/* ---------- Hero stats: open layout, no box ---------- */
.hx-hero .tq-hero-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: none;
    margin-top: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

.hx-hero .tq-hero-stats div {
    position: relative;
    padding: 2px 34px 2px 0;
}

/* thin divider that fades out at both ends */
.hx-hero .tq-hero-stats div + div {
    padding-left: 34px;
    border-left: 0;
}

.hx-hero .tq-hero-stats div + div::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.hx-hero .tq-hero-stats div b {
    display: flex;
    align-items: flex-start;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
}

.hx-hero .tq-hero-stats .tq-count__sfx {
    margin-left: 2px;
    font-size: 0.7em;
    font-weight: 500;
    line-height: 1.2;
    color: var(--hx-cyan);
}

.hx-hero .tq-hero-stats div span {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(226, 238, 248, 0.62);
}

@media (max-width: 991px) {
    .hx-hero .tq-hero-stats {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hx-hero .tq-hero-stats div {
        flex: 1 1 0;
        padding: 2px 8px;
        text-align: center;
    }

    .hx-hero .tq-hero-stats div + div {
        padding-left: 8px;
    }

    .hx-hero .tq-hero-stats div b {
        justify-content: center;
        font-size: 1.9rem;
    }

    .hx-hero .tq-hero-stats div span {
        font-size: 11.5px;
    }
}

/* ---------- Hero buttons: brand cyan pair (solid + outline) ---------- */
.hx-btn {
    background: var(--hx-cyan);
    border-color: var(--hx-cyan);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 180, 241, 0.3);
}

.hx-btn:hover,
.hx-btn:focus-visible {
    background: var(--hx-blue);
    border-color: var(--hx-blue);
    color: #fff;
    box-shadow: 0 16px 34px rgba(0, 129, 173, 0.4);
}

.hx-link {
    border-color: var(--hx-cyan);
    background: rgba(0, 180, 241, 0.06);
    color: #fff;
}

.hx-link:hover,
.hx-link:focus-visible {
    color: #fff;
    background: rgba(0, 180, 241, 0.18);
    border-color: #33c3f5;
}

/* ---------- Chapter player: feature tabs on a shared hairline ---------- */
.hx-player {
    padding: 8px 0 34px;
}

.hx-player__inner {
    position: relative;
    align-items: stretch;
    gap: 0;
}

/* one hairline spans the row; each tab's progress runs along its own segment */
.hx-player__inner::before {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.hx-play {
    order: 2;
    align-self: center;
    width: 36px;
    height: 36px;
    margin: 14px 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

.hx-play:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.hx-chapters {
    gap: 32px;
}

.hx-chapter {
    position: relative;
    padding: 22px 0 0;
}

/* thin progress line sitting exactly on the hairline */
.hx-chapter__bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    margin: 0;
    background: transparent;
    overflow: visible;
}

.hx-chapter__fill {
    background: linear-gradient(90deg, #00b4f1, #7fdcff);
    box-shadow: 0 0 6px rgba(0, 180, 241, 0.55);
}

.hx-chapter:not(.is-active) .hx-chapter__fill {
    opacity: 0;
}

.hx-chapter__label {
    flex-direction: column;
    gap: 4px;
    text-transform: none;
    letter-spacing: 0.2px;
}

.hx-chapter__label b {
    display: none;
}

.hx-chapter__label span {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.hx-chapter__desc {
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    color: rgba(226, 238, 248, 0.38);
    transition: color 0.3s ease;
}

.hx-chapter:hover .hx-chapter__label span,
.hx-chapter.is-active .hx-chapter__label span {
    color: #fff;
}

.hx-chapter:hover .hx-chapter__desc,
.hx-chapter.is-active .hx-chapter__desc {
    color: rgba(226, 238, 248, 0.7);
}

.hx-chapter:focus-visible .hx-chapter__bar {
    outline-offset: 2px;
}

/* tablet / phone: titles only, no descriptions */
@media (max-width: 991px) {
    .hx-chapters {
        gap: 16px;
    }

    .hx-chapter__label span {
        display: inline;
        font-size: 13px;
    }

    .hx-chapter__desc {
        display: none;
    }
}

@media (max-width: 575px) {
    .hx-chapter {
        padding-top: 16px;
    }

    .hx-chapter__label span {
        font-size: 12px;
    }

    .hx-play {
        width: 32px;
        height: 32px;
        margin-top: 10px;
    }
}

/* phone: a story-style progress row so it doesn't read as another stats row */
@media (max-width: 575px) {
    .hx-player {
        margin-top: 26px;
        padding-bottom: 28px;
    }

    .hx-player__inner::before {
        display: none;
    }

    .hx-player__inner {
        align-items: flex-start;
    }

    .hx-chapters {
        gap: 6px;
    }

    .hx-chapter {
        padding-top: 14px;
    }

    /* each chapter gets its own short track */
    .hx-chapter__bar {
        height: 3px;
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.16);
        overflow: hidden;
    }

    .hx-chapter__fill {
        border-radius: 3px;
        box-shadow: none;
    }

    /* finished chapters stay filled, upcoming ones stay empty */
    .hx-chapter:not(.is-active) .hx-chapter__fill {
        opacity: 1;
    }

    /* only the active chapter's name shows, in cyan, under its track */
    .hx-chapter:not(.is-active) .hx-chapter__label {
        visibility: hidden;
    }

    .hx-chapter.is-active .hx-chapter__label span {
        color: #7fdcff;
        font-size: 12.5px;
        white-space: nowrap;
    }

    .hx-play {
        align-self: flex-start;
        margin: 0 0 0 10px;
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
}
