/*==================================
ROOT / RESET
==================================*/

:root {

    --cyan: #4FF6FF;
    --blue: #42A5FF;
    --bg: #05070B;
    --bg-alt: #0A0E15;
    --text: #E7EEF4;
    --muted: #9FB1C2;
    --border: rgba(79, 246, 255, .15);
    --ring-light: #EBFAFF;
    --ring-mid: #4FF6FF;
    --ring-dark: #081529;
    --ring-end: #FF3B3B;

}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;

}

h1,
h2,
h3,
h4 {
    color: #FFFFFF;
    font-weight: 600;
    margin: 0;
}

p {
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
}

section {
    position: relative;
}

section>*,
header.footer-top,
.footer-top,
.footer-bottom {
    position: relative;
    z-index: 2;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    /* Stop looping decorative animations */
    .particle,
    .pulse,
    .floating-icon,
    .track-node-wrap::before {
        animation: none;
    }

    /* Keep reveal animations but make them quicker */
    .track-item,
    .track-connector::after {
        transition-duration: 0.15s;
    }
}

/* Shared eyebrow tag used above section headings on every page */
.section-tag {

    display: inline-block;
    padding: 10px 24px;
    border-radius: 40px;
    border: 1px solid rgba(79, 246, 255, .2);
    color: var(--cyan);
    letter-spacing: 3px;
    font-size: 12px;
    backdrop-filter: blur(20px);

}

/*==================================
BUTTONS
==================================*/

.btn-primary,
.btn-secondary {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 40px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
    transition: .35s;
    cursor: pointer;
    white-space: nowrap;

}

.btn-primary {

    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #05070B;
    box-shadow: 0 10px 30px rgba(79, 246, 255, .25);

}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(79, 246, 255, .4);
}

.btn-secondary {

    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(79, 246, 255, .25);
    color: var(--text);
    backdrop-filter: blur(20px);

}

.btn-secondary:hover {
    border-color: var(--cyan);
    background: rgba(79, 246, 255, .06);
    transform: translateY(-3px);
}

@media (max-width: 560px) {

    .hero-buttons,
    .cta-buttons,
    .tp-hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

}

/*==================
SCROLL INDICATOR
==================*/

.scroll-indicator {

    position: absolute;

    bottom: 45px;

    left: 50%;

    transform: translateX(-50%);

    width: 28px;

    height: 50px;

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 40px;

    z-index: 5;

}

.scroll-indicator span {

    position: absolute;

    left: 50%;

    top: 10px;

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: var(--cyan);

    transform: translateX(-50%);

    animation: scroll 2s infinite;

}

.scroll-wheel {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {

    0% {

        transform: translate(-50%, 0);

        opacity: 0;

    }

    30% {

        opacity: 1;

    }

    100% {

        transform: translate(-50%, 18px);

        opacity: 0;

    }

}

.scroll-indicator {
    transition: opacity .4s ease;
}

.scroll-indicator.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator {
    z-index: 99999 !important;
}

/*==================================
SECTION-SCOPED PARTICLE LAYER
==================================*/

.section-particles {

    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;

}

.section-particles span {

    position: absolute;
    bottom: -10px;
    width: var(--size, 3px);
    height: var(--size, 3px);
    border-radius: 50%;
    background: var(--dot-color, var(--cyan));
    opacity: 0;
    box-shadow: 0 0 6px var(--dot-color, var(--cyan));
    animation: rise var(--dur, 18s) linear var(--delay, 0s) infinite;
    will-change: transform, opacity;

}

@keyframes rise {

    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: var(--peak-opacity, .55);
    }

    90% {
        opacity: var(--peak-opacity, .55);
    }

    100% {
        transform: translateY(-120%) translateX(var(--drift, 20px));
        opacity: 0;
    }

}

#three-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#three-container canvas {
    display: block;
}

/*========================================
CALL TO ACTION (identical on every page)
========================================*/

.cta {

    position: relative;

    overflow: hidden;

    padding: clamp(90px, 16vw, 180px) 6%;

    background: #070A10;

    text-align: center;

}

.cta-glow {

    position: absolute;

    width: 700px;

    height: 700px;

    border-radius: 50%;

    background: radial-gradient(rgba(79, 246, 255, .18),
            transparent 70%);

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;
    z-index: 1;

}

.cta-content {

    position: relative;

    z-index: 2;

    max-width: 900px;

    margin: auto;

}

.cta h2 {

    margin-top: 25px;

    font-size: clamp(36px, 7vw, 100px);

    line-height: .95;

}

.cta p {

    margin: 40px auto;

    max-width: 650px;

    color: #A6B8C8;

    line-height: 1.9;

    font-size: clamp(16px, 2vw, 18px);

}

.cta-buttons {

    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 60px;
    flex-wrap: wrap;

}

@media(max-width:768px) {

    .cta-buttons {

        flex-direction: column;

    }

}

/*========================================
FOOTER (identical on every page)
========================================*/

.footer {

    position: relative;
    overflow: hidden;

    padding: 80px 6% 40px;

    background: #05070B;

    border-top: 1px solid rgba(79, 246, 255, .08);

}

.footer-top {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 60px;

}

.footer h3 {

    margin-bottom: 25px;

}

.footer h4 {

    margin-bottom: 25px;

    color: var(--cyan);
    font-size: 15px;
    letter-spacing: 1px;

}

.footer p {

    color: #8FA2B4;

    line-height: 1.8;

}

.footer a {

    display: block;

    color: #8FA2B4;

    margin-bottom: 15px;

    transition: .3s;

}

.footer a:hover {

    color: white;

}

.footer-bottom {

    margin-top: 70px;

    padding-top: 30px;

    border-top: 1px solid rgba(255, 255, 255, .05);

    color: #6E8192;
    font-size: 14px;

}

@media(max-width:900px) {

    .footer-top {

        grid-template-columns: 1fr;
        gap: 40px;

    }

}

/*==================================
NAVBAR (identical on every page)
==================================*/

.navbar {
    position: fixed;
    top: 25px;
    left: 6%;
    right: 6%;
    width: auto;
    z-index: 9999;
}

.nav-scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    z-index: 9998;
    pointer-events: none;
    background: linear-gradient(to bottom,
            var(--bg) 0%,
            var(--bg) 45%,
            transparent 100%);
}

.nav-container {
    height: 80px;
    padding: 0 24px 0 20px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    backdrop-filter: blur(24px);
    background: rgba(8, 12, 18, .55);
    border: 1px solid rgba(79, 246, 255, .1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    min-width: 0;
    flex-shrink: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.logo-ring {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ring-outer {
    fill: none;
    stroke: rgba(79, 246, 255, .18);
    stroke-width: 1.5;
}

.ring-progress {
    fill: none;
    stroke: url(#ringProgressGradient);
    stroke-width: 2.5;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 20px 20px;
    stroke-dasharray: 106.8;
    stroke-dashoffset: calc(106.8 - (106.8 * var(--scroll-progress, 0)));
    filter: drop-shadow(0 0 4px rgba(66, 165, 255, .55));
}

.ring-sweep {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 24 200;
    transform-origin: 20px 20px;
    animation: ring-spin 3s linear 1 forwards;
    filter: drop-shadow(0 0 4px var(--cyan));
    transition: stroke .5s ease, filter .5s ease;
}

.ring-core {
    fill: var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan));
    animation: core-pulse 2s ease-in-out infinite;
    transform-origin: 20px 20px;
    transition: fill .5s ease, filter .5s ease;
}

@keyframes ring-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes core-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.35);
        opacity: .6;
    }
}

.navbar.at-end .ring-outer {
    stroke: rgba(255, 80, 80, .35);
}

.navbar.at-end .ring-progress {
    stroke: #FF3B3B;
    filter: drop-shadow(0 0 5px #FF3B3B);
}

.navbar.at-end .ring-sweep {
    stroke: #FF3B3B;
    filter: drop-shadow(0 0 4px #FF3B3B);
}

.navbar.at-end .ring-core {
    fill: #FF3B3B;
    filter: drop-shadow(0 0 6px #FF3B3B);
}

.logo-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.logo-wordmark {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    letter-spacing: .5px;
    color: #FFFFFF;
    white-space: nowrap;
}

.logo-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #8DA4B8;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: #B5C4D2;
    font-size: 15px;
    position: relative;
    transition: .35s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: .35s;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after,
.nav-links .active::after {
    width: 100%;
}

/*==================================
NAV DROPDOWN — PRODUCTS MEGA-MENU
Append this block into css/Base.css,
right after the existing NAVBAR section.
==================================*/

.nav-caret {
    margin-left: 6px;
    position: relative;
    top: -1px;
    transition: transform .3s ease;
}

.nav-has-dropdown {
    position: relative;
}

.nav-has-dropdown>a {
    display: inline-flex;
    align-items: center;
}

.nav-has-dropdown:hover .nav-caret,
.nav-has-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
}

/*
   IMPORTANT: .nav-dropdown sits flush against its parent (top: 100%,
   no gap) and uses padding-top as an INVISIBLE hover bridge instead
   of a margin/gap. This keeps the hover area continuous all the way
   from the "Products" link down into the panel, so moving the cursor
   down never crosses dead space and closes the menu prematurely.
   The actual visible box is the nested .nav-dropdown-panel, which
   handles its own slide-in animation independently.
*/
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    padding-top: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
    z-index: 20;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-panel {
    padding: 18px;
    border-radius: 18px;
    background: rgba(8, 12, 18, .96);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(79, 246, 255, .16);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .55);
    transform: translateY(-6px);
    transition: transform .22s ease;
}

.nav-has-dropdown:hover .nav-dropdown-panel,
.nav-has-dropdown:focus-within .nav-dropdown-panel {
    transform: translateY(0);
}

.nav-dropdown-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.nav-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 12px;
    transition: background .25s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background: rgba(79, 246, 255, .07);
}

.nav-dropdown-name {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

.nav-dropdown-item.active .nav-dropdown-name {
    color: var(--cyan);
}

.nav-dropdown-tag {
    color: #8DA4B8;
    font-size: 12px;
    line-height: 1.4;
}

.nav-dropdown-all {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--cyan);
    font-size: 13px;
    letter-spacing: .5px;
    text-align: right;
    transition: opacity .25s ease;
}

.nav-dropdown-all:hover {
    opacity: .75;
}

@media (max-width: 1100px) {
    .nav-dropdown {
        display: none;
    }
}

/*==================================
FULL-PAGE DIM OVERLAY
Fades in behind the whole nav while a
dropdown is open, so page content
reads as "hidden behind" rather than
bleeding through the translucent panel.
Toggled by JS (see app.js addition)
via the .is-visible class.
==================================*/

.nav-dim-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 11, .72);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 9000;
}

.nav-dim-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/*==================================
MOBILE PRODUCTS ACCORDION
==================================*/

.mobile-nav-dropdown details {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mobile-nav-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    color: #C7D4E0;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
}

.mobile-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-dropdown summary.active {
    color: var(--cyan);
}

.mobile-nav-dropdown details[open] summary .nav-caret {
    transform: rotate(180deg);
}

.mobile-nav-sublinks {
    list-style: none;
    margin: 0;
    padding: 0 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-sublinks a {
    display: block;
    padding: 10px 4px;
    color: #8DA4B8;
    font-size: 15px;
    transition: color .3s;
}

.mobile-nav-sublinks a:hover,
.mobile-nav-sublinks a.active {
    color: var(--cyan);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.system-online {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #90A4B4;
    white-space: nowrap;
}

.system-online span,
.mobile-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4FF6FF;
    box-shadow: 0 0 12px #4FF6FF;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% {
        opacity: .4;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }

    100% {
        opacity: .4;
        transform: scale(.8);
    }
}

.nav-button {
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #42A5FF, #4FF6FF);
    color: #000;
    font-weight: 700;
    transition: .35s;
    white-space: nowrap;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(79, 246, 255, .4);
}

.mobile-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-button span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.navbar.menu-open .mobile-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar.menu-open .mobile-button span:nth-child(2) {
    opacity: 0;
}

.navbar.menu-open .mobile-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    border-radius: 22px;
    padding: 30px 30px 34px;
    background: rgba(8, 12, 18, .85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(79, 246, 255, .12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    display: none;
    flex-direction: column;
    gap: 26px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;

    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.navbar.menu-open .mobile-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-links a {
    display: block;
    padding: 14px 4px;
    color: #C7D4E0;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: color .3s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--cyan);
}

.mobile-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #90A4B4;
}

.mobile-cta {
    text-align: center;
}

@media (max-width: 1100px) {

    .nav-links,
    .nav-right {
        display: none;
    }

    .mobile-button {
        display: flex;
    }
}

@media (max-width: 560px) {
    .navbar {
        top: 14px;
    }

    .nav-container {
        height: 68px;
        padding: 0 16px 0 14px;
        border-radius: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .logo-wordmark {
        font-size: 18px;
    }

    .logo-tagline {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .mobile-menu {
        border-radius: 18px;
        padding: 24px 20px 28px;
    }

    .nav-scrim {
        height: 110px;
    }
}

@media (max-width: 480px) {
    .navbar {
        left: 5%;
        right: 5%;
    }
}