.hb-home .hb-hero::after {
    content: '';
    position: absolute;
    width: 620px;
    height: 620px;
    right: -160px;
    top: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hb-home .hb-trace {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    opacity: 0.55;
    pointer-events: none;
}

.hb-home .hb-hero-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

.hb-home .hb-stage {
    position: relative;
    --w: min(30vw, 235px);
    width: 100%;
    height: calc(var(--w) * 2.42 + 70px);
}

.hb-home .hb-item {
    position: absolute;
    top: 30px;
    left: 50%;
    width: var(--w);
    margin-left: calc(var(--w) / -2);
    will-change: transform;
}

.hb-home .hb-item-c {
    z-index: 3;
}

.hb-home .hb-item-a {
    z-index: 1;
}

.hb-home .hb-item-b {
    z-index: 2;
}

.hb-home .hb-tilt {
    transform: translate(calc(var(--w) * var(--dx)), 0) rotate(var(--r));
    transform-origin: 50% 100%;
}

.hb-home .hb-drift {
    animation: hb-drift var(--t, 7s) ease-in-out var(--o, 0s) infinite alternate;
}

@keyframes hb-drift {
    from {
        transform: translateY(-8px);
    }
    to {
        transform: translateY(10px);
    }
}

html.hb-js .hb-home .hb-tilt[data-hb-reveal]:not(.is-in) {
    opacity: 0;
    transform: translate(0, calc(var(--dy) + 40px)) rotate(0deg) scale(0.85);
}

html.hb-js .hb-home .hb-tilt[data-hb-reveal] {
    transition: transform 1.1s var(--hb-spring) var(--d, 0s), opacity 0.6s ease var(--d, 0s);
}

.hb-home .hb-web {
    background: #fff;
}


.hb-home .hb-apps {
    background: var(--hb-gold);
}

.hb-home .hb-apps-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.hb-home .hb-apps .hb-tag {
    background: #fff;
}

.hb-home .hb-fan-stage {
    --w: min(28vw, 190px);
    height: calc(var(--w) * 2.3 + 40px);
}

.hb-home .hb-fan-stage .hb-item {
    top: 0;
}

.hb-home .hb-fi-4 {
    z-index: 4;
}

.hb-home .hb-fi-3 {
    z-index: 3;
}

.hb-home .hb-fi-2 {
    z-index: 2;
}

.hb-home .hb-fan-stage .hb-tilt {
    transform: translate(calc(var(--w) * var(--dx)), var(--dy)) rotate(var(--r));
    transform-origin: 50% 110%;
}

html.hb-js .hb-home .hb-fan-stage:not(.is-in) .hb-tilt {
    transform: translate(0, 60px) rotate(0deg) scale(0.8);
    opacity: 0;
}

html.hb-js .hb-home .hb-fan-stage .hb-tilt {
    transition: transform 1.1s var(--hb-spring), opacity 0.5s ease;
}

html.hb-js .hb-home .hb-fan-stage.is-in .hb-fi-2 .hb-tilt {
    transition-delay: 0.1s;
}

html.hb-js .hb-home .hb-fan-stage.is-in .hb-fi-3 .hb-tilt {
    transition-delay: 0.2s;
}

html.hb-js .hb-home .hb-fan-stage.is-in .hb-fi-4 .hb-tilt {
    transition-delay: 0.35s;
}

.hb-home .hb-ai {
    background: var(--hb-night);
    color: #fff;
}

.hb-home .hb-ai::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    right: -120px;
    top: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 23, 242, 0.45) 0%, rgba(113, 23, 242, 0) 68%);
    pointer-events: none;
}

.hb-home .hb-ai {
    padding: clamp(96px, 13vw, 200px) 0;
}

.hb-home .hb-ai-copy {
    text-align: center;
}

.hb-home .hb-ai .hb-h2 {
    font-size: clamp(2.6rem, 6.4vw, 5.6rem);
}

.hb-home .hb-ai-sub {
    margin-top: 20px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    color: #d4cdf2;
}

.hb-home .hb-ai .hb-actions {
    animation: none;
    justify-content: center;
    margin-top: 48px;
}

.hb-home .hb-flow {
    --fl-card: #1a1640;
    --fl-line: rgba(235, 231, 252, 0.2);
    --fl-muted: #b9b1de;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 320px);
    align-items: stretch;
    margin-top: clamp(40px, 6vw, 72px);
    text-align: left;
}

.hb-home .hb-fl-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    border-radius: 24px;
    background: var(--fl-card);
    border: 1px solid rgba(235, 231, 252, 0.14);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
}

.hb-home .hb-fl-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fl-muted);
}

.hb-home .hb-fl-agent .hb-fl-label,
.hb-home .hb-fl-agent {
    text-align: right;
}

.hb-home .hb-fl-agent {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.hb-home .hb-fl-reply {
    display: grid;
    justify-items: end;
}

.hb-home .hb-fl-bubble {
    grid-area: 1 / 1;
    max-width: 92%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.hb-home .hb-fl-ask {
    background: #3a3568;
    color: #fff;
    border-bottom-left-radius: 6px;
    align-self: start;
    justify-self: start;
}

.hb-home .hb-fl-ans {
    background: var(--hb-gold);
    color: var(--hb-night);
    border-bottom-right-radius: 6px;
    text-align: left;
}

.hb-home .hb-fl-typing {
    grid-area: 1 / 1;
    justify-self: end;
    align-self: center;
    display: flex;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #3a3568;
    opacity: 0;
}

.hb-home .hb-fl-typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4cdf2;
    animation: hb-dot 1s ease-in-out infinite;
}

.hb-home .hb-fl-typing i:nth-child(2) {
    animation-delay: 0.15s;
}

.hb-home .hb-fl-typing i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes hb-dot {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.hb-home .hb-fl-mid {
    align-self: center;
    display: grid;
}

.hb-home .hb-fl-node {
    position: relative;
    display: grid;
    place-items: center;
    height: 72px;
}

.hb-home .hb-fl-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: var(--fl-line);
}

.hb-home .hb-fl-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hb-gold);
    transform-origin: left center;
}

.hb-home .hb-fl-pill {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 200px;
    padding: 0 28px;
    height: 48px;
    border-radius: 999px;
    border: 1.5px solid rgba(235, 231, 252, 0.3);
    background: var(--hb-night);
    color: var(--fl-muted);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.hb-home .hb-fl-pill::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    background: var(--hb-gold);
}

.hb-home .hb-fl-pill span {
    grid-area: 1 / 1;
    position: relative;
}

.hb-home .hb-fl-pt-idle {
    opacity: 0;
}

.hb-home .hb-fl-pt-on {
    color: var(--hb-night);
}

.hb-home .hb-fl-out {
    gap: 12px;
}

.hb-home .hb-fl-tag {
    display: grid;
    align-self: flex-start;
    border-radius: 999px;
    background: rgba(255, 200, 87, 0.16);
    color: var(--hb-gold);
    font-size: 0.8rem;
    font-weight: 800;
}

.hb-home .hb-fl-tag span {
    grid-area: 1 / 1;
    padding: 6px 12px;
}

.hb-home .hb-fl-title {
    margin-top: 4px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.hb-home .hb-fl-meta {
    margin-top: -6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fl-muted);
}

.hb-home .hb-fl-items {
    display: grid;
    gap: 6px;
    margin: 4px 0 8px;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.hb-home .hb-fl-items li {
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(235, 231, 252, 0.16);
}

.hb-home .hb-fl-btn {
    display: grid;
    align-self: flex-start;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--hb-night);
}

.hb-home .hb-fl-btn span {
    grid-area: 1 / 1;
    padding: 11px 26px;
    border-radius: 999px;
    text-align: center;
}

.hb-home .hb-fl-b-go {
    background: var(--hb-gold);
    opacity: 0;
}

.hb-home .hb-fl-b-ok {
    background: #fff;
}

.hb-home .hb-fl-t-go {
    opacity: 0;
}

html.hb-js .hb-home .hb-flow.is-live {
    --fl-off: scaleX(0);
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-ask,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-ans {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.7s var(--hb-ease);
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-agent {
    opacity: 0;
    transition: opacity 0.4s ease;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-typing {
    transition: opacity 0.25s ease;
}

html.hb-js .hb-home .hb-flow.is-live.on-ask .hb-fl-ask,
html.hb-js .hb-home .hb-flow.is-live.on-reply .hb-fl-ans {
    opacity: 1;
    transform: none;
}

html.hb-js .hb-home .hb-flow.is-live.on-typing .hb-fl-agent,
html.hb-js .hb-home .hb-flow.is-live.on-reply .hb-fl-agent {
    opacity: 1;
}

html.hb-js .hb-home .hb-flow.is-live.on-typing .hb-fl-typing {
    opacity: 1;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-line::after {
    transform: var(--fl-off);
    transition: transform 0.55s linear;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-pill::before,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-pt-idle,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-pt-on {
    transition: opacity 0.35s ease 0.45s;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-pill::before {
    opacity: 0;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-pt-idle {
    opacity: 1;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-pt-on {
    opacity: 0;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-node.is-lit .hb-fl-line::after {
    transform: none;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-node.is-lit .hb-fl-pill::before,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-node.is-lit .hb-fl-pt-on {
    opacity: 1;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-node.is-lit .hb-fl-pt-idle {
    opacity: 0;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-out {
    opacity: 0.5;
    transition: opacity 0.8s ease;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-out.is-on {
    opacity: 1;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-b-go,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-t-go {
    opacity: 1;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-b-ok,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-t-ok {
    opacity: 0;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-b-go,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-b-ok,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-t-go,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-t-ok {
    transition: opacity 0.35s ease;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-out.is-ok .hb-fl-b-go,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-out.is-ok .hb-fl-t-go {
    opacity: 0;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-out.is-ok .hb-fl-b-ok,
html.hb-js .hb-home .hb-flow.is-live .hb-fl-out.is-ok .hb-fl-t-ok {
    opacity: 1;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-btn {
    transition: transform 0.16s ease;
}

html.hb-js .hb-home .hb-flow.is-live .hb-fl-out.is-press .hb-fl-btn {
    transform: scale(0.9);
}

.hb-home .hb-replay {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 2px solid #5c548f;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hb-home .hb-replay:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.hb-home .hb-tools {
    background: #fff;
}

.hb-home .hb-quote-sec {
    background: var(--hb-lav);
}

.hb-home .hb-ai :where(a, button):focus-visible {
    outline-color: var(--hb-gold);
}

@media (min-width: 900px) {
    .hb-home .hb-apps-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

@media (min-width: 1100px) {
    .hb-home .hb-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hb-home .hb-stage {
        --w: clamp(170px, 16vw, 235px);
    }

    .hb-home .hb-fan-stage {
        --w: clamp(150px, 13.5vw, 190px);
    }
}

@media (max-width: 899px) {
    .hb-home .hb-flow {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 420px);
        margin-left: auto;
        margin-right: auto;
    }

    .hb-home .hb-fl-card {
        padding: 20px;
    }

    .hb-home .hb-fl-node {
        height: 64px;
    }

    .hb-home .hb-fl-line {
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        margin: 0 0 0 -1px;
    }

    .hb-home .hb-fl-line::after {
        transform-origin: center top;
    }

    html.hb-js .hb-home .hb-flow.is-live {
        --fl-off: scaleY(0);
    }

    .hb-home .hb-fl-pill {
        min-width: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-home .hb-drift {
        animation: none;
    }

    html.hb-js .hb-home .hb-tilt[data-hb-reveal]:not(.is-in),
    html.hb-js .hb-home .hb-fan-stage:not(.is-in) .hb-tilt {
        opacity: 1;
    }

    html.hb-js .hb-home .hb-tilt[data-hb-reveal]:not(.is-in) {
        transform: translate(calc(var(--w) * var(--dx)), 0) rotate(var(--r));
    }

    html.hb-js .hb-home .hb-fan-stage:not(.is-in) .hb-tilt {
        transform: translate(calc(var(--w) * var(--dx)), var(--dy)) rotate(var(--r));
    }

    .hb-home .hb-trace-reveal {
        stroke-dashoffset: 0 !important;
    }
}

@media (max-width: 600px) {
    .hb-home .hb-fan-stage {
        --w: 22vw;
    }
}
