:root {
    /* Warm, Dark Bronze / Amber Theme based on new screenshot */
    --primary: #f59e0b;      /* Vivid Amber */
    --primary-dim: rgba(245, 158, 11, 0.5);
    --primary-glow: rgba(245, 158, 11, 0.15);
    
    --background: #0a0602;   /* Deep warm black */
    --surface: #170d05;      /* Dark bronze/brown */
    --surface-light: #261608; /* Lighter brown for cards */
    
    --on-surface: #fdfaf6;   /* Off-white warm text */
    --on-surface-variant: #d4cec4; /* Lighter whitish-grey text (was #a89f91) */
    
    --bs-primary: var(--primary);
    --bs-body-bg: var(--background);
    --bs-body-color: var(--on-surface);
}

/* =============================================
   PAGE PRELOADER
   ============================================= */
#page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.preloader-spinner .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid transparent;
}

.preloader-spinner .ring-1 {
    border-top-color: var(--primary);
    animation: preloader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.preloader-spinner .ring-2 {
    border-right-color: rgba(245, 158, 11, 0.4);
    animation: preloader-spin 1.8s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

.preloader-spinner .ring-3 {
    inset: 8px;
    border-bottom-color: rgba(245, 158, 11, 0.2);
    animation: preloader-spin 1.5s linear infinite;
}

.preloader-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    opacity: 0.8;
}

.preloader-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--on-surface-variant);
    margin-top: 0.4rem;
    text-transform: uppercase;
    opacity: 0;
    animation: preloader-fade-in 0.5s ease 0.3s forwards;
}

@keyframes preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloader-fade-in {
    to { opacity: 0.6; }
}

/* Prevent scroll while loading */
html.is-loading, body.is-loading {
    overflow: hidden !important;
}

/* =============================================
   BASE STYLES
   ============================================= */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}
body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-headline {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.font-label {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Typography utilities */
.text-primary-custom { color: var(--primary) !important; }
.text-on-surface-variant { color: var(--on-surface-variant) !important; }
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #d4c4b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-amber-gradient {
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Backgrounds */
.bg-surface { background-color: var(--surface); }
.bg-surface-light { background-color: var(--surface-light); }

/* =============================================
   AMBIENT ORBS — PERFORMANCE OPTIMIZED
   Uses radial-gradient instead of filter:blur()
   to achieve the same soft glow at zero GPU cost.
   ============================================= */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    animation: float 25s infinite ease-in-out alternate;
    /* GPU layer promotion */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    contain: layout style;
}

/* Each orb uses a radial-gradient that fades to transparent,
   visually identical to a solid colour + blur(120px) */
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%);
    top: 10%; left: 50%;
    transform: translateX(-50%);
}
.orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, rgba(217, 119, 6, 0.06) 40%, transparent 70%);
    bottom: 10%; right: -10%;
    animation-delay: -5s;
}
.orb-3 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 35%, transparent 65%);
    top: 30%; left: -20%;
    animation-duration: 35s;
}
.orb-4 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, rgba(217, 119, 6, 0.05) 40%, transparent 70%);
    top: 60%; right: 10%;
    animation-duration: 20s;
}

@media (max-width: 991px) {
    .ambient-orb {
        opacity: 0.15;
        animation: none;
    }
}

@keyframes float {
    0% { transform: translateY(0) scale(1) translateX(0); }
    100% { transform: translateY(-50px) scale(1.1) translateX(-30px); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary-custom {
    background: linear-gradient(90deg, #d97706 0%, #b45309 100%);
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 100px !important;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    filter: brightness(1.2);
}

.btn-outline-custom {
    background: rgba(245, 158, 11, 0.05);
    backdrop-filter: blur(10px);
    color: var(--primary) !important;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 100px !important;
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
}

.fade-up {
    opacity: 0;
    --gsap-y: 40px;
    translate: 0 var(--gsap-y);
    will-change: translate, opacity;
}

/* App Store Buttons */
.btn-app-store {
    background: rgba(23, 13, 5, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.btn-app-store::before {
    content: '';
    position: absolute;
    top: var(--mouse-y);
    left: var(--mouse-x);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-app-store:hover::before {
    opacity: 1;
}

.btn-app-store:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(245, 158, 11, 0.1);
}

.btn-app-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-app-store:hover .btn-app-icon {
    background: var(--primary);
    color: var(--background);
}

.btn-app-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* =============================================
   UNIFIED PREMIUM INTERACTION SYSTEM
   ============================================= */
.card-3d-wrap {
    /* Removed redundant 3D properties that cause layers explosion with Locomotive Scroll */
    position: relative;
    z-index: 1;
}

.interactive-card {
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease,
                box-shadow 0.4s ease,
                transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    transform: scale3d(1, 1, 1);
    will-change: transform, opacity;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Backgrounds */
.card-bronze {
    background: linear-gradient(180deg, rgba(38, 22, 8, 0.8) 0%, rgba(23, 13, 5, 0.9) 100%);
    border-radius: 16px;
    padding: 2rem;
}
.card-feature-small {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Radial glow that follows cursor */
.interactive-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(245, 158, 11, 0.15), 
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

/* Shine overlay mimicking metallic gloss reflection */
.interactive-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg, 
        transparent 20%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

/* Hover States */
.interactive-card:hover {
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.12), 
                0 25px 60px -10px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(245, 158, 11, 0.1);
    transform: scale3d(1.008, 1.008, 1);
}

.interactive-card:hover::before,
.interactive-card:hover::after {
    opacity: 1;
}

/* === SCROLL-STATE PERFORMANCE: mute ALL hover/glow during scroll ===
   When body.is-scrolling, the card glow RAF loop fires zero events.
   Cards re-activate 150ms after scroll stops (set in main.js). */
.is-scrolling .interactive-card {
    pointer-events: none !important;
    transition: none !important;
}
.is-scrolling .interactive-card::before,
.is-scrolling .interactive-card::after {
    opacity: 0 !important;
    transition: none !important;
}

/* Ensuring inner content pops */
.card-content-front, .interactive-card > * {
    position: relative;
    z-index: 3;
}

/* =============================================
   ICON BOXES & UI ELEMENTS
   ============================================= */
.icon-box {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Faux UI Overlays in Hero */
.hero-ui-badge {
    background: rgba(23, 13, 5, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.05);
}

/* Avatar positioning for hero */
.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--background);
    object-fit: cover;
    background: #444;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tracking-widest { letter-spacing: 0.15em; }

.ms-n3 { margin-left: -15px !important; }

.xsmall { font-size: 0.65rem; }
.small { font-size: 0.85rem; }

/* Character container logic */
.hero-character-wrap {
    perspective: 1000px;
    z-index: 1;
}

/* =============================================
   FORM INPUTS
   ============================================= */
.glass-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(245, 158, 11, 0.1) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 0.8rem 1.2rem !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-custom) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1) !important;
}

/* =============================================
   IMAGE CARDS
   ============================================= */
.img-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    border: 1px solid rgba(255,255,255,0.05);
}
.img-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.img-card:hover img { transform: scale(1.08); }
.img-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem 1.5rem 2rem;
    background: linear-gradient(to top, rgba(10, 6, 2, 0.95) 0%, rgba(10,6,2,0.6) 60%, transparent 100%);
    transform: translateZ(20px);
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.accordion-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    margin-bottom: 0 !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.accordion-button {
    background-color: transparent !important;
    color: var(--on-surface) !important;
    box-shadow: none !important;
    padding: 1.75rem 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accordion-button::after { 
    filter: invert(1) grayscale(100%) brightness(200%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.accordion-button:not(.collapsed) { 
    color: var(--primary) !important; 
    padding-bottom: 1rem;
}

/* Custom easing for Bootstrap's collapsing height animation specifically in Accordions */
.accordion .collapsing {
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.accordion-body {
    padding: 0 0 1.75rem 0;
    color: var(--on-surface-variant);
    font-weight: 300;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.accordion-collapse.show .accordion-body {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   LOCOMOTIVE SCROLL
   ============================================= */
html.has-scroll-smooth { overflow: hidden; }
html.has-scroll-dragging { user-select: none; }
.has-scroll-smooth body { overflow: hidden; }
.has-scroll-smooth [data-scroll-container] { min-height: 100vh; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar-custom {
    background: rgba(10, 6, 2, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 0;
    /* Isolate the backdrop-filter to its own compositing layer */
    contain: layout style;
}

.nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

.nav-link.active:after {
    width: 25px;
}

.navbar-brand { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.05em; }

/* =============================================
   HERO SECTION PERFORMANCE
   ============================================= */

/* Allow vertical overflow for robot hand wave, block horizontal */
#home {
    overflow-x: hidden;
    overflow-y: visible;
}

/* Spline 3D Robot Container — fully isolated from main page rendering */
#hero-spline-container {
    overflow: visible !important;
    isolation: isolate;
    contain: layout;
}

#hero-spline-container iframe {
    will-change: transform;
    backface-visibility: hidden;
}



/* Scroll overlay — sits on top of iframe to capture wheel events */
#spline-scroll-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: default;
}

/* =============================================
   CONTENT VISIBILITY — OFFSCREEN SECTIONS
   (Removed content-visibility as it conflicts with custom JS scroll (Locomotive)
   by causing layout thrashing when sections enter the viewport.)
   ============================================= */

/* =============================================
   SVG ANIMATION GPU OPTIMIZATION
   ============================================= */
/* The spinning security illustration groups */
@keyframes spin-cw  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes spin-ccw { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

/* =============================================
   FADE-UP ANIMATION PERFORMANCE
   ============================================= */
.fade-up {
    will-change: opacity, translate;
    backface-visibility: hidden;
}

.hero-slogan-anim, .hero-subtitle, .hero-buttons {
    translate: 0 var(--gsap-y, 0);
}
/* After animation completes, free up the compositor hint */
.fade-up.is-inview,
.fade-up[style*="opacity: 1"] {
    will-change: auto;
}

/* =============================================
   GPU LAYER PROMOTIONS
   ============================================= */
/* Promotes the scroll container to its own GPU compositor layer */
[data-scroll-container] {
    will-change: scroll-position;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* =============================================
   FOOTER UTILITIES
   ============================================= */
.hover-primary {
    transition: color 0.3s ease;
}
.hover-primary:hover {
    color: var(--primary) !important;
}

/* =============================================
   APP SECTION PHONE ANIMATIONS
   ============================================= */
@keyframes app-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes app-bar1  { 0%,100%{height:16px;margin-top:10px} 50%{height:26px;margin-top:0} }
@keyframes app-bar2  { 0%,100%{height:28px;margin-top:0}  50%{height:16px;margin-top:12px} }
@keyframes app-bar3  { 0%,100%{height:38px;margin-top:0}  50%{height:24px;margin-top:14px} }
@keyframes app-threat { 0%,100%{opacity:0.85;r:4} 50%{opacity:0.3;r:2} }
.app-phone-wrap { will-change: transform; }

/* =============================================
   REDUCED MOTION PREFERENCE
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .ambient-orb,
    .pulse-dot,
    .preloader-spinner .ring {
        animation: none !important;
    }
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =============================================
   RESPONSIVE LAYOUT & MEDIA QUERIES
   ============================================= */

/* Spline container scalable defaults for desktop */
.spline-responsive-wrapper {
    width: 130%;
    margin-left: -15%;
    height: 800px;
}
.spline-responsive-wrapper iframe {
    transform: scale(0.92);
}

@media (max-width: 1200px) {
    .spline-responsive-wrapper {
        width: 120%;
        margin-left: -10%;
        height: 700px;
    }
}

@media (max-width: 991px) {
    /* Mobile/Tablet padding reduction for overall structure */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .pb-5 {
        padding-bottom: 2rem !important;
    }
    .pt-5 {
        padding-top: 2rem !important;
    }

    /* Spline dimensions adapted for tablet */
    .spline-responsive-wrapper {
        width: 100%;
        margin-left: 0;
        height: 500px;
    }
    .spline-responsive-wrapper iframe {
        transform: scale(0.85);
    }
    
    /* Font resizing for readability */
    h1 {
        font-size: clamp(2.5rem, 6vw, 4rem) !important;
    }
    h2 {
        font-size: clamp(2rem, 5vw, 3rem) !important;
    }
    h3 {
        font-size: 1.7rem !important;
    }

    /* SVG Illustrations constraint */
    svg {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    /* Spline dimensions adapted for mobile */
    .spline-responsive-wrapper {
        width: 100%;
        margin-left: 0;
        height: 500px;
    }
    .spline-responsive-wrapper iframe {
        transform: scale(0.9) translateY(-5%); /* scaled up to fill screen nicely */
    }

    /* Hero margins */
    .hero-gradient {
        min-height: auto !important;
        padding-top: 6rem !important;
    }

    /* App phones container restructuring */
    .app-phone-wrap {
        width: 100% !important;
        max-width: 252px !important;
        margin: 0 auto !important;
    }
    
    /* Footer stacking gap adjustment */
    #footer .row {
        gap: 2.5rem;
    }

    /* Navbar mobile refinements */
    .navbar-toggler:focus {
        box-shadow: none !important;
        outline: none !important;
    }
    .navbar-custom {
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        background: rgba(10, 6, 2, 0.8) !important;
    }
    .navbar-toggler span {
        font-size: 2rem !important;
    }

    /* Consistent Hero spacing on all pages for mobile */
    .hero-gradient {
        padding-top: 7.5rem !important; /* Increased for navbar clearance */
        padding-bottom: 3.5rem !important;
        min-height: auto !important;
    }

    /* Small logo adjustment for mobile height */
    .navbar-brand img {
        height: 38px !important;
    }
    .navbar-custom {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    /* Headline spacing refinement */
    .hero-gradient h1 {
        margin-bottom: 1.5rem !important;
    }
    .hero-gradient .container > div:first-child {
        margin-bottom: 2.5rem !important;
    }

    /* Prevent orbs from causing any layout shifting on small screens */
    .ambient-orb {
        pointer-events: none;
        max-width: 100vw;
    }
}

@media (max-width: 480px) {
    /* Extreme mobile optimizations */
    .spline-responsive-wrapper {
        height: 400px;
    }
    .spline-responsive-wrapper iframe {
        transform: scale(0.8) translateY(-5%);
    }
    .font-headline {
        letter-spacing: -0.02em !important;
    }
}

/* =============================================
   2D HERO GLOBE: CSS ANIMATION SYSTEM
   Replaces the heavy Three.js canvas
   ============================================= */
#hero-2d-globe-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    /* Removed overflow: hidden so large 600px orbits don't get clipped by the 450px high column */
}

/* Central Core */
.globe-core {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), inset 0 0 20px rgba(245, 158, 11, 0.4);
    z-index: 10;
    animation: pulse-glow 3s infinite alternate ease-in-out;
}

.globe-core .icon-core {
    color: var(--primary);
    font-size: 2rem;
    text-shadow: 0 0 10px var(--primary);
}

/* Background Rings */
.globe-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: inset 0 0 40px rgba(245, 158, 11, 0.05);
}

.ring-main {
    width: 300px;
    height: 300px;
    border-width: 2px;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.1), inset 0 0 50px rgba(245, 158, 11, 0.05);
}

.ring-outer {
    width: 500px;
    height: 500px;
    border-style: dashed;
    opacity: 0.4;
    animation: spin-orbit 40s linear infinite reverse;
}

/* Orbiting Path Containers */
.globe-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.08);
}

.orbit-1 { width: 220px; height: 220px; animation: spin-orbit 15s linear infinite; }
.orbit-2 { width: 340px; height: 340px; animation: spin-orbit 25s linear infinite reverse; }
.orbit-3 { width: 460px; height: 460px; animation: spin-orbit 35s linear infinite; }
.orbit-4 { width: 580px; height: 580px; animation: spin-orbit 45s linear infinite reverse; }

/* Icon wrappers that counter-rotate to stay upright */
.orbit-icon-wrapper {
    position: absolute;
    top: -20px;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.orbit-1 .orbit-icon-wrapper { animation: spin-reverse 15s linear infinite; }
.orbit-2 .orbit-icon-wrapper { animation: spin-reverse-reverse 25s linear infinite; }
.orbit-3 .orbit-icon-wrapper { animation: spin-reverse 35s linear infinite; }
.orbit-4 .orbit-icon-wrapper { animation: spin-reverse-reverse 45s linear infinite; }

.orbit-icon-wrapper .material-symbols-outlined {
    font-size: 1.2rem;
}

/* Mobile scaling for the 2D globe */
@media (max-width: 991.98px) {
    #hero-2d-globe-container {
        transform: scale(0.6) translateY(-20%);
    }
}

/* Keyframes */
@keyframes spin-orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes spin-reverse-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); } /* Double reverse = forward, needed because parent is reverse */
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.2);
        transform: scale(0.95);
    }
    100% {
        box-shadow: 0 0 50px rgba(245, 158, 11, 0.8), inset 0 0 25px rgba(245, 158, 11, 0.6);
        transform: scale(1.05);
    }
}

/* =============================================
   COMMAND CENTER DASHBOARD
   ============================================= */
.dashboard-widget {
    background: rgba(23, 13, 5, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.4s ease;
    overflow: hidden;
}

.dashboard-widget:hover {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.monospace-data {
    font-family: 'Space Mono', 'Courier New', monospace;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    color: var(--primary);
}

.terminal-box {
    background: rgba(10, 6, 2, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.08);
    border-radius: 6px;
    padding: 0.75rem;
    height: 150px;
    overflow-y: hidden;
    position: relative;
}

.terminal-line {
    white-space: nowrap;
    opacity: 0;
    animation: terminal-scroll-up 6s linear infinite;
}

@keyframes terminal-scroll-up {
    0% { transform: translateY(120px); opacity: 0; }
    5% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120px); opacity: 0; }
}

.radar-advanced-hub {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-ping {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    filter: blur(1px);
    animation: app-threat 1.5s infinite;
}

.scanning-ring {
    position: absolute;
    border: 1px solid rgba(245,158,11,0.1);
    border-radius: 50%;
    animation: ring-pulse 4s linear infinite;
}

@keyframes ring-pulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    color: #10b981;
    font-size: 0.6rem;
    font-weight: 700;
}
