/* On-Premise Call Center — PC center hero + orbit icons */
.oprem-hero-3d {
    --oprem-blue: #1d5ed2;
    --oprem-blue-mid: #3b82f6;
    --oprem-blue-light: #60a5fa;
    --oprem-blue-soft: #93c5fd;
    --oprem-slate: #334155;
    --oprem-steel: #1e293b;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 1rem;
    overflow: visible;
}

.oprem-hero-3d__stage {
    position: relative;
    width: min(32rem, 96vw);
    height: min(28rem, 82vw);
    perspective: 980px;
    transform-style: preserve-3d;
    overflow: visible;
}

.oprem-hero-3d__orbit-path {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 92%;
    height: 38%;
    margin: -19% 0 0 -46%;
    border: 1px dashed rgba(29, 94, 210, 0.28);
    border-radius: 50%;
    transform: rotateX(72deg);
    box-shadow:
        0 0 24px rgba(29, 94, 210, 0.08),
        inset 0 0 20px rgba(59, 130, 246, 0.06);
    pointer-events: none;
    z-index: 1;
}

.oprem-hero-3d__orbit-system {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 3;
}

.oprem-hero-3d__orbit-ring {
    --orbit-count: 8;
    position: absolute;
    top: 52%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(72deg);
}

.oprem-hero-3d__orbit-node {
    --orbit-r: 12.5rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: rotateZ(calc(var(--i) * 360deg / var(--orbit-count))) translateX(var(--orbit-r)) rotateZ(calc(var(--i) * -360deg / var(--orbit-count)));
}

.oprem-hero-3d__orbit-face {
    display: block;
    transform-style: preserve-3d;
    transform: rotateX(-72deg);
}

.oprem-hero-3d__orbit-cap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    height: 3.15rem;
    margin: -1.575rem 0 0 -1.575rem;
    border-radius: 0.7rem;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(96, 165, 250, 0.28) 0%, rgba(29, 94, 210, 0.08) 30%, transparent 46%),
        linear-gradient(165deg, #3b4f6b 0%, #2b3d57 48%, #1a2740 100%);
    border: 1px solid rgba(96, 165, 250, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 8px rgba(15, 23, 42, 0.35),
        0 10px 22px rgba(15, 23, 42, 0.18);
    transform: translateZ(8px);
    animation: oprem3dOrbitBlink var(--blink-dur, 7.2s) ease-in-out infinite;
    animation-delay: var(--blink-delay, 0s);
}

.oprem-hero-3d__orbit-cap i {
    font-size: 1.05rem;
    line-height: 1;
    color: rgba(239, 246, 255, 0.98);
    text-shadow: 0 0 12px rgba(29, 94, 210, 0.55);
}

.oprem-hero-3d__orbit-node[style*="--i:0"] .oprem-hero-3d__orbit-cap { --blink-dur: 6.8s; --blink-delay: 0s; }
.oprem-hero-3d__orbit-node[style*="--i:1"] .oprem-hero-3d__orbit-cap { --blink-dur: 8.4s; --blink-delay: 1.3s; }
.oprem-hero-3d__orbit-node[style*="--i:2"] .oprem-hero-3d__orbit-cap { --blink-dur: 7.1s; --blink-delay: 2.6s; }
.oprem-hero-3d__orbit-node[style*="--i:3"] .oprem-hero-3d__orbit-cap { --blink-dur: 9.2s; --blink-delay: 0.7s; }
.oprem-hero-3d__orbit-node[style*="--i:4"] .oprem-hero-3d__orbit-cap { --blink-dur: 6.5s; --blink-delay: 3.4s; }
.oprem-hero-3d__orbit-node[style*="--i:5"] .oprem-hero-3d__orbit-cap { --blink-dur: 8.8s; --blink-delay: 1.9s; }
.oprem-hero-3d__orbit-node[style*="--i:6"] .oprem-hero-3d__orbit-cap { --blink-dur: 7.6s; --blink-delay: 4.1s; }
.oprem-hero-3d__orbit-node[style*="--i:7"] .oprem-hero-3d__orbit-cap { --blink-dur: 9.6s; --blink-delay: 2.2s; }

@keyframes oprem3dOrbitBlink {
    0%, 6% {
        opacity: 0.1;
        transform: translateZ(8px) scale(0.9);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            inset 0 -3px 8px rgba(15, 23, 42, 0.35),
            0 6px 14px rgba(15, 23, 42, 0.12);
    }
    8%, 16% {
        opacity: 1;
        transform: translateZ(8px) scale(1.06);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.32),
            inset 0 -3px 8px rgba(15, 23, 42, 0.35),
            0 10px 22px rgba(15, 23, 42, 0.18),
            0 0 22px rgba(29, 94, 210, 0.42);
    }
    18%, 100% {
        opacity: 0.1;
        transform: translateZ(8px) scale(0.9);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            inset 0 -3px 8px rgba(15, 23, 42, 0.35),
            0 6px 14px rgba(15, 23, 42, 0.12);
    }
}

.oprem-hero-3d__center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 14rem;
    height: 14rem;
    transform: translate(-50%, -54%);
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oprem-hero-3d__pc {
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.28));
    animation: oprem3dPcFloat 5.5s ease-in-out infinite;
}

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

.oprem-hero-3d__pc-body {
    display: flex;
    width: 6.5rem;
    height: 11.5rem;
    transform: perspective(520px) rotateY(-8deg) rotateX(4deg);
    transform-style: preserve-3d;
}

.oprem-hero-3d__pc-front {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 0.65rem;
    border-radius: 0.45rem;
    background: linear-gradient(180deg, #3d4f66 0%, #2a3a52 38%, #1a2740 100%);
    border: 1px solid rgba(96, 165, 250, 0.32);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.14),
        inset 0 -8px 16px rgba(15, 23, 42, 0.4);
}

.oprem-hero-3d__pc-side {
    width: 0.55rem;
    border-radius: 0 0.35rem 0.35rem 0;
    background: linear-gradient(180deg, #2a3a52 0%, #14284d 100%);
    border: 1px solid rgba(71, 85, 105, 0.55);
    border-left: none;
    box-shadow: 4px 0 12px rgba(15, 23, 42, 0.25);
}

.oprem-hero-3d__pc-led {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--oprem-blue-light);
    box-shadow: 0 0 10px rgba(29, 94, 210, 0.85);
    animation: oprem3dLedPulse 1.8s ease-in-out infinite;
}

.oprem-hero-3d__pc-slot {
    width: 72%;
    height: 0.35rem;
    border-radius: 0.12rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(71, 85, 105, 0.45);
}

.oprem-hero-3d__pc-vent {
    flex: 1;
    width: 80%;
    margin-top: 0.35rem;
    border-radius: 0.25rem;
    background: repeating-linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.65) 0,
        rgba(15, 23, 42, 0.65) 0.18rem,
        rgba(71, 85, 105, 0.35) 0.18rem,
        rgba(71, 85, 105, 0.35) 0.36rem
    );
    border: 1px solid rgba(71, 85, 105, 0.4);
}

@keyframes oprem3dLedPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Motion stage */
.oprem-how-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 40rem;
}

.oprem-motion-stage {
    position: relative;
    min-height: 24rem;
    --motion-caption-reserve: 2.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background:
        radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.12), transparent 36%),
        radial-gradient(circle at 12% 78%, rgba(99, 102, 241, 0.1), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    contain: layout style paint;
    isolation: isolate;
}

.oprem-motion-stage__progress {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: rgba(148, 163, 184, 0.2);
    z-index: 3;
    overflow: hidden;
}

.oprem-motion-stage__progress-fill {
    display: block;
    height: 100%;
    width: calc((var(--oprem-step, 0) + 1) * 25%);
    background: linear-gradient(90deg, #10b981, #6366f1);
    transition: width 0.45s ease;
}

.oprem-motion-stage[data-active-step="0"] { --oprem-step: 0; }
.oprem-motion-stage[data-active-step="1"] { --oprem-step: 1; }
.oprem-motion-stage[data-active-step="2"] { --oprem-step: 2; }
.oprem-motion-stage[data-active-step="3"] { --oprem-step: 3; }

.oprem-motion-stage__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 0.65rem 1rem;
    min-height: var(--motion-caption-reserve, 2.75rem);
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 58%, rgba(255, 255, 255, 0.88) 82%, transparent);
    pointer-events: none;
    z-index: 10;
}

.oprem-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 2rem calc(var(--motion-caption-reserve, 2.75rem) + 1.25rem);
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    will-change: opacity, transform;
}

.oprem-scene.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

.oprem-motion-stage.is-paused .oprem-scene *,
.oprem-scene:not(.is-active) * {
    animation-play-state: paused !important;
}

.oprem-step-btn {
    width: 100%;
    text-align: right;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.oprem-step-btn.is-active {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.12);
    transform: translateX(-2px);
}

.oprem-step-btn__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #4338ca;
    background: #e0e7ff;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.oprem-step-btn.is-active .oprem-step-btn__num {
    background: #6366f1;
    color: #fff;
}

.oprem-flow-arrow {
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(90deg, #cbd5e1, #10b981);
    position: relative;
    flex-shrink: 0;
}

.oprem-flow-arrow::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-left: 2px solid #10b981;
    border-bottom: 2px solid #10b981;
    transform: translateY(-50%) rotate(45deg);
}

@keyframes opremArrowFlow {
    0%, 100% { opacity: 0.45; transform: scaleX(0.9); }
    50% { opacity: 1; transform: scaleX(1); }
}

.oprem-flow-arrow--active {
    transform-origin: center;
    animation: opremArrowFlow 1.5s ease-in-out infinite;
}

.oprem-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.oprem-perimeter {
    border: 2px dashed rgba(16, 185, 129, 0.45);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.04);
    position: relative;
}

.oprem-perimeter__label {
    position: absolute;
    top: -0.55rem;
    right: 0.75rem;
    font-size: 0.55rem;
    font-weight: 800;
    color: #059669;
    background: #fff;
    padding: 0 0.35rem;
}

.oprem-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    min-width: 4rem;
    text-align: center;
}

.oprem-node--secure {
    border-color: rgba(16, 185, 129, 0.4);
    background: #ecfdf5;
}

.oprem-bridge-line {
    flex: 1;
    height: 2px;
    min-width: 1.25rem;
    background: linear-gradient(90deg, #94a3b8, #10b981, #94a3b8);
}

@keyframes opremBridgePulse {
    0%, 100% { opacity: 0.4; transform: scaleX(0.85); }
    50% { opacity: 1; transform: scaleX(1); }
}

.oprem-bridge-line--active {
    transform-origin: center;
    animation: opremBridgePulse 1.8s ease-in-out infinite;
}

.oprem-scene.is-active .oprem-check-item {
    opacity: 0;
    animation: opremReveal 0.35s ease forwards;
}

.oprem-scene.is-active .oprem-check-item:nth-child(1) { animation-delay: 0.1s; }
.oprem-scene.is-active .oprem-check-item:nth-child(2) { animation-delay: 0.35s; }
.oprem-scene.is-active .oprem-check-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes opremReveal {
    from { opacity: 0; transform: translate3d(0, 6px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.oprem-install-bar {
    height: 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.oprem-install-bar__fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #10b981, #6366f1);
    animation: opremInstallProgress 3s ease-in-out infinite;
}

@keyframes opremInstallProgress {
    0% { width: 0; }
    60% { width: 85%; }
    100% { width: 100%; }
}

.oprem-pulse-line {
    transform-origin: center;
    animation: opremPulseLine 1.6s ease-in-out infinite;
}

@keyframes opremPulseLine {
    0%, 100% { opacity: 0.35; transform: scaleX(0.92); }
    50% { opacity: 1; transform: scaleX(1); }
}

.oprem-motion-stage .oprem-scene > * {
    width: 100%;
    max-width: min(17.5rem, 72%);
    margin-inline: auto;
}

@media (max-width: 639px) {
    .oprem-hero-3d__stage {
        width: min(24rem, 94vw);
        height: min(21rem, 72vw);
    }

    .oprem-hero-3d__center {
        width: 11rem;
        height: 11rem;
    }

    .oprem-hero-3d__orbit-node {
        --orbit-r: 9.5rem;
    }

    .oprem-hero-3d__orbit-cap {
        width: 2.55rem;
        height: 2.55rem;
        margin: -1.275rem 0 0 -1.275rem;
        border-radius: 0.55rem;
    }

    .oprem-hero-3d__orbit-cap i { font-size: 0.88rem; }

    .oprem-hero-3d__pc-body {
        width: 5.25rem;
        height: 9.25rem;
    }

    .oprem-motion-stage { min-height: 21rem; }

    .oprem-motion-stage__caption {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.52) 38%, rgba(255, 255, 255, 0.18) 72%, transparent);
    }

    .oprem-scene {
        align-items: center;
        justify-content: center;
        padding: 1rem;
        padding-bottom: calc(var(--motion-caption-reserve, 2.75rem) + 0.65rem);
    }

    .oprem-motion-stage .oprem-scene > * {
        max-width: min(14.25rem, 88%);
        transform-origin: center center;
    }

    #oprem-scene-2 > * {
        max-width: min(16rem, 94%);
    }
}

@media (min-width: 640px) {
    .oprem-hero-3d__stage {
        width: min(34rem, 92vw);
        height: min(30rem, 76vw);
    }

    .oprem-hero-3d__center {
        width: 15rem;
        height: 15rem;
    }

    .oprem-hero-3d__orbit-node {
        --orbit-r: 13.5rem;
    }

    .oprem-hero-3d__orbit-cap {
        width: 3.35rem;
        height: 3.35rem;
        margin: -1.675rem 0 0 -1.675rem;
    }

    .oprem-hero-3d__orbit-cap i { font-size: 1.12rem; }

    .oprem-hero-3d__pc-body {
        width: 7rem;
        height: 12.5rem;
    }

    .oprem-motion-stage { min-height: 26rem; }

    .oprem-scene {
        padding: 2.5rem 2.5rem calc(var(--motion-caption-reserve, 2.75rem) + 1.25rem);
    }

    .oprem-motion-stage .oprem-scene > * {
        max-width: min(20rem, 78%);
    }
}

@media (min-width: 1024px) {
    .oprem-hero-3d__stage {
        width: 36rem;
        height: 32rem;
    }

    .oprem-hero-3d__center {
        width: 16rem;
        height: 16rem;
    }

    .oprem-hero-3d__orbit-node {
        --orbit-r: 14.5rem;
    }

    .oprem-motion-stage { min-height: 30rem; }

    .oprem-scene {
        padding: 3rem 3.25rem calc(var(--motion-caption-reserve, 2.75rem) + 1.5rem);
    }

    .oprem-motion-stage .oprem-scene > * {
        max-width: min(22rem, 82%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .oprem-how-section { content-visibility: visible; }
    .oprem-scene { transition: none !important; transform: none !important; }
    .oprem-motion-stage__progress-fill { transition: none !important; }
    .oprem-hero-3d__pc {
        animation: none !important;
    }
    .oprem-hero-3d__orbit-cap {
        animation: none !important;
        opacity: 1 !important;
    }
    .oprem-flow-arrow--active,
    .oprem-bridge-line--active,
    .oprem-pulse-line,
    .oprem-install-bar__fill,
    .oprem-scene.is-active .oprem-check-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .oprem-install-bar__fill { width: 100%; }
}
