--brand-purple {
    color: #7a34e8;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

a {
    cursor: pointer;
}

/*Global styles because I am a lazy bitch*/

brand-purple-bg {
    background: var(--brand-primary);
}

brand-purple-color {
    color: var(--brand-primary);
}

.pt2 {
    padding-top: 2em;
}

.pt4 {
    padding-top: 4em;
}

/*Tootlips*/
.tooltip {
    position: absolute;
    padding: 1rem;
    border-radius: 10px;
    min-width: 300px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

.node-tooltip-title {
    font-size: 1.1em;
    font-weight: 600;
    padding-bottom: 8px;
}

.node-tooltip-description {
    font-size: 0.9em;
    font-weight: 500;
}

.automation-icon {
    position: absolute;
    max-height: 20px;
    right: 3%;
    top: 8%;
}

.sim-node {
    transition: box-shadow 0.7s ease-in-out;
    box-shadow: none;
    background: none;
    cursor: pointer;
}

.sim-icon-box {
    transition: box-shadow 0.7s ease-in-out;
    box-shadow: none;
}

.sim-icon-box:hover {
    box-shadow: 10px 18px 72px -3px rgba(28,171,217,0.75);
-webkit-box-shadow: 10px 18px 72px -3px rgba(28,171,217,0.75);
-moz-box-shadow: 10px 18px 72px -3px rgba(28,171,217,0.75);
}

.show-tooltip {
    transform: translateY(0px);
    opacity: 1;
    visibility: visible;
}

.node-1-tooltip, .node-2-tooltip, .node-3-tooltip,.node-4-tooltip, .node-5-tooltip {
    background: #0f172a;
    border-radius: 10px;
    left: 120%;
    top: 0;
}

.optimised-node {
    border: 1px solid rgb(79 70 229 / var(--tw-bg-opacity, 1));
    left: 0%;
    top: -150%;
}

/* Scanline Animation */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(99, 102, 241, 0.1) 50%, transparent 100%);
    background-size: 100% 4px;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Simulator Transitions */
.sim-node { transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); }


.sim-data-result {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#mobile-line {
    display: none;
}

.sim-data-result-data {
    align-items: center;
}

.sale-label {
    position: absolute;
    right: 5%;
    top: 5%;
}

.pricing-table-column {
    position: relative;
    overflow: hidden;
}

#what-we-do {
    min-height: 100vh;
}

.usp-grid {
    grid-template-columns: 1fr 1fr;
}

.video-bg {
    opacity: 20%;
}

/* Container must be relative and clip the video */
.video-section {
    position: relative;
    overflow: hidden;
}

/* Video fills the container and behaves like 'background-size: cover' */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* The Overlay ensures text contrast */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85); /* Matches your slate-950 */
    z-index: 1;
}

/* Ensure content stays on top */
.video-content {
    position: relative;
    z-index: 2;
}


/* Chaos Positions */
.sim-node[data-id="1"] { top: 10%; left: 10%; }
.sim-node[data-id="2"] { top: 70%; left: 15%; }
.sim-node[data-id="3"] { top: 20%; left: 80%; }
.sim-node[data-id="4"] { top: 65%; left: 65%; }
.sim-node[data-id="5"] { top: 40%; left: 35%; }

/* Order Positions (Applied when parent has .optimized class) */
.optimized .sim-node[data-id="1"] { top: 37%; left: 5%; }
.optimized .sim-node[data-id="2"] { top: 37%; left: 25%; }
.optimized .sim-node[data-id="3"] { top: 37%; left: 45%; }
.optimized .sim-node[data-id="4"] { top: 37%; left: 65%; }
.optimized .sim-node[data-id="5"] { top: 37%; left: 85%; }

/* Connection Lines */
.chaos-lines { opacity: 1; transition: opacity 0.5s; }
.order-lines { opacity: 0; transition: opacity 0.5s; }
.optimized .chaos-lines { opacity: 0; }
.optimized .order-lines { opacity: 1; }

/* Marquee Pause */
.animate-marquee:hover { animation-play-state: paused; }

/* ---- Nav Dropdown ---- */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.nav-dropdown-trigger svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #94a3b8;
    transition: all 0.15s ease;
    text-decoration: none;
}
.nav-dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
}
.nav-dropdown-menu a i,
.nav-dropdown-menu a svg {
    width: 16px;
    height: 16px;
    color: #6366f1;
    flex-shrink: 0;
}

/* Range Slider Styling */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ef4444;
    cursor: pointer;
    margin-top: -6px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #1e293b;
    border-radius: 2px;
}

@media only screen and (max-width: 600px) {
    /*Simulator*/
    #sim-box {
        min-height: 100vh;
        min-width: 100vw;
    }
    #sim-box-footer {
        flex-direction: column;
        gap: 1rem;
    }
    #sim-box-footer, #sim-box-title {
        padding: 1em;
    }
   #sim-btn {
    min-width: 100%;
    }
    .sim-node[data-id="5"] {
    top: 40%;
    left: 30%;
    }
    /* Order Positions (Applied when parent has .optimized class) */
.optimized .sim-node[data-id="1"] { top: 1%; left: 5%; }
.optimized .sim-node[data-id="2"] { top: 20%; left: 5%; }
.optimized .sim-node[data-id="3"] { top: 40%; left: 5%; }
.optimized .sim-node[data-id="4"] { top: 60%; left: 5%; }
.optimized .sim-node[data-id="5"] { top: 80%; left: 5%; }

    #mobile-line {
    display: initial;
    }
    #desktop-line {
    display: none;
    }
    .tooltip {
    min-width: 220px;
    }
    .optimised-node {
    left: 120%;
    top: 0%;
}
}