/* Hero additions reuse the homepage's existing purple and white palette. */
@property --mot-orbit-phase { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.mot-hero { isolation: isolate; }
.mot-hero .mot-galaxy {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse at 78% 42%, rgba(107, 66, 194, 0.3), transparent 65%);
}
.mot-galaxy canvas { display: block; width: 100%; height: 100%; }
/* Keep the original globe and card depth, with one shared galaxy layer. */
.mot-hero .hm-starfield, .mot-hero .hm-shooting-star { display: none; }
.mot-hero .hm-orbit-anchor { opacity: .26; }
.mot-hero[data-motion-paused] .hm-backdrop * { animation-play-state: paused !important; }
.mot-hero[data-motion-paused] .hm-orbit-anchor { transform: none; }
.mot-hero > .container {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center; gap: clamp(20px, 3vw, 48px); position: relative; z-index: 1;
}
.mot-hero .hero-simple-content { text-align: left; max-width: none; margin: 0; }
.mot-hero .hero-simple-content h1 { font-size: clamp(2rem, 3.5vw, 3.65rem); }
.mot-hero .hero-ctas { justify-content: flex-start; }
.mot-hero .hero-sub, .mot-hero .mot-hero-offer, .mot-hero .mot-hero-services { margin-left: 0; }
.mot-diagnostic { position: relative; perspective: 1100px; min-width: 0; pointer-events: none; }
.mot-diagnostic::before {
    content: ''; position: absolute; inset: 12% 0;
    background: radial-gradient(ellipse, rgba(107, 66, 194, 0.3), transparent 70%);
    border-radius: 50%;
}
.mot-diagnostic-tilt {
    transform: rotateX(var(--mot-tilt-x, 0deg)) rotateY(var(--mot-tilt-y, 0deg));
    transition: transform 450ms ease-out; transform-style: preserve-3d;
}
.mot-diagnostic img { display: block; width: 100%; height: auto; position: relative; }
.mot-laptop { z-index: 2; }
.mot-shield {
    position: absolute; left: 50%; top: 45%; width: 28%; z-index: 3;
    transform: translate(-50%, -50%) translate(135%, 0) scale(.9);
}
.mot-shield img { animation: none; }
.mot-motion-toggle {
    position: absolute; right: 24px; bottom: 14px; z-index: 3;
    border: 1px solid var(--purple-accent); border-radius: 20px; padding: 7px 12px;
    background: #0a0520; color: #FFFFFF; font: 500 .75rem var(--font-body); cursor: pointer;
}
.mot-motion-toggle:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 4px; }
.mot-hero[data-motion-paused]::before, .mot-hero[data-motion-paused]::after,
.mot-hero[data-motion-paused] .hero-grid, .mot-hero[data-motion-paused] .mot-diagnostic img {
    animation-play-state: paused;
}
.mot-hero[data-motion-paused] .mot-shield { animation-play-state: paused; }
.mot-hero[data-motion-paused] .mot-diagnostic-tilt { transform: none; }
@media (prefers-reduced-motion: no-preference) {
    .mot-laptop { animation: mot-diagnostic-float 8s ease-in-out infinite; }
    .mot-shield { animation: mot-shield-orbit 16s linear infinite; }
    @keyframes mot-shield-orbit {
        0%, 100% { transform: translate(-50%, -50%) translate(135%, 0) scale(.9) rotate(-6deg); z-index: 3; }
        25% { transform: translate(-50%, -50%) translate(0, 40%) scale(1.12) rotate(3deg); z-index: 3; }
        49% { transform: translate(-50%, -50%) translate(-135%, 0) scale(.9) rotate(8deg); z-index: 3; }
        50% { transform: translate(-50%, -50%) translate(-135%, 0) scale(.9) rotate(8deg); z-index: 1; }
        75% { transform: translate(-50%, -50%) translate(0, -65%) scale(.7) rotate(-3deg); z-index: 1; }
        99% { transform: translate(-50%, -50%) translate(135%, 0) scale(.9) rotate(-6deg); z-index: 1; }
    }
    @supports (transform: translateX(calc(cos(0deg) * 1%))) {
        .mot-shield {
            animation-name: mot-shield-ellipse;
            transform: translate(-50%, -50%)
                translate(calc(cos(var(--mot-orbit-phase)) * 135%), calc(sin(var(--mot-orbit-phase)) * 50%))
                scale(calc(.9 + sin(var(--mot-orbit-phase)) * .22));
        }
        @keyframes mot-shield-ellipse {
            0% { --mot-orbit-phase: 0deg; z-index: 3; }
            49.9% { z-index: 3; }
            50%, 99.9% { z-index: 1; }
            100% { --mot-orbit-phase: 360deg; z-index: 3; }
        }
    }
    @keyframes mot-diagnostic-float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-12px); }
    }
}
@media (max-width: 900px) {
    .mot-hero > .container { grid-template-columns: 1fr; gap: 12px; }
    .mot-hero .hero-simple-content { text-align: center; }
    .mot-hero .hero-ctas { justify-content: center; }
    .mot-hero .hero-sub, .mot-hero .mot-hero-offer, .mot-hero .mot-hero-services { margin-left: auto; }
    .mot-diagnostic { width: min(100%, 430px); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .mot-diagnostic-tilt { transform: none; transition: none; }
}
