/* SPATIAL COMMAND CENTER - DESKTOP HERO */

/* Default: Hide on mobile, show old hero or nothing */
.spatial-hero-section {
    display: none;
}

@media (min-width: 769px) {

    /* HIDE THE OLD HERO on Desktop */
    .premium-hero {
        display: none !important;
    }
    
    .spatial-hero-section {
        display: flex;
        /* 1. THE CANVAS (The Obsidian Void) */
        background: radial-gradient(circle at 50% 30%, #1A1A24 0%, #050508 80%);
        min-height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
        width: 100%;
        z-index: 1;
    }

    /* 3. THE ORBITAL RINGS (LexLoop) */
    .orbital-rings {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) perspective(1000px);
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
    }

    .ring-1 {
        width: 800px;
        height: 800px;
        border: 1px solid rgba(255,255,255,0.03);
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        /* Combined transform for centering + tilt */
        transform: translate(-50%, -50%) rotateX(60deg);
    }

    .ring-2 {
        width: 1100px;
        height: 1100px;
        border: 1px dashed rgba(255,255,255,0.02);
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        /* transform is handled in animation to include rotateX */
        animation: slowSpin 100s linear infinite;
    }

    @keyframes slowSpin {
        from {
            transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg);
        }
        to {
            transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg);
        }
    }

    /* 2. THE HERO TYPOGRAPHY (Absolute Center) */
    .hero-content-center {
        max-width: 900px;
        text-align: center;
        z-index: 10;
        position: relative;
    }

    .hero-content-center h1 {
        font-family: 'Inter', sans-serif; /* Premium sans-serif */
        font-size: clamp(56px, 7vw, 84px);
        font-weight: 500;
        letter-spacing: -0.03em;
        color: #FFFFFF;
        line-height: 1.05;
        margin-bottom: 24px;
        text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .hero-content-center .subtext {
        font-family: 'Inter', sans-serif;
        font-size: 20px;
        color: rgba(255,255,255,0.6);
        font-weight: 300;
        margin: 0 auto 48px auto;
        max-width: 600px;
    }

    /* 5. THE CTAs (Magnetic & Premium) */
    .cta-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cta-primary {
        background: #FFF;
        color: #000;
        padding: 18px 36px;
        border-radius: 100px;
        font-weight: 600;
        font-size: 15px;
        transition: transform 0.2s, box-shadow 0.2s;
        text-decoration: none;
        display: inline-block;
    }

    .cta-primary:hover {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255,255,255,0.3);
    }

    .cta-secondary {
        background: transparent;
        color: #FFF;
        border: 1px solid rgba(255,255,255,0.2);
        padding: 18px 36px;
        border-radius: 100px;
        font-weight: 500;
        font-size: 15px;
        margin-left: 16px;
        backdrop-filter: blur(10px);
        transition: background 0.2s, transform 0.2s;
        text-decoration: none;
        display: inline-block;
    }

    .cta-secondary:hover {
        background: rgba(255,255,255,0.1);
        transform: scale(1.05);
    }

    /* 4. THE PRODUCT LENSES (Floating Glass Pills) */
    .glass-pill {
        /* The Glass Material */
        background: rgba(255, 255, 255, 0.01);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 24px;
        padding: 24px;
        display: flex;
        align-items: center;
        gap: 16px;
        box-shadow: 0 30px 60px rgba(0,0,0,0.4);
        position: absolute;
        z-index: 5;
        font-family: 'Inter', sans-serif;
        /* Floating Animation */
        animation: floatPill 6s ease-in-out infinite;
    }

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

    /* LENS 1: LexAnnotate (Top Left) */
    .pill-1 {
        top: 25%;
        left: 15%;
        box-shadow: 0 0 100px rgba(0, 255, 204, 0.1);
        animation-delay: 0s;
    }

    /* LENS 2: LexIntel (Top Right) */
    .pill-2 {
        top: 20%;
        right: 15%;
        box-shadow: 0 0 100px rgba(138, 43, 226, 0.1);
        animation-delay: 2s;
    }

    /* LENS 3: LexOperate (Bottom Center) */
    .pill-3 {
        bottom: 15%;
        left: 50%;
        margin-left: -100px; /* roughly half width to center, or use transform if not animating translate */
        /* Since animation uses translateY, we should center using left/margin or a wrapper */
        /* Let's use calc for centering */
        left: calc(50% - 110px); 
        box-shadow: 0 0 100px rgba(255, 69, 0, 0.1);
        animation-delay: 4s;
    }

    .pill-text {
        color: #FFF;
        font-weight: 500;
        white-space: nowrap;
    }

    .pill-label {
        color: #FFF;
        font-size: 14px;
        letter-spacing: 1px;
    }

    /* PURE CSS ANIMATIONS FOR LENSES */

    /* Teal Scanner (Lens 1) */
    .anim-scanner {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(0, 255, 204, 0.1);
        border: 1px solid rgba(0, 255, 204, 0.3);
        position: relative;
        overflow: hidden;
    }
    .anim-scanner::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: #00FFCC;
        box-shadow: 0 0 10px #00FFCC;
        animation: scanDown 2s linear infinite;
    }
    @keyframes scanDown {
        0% { top: 0; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }

    /* Purple Orbit (Lens 2) */
    .anim-orbit {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(138, 43, 226, 0.3);
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .anim-orbit::before {
        content: '';
        width: 8px;
        height: 8px;
        background: #8A2BE2;
        border-radius: 50%;
        box-shadow: 0 0 10px #8A2BE2;
    }
    .anim-orbit-dot {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        animation: rotateOrbit 3s linear infinite;
    }
    .anim-orbit-dot::after {
        content: '';
        position: absolute;
        top: 4px; /* Adjust based on radius to sit on line */
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 8px #fff;
    }
    @keyframes rotateOrbit {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Orange Radar (Lens 3) */
    .anim-radar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 69, 0, 0.1);
        border: 1px solid rgba(255, 69, 0, 0.3);
        position: relative;
        overflow: hidden;
    }
    .anim-radar::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 50%;
        height: 50%;
        background: conic-gradient(from 0deg at 0 0, transparent 0%, #FF4500 100%);
        transform-origin: 0 0;
        animation: radarSweep 2s linear infinite;
        border-radius: 0 0 100% 0; /* Sector shape */
    }
    @keyframes radarSweep {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

}
