/* HostCS Guides — animated 3D knowledge orbit */
.guide-prose.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.guides-orbit {
    --guide-tilt-x: 0deg;
    --guide-tilt-y: 0deg;
    --guide-orbit-one: 207px;
    --guide-orbit-two: 142px;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 196, 0, .075), transparent 34%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .018), transparent 68%);
    box-shadow: inset 0 0 80px rgba(255, 196, 0, .025);
    transform:
        perspective(900px)
        rotateX(calc(63deg + var(--guide-tilt-y)))
        rotateZ(calc(-9deg + var(--guide-tilt-x)));
    transition: transform .24s cubic-bezier(.2, .75, .25, 1);
    will-change: transform;
}

.guides-orbit::before {
    border-color: rgba(255, 196, 0, .08) rgba(255, 196, 0, .32) rgba(255, 196, 0, .12) rgba(255, 196, 0, .2);
    box-shadow: 0 0 26px rgba(255, 196, 0, .045);
    animation: guides-ring-reverse 15s linear infinite;
}

.guides-orbit::after {
    border: 1px dashed rgba(255, 196, 0, .22);
    border-top-color: rgba(255, 214, 82, .9);
    border-right-color: rgba(255, 196, 0, .08);
    box-shadow: inset 0 0 25px rgba(255, 196, 0, .035);
    animation: guide-spin 10s linear infinite;
}

.guides-core {
    position: relative;
    z-index: 4;
    width: 200px;
    font-size: 38px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(35, 36, 42, .97), rgba(9, 10, 13, .99)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 6px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .025) inset,
        0 0 55px rgba(255, 196, 0, .12),
        0 30px 55px rgba(0, 0, 0, .36);
    animation: guides-core-float 5.2s ease-in-out infinite;
    will-change: transform, box-shadow;
}

.guides-core::before {
    content: "";
    position: absolute;
    inset: -45%;
    z-index: -1;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 214, 82, .2) 49%, rgba(255, 255, 255, .08) 51%, transparent 58%);
    transform: translateX(-75%) rotate(8deg);
    animation: guides-core-scan 4.8s ease-in-out infinite;
    pointer-events: none;
}

.guides-core::after {
    content: "";
    position: absolute;
    inset: 11px;
    border: 1px solid rgba(255, 255, 255, .055);
    pointer-events: none;
}

.guides-core span {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    color: #ffd34d;
    font-size: 11px;
    letter-spacing: .12em;
    text-shadow: 0 0 14px rgba(255, 196, 0, .42);
}

.guides-orbit > i {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: block;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border: 1px solid rgba(255, 236, 170, .95);
    border-radius: 50%;
    background: #ffc400;
    box-shadow: 0 0 7px #ffc400, 0 0 20px rgba(255, 196, 0, .9), 0 0 42px rgba(255, 196, 0, .45);
    will-change: transform;
}

.guides-orbit > .orbit-one {
    animation: guides-satellite-one 8s linear infinite;
}

.guides-orbit > .orbit-two {
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    opacity: .72;
    animation: guides-satellite-two 11s linear infinite reverse;
}

.guides-orbit b {
    z-index: 6;
    min-width: 74px;
    padding: 9px 12px;
    border-color: rgba(255, 196, 0, .24);
    background: rgba(9, 10, 13, .96);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .42), 0 0 18px rgba(255, 196, 0, .055);
    color: #f1f1f3;
    font-size: 12px;
    letter-spacing: .065em;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
    animation: guides-label-float 4.6s ease-in-out infinite;
    will-change: transform;
}

.guides-orbit b:nth-of-type(2) {
    animation-delay: -1.45s;
}

.guides-orbit b:nth-of-type(3) {
    animation-delay: -2.9s;
}

@keyframes guides-ring-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes guides-satellite-one {
    from { transform: rotate(0deg) translateX(var(--guide-orbit-one)) rotate(0deg); }
    to { transform: rotate(360deg) translateX(var(--guide-orbit-one)) rotate(-360deg); }
}

@keyframes guides-satellite-two {
    from { transform: rotate(42deg) translateX(var(--guide-orbit-two)) rotate(-42deg); }
    to { transform: rotate(402deg) translateX(var(--guide-orbit-two)) rotate(-402deg); }
}

@keyframes guides-core-float {
    0%, 100% {
        transform: rotateZ(9deg) rotateX(-63deg) translateY(0);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .025) inset, 0 0 50px rgba(255, 196, 0, .1), 0 30px 55px rgba(0, 0, 0, .36);
    }
    50% {
        transform: rotateZ(7.5deg) rotateX(-63deg) translateY(-11px);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 76px rgba(255, 196, 0, .2), 0 38px 66px rgba(0, 0, 0, .42);
    }
}

@keyframes guides-core-scan {
    0%, 18% { transform: translateX(-78%) rotate(8deg); opacity: 0; }
    35%, 62% { opacity: 1; }
    82%, 100% { transform: translateX(78%) rotate(8deg); opacity: 0; }
}

@keyframes guides-label-float {
    0%, 100% { transform: rotateZ(9deg) rotateX(-63deg) translateY(0); }
    50% { transform: rotateZ(9deg) rotateX(-63deg) translateY(-6px); }
}

@media (min-width: 1600px) {
    .guides-hero-grid {
        grid-template-columns: minmax(0, 1fr) 540px;
        gap: 55px;
    }

    .guides-orbit {
        --guide-orbit-one: 238px;
        --guide-orbit-two: 164px;
        width: 540px;
        justify-self: end;
    }

    .guides-core {
        width: 226px;
        font-size: 48px;
    }

    .guides-core span {
        margin-top: 12px;
        font-size: 14px;
        letter-spacing: .11em;
    }

    .guides-orbit b {
        min-width: 106px;
        padding: 12px 17px;
        font-size: 15px;
        letter-spacing: .065em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guides-orbit,
    .guides-orbit::before,
    .guides-orbit::after,
    .guides-orbit > i,
    .guides-orbit b,
    .guides-core,
    .guides-core::before {
        animation: none !important;
        transition: none !important;
    }
}
