/**
 * GLOBALUNIDO V4: ADVANCED NEURAL ARCHITECTURE CSS
 * Ultimate Density & Dynamic Rendering Framework
 */

:root {
    /* --- HIGH-FIDELITY HSL MATRIX (ITEM 61) --- */
    --h-plum: 312;
    --s-plum: 38%;
    --l-plum: 16%;
    --c-emerald: #10b981; /* SAAS EMERALD (ITEM 54) */
    --c-neon-orange: #ff793f;
    --c-gold: #f1c40f;

    /* --- CORE DUOTONE MAPPINGS --- */
    --n-base: hsl(var(--h-plum), var(--s-plum), var(--l-plum)); /* #381932 equivalent */
    --n-ghost: #FFF3E6; 
    --n-pure: #FFF3E6;
    
    --p-prime: var(--n-base);
    --p-accent: var(--n-base); 
    --p-light: hsl(var(--h-plum), var(--s-plum), 22%); /* Softened plum derivative (#4A2241) */
    
    /* --- BACKGROUND CONTRASTS --- */
    --bg-main: #FFF3E6;
    --text-main: var(--n-base);

    /* --- STANDARDIZED SPACING LEDGER (ITEM 64, 67) --- */
    --space-section: 70px;
    --grid-gap: 40px;

    /* --- DESIGN TOKEN TYPOGRAPHY (ITEM 76, 77) --- */
    --f-head: 'Syne', sans-serif; 
    --f-main: 'Inter', 'Plus Jakarta Sans', sans-serif;
    --f-wide: 'Space Grotesk', sans-serif; 
    --f-code: 'JetBrains Mono', monospace;
    
    /* --- HIGH-FIDELITY PHYSICS EASE (ITEM 88) --- */
    --t-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --t-norm: 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    --t-slow: 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* --- GLASSMORPHIC EDGE SYSTEM (ITEM 55) --- */
    --glass-w-1: rgba(56, 25, 50, 0.05);
    --glass-border: rgba(56, 25, 50, 0.08);
    --glass-border-dark: rgba(56, 25, 50, 0.15);
    --glass-blur: 16px;

    /* --- LAYERED DEPTH SHADOWS (ITEM 56, 59) --- */
    --sh-sm: 0 1px 2px rgba(56, 25, 50, 0.05);
    --sh-med: 0 4px 6px -1px rgba(56, 25, 50, 0.1), 0 2px 4px -1px rgba(56, 25, 50, 0.06);
    --sh-mac: 0 20px 25px -5px rgba(56, 25, 50, 0.1), 0 10px 10px -5px rgba(56, 25, 50, 0.04);
}

/* ============================================================
   CORE RESTORATION: SIMULATOR WIDGET & MACOS FRAMES
   ============================================================ */
.sim-card {
    background: var(--n-pure);
    border-radius: 20px;
    border: 1px solid var(--glass-border-dark);
    box-shadow: var(--sh-mac);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}
.sim-bar {
    background: var(--n-ghost);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(56,25,50,0.1);
}
.sim-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
}
.sim-menu {
    background: var(--n-ghost);
    padding: 20px;
    border-right: 1px solid rgba(56,25,50,0.1);
}
.sim-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--n-base);
    opacity: 0.8;
    cursor: pointer;
    transition: 0.3s;
}
.sim-item.active {
    background: var(--n-pure);
    box-shadow: 0 2px 8px rgba(56,25,50,0.05);
    color: var(--p-prime);
    font-weight: 600;
    opacity: 1;
}
.sim-content {
    padding: 40px;
    position: relative;
}
.sim-group {
    margin-bottom: 25px;
}
.sim-label {
    display: block;
    font-family: var(--f-code);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--n-base);
    opacity: 0.6;
    margin-bottom: 10px;
}
.sim-input, .sim-select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1.5px solid rgba(56,25,50,0.1);
    background: rgba(56,25,50,0.02);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backface-visibility: hidden;
}
.sim-input:focus, .sim-select:focus {
    border-color: var(--p-prime);
    background: var(--n-pure);
    box-shadow: 0 0 0 4px rgba(56, 25, 50, 0.12);
    outline: none;
}
.exec-btn {
    width: 100%;
    padding: 18px;
    background: var(--n-base);
    color: var(--n-ghost);
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: 0.3s;
}
.exec-btn:hover { background: var(--p-light); transform: scale(0.98); }

/* ============================================================
   DIGITAL BILTY GRID ARCHITECTURE
   ============================================================ */
.bilty-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.bilty-form-grid-3 {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
}
.bilty-form-grid-4 {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.sim-input[readonly] {
    cursor: not-allowed;
    opacity: 0.95;
}

@media (max-width: 820px) {
    .bilty-form-grid-2, .bilty-form-grid-3, .bilty-form-grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ============================================================
   LOGISTICS TOGGLE PILLS (SEGMENTED CONTROL)
   ============================================================ */
.logistics-toggle-wrapper {
    display: flex;
    background: rgba(56, 25, 50, 0.06);
    border-radius: 50px;
    padding: 6px;
    max-width: 500px;
    margin: 0 auto 35px;
    border: 1px solid rgba(56, 25, 50, 0.1);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}
.logistics-toggle-pill {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    font-weight: 800;
    font-family: var(--f-mono);
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    color: var(--n-base);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.logistics-toggle-pill i {
    font-size: 1rem;
}
.logistics-toggle-pill:hover {
    opacity: 0.9;
    background: rgba(56, 25, 50, 0.03);
}
.logistics-toggle-pill.active {
    opacity: 1;
    background: var(--n-base);
    color: var(--bg-main) !important;
    box-shadow: 0 6px 16px rgba(56, 25, 50, 0.3);
}

/* DYNAMIC TOGGLE VISIBILITY (TRUCK VS LOAD MODES) */
#logistics-master-container.mode-truck .load-only {
    display: none !important;
}
#logistics-master-container.mode-load .truck-only {
    display: none !important;
}

/* SMOOTH IN-GRID TRANSITIONS */
.truck-only, .load-only {
    animation: fieldReveal 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fieldReveal {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}



.results-pod {
    margin-top: 30px;
    background: var(--p-accent);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.results-pod.active { opacity: 1; transform: translateY(0); }

/* PURE CSS PREMIUM IPHONE MOCKUP */
/* PURE CSS PREMIUM IPHONE MOCKUP - ULTRA-REALISTIC FRONT VIEW */
.phone-case {
    width: 320px;
    height: 600px;
    background: #110a10; /* Deep aesthetic bezel */
    border-radius: 50px;
    padding: 8px; /* Total outer bezel thickness */
    position: relative;
    margin: 0 auto;
    transform: translate3d(0,0,0); /* Erase old 3D */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255,243,230,0.1); /* Ultra subtle outer shine */
    animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Clean Floating Silhouette */
.phone-case::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 90px;
    width: 2px;
    height: 25px;
    background: #222;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 35px 0 #222, 0 70px 0 #222;
}
.phone-case::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 120px;
    width: 2px;
    height: 50px;
    background: #222;
    border-radius: 0 2px 2px 0;
}

.phone-case:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff; /* Premium pure clean default */
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Glass Reflection Layer */
.phone-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 55%);
    transform: rotate(30deg);
    z-index: 50; /* Ensure it sits above UI */
    pointer-events: none;
}

/* DYNAMIC ISLAND REVAMP */
.phone-notch {
    width: 85px;
    height: 25px;
    background: #000; /* True Black dynamic island */
    position: absolute;
    top: 15px; /* Floating off top edge */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.2);
}
/* Camera & Sensor Inside Dynamic Island */
.phone-notch::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a1a3a; /* Lens tint */
    opacity: 0.6;
}
.phone-notch::after {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #00ff55; /* Active indicator dot */
    opacity: 0.8;
}
.phone-app-bar {
    background: var(--p-prime);
    color: var(--n-ghost);
    padding: 40px 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.phone-app-bar h4 { font-size: 1rem; margin: 0; }
.phone-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}
.p-card {
    background: var(--n-pure);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(56,25,50,0.05);
}
.p-route-line {
    position: relative;
    padding-left: 20px;
    border-left: 2px dotted rgba(56,25,50,0.2);
    margin: 10px 0;
}
.p-route-line::before {
    content: ''; position: absolute; top: 0; left: -5px; width: 8px; height: 8px; background: var(--p-accent); border-radius: 50%;
}
.p-route-line::after {
    content: ''; position: absolute; bottom: 0; left: -5px; width: 8px; height: 8px; background: var(--p-prime); border-radius: 50%;
}
.p-otp-badge {
    display: inline-block;
    background: rgba(56, 25, 50, 0.1);
    color: var(--n-base);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 8px;
}
.p-btn {
    background: var(--p-prime);
    color: var(--n-ghost);
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

/* --- RESET & GLOBAL SCROLL RIG --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
    scroll-behavior: initial; 
    overflow-x: hidden; 
    font-size: 16px; 
    -webkit-text-size-adjust: 100%;
}
body {
    background-color: var(--n-ghost);
    color: var(--n-base);
    font-family: var(--f-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- SELECTION & SCROLLBAR OVERRIDES --- */
/* --- SELECTION & SCROLLBAR OVERRIDES --- */
::selection { background: var(--n-base); color: var(--n-ghost); }
::-webkit-scrollbar { width: 10px; background: var(--n-ghost); }
::-webkit-scrollbar-thumb { background: var(--p-light); border-radius: 10px; border: 3px solid var(--n-ghost); }
::-webkit-scrollbar-thumb:hover { background: var(--n-base); }

/* --- NEURAL LAYER 0 (BACKGROUND ENGINE) --- */
#neural-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -5; background: var(--bg-main);
    pointer-events: none;
}
.vignette-overlay {
    position: fixed; inset: 0; z-index: -4; pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.02) 100%);
}
.grain-texture {
    position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- CORE UTILITY ARCHITECTURE --- */
.c-max { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 30px; }
.section-v4 { padding: var(--space-section) 0; position: relative; z-index: 1; }
.g-flex-center { display: flex; align-items: center; justify-content: center; }

#nexus { 
    padding-top: 100px; /* Buffer for top fixed navbar */
    padding-bottom: 40px; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
}

.t-mono { font-family: var(--f-code); }
.t-wide { font-family: var(--f-wide); }
.c-accent { color: var(--p-accent); }
.c-prime { color: var(--p-prime); }

/* --- HUD & BADGE DYNAMICS --- */
.hud-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 99px;
    background: rgba(56, 25, 50, 0.06);
    border: 1px solid rgba(56, 25, 50, 0.12);
    color: var(--p-prime); font-family: var(--f-code);
    font-weight: 700; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 12px; /* TIGHTENED GAP */
    backdrop-filter: blur(5px);
}
.hud-pulse-dot {
    width: 6px; height: 6px; background: var(--c-emerald);
    border-radius: 50%; box-shadow: 0 0 8px var(--c-emerald);
    animation: radarPulse 2s infinite;
}
@keyframes radarPulse { 0% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 12px var(--c-emerald); } 100% { opacity: 0.4; transform: scale(1); } }

/* --- PREMIUM HARDWARE GLARE & NESTED FX (ITEM 57, 60, 59, 58) --- */
.glare-wrapper {
    position: relative;
    overflow: hidden;
}
.glare-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 2;
}
.nested-bright {
    backdrop-filter: brightness(1.08) blur(8px);
    -webkit-backdrop-filter: brightness(1.08) blur(8px);
}
.fade-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border-dark), transparent);
    margin: 40px 0;
}
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: var(--t-fast);
}
.wa-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}
.wa-float::before, .wa-float::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.6;
    animation: rippleInfinite 2s infinite ease-out;
    pointer-events: none;
}
.wa-float::after {
    animation-delay: 0.8s;
}
@keyframes rippleInfinite {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}
.wa-badge-text {
    position: absolute; right: 75px; white-space: nowrap;
    background: var(--n-base); color: var(--n-ghost);
    padding: 8px 16px; border-radius: 10px; font-size: 0.8rem; font-weight: 700;
    opacity: 0; transform: translateX(10px);
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); pointer-events: none;
    box-shadow: var(--sh-med); border: 1px solid var(--glass-border-dark);
}
.wa-float:hover .wa-badge-text { opacity: 1; transform: translateX(0); }

/* --- TYPOGRAPHY STACK PRO --- */
.mega-h1 {
    font-family: var(--f-wide); font-weight: 800;
    font-size: clamp(3rem, 7vw, 6.8rem); /* SLIGHTLY REDUCED SIZE TO PREVENT FOLD OVERFLOW */
    line-height: 0.9;
    letter-spacing: -4px; margin-bottom: 1rem; color: var(--n-base); /* TIGHTENED GAP */
}
.mega-h1 .grad-word {
    background: linear-gradient(to right, var(--p-prime), var(--p-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.lead-txt {
    font-size: 1.2rem; color: var(--n-base); opacity: 0.8; max-width: 600px;
    line-height: 1.65; margin-bottom: 1.5rem; font-weight: 400; letter-spacing: -0.2px;
}

/* --- KINETIC CHARACTER STAGE --- */
.split-trigger { overflow: visible; perspective: 1000px; }
.w-wrap { margin-right: 0.25em; }
.c-node { display: inline-block; transition: color 0.3s; }
.c-node:hover { color: var(--p-prime); }

/* --- MAC BUTTON SYSTEM --- */
.prime-action-btn {
    position: relative; display: inline-flex; align-items: center; gap: 16px;
    padding: 18px 40px; 
    background: linear-gradient(135deg, #381932 0%, #6c2c5d 50%, #ff793f 100%);
    background-size: 200% auto;
    color: #FFF3E6 !important;
    border: none; border-radius: 12px; cursor: pointer;
    font-family: var(--f-main); font-weight: 700; font-size: 1.05rem;
    overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--sh-med);
}
.prime-action-btn span,
.prime-action-btn i {
    color: #FFF3E6 !important;
}
.prime-action-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 121, 63, 0.3);
    background-position: right center;
    color: #FFF3E6 !important;
}
.prime-action-btn:hover span,
.prime-action-btn:hover i {
    color: #FFF3E6 !important;
}
.prime-action-btn:active {
    transform: translateY(-2px) scale(0.97);
    box-shadow: 0 10px 20px rgba(255, 121, 63, 0.2);
}
.prime-action-btn::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    transform: scale(0); transition: transform 0.6s ease;
}
.prime-action-btn:active::after { transform: scale(1); }

/* --- HERO STAGE GRID --- */
.hero-grid-stage {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--grid-gap);
    min-height: auto; height: 100%; align-items: center; padding-top: 0;
}
.hero-vis-3d { position: relative; height: 600px; perspective: 1200px; }
.spline-wrap {
    width: 100%; height: 100%; border-radius: 32px;
    overflow: hidden; box-shadow: var(--sh-mac);
    border: 1px solid rgba(56,25,50,0.1);
    background: var(--n-ghost);
}
.glass-panel-widget {
    position: absolute; bottom: 40px; left: -30px; width: 280px;
    background: var(--glass-w-1); backdrop-filter: blur(var(--glass-blur));
    border-radius: 24px; border: 1px solid rgba(56,25,50,0.1);
    padding: 24px; box-shadow: var(--sh-mac);
}

/* --- QUANTUM FAUX TERMINAL CSS --- */
.term-section { background: var(--n-base); color: var(--n-ghost); }
.term-frame-pro {
    background: var(--p-light); border-radius: 16px; border: 1px solid rgba(255,243,230, 0.1);
    box-shadow: 0 50px 100px rgba(0,0,0,0.4); overflow: hidden;
    height: 500px; display: flex; flex-direction: column;
}
.term-bar {
    height: 40px; background: var(--n-base); display: flex; align-items: center;
    padding: 0 16px; justify-content: space-between; border-bottom: 1px solid rgba(255,243,230, 0.1);
}
.mac-dots { display: flex; gap: 8px; }
.mac-dots span { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: var(--n-base); opacity: 0.3; }
.dot-y { background: var(--n-base); opacity: 0.5; }
.dot-g { background: var(--n-base); opacity: 0.7; }
.term-path { font-family: var(--f-code); font-size: 0.75rem; color: var(--n-ghost); opacity: 0.6; }

.term-body {
    flex: 1; display: flex; flex-direction: column; padding: 20px;
    background: var(--n-base);
}
.term-logs {
    flex: 1; overflow-y: auto; font-family: var(--f-code);
    font-size: 0.85rem; line-height: 1.6; color: var(--n-ghost); opacity: 0.8;
}
.term-line { margin-bottom: 6px; opacity: 0; animation: lineFadeIn 0.3s forwards; }
@keyframes lineFadeIn { to { opacity: 1; } }
.t-stamp { color: var(--n-ghost); opacity: 0.5; margin-right: 10px; }
.t-info { color: var(--n-ghost); opacity: 0.8; }
.t-success { color: var(--p-accent); }
.t-danger { color: var(--p-prime); }
.t-warn { color: var(--p-accent); }
.t-user { color: var(--p-prime); }

.term-input-bar {
    display: flex; align-items: center; gap: 10px; font-family: var(--f-code);
    border-top: 1px solid rgba(255,243,230,0.1); padding-top: 15px; margin-top: 10px;
}
.prompt { color: var(--p-accent); font-weight: bold; }
.term-input-field {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--n-ghost); font-family: var(--f-code); font-size: 0.9rem;
}

/* --- DATA DASHBOARD GRIDS (CSS Expansion) --- */
.dash-grid-4x {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap); margin-bottom: 60px;
}
.dash-card {
    background: var(--n-pure); border-radius: 24px; padding: 30px;
    border: 1px solid var(--glass-border-dark); box-shadow: var(--sh-soft);
    position: relative; overflow: hidden; transition: transform 0.3s;
}
.dash-card:hover { transform: translateY(-5px); box-shadow: var(--sh-med); }
.card-icon {
    width: 48px; height: 48px; background: rgba(56, 25, 50, 0.05);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: var(--p-prime); font-size: 1.4rem; margin-bottom: 20px;
}
.card-val-row { display: flex; align-items: baseline; gap: 5px; margin-bottom: 10px; }
.big-val { font-family: var(--f-wide); font-size: 3rem; font-weight: 700; color: var(--n-base); }
.val-unit { color: var(--n-base); opacity: 0.7; font-weight: 600; }
.c-canvas-wrap { height: 60px; width: 100%; margin-top: 20px; position: relative; }
.live-chart-canvas { width: 100%; height: 100%; display: block; }

/* --- HORIZONTAL SCROLLPIN ENGINE V4 --- */
.h-scroll-section {
    width: 100%; overflow: hidden; position: relative;
    background: var(--n-base); color: var(--n-pure);
}
.h-scroll-wrapper {
    display: flex; 
    flex-wrap: nowrap; 
    width: max-content; /* Adapts to real panel count automatically */
    height: 100vh; 
    will-change: transform;
}
.h-panel {
    width: 100vw; height: 100vh; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.panel-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    width: 100%; max-width: 1200px; padding: 0 40px;
    align-items: center;
}
.p-num { font-family: var(--f-code); color: var(--p-accent); font-size: 1rem; margin-bottom: 10px; display: block; }
.panel-inner h3 { font-family: var(--f-wide); font-size: 4rem; line-height: 1; margin-bottom: 20px; letter-spacing: -2px; }
.panel-inner p { font-size: 1.2rem; color: var(--n-ghost); opacity: 0.8; max-width: 450px; line-height: 1.6; }

/* 3D DEVICES (CSS RENDERED) */
.device-ios {
    width: 320px; height: 650px; border-radius: 45px;
    border: 12px solid var(--n-base); background: var(--n-ghost);
    box-shadow: 0 50px 100px rgba(56, 25, 50, 0.4);
    position: relative; overflow: hidden; margin: 0 auto;
}
.notch-bar {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 130px; height: 28px; background: var(--n-base);
    border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 10;
}
.ios-ui { height: 100%; padding: 60px 20px; display: flex; flex-direction: column; gap: 15px; }
.ui-row { height: 60px; border-radius: 8px; background: var(--n-pure); border: 1px solid rgba(56, 25, 50, 0.1); }
.ui-square { height: 200px; border-radius: 12px; background: var(--p-prime); }

/* --- VECTOR TRACKING SECTION (SVG) --- */
.tracker-section { padding: var(--space-section) 0; background: var(--n-ghost); }
.svg-track-container { position: relative; height: 350px; margin-top: 40px;
    background: var(--n-ghost); border-radius: 32px;
    border: 1px solid var(--glass-border-dark); overflow: visible;
}
.svg-canvas-overlay {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 2;
}
.truck-node {
    position: absolute; top: 0; left: 0; z-index: 5;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.node-pointer {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--p-prime); border: 3px solid var(--n-ghost);
    box-shadow: 0 0 15px rgba(56, 25, 50, 0.5);
    position: relative;
}
.node-pointer::before, .node-pointer::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--p-prime);
    border-radius: 50%;
    animation: radar-pulse 2s infinite linear;
    pointer-events: none;
}
.node-pointer::after { animation-delay: 1s; }
@keyframes radar-pulse {
    0% { width: 12px; height: 12px; opacity: 1; border-width: 2px; }
    100% { width: 80px; height: 80px; opacity: 0; border-width: 0.5px; }
}
.truck-icon {
    position: absolute; bottom: 30px; background: var(--n-base);
    color: var(--p-accent); padding: 10px; border-radius: 10px;
    font-size: 1.2rem; box-shadow: var(--sh-med);
}

/* --- BENTO SECURITY GRID --- */
.bento-grid-v4 {
    display: grid; grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px; gap: var(--grid-gap);
}
.b-card {
    background: var(--n-pure); border-radius: 24px; padding: 42px;
    border: 1px solid var(--glass-border-dark); position: relative;
    overflow: hidden; transition: var(--t-norm);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.b-card:hover { box-shadow: var(--sh-med); }
.b-card:active { transform: scale(0.99); }
.span-2-col { grid-column: span 2; }
.span-2-row { grid-row: span 2; }
.dark-b-card { background: var(--n-base); color: var(--n-ghost); border-color: rgba(255,243,230,0.1); }
.b-icon-large { font-size: 4rem; color: var(--p-prime); margin-bottom: auto; opacity: 0.15; position: absolute; right: 20px; bottom: 20px; }
.b-card h3 { font-family: var(--f-wide); font-size: 2rem; margin-bottom: 15px; font-weight: 700; line-height: 1.1; }
.b-card p { color: var(--n-base); opacity: 0.7; font-size: 1.05rem; line-height: 1.6; }
.dark-b-card p { color: var(--n-ghost); opacity: 0.8; }

/* --- ULTIMATE MACOS DOCK --- */
/* --- PREMIUM TOP NAVBAR --- */
.main-nav {
    position: fixed;
    top: 18px; /* Float elegantly from top */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 36px); /* Margin on sides */
    max-width: 1260px; /* Cap at a stunning width */
    z-index: 10000;
    background: rgba(255, 243, 230, 0.75); /* Cream Translucent Liquid Glass */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5); /* Clean bright highlight border */
    border-radius: 100px; /* Clean Apple Dock curve */
    box-shadow: 0 12px 40px rgba(56, 25, 50, 0.07),
                inset 0 1px 1px rgba(255, 255, 255, 0.7); /* Inside glass glow */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 10px 24px; /* Tighter and slicker Apple padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--n-base);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-link {
    color: var(--n-base);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.7;
    transition: 0.3s ease;
}
.nav-link:hover { opacity: 1; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%; height: 2px;
    background: var(--p-prime);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
    background: var(--p-prime);
    color: var(--n-ghost);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.3s;
}
.nav-cta:hover {
    background: var(--n-ghost);
    color: var(--p-prime);
    border-color: var(--p-prime);
}
@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* --- ROADMAP LUX --- */
.roadmap-v4 { background: var(--n-pure); border-top: 1px solid var(--glass-border-dark); }
.timeline-spine {
    position: relative; max-width: 800px; margin: 60px auto 0;
    padding: 40px 0;
}
.spine-line {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(transparent, var(--n-ghost) 10%, var(--n-ghost) 90%, transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}
.rm-entry {
    position: relative; width: 50%; padding: 20px 40px;
    margin-bottom: 40px;
}
.rm-entry:nth-child(even) { margin-left: auto; text-align: left; }
.rm-entry:nth-child(odd) { text-align: right; }

.rm-node {
    position: absolute; top: 25px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--n-ghost); border: 4px solid var(--p-prime);
    z-index: 2;
}
.rm-entry:nth-child(odd) .rm-node { right: -8px; }
.rm-entry:nth-child(even) .rm-node { left: -8px; }

.rm-glass-card {
    background: var(--n-pure); border: 1px solid var(--glass-border-dark);
    border-radius: 16px; padding: 30px; box-shadow: var(--sh-soft);
    transition: var(--t-norm);
}
.rm-glass-card:hover { transform: translateY(-5px); box-shadow: var(--sh-med); }
.rm-phase { font-family: var(--f-code); font-size: 0.8rem; color: var(--p-prime); font-weight: 700; display: block; margin-bottom: 10px; }
.rm-glass-card h4 { font-family: var(--f-wide); font-size: 1.5rem; margin-bottom: 10px; }
.rm-glass-card p { color: var(--n-base); opacity: 0.7; line-height: 1.5; }

/* --- FOOTER PRO --- */
.footer-pro { background: var(--n-base); color: var(--n-ghost); padding: 80px 0 40px; border-top: 1px solid rgba(255,243,230, 0.1); }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.f-brand h2 { font-family: var(--f-wide); font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
/* PREMIUM MESH GLOW SYSTEM */
.hero-glow-bg {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 243, 230, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(56, 25, 50, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 243, 230, 0.3) 0%, transparent 60%);
    filter: blur(60px);
    opacity: 0.8;
    animation: mesh-drift 15s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
    0% { background-position: 0% 0%, 100% 100%, 50% 50%; }
    100% { background-position: 20% 30%, 70% 90%, 40% 60%; }
}
.f-links h5 { font-family: var(--f-code); font-size: 0.85rem; color: var(--n-ghost); opacity: 0.6; margin-bottom: 25px; letter-spacing: 1px; text-transform: uppercase; }
.f-links ul { list-style: none; }
.f-links li { margin-bottom: 12px; }
.f-links a { text-decoration: none; color: var(--n-ghost); opacity: 0.8; transition: 0.3s; font-size: 0.95rem; }
.f-links a:hover { color: var(--p-accent); padding-left: 5px; }

.f-bottom { border-top: 1px solid rgba(255,243,230,0.1); padding-top: 40px; text-align: center; font-family: var(--f-code); font-size: 0.75rem; color: var(--n-ghost); opacity: 0.6; }

/* --- ADDITIONAL UTILITIES & RESPONSIVE --- */
.text-center { text-align: center; }
.m-b-80 { margin-bottom: 40px; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }

@media (max-width: 1024px) {
    .hero-grid-stage { grid-template-columns: 1fr; text-align: center; min-height: auto; }
    .lead-txt { margin: 0 auto 3rem; }
    .h-scroll-wrapper { width: 100vw; height: auto; flex-direction: column; }
    .h-panel { width: 100vw; height: auto; padding: 80px 0; }
    .panel-inner { grid-template-columns: 1fr; }
    .dash-grid-4x { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .dash-grid-4x { grid-template-columns: 1fr; }
    .bento-grid-v4 { grid-template-columns: 1fr; }
    .span-2-col { grid-column: span 1; }
    .f-grid { grid-template-columns: 1fr; gap: 40px; }
    .mega-h1 { font-size: 3rem; letter-spacing: -1.5px; }
}

/* ============================================================
   SUPERCHARGED ANIMATION SUITE & NEXT-GEN REFINEMENTS
   ============================================================ */

/* GLOBAL RESET OVERRIDES */
body {
    font-family: var(--f-main);
    background-color: var(--bg-main); /* SOFT CREAM */
    color: var(--text-main); /* VELVET PLUM */
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .grad-word {
    font-family: var(--f-head);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}
p, li, span, label {
    color: var(--text-main);
    opacity: 0.9;
}

/* ENSURE DARK SECTIONS INVERT PROPERLY */
#ecosystem, #timeline, #kernel, .footer-pro, .ecosystem-grid {
    background-color: var(--n-base) !important; /* PLUM BASE */
    color: var(--n-ghost) !important; /* CREAM TEXT */
}
#ecosystem h1, #ecosystem h2, #ecosystem h3, #ecosystem p, #ecosystem span, #ecosystem li,
#timeline h2, #timeline p, #timeline span, 
.footer-pro h5, .footer-pro a, .footer-pro div {
    color: var(--n-ghost) !important;
}
.footer-pro { border-top: 1px solid rgba(255,243,230, 0.1) !important; }
.f-bottom { border-top: 1px solid rgba(255,243,230, 0.1) !important; color: var(--n-ghost) !important; opacity: 0.6; }
p, span, li, label {
    font-family: var(--f-main);
    line-height: 1.7;
}

/* 1. CUSTOM CURSOR GLOW */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    mix-blend-mode: difference;
    transition: opacity 0.3s ease;
    will-change: transform;
}

/* 2. KINETIC TEXT MARQUEE (BACKGROUND) */
.marquee-bg-container {
    position: fixed;
    top: 15%;
    left: 0;
    width: 100vw;
    white-space: nowrap;
    overflow: hidden;
    z-index: 0;
    opacity: 0.07; 
    pointer-events: none;
}
.marquee-content {
    display: inline-block;
    animation: marquee-slide 40s linear infinite;
}
.marquee-content span {
    font-family: var(--f-head);
    font-size: 15vw;
    font-weight: 800;
    text-transform: uppercase;
    -webkit-text-stroke: 2px var(--text-main);
    color: transparent;
    margin-right: 50px;
}
@keyframes marquee-slide {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

/* 3. RIPPLE WAVES ON CLICKS */
.exec-btn, .dock-icon, .btn-p-glass {
    position: relative;
    overflow: hidden;
}
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-core 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}
@keyframes ripple-core {
    to { transform: scale(4); opacity: 0; }
}

/* 4. SHIMMER TEXT CONTINUOUS */
.grad-word {
    background: linear-gradient(90deg, var(--text-main), var(--p-light), var(--text-main));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-grad 8s ease infinite;
}
@keyframes shimmer-grad {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 5. MINIMAL LOADING CURTAIN (UPDATED) */
.reveal-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--n-base);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}
.reveal-curtain.active {
    transform: translateY(-100%);
}
.curtain-logo {
    font-family: var(--f-head);
    font-size: 3rem;
    font-weight: 800;
    color: var(--n-ghost);
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 20px rgba(255, 243, 230, 0.2);
}
.reveal-curtain.active .curtain-logo {
    opacity: 0;
}
.curtain-panel { display: none; } /* Deprecating older split panel approach for simpler vertical reveal */

/* 6. GLASS GLOW & CARD REFLECTIONS */
.v3-tilt {
    overflow: hidden;
    position: relative;
}
.v3-tilt::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    pointer-events: none;
}
.v3-tilt:hover::after {
    transform: translateX(100%);
}

/* 7. BREATHING ACTIVE BEACON */
.status-beacon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--p-accent);
    box-shadow: 0 0 15px var(--p-accent);
    margin-right: 8px;
    animation: breathe-lamp 1.8s ease-in-out infinite;
}
@keyframes breathe-lamp {
    0%, 100% { opacity: 1; transform: scale(1); filter: brightness(1.2); }
    50% { opacity: 0.5; transform: scale(0.85); filter: brightness(0.8); }
}

/* 8. SCROLL DOWN MOUSE INDICATOR */
.scroll-mouse {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 46px;
    border: 2px solid var(--n-ghost);
    opacity: 0.5;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    z-index: 10;
}
.scroll-mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--p-accent);
    border-radius: 2px;
    margin-top: 8px;
    animation: mouse-wheel-anim 2s infinite;
}
@keyframes mouse-wheel-anim {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}

/* 9. DYNAMIC METEOR TRAIL FOR MAP NODES */
#tracker-node {
    filter: drop-shadow(0 0 10px var(--p-accent)) drop-shadow(0 0 20px var(--p-accent));
}
#fillPath {
    filter: drop-shadow(0 0 5px var(--p-accent));
    stroke: var(--p-accent);
}

/* ============================================================
   PHASE 1: ADVANCED TRUST & SOPHISTICATION FRAMEWORK
   ============================================================ */

/* 1. DYNAMIC TOP PROGRESS LINE */
#scroll-progress-bar {
    position: fixed; top: 0; left: 0; height: 3px;
    width: 0%; /* Set by JS */
    background: linear-gradient(to right, var(--p-prime), #ff8a65);
    z-index: 9999; border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(56,25,50,0.3);
    transition: width 0.1s ease-out;
}

/* 2. PULSING SYSTEM HEALTH TAG (NAVBAR) */
.sys-health-badge {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--f-code); font-size: 0.65rem; font-weight: 700;
    color: var(--p-prime); background: rgba(56,25,50,0.05);
    padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(56,25,50,0.1);
    opacity: 0.8; transition: 0.3s;
}
.sys-health-badge:hover { opacity: 1; background: rgba(56,25,50,0.08); }
.health-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--c-emerald);
    box-shadow: 0 0 8px var(--c-emerald); animation: beacon-glow 2s infinite;
}
@keyframes beacon-glow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.3); box-shadow: 0 0 12px var(--c-emerald); } }

/* 3. FLOATING SUPPORT BUBBLE (WHATSAPP RIPPLE HOSTED IN UPPER CLASS) */

/* 4. ISO/RTO FOOTER BADGES */
.trust-badges-row {
    display: flex; gap: 15px; margin-top: 20px; opacity: 0.8;
}
.t-badge {
    border: 1px solid rgba(255,243,230,0.2); border-radius: 6px;
    padding: 4px 8px; font-family: var(--f-code); font-size: 0.6rem;
    font-weight: 700; text-transform: uppercase; color: var(--n-ghost);
    display: flex; align-items: center; gap: 5px;
}
.t-badge i { color: var(--p-accent); }

/* 5. MASSIVE KPI NUMBER OVERRIDE */
.kpi-large { font-size: 3.8rem; font-weight: 900; letter-spacing: -2px; display: block; line-height: 0.9; color: var(--n-base); }
.p-card .kpi-large { color: inherit; } /* Inherit parent color inside dynamic cards */

/* ==========================================
   🎨 MASTER PRESTIGE CSS ADDITIONS (PHASE 1)
   ========================================== */


/* 1. PRESTIGE SCROLLBAR */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #faf8f6; }
::-webkit-scrollbar-thumb { background: var(--p-prime); border-radius: 10px; border: 3px solid #faf8f6; }
::-webkit-scrollbar-thumb:hover { background: var(--p-prime-dark); }

/* 2. DYNAMIC TEXT SELECTION */
::selection { background: var(--p-prime); color: #fff; text-shadow: none; }

/* 3. CONTRAST UTILITIES FOR DARK BLOCKS */
.txt-contrast-override, 
.txt-contrast-override p, 
.txt-contrast-override span, 
.txt-contrast-override div, 
.txt-contrast-override li, 
.txt-contrast-override strong, 
.txt-contrast-override h3, 
.txt-contrast-override h1,
.txt-contrast-override h2,
.txt-contrast-override h4,
.txt-contrast-override i { 
    color: var(--n-ghost) !important; 
}
.txt-contrast-override p { opacity: 0.85 !important; }

/* 4. GLASSMORPHIC CLI DROPSHADOW */
.glass-heavy-shadow { box-shadow: 0 40px 80px rgba(56, 25, 50, 0.16) !important; border: 1px solid rgba(56,25,50,0.05) !important; }

/* 5. DYNAMIC BORDER BEAM (CONIC GRADIENT) */
.border-beam-badge {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.border-beam-badge::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--p-prime), var(--p-accent), transparent 50%);
    animation: border-beam-spin 4s linear infinite;
    z-index: -1;
}.border-beam-inner {
    background: var(--p-prime);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
}
@keyframes border-beam-spin { 100% { transform: rotate(360deg); } }

/* 6. DYNAMIC BACK-TO-TOP TRIGGERS (LEFT ALIGN TO RESCUE WA) */
.btt-float {
    position: fixed; bottom: 30px; left: 30px;
    width: 48px; height: 48px;
    background: #fff; color: var(--p-prime);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 999; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(56,25,50,0.1);
}
.btt-float.active { opacity: 1; visibility: visible; transform: translateY(0); }
.btt-float:hover { background: var(--p-prime); color: #fff; transform: scale(1.1); }

/* 7. ACCORDION GRID SCHEMATICS */
.faq-grid { display: flex; flex-direction: column; gap: 15px; max-width: 800px; margin: 0 auto; }
.faq-card { background: #fff; border: 1px solid rgba(56,25,50,0.06); border-radius: 16px; overflow: hidden; transition: 0.3s ease; }
.faq-card:hover { border-color: rgba(56,25,50,0.15); box-shadow: 0 10px 25px rgba(56,25,50,0.03); }
.faq-header { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; color: var(--n-base); }
.faq-body { padding: 0 25px 20px; color: var(--n-base); opacity: 0; height: 0; overflow: hidden; transition: all 0.3s ease; pointer-events: none; }
.faq-card.open .faq-body { opacity: 0.8; height: auto; pointer-events: all; padding-top: 5px; }
.faq-icon { transition: transform 0.3s ease; color: var(--p-accent); }
.faq-card.open .faq-icon { transform: rotate(180deg); }

/* 8. CINEMATIC MODAL OVERLAY SYSTEM */
.modal-nexus {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(20px);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-nexus.active { opacity: 1; visibility: visible; }
.modal-chassis {
    background: #fff; border-radius: 24px; width: 90%; max-width: 450px;
    padding: 40px; text-align: center;
    box-shadow: 0 30px 60px rgba(56, 25, 50, 0.2);
    transform: scale(0.9) translateY(30px); transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255,255,255,0.6);
}
.modal-nexus.active .modal-chassis { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 1.2rem; cursor: pointer; opacity: 0.6; transition: 0.2s; }
.modal-close:hover { opacity: 1; color: var(--p-danger); }

/* 9. EXIT BANNER CINEMATICS */
.exit-banner {
    background: linear-gradient(135deg, #381932, #5a2c50);
    color: var(--n-ghost); padding: 80px 40px; text-align: center;
    border-radius: 32px; margin: 80px 0; position: relative; overflow: hidden;
}
.exit-banner-glow {
    position: absolute; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}

/* 10. FOUNDER INITIALS CIRCLES */
.founder-badge-circle {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--p-prime), var(--p-accent));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-code); font-size: 1.5rem; font-weight: 800;
    color: #fff; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(56, 25, 50, 0.15);
}
.shake-error { animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* 11. TYPEWRITER CARET */
.typewriter-caret::after {
    content: '|';
    animation: caret-blink 0.8s infinite;
    color: var(--p-accent);
    margin-left: 3px;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* 12. PRELOADER STAGE */
#global-preloader {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: #381932; z-index: 100000; display: flex;
    align-items:center; justify-content:center; flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preload-logo { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.preload-spinner {
    width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--p-accent); border-radius: 50%;
    animation: pre-spin 0.8s infinite linear;
}
@keyframes pre-spin { to { transform: rotate(360deg); } }

/* 13. ADDITIONAL HIGH-FIDELITY LUX RENDERING */
.founder-quote-box {
    position: relative;
    padding: 20px 0 20px 35px;
}
.founder-quote-box::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 7rem;
    font-family: 'Syne', serif;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(56, 25, 50, 0.18) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
    line-height: 1;
}
.founder-quote-box p {
    position: relative;
    z-index: 2;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 14. CROSS-BROWSER RENDERING PERFORMANCE RIG (ITEM 100) */
.section-v4 {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}
#nexus, .hero-vis-3d, .main-nav, .wa-float, .btt-float, .modal-nexus {
    content-visibility: visible;
}


@keyframes nodePulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 50px rgba(255, 121, 63, 0.1); } 50% { transform: scale(1.05); box-shadow: 0 0 70px rgba(255, 121, 63, 0.25); } }




/* ==========================================
   15. MACOS PREMIUM DOCK STYLING SYSTEM
   ========================================== */
.macos-dock-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(150px); /* Hidden initially for reveal entry */
    z-index: 9999;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.macos-dock-container.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.macos-dock {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(56, 25, 50, 0.45); /* Low opacity n-base */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 243, 230, 0.15);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.macos-dock .dock-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--n-ghost);
    font-size: 1.3rem;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(255, 243, 230, 0.06);
    transform-origin: bottom center;
}
.macos-dock .dock-icon:hover {
    background: rgba(255, 243, 230, 0.2);
    color: var(--c-neon-orange);
    margin: 0 5px; /* Expand surrounding */
}
.macos-dock .dock-icon.active {
    color: var(--c-neon-orange);
    background: rgba(255, 243, 230, 0.12);
}
.macos-dock .dock-icon.active .dock-dot {
    width: 5px;
    opacity: 1;
    background: var(--c-neon-orange);
    box-shadow: 0 0 8px var(--c-neon-orange);
}
.dock-dot {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 243, 230, 0.5);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dock-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 243, 230, 0.2);
    margin: 0 6px;
    align-self: center;
}
/* Dynamic MacOS Tooltips */
.dock-tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--n-base);
    color: var(--n-ghost);
    padding: 6px 14px;
    border-radius: 10px;
    font-family: var(--f-code);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,243,230,0.12);
}
.macos-dock .dock-icon:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Responsive behavior: hide dock entirely below 600px to clean mobile interface */
@media (max-width: 600px) {
    .macos-dock-container {
        display: none !important;
    }
}

/* ==========================================
   16. GLOBALUNIDO CONNECT HUB - PRE-FOUNDER
   ========================================== */
.social-connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 35px;
}
.social-connect-card {
    background: rgba(56, 25, 50, 0.03);
    border: 1px solid rgba(56, 25, 50, 0.08);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.social-connect-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(56, 25, 50, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 121, 63, 0.3);
}
.sc-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: var(--n-base);
    color: white;
    transition: all 0.3s;
}
.sc-call { background: linear-gradient(135deg, #ff793f, #cd6133); }
.sc-mail { background: linear-gradient(135deg, #34ace0, #227093); }
.sc-wa { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.sc-ig { background: linear-gradient(135deg, #f155ff, #e1306c); }

.social-connect-card:hover .sc-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.social-connect-card h4 {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--n-base);
    margin-bottom: 8px;
}
.social-connect-card p {
    font-family: var(--f-code);
    font-weight: 700;
    color: var(--p-accent);
    margin-bottom: 12px;
    word-break: break-all;
}
.social-connect-card span {
    font-size: 0.8rem;
    opacity: 0.6;
    color: var(--n-base);
}


/* MOBILE PERFORMANCE & RESPONSIVITY OVERRIDES */
@media (max-width: 768px) {
    * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .mesh-grad { animation: none !important; filter: blur(30px) !important; opacity: 0.4; }
    .mega-h1 { font-size: 2.8rem !important; letter-spacing: -1.2px !important; line-height: 1.1 !important; }
    .lead-txt { font-size: 1rem !important; margin-bottom: 2rem !important; }
    .hero-stage { padding-top: 100px !important; }
}

@media (max-width: 480px) {
    .mega-h1 { font-size: 2.2rem !important; }
    .section-pad { padding: 40px 0 !important; }
    .h-panel { padding: 30px 10px !important; }
    .bento-card { padding: 20px !important; }
    .stat-val { font-size: 1.8rem !important; }
    .h-nav-links { display: none !important; }
    .mobile-menu-btn { display: block !important; }
}

/* FIXING MOBILE PANEL LAYOUT */
@media (max-width: 768px) {
    .h-scroll-wrapper { 
        display: block !important; 
        width: 100% !important; 
        height: auto !important; 
        overflow: visible !important;
    }
    .h-panel { 
        width: 100% !important; 
        height: auto !important; 
        min-height: auto !important;
        padding: 60px 20px !important;
        flex: none !important;
        position: relative !important;
    }
    .panel-inner { 
        width: 100% !important; 
        max-width: 100% !important;
    }
    .section-pad { padding: 40px 0 !important; }
}

/* NEW MOBILE MENU STYLES */
.mobile-menu-toggle {
    display: none;
    background: var(--p-prime);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

@media (max-width: 1024px) {
    .nav-links { display: none !important; }
    .mobile-menu-toggle { display: block !important; }
    .nav-cta { padding: 8px 15px !important; font-size: 0.8rem !important; }
}

/* MOBILE NAV OVERLAY */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-link {
    font-family: var(--f-display);
    font-size: 2rem;
    color: white;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -1px;
    transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--p-accent); }


/* UTILITY RESPONSIVE CLASSES */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 40px;
    padding: 80px 0;
}

.responsive-h3 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 15px;
    font-family: var(--f-display);
    font-weight: 900;
}
/* ============================================================
   ULTIMATE MOBILE RESPONSIVENESS OVERHAUL (CONSOLIDATED)
   ============================================================ */

/* High-Density Scaling (Tablet / Large Mobile) */
@media (max-width: 1024px) {
    .panel-inner { grid-template-columns: 1fr !important; padding: 40px 20px !important; text-align: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 30px !important; }
    .panel-visual { order: -1; margin-bottom: 30px; width: 100% !important; max-width: 100% !important; transform: none !important; }
    .p-content { padding: 0 !important; text-align: center !important; }
    .p-content h3 { font-size: 2.2rem !important; }
    .p-content ul, .p-content div[style*='grid'] { justify-content: center; text-align: left; max-width: 500px; margin-left: auto; margin-right: auto; }
}

/* Core Mobile Optimization (768px and below) */
@media (max-width: 768px) {
    /* Prevent horizontal overflow globally */
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* TYPOGRAPHY SCALING: Ultra-Premium Liquid Scaling */
    .mega-h1 { 
        font-size: clamp(2.2rem, 12vw, 3rem) !important; 
        line-height: 1.05 !important; 
        letter-spacing: -1.5px !important;
        margin-bottom: 20px !important;
    }
    .mega-h2 { 
        font-size: clamp(1.8rem, 10vw, 2.4rem) !important; 
        line-height: 1.1 !important; 
        letter-spacing: -1px !important;
    }
    h2, .t-wide { font-size: 2.2rem !important; line-height: 1.1 !important; }
    h3, .responsive-h3 { font-size: 1.7rem !important; line-height: 1.2 !important; }
    p { font-size: 1rem !important; line-height: 1.6 !important; opacity: 0.9 !important; }
    
    /* Inline style overrides for big headers in HTML */
    [style*="font-size:5rem"], [style*="font-size: 5rem"],
    [style*="font-size:4.5rem"], [style*="font-size: 4.5rem"],
    [style*="font-size:4rem"], [style*="font-size: 4rem"] {
        font-size: 2.4rem !important;
        line-height: 1.1 !important;
    }

    /* SECTION PADDING & SPACING */
    section, .section-v4 {
        padding: 60px 15px !important;
    }
    .c-max { padding: 0 10px !important; }
    .m-b-80 { margin-bottom: 40px !important; }

    /* GLOBAL GRID STACKING CATCH-ALL */
    .grid-2, .grid-3, .grid-4, .dash-grid-4x, .bento-grid-v4,
    .founder-grid, [style*="display:grid"][style*="grid-template-columns"]:not(.no-stack),
    [style*="display: grid"][style*="grid-template-columns"]:not(.no-stack) {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .span-2-col, .span-2-row { grid-column: span 1 !important; grid-row: span 1 !important; }
    .bento-grid-v4 { grid-auto-rows: auto !important; }

    /* BILTY ENGINE (SIMULATOR SUITE) MOBILE RESTORATION */
    .sim-card { border-radius: 12px !important; margin: 0 !important; width: 100% !important; border: 1px solid rgba(56,25,50,0.1) !important; }
    .sim-grid { grid-template-columns: 1fr !important; }
    .sim-menu { 
        display: flex !important; 
        overflow-x: auto !important; 
        padding: 12px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(56,25,50,0.1) !important;
        background: var(--n-ghost) !important;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
    }
    .sim-item { 
        padding: 10px 18px !important; 
        flex: 0 0 auto !important; 
        font-size: 0.8rem !important;
        background: rgba(255,255,255,0.5) !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        border-radius: 8px !important;
    }
    .sim-item.active { background: white !important; border-color: var(--p-prime) !important; color: var(--p-prime) !important; }
    .sim-content { padding: 30px 15px !important; }
    .bilty-form-grid-2, .bilty-form-grid-3, .bilty-form-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .sim-input, .sim-select { padding: 12px 15px !important; font-size: 0.95rem !important; width: 100% !important; box-sizing: border-box !important; }

    /* SECURITY PROTOCOLS SECTION FIX */
    .txt-contrast-override {
        padding: 40px 20px !important;
        border-radius: 24px !important;
    }
    .txt-contrast-override h2 { font-size: 2.2rem !important; }
    
    /* FAQ SECTION TWEAKS */
    .faq-item { padding: 20px !important; }
    .faq-question { font-size: 1rem !important; }

    /* NAVBAR MOBILE REFINEMENT (THE APPLE DOCK) */
    .main-nav {
        top: 0 !important; 
        width: 100% !important; 
        border-radius: 0 0 20px 20px !important; 
        left: 0 !important;
        transform: none !important;
        border: none !important;
        border-bottom: 1px solid rgba(56, 25, 50, 0.1) !important;
        box-shadow: 0 4px 20px rgba(56, 25, 50, 0.05) !important;
    }
    .nav-container { padding: 0 15px !important; height: 65px !important; }
    .sys-health-badge { display: none !important; }
    .nav-cta { display: none !important; } 
    .mobile-menu-toggle { display: block !important; padding: 8px 12px !important; z-index: 10001 !important; color: var(--n-ghost) !important; }
    .logo-container img { height: 50px !important; }
    
    /* PILLARS HORIZONTAL SCROLL FIX */
    .phone-case { width: 240px !important; height: 430px !important; }
    .intro-pillar-panel h3 { font-size: 2.5rem !important; }
}

/* Scroll Padding and Base Spacing */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}
body {
    padding-top: 20px;
}
@media (max-width: 768px) {
    body { padding-top: 85px !important; }
}

.desktop-only { display: flex; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}

/* ============================================================
   ADDITIONAL MOBILE RESPONSIVENESS AND SPEED OPTIMIZATIONS
   ============================================================ */
.wf-pipeline-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-vis-3d {
        height: 450px !important;
    }
    .glass-panel-widget {
        display: none !important;
    }
    .wf-pipeline-container {
        flex-direction: column !important;
        overflow-x: visible !important;
    }
    .wf-step-arrow {
        justify-content: center !important;
        padding: 10px 0 !important;
    }
    .wf-step-arrow i {
        transform: rotate(90deg) !important;
    }
    .wf-glow-step {
        width: 100% !important;
        min-width: unset !important;
    }
}
