:root {
    --brand-navy: #051032;
    --brand-orange: #ff8c2b;
    --white: #ffffff;
    --max-width: 1200px;
    --orbit-border: rgba(255, 255, 255, 0.1);
    --orbit-glow: 0 0 15px rgba(255, 140, 43, 0.3);
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 95.5vh;
    /* Enough space for orbits */
    background: var(--brand-navy);
    background: radial-gradient(circle at center, #0a1b4d 0%, var(--brand-navy) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vanta & Three Layer Placeholders */
.vanta-bg,
.three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.three-canvas {
    z-index: 2;
}

/* Container for Split Layout */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--max-width);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-visual-col {
    flex: 1;
    display: flex;
    justify-content: center;
    /* or flex-start if we want it really left */
    align-items: center;
    position: relative;
}

.hero-text-col {
    flex: 1;
    max-width: 500px;
    text-align: left;
    color: var(--white);
    animation: fadeInRight 1s ease-out;
}

.hero-lead {
    font-size: 2rem;
    /* Large readable text */
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
    font-family: 'Ubuntu', sans-serif;
    /* Maintain font style */
}

/* Orbit System Container */
.orbit-system {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1 / 1;
    /* Remove z-index: 10 since parent has it */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Pointer events on specific children only */
    pointer-events: none;

    /* Scale down slightly to fit column if needed */
    transform: scale(0.9);
}

/* Sun (Logo) */
.sun {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 167, 67, 0);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 0 30px rgb(255, 119, 28);
    pointer-events: auto;
    /* Logo might be clickable or just visual */
}

.sun img {
    width: 70%;
    height: auto;
    display: block;
}

/* Orbits */
.orbit {
    position: absolute;
    border: 1px solid var(--orbit-border);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* Let clicks pass through rings */
}

/* Planet Buttons */
.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--brand-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
    pointer-events: auto;
    /* Enable interaction */

    /* Animation offsets handled by keyframes */
}

.planet:hover,
.planet:focus-visible {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--brand-orange);
    outline: none;
    z-index: 30;
}

.planet img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    pointer-events: none;
}

/* Orbit Sizes & Animations */

/* Orbit 1 */
.orbit--1 {
    width: 220px;
    height: 220px;
    animation: spin 12s linear infinite;
}

.orbit--1 .planet {
    transform: translate(-50%, -50%) translateX(110px) rotate(-90deg);
    /* align to edge */
    /* To cancel rotation on the planet itself so icon stays upright: */
    animation: counter-spin 12s linear infinite;
}

/* Orbit 2 */
.orbit--2 {
    width: 340px;
    height: 340px;
    animation: spin 18s linear infinite reverse;
}

.orbit--2 .planet {
    transform: translate(-50%, -50%) translateX(170px) rotate(90deg);
    animation: counter-spin-reverse 18s linear infinite;
}

/* Orbit 3 */
.orbit--3 {
    width: 460px;
    height: 460px;
    animation: spin 25s linear infinite;
}

.orbit--3 .planet {
    transform: translate(-50%, -50%) translateX(230px) rotate(-90deg);
    animation: counter-spin 25s linear infinite;
}

/* Orbit 4 */
.orbit--4 {
    width: 580px;
    height: 580px;
    animation: spin 35s linear infinite reverse;
}

.orbit--4 .planet {
    transform: translate(-50%, -50%) translateX(290px) rotate(90deg);
    animation: counter-spin-reverse 35s linear infinite;
}

/* Orbit 5 */
.orbit--5 {
    width: 700px;
    height: 700px;
    animation: spin 45s linear infinite;
}

.orbit--5 .planet {
    transform: translate(-50%, -50%) translateX(350px) rotate(-90deg);
    animation: counter-spin 45s linear infinite;
}


/* Keyframes */
@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes counter-spin {
    from {
        transform: translate(-50%, -50%) translateX(110px) rotate(0deg);
    }

    /* Initial offset is handled by the wrapper, this counters */
    /* Wait - simpler approach for counter rotation: 
       We rotate the orbit container. The planet is a child. 
       To keep planet upright, we rotate it in reverse. 
       We need to match the translate X of the parent orbit's radius.
    */
}

/* 
   Refined Animation Strategy:
   The .orbit spins. The .planet sits at transform: translateX(Radius). 
   To keep .planet upright, we rotate it -1 * (orbit rotation).
*/

.orbit--1 .planet {
    margin-left: 110px;
    /* Radius */
    transform: translate(-50%, -50%);
    /* Center on the line */
    animation: keep-upright 12s linear infinite reverse;
}

.orbit--2 .planet {
    margin-left: 170px;
    transform: translate(-50%, -50%);
    animation: keep-upright 18s linear infinite;
    /* Orbit is reverse, so this is normal */
}

.orbit--3 .planet {
    margin-left: 230px;
    transform: translate(-50%, -50%);
    animation: keep-upright 25s linear infinite reverse;
}

.orbit--4 .planet {
    margin-left: 290px;
    transform: translate(-50%, -50%);
    animation: keep-upright 35s linear infinite;
}

.orbit--5 .planet {
    margin-left: 350px;
    transform: translate(-50%, -50%);
    animation: keep-upright 45s linear infinite reverse;
}

/* Override previous complex transforms inside .orbit--N rules handled above */
/* Reset the specific transforms from lines 105, 114 etc to avoid conflict */
.orbit--1 .planet,
.orbit--2 .planet,
.orbit--3 .planet,
.orbit--4 .planet,
.orbit--5 .planet {
    position: absolute;
    top: 50%;
    left: 50%;
    /* margin-left handles the radius distance from center */
}


@keyframes keep-upright {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .orbit,
    .planet {
        animation-play-state: paused !important;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-visual-col {
        margin-bottom: 2rem;
    }

    .hero-text-col {
        max-width: 100%;
        text-align: center;
    }

    .orbit-system {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .orbit-system {
        transform: scale(0.6);
        /* Shrink the whole system */
    }

    .orbit--5 {
        display: none;
        /* Hide largest orbit on mobile to save space */
    }

    .sun {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .orbit-system {
        transform: scale(0.45);
    }

    .hero-section {
        min-height: 60vh;
    }

    .hero-lead {
        font-size: 1.5rem;
    }
}

/* ============================================
   HERO BUTTON PULSE ANIMATION
   ============================================ */

/* Pulse Button - Elegant, Premium Animation */
.btn-pulse {
    position: relative;
    animation: btn-pulse-glow 2.5s ease-in-out infinite;
}

/* Pulsing Ring Effect */
.btn-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(255, 107, 0, 0.3);
    z-index: -1;
    animation: btn-pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Soft Glow Pulse Animation */
@keyframes btn-pulse-glow {

    0%,
    100% {
        box-shadow:
            0 4px 6px rgba(0, 0, 0, 0.1),
            0 0 20px rgba(255, 107, 0, 0.4),
            0 0 40px rgba(255, 107, 0, 0.2);
    }

    50% {
        box-shadow:
            0 6px 12px rgba(0, 0, 0, 0.15),
            0 0 30px rgba(255, 107, 0, 0.6),
            0 0 60px rgba(255, 107, 0, 0.3);
        transform: scale(1.02);
    }
}

/* Expanding Ring Animation */
@keyframes btn-pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Hover State - Pause Animation */
.btn-pulse:hover {
    animation-play-state: paused;
}

.btn-pulse:hover::before {
    animation-play-state: paused;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .btn-pulse,
    .btn-pulse::before {
        animation: none !important;
    }

    .btn-pulse {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}