/*** Dark mode theme (homepage). Light mode = body without .future-theme ***/
body.future-theme {
    --primary: #4da3ff;
    --secondary: #8b5cf6;
    --light: #0d1126;
    --dark: #04050d;
    --ft-bg: #05060f;
    --ft-surface: #0d1126;
    --ft-surface-2: #151a36;
    --ft-border: #2a3160;
    --ft-cyan: #38d6f0;
    --ft-violet: #8b5cf6;
    --ft-text: #c3cae6;
    --ft-grad: linear-gradient(120deg, #1fb6d6 0%, #3b6cff 55%, #7c4dff 100%);
    background: var(--ft-bg);
    color: var(--ft-text);
    overflow-x: hidden;
}

.future-theme h1,
.future-theme h2,
.future-theme h3,
.future-theme h4,
.future-theme h5,
.future-theme h6,
.future-theme .text-white {
    color: #f4f6ff;
}

.future-theme .text-primary {
    color: var(--ft-cyan) !important;
}

.future-theme .text-secondary {
    color: var(--ft-violet) !important;
}

.future-theme a {
    color: var(--ft-cyan);
}

.future-theme .text-light,
.future-theme .text-body {
    color: var(--ft-text) !important;
}

.future-theme #spinner {
    background: var(--ft-bg) !important;
}

.future-theme .spinner {
    background: var(--ft-grad);
}

/* Surfaces */
.future-theme .bg-light,
.future-theme .bg-white {
    background: var(--ft-surface) !important;
    border: 1px solid var(--ft-border);
    color: var(--ft-text);
    transition: border-color .3s;
}

.future-theme .bg-light:hover,
.future-theme .bg-white:hover {
    border-color: #4a57a8;
}

.future-theme .bg-primary {
    background: var(--ft-grad) !important;
    border: 1px solid rgba(255, 255, 255, .15);
}

.future-theme .bg-primary .text-primary,
.future-theme .bg-white .text-primary {
    color: var(--ft-cyan) !important;
}

.future-theme .facts .bg-white.rounded {
    background: rgba(255, 255, 255, .16) !important;
    border-color: rgba(255, 255, 255, .25);
}

.future-theme .facts .bg-white.rounded .text-primary {
    color: #fff !important;
}

.future-theme .bg-dark {
    background: #03040a !important;
    border-bottom: 1px solid var(--ft-border);
}

.future-theme [style*="background: #061429"] {
    background: #03040a !important;
    border-top: 1px solid var(--ft-border);
}

.future-theme .rounded,
.future-theme .rounded-3,
.future-theme .service-item,
.future-theme .facts .col-lg-4 > div {
    border-radius: 16px !important;
}

.future-theme .service-item .service-icon {
    background: var(--ft-grad);
    border-radius: 14px;
}

.future-theme hr {
    border-color: var(--ft-border);
    opacity: 1;
}

/* Section titles */
.future-theme .section-title h5,
.future-theme .section-title .text-primary {
    letter-spacing: .18em;
}

.future-theme .section-title::before {
    background: var(--ft-border) !important;
    height: 2px;
}

.future-theme .section-title::after {
    background: var(--ft-grad) !important;
    height: 4px;
    border-radius: 4px;
}

/* Buttons */
.future-theme .btn {
    border-radius: 999px;
}

.future-theme .btn-primary,
.future-theme .btn-secondary {
    border: 0;
    color: #fff;
    background: var(--ft-grad);
    background-size: 200% 100%;
    background-position: 0 0;
    box-shadow: none;
    transition: background-position .5s, transform .25s;
}

.future-theme .btn-primary:hover,
.future-theme .btn-primary:focus,
.future-theme .btn-secondary:hover,
.future-theme .btn-secondary:focus {
    color: #fff;
    background: var(--ft-grad);
    background-size: 200% 100%;
    background-position: 100% 0;
    box-shadow: none;
    transform: translateY(-2px);
}

.future-theme .btn-outline-light,
.future-theme .btn-outline-primary,
.future-theme .btn-light {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .35);
    transition: background .3s, border-color .3s, transform .25s;
}

.future-theme .btn-outline-light:hover,
.future-theme .btn-outline-primary:hover,
.future-theme .btn-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border-color: #fff;
    transform: translateY(-2px);
}

.future-theme .btn-dark {
    color: #fff;
    background: #05060f;
    border: 1px solid #3a4380;
}

.future-theme .btn-dark:hover {
    background: #11163a;
    border-color: #6d7be0;
    color: #fff;
}

.future-theme .btn-square,
.future-theme .btn-sm-square,
.future-theme .btn-lg-square {
    border-radius: 50%;
}

/* Forms: solid dark panels, high-contrast fields */
.future-theme .bg-primary:has(form),
.future-theme .bg-primary:has(.footer-signup-form) {
    background: var(--ft-surface) !important;
    border: 1px solid var(--ft-border);
}

.future-theme .form-control,
.future-theme .form-select,
.future-theme .form-control.bg-light,
.future-theme .form-select.bg-light {
    color: #fff;
    background-color: var(--ft-surface-2) !important;
    border: 1px solid #3a4380 !important;
    border-radius: 12px;
}

.future-theme .input-group .form-control {
    border-radius: 999px 0 0 999px;
}

.future-theme .input-group .btn {
    border-radius: 0 999px 999px 0;
}

.future-theme .form-control:focus,
.future-theme .form-select:focus {
    color: #fff;
    border-color: var(--ft-cyan) !important;
    box-shadow: none;
    outline: 2px solid var(--ft-cyan);
    outline-offset: 1px;
}

.future-theme .form-control::placeholder,
.future-theme textarea::placeholder {
    color: #aab3d6;
    opacity: 1;
}

.future-theme .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.future-theme .form-select option {
    color: #fff;
    background: #151a36;
}

.future-theme .form-control:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px #151a36 inset;
}

/* Dropdowns & modals */
.future-theme .dropdown-menu {
    background: #0a0d20;
    border: 1px solid var(--ft-border);
    border-radius: 14px;
    padding: 8px;
}

.future-theme .dropdown-item {
    color: #e3e8ff;
    border-radius: 10px;
}

.future-theme .dropdown-item:hover,
.future-theme .dropdown-item:focus {
    background: #1b2250;
    color: #fff;
}

.future-theme .modal-content {
    background: #0a0d20;
    border: 1px solid var(--ft-border);
    color: var(--ft-text);
}

/* Floating pill navigation */
.future-theme .navbar.navbar-dark {
    position: fixed;
    top: 62px;
    left: 50%;
    width: min(1280px, calc(100% - 32px));
    padding: 8px 22px !important;
    border: 1px solid var(--ft-border) !important;
    border-radius: 999px;
    background: rgba(5, 6, 15, .92) !important;
    transform: translateX(-50%);
    transition: top .35s ease, transform .35s ease;
}

.future-theme .navbar.navbar-dark.sticky-top {
    top: 14px;
}

.future-theme .navbar.navbar-dark.nav-hidden {
    transform: translate(-50%, -170%);
}

.future-theme .navbar > img {
    height: 40px;
    width: auto;
    padding: 0 !important;
    margin-right: 10px;
}

.future-theme .navbar-dark .navbar-brand h1,
.future-theme .sticky-top.navbar-dark .navbar-brand h1 {
    font-size: 1.35rem;
    color: #fff;
}

.future-theme .navbar-dark .navbar-nav .nav-link,
.future-theme .sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 12px 0;
    margin-left: 22px;
    font-size: 16px;
    color: #e3e8ff;
}

.future-theme .navbar-dark .navbar-nav .nav-link:hover,
.future-theme .navbar-dark .navbar-nav .nav-link.active,
.future-theme .sticky-top.navbar-dark .navbar-nav .nav-link:hover,
.future-theme .sticky-top.navbar-dark .navbar-nav .nav-link.active {
    color: var(--ft-cyan);
}

.future-theme .navbar-dark .navbar-nav .nav-link::before {
    background: var(--ft-grad);
    bottom: 2px;
}

.future-theme .navbar-dark .navbar-toggler {
    color: var(--ft-cyan) !important;
    border-color: var(--ft-border) !important;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .future-theme .navbar.navbar-dark,
    .future-theme .navbar.navbar-dark.sticky-top {
        top: 12px;
        border-radius: 26px;
        padding: 10px 16px !important;
    }

    .future-theme .navbar-collapse {
        margin-top: 10px;
        padding: 8px 4px;
    }

    .future-theme .navbar-dark .navbar-nav .nav-link,
    .future-theme .sticky-top.navbar-dark .navbar-nav .nav-link {
        margin-left: 6px;
        padding: 10px 0;
        color: #e3e8ff;
    }

    .future-theme .navbar-dark .navbar-brand h1 {
        color: #fff;
    }
}

/* Hero */
.future-theme .robot-hero__shade {
    background: linear-gradient(180deg, rgba(5, 6, 15, .5) 0%, rgba(5, 6, 15, .15) 45%, rgba(5, 6, 15, .5) 80%, #05060f 100%);
}

.future-theme .robot-hero__caption h5 {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(5, 6, 15, .55);
    letter-spacing: .2em;
    font-size: 13px;
    color: var(--ft-cyan) !important;
}

.future-theme .robot-hero .carousel-control-prev-icon,
.future-theme .robot-hero .carousel-control-next-icon {
    width: 3.2rem;
    height: 3.2rem;
    background-size: 40%;
    background-position: center;
    background-color: rgba(5, 6, 15, .55);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    transition: background-color .3s, border-color .3s;
}

.future-theme .robot-hero .carousel-control-prev:hover .carousel-control-prev-icon,
.future-theme .robot-hero .carousel-control-next:hover .carousel-control-next-icon {
    border-color: #fff;
    background-color: rgba(255, 255, 255, .18);
}

/* Footer & misc */
.future-theme .ecosystem-node {
    background: var(--ft-surface);
    border-color: var(--ft-border);
    border-top-color: var(--node-color);
    border-radius: 16px;
}

.future-theme .ecosystem-node:hover {
    box-shadow: none;
    border-color: #4a57a8;
    border-top-color: var(--node-color);
}

.future-theme .ecosystem-node p,
.future-theme .ecosystem-section .section-title p,
.future-theme .ecosystem-category + p {
    color: var(--ft-text);
}

.future-theme .ecosystem-node h3 {
    color: #fff;
}

.future-theme .ecosystem-logo {
    background: #fff;
    border-radius: 10px;
}

.future-theme .ecosystem-hub-core,
.future-theme .ecosystem-hub-core strong {
    color: #05060f;
}

.future-theme .row.gx-0 > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.future-theme .link-animated a,
.future-theme .text-light a {
    color: var(--ft-text);
}

.future-theme .link-animated a:hover {
    color: #fff;
}

.future-theme .back-to-top {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.future-theme .testimonial-carousel .owl-dot {
    border-color: var(--ft-border);
}

.future-theme .testimonial-carousel .owl-dot.active {
    background: var(--ft-grad);
}

.future-theme img.img-fluid {
    border-radius: 16px;
}

/* Theme toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, .15);
}

.sticky-top.navbar-dark .theme-toggle {
    color: var(--dark);
    border-color: rgba(9, 30, 62, .35);
}

.future-theme .theme-toggle,
.future-theme .sticky-top.navbar-dark .theme-toggle {
    color: #fff;
    border-color: #3a4380;
}

.theme-toggle .icon-sun {
    display: none;
}

.future-theme .theme-toggle .icon-sun {
    display: inline;
}

.future-theme .theme-toggle .icon-moon {
    display: none;
}

@media (max-width: 991.98px) {
    .theme-toggle {
        color: var(--dark);
        border-color: rgba(9, 30, 62, .35);
        margin: 8px 0;
    }

    .future-theme .theme-toggle {
        color: #fff;
        border-color: #3a4380;
    }
}

/* Fixed background video (dark mode only) */
.ft-bg {
    display: none;
}

.future-theme .ft-bg {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #05060f;
}

.ft-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

.future-theme .ecosystem-section {
    background: rgba(8, 11, 28, .78);
}

/* Scroll progress bar & section dots (dark mode only) */
.ft-progress,
.ft-dots {
    display: none;
}

.future-theme .ft-progress {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 2000;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #38d6f0, #3b6cff, #8b5cf6, #d4af37);
    pointer-events: none;
    will-change: transform;
}

.future-theme .ft-dots {
    position: fixed;
    right: 18px;
    top: 50%;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 8px;
    border: 1px solid var(--ft-border);
    border-radius: 999px;
    background: rgba(5, 6, 15, .85);
    transform: translateY(-50%);
}

.ft-dots button {
    position: relative;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.ft-dots button:hover,
.ft-dots button.is-active {
    border-color: var(--ft-cyan);
    background: var(--ft-cyan);
    transform: scale(1.3);
}

.ft-dots button::after {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    padding: 4px 10px;
    border: 1px solid var(--ft-border);
    border-radius: 999px;
    background: #0a0d20;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(6px, -50%);
    transition: opacity .2s, transform .2s;
}

.ft-dots button:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

@media (max-width: 991.98px) {
    .future-theme .ft-dots {
        display: none;
    }
}

/* Scroll reveal (replaces WOW in dark mode; transform/opacity only) */
.future-theme .wow {
    visibility: visible !important;
    animation: none !important;
}

.future-theme.ft-js .ft-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: var(--ft-delay, 0s);
}

.future-theme.ft-js .ft-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .future-theme.ft-js .ft-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .future-theme .navbar.navbar-dark {
        transition: none;
    }
}
