/* Global Reset & Base Variables */
:root {
    --bg-black: #000000;
    --neon-purple: rgba(108, 0, 250, 0.4);
    --neon-purple-dim: rgba(108, 0, 250, 0.15);
    --neon-cyan: #00f0ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-hairline: rgba(255, 255, 255, 0.1);
    --btn-bg: rgba(20, 20, 20, 0.6);
    --btn-solid: #ffffff;
    --btn-solid-text: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 120px;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

/* Global Sticky Header */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-left {
    display: flex;
    gap: 1rem;
}

.nav-capsule {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-capsule:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Continuous Canvas & Ambient Glows */
.continuous-canvas {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Main Background Video */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: contain;
    transform: scale(0.85);
    z-index: 0;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.ambient-glow {
    position: fixed;
    top: 0;
    width: 30vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    filter: blur(150px);
}

.glow-left {
    left: -15vw;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
}

.glow-right {
    right: -15vw;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
}

/* Section Common */
section {
    position: relative;
    z-index: 10;
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* STEP 1: HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
}

.hero-layer-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Language Dropdown Styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.lang-option:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-option.active {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.hero-text-behind {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1; /* Behind the model */
    width: 100%;
}

.hero-logo-x {
    display: flex;
    justify-content: center;
    margin-bottom: -1rem;
}

.hero-logo-x svg {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.hero-xevaris {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.1);
    font-family: 'Outfit', sans-serif;
    transform: translateX(0.1em); /* Balance out letter-spacing for true center */
}

.hero-smart-retail {
    font-size: clamp(0.7rem, 2vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.5em;
    color: #a0a0a0;
    margin-top: 1.5rem;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.hero-model-front {
    position: relative;
    z-index: 2; /* In front of text */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.merged-hero-asset {
    height: 90%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(108, 0, 250, 0.4)); /* Purple glow */
}

/* Floor reflection/texture */
.floor-reflection {
    position: absolute;
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%) scaleY(0.5);
    width: 70%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(108, 0, 250, 0.25) 0%, transparent 60%);
    filter: blur(25px);
    z-index: 1;
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--text-primary));
}

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* STEP 3A: Hospitality Retention Layout */
.value-proposition-section {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.value-prop-bg-blend {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url('bar-scene.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    mix-blend-mode: screen;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.split-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.split-left {
    flex: none;
}

.massive-headline {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.split-right {
    flex: none;
    max-width: 800px;
}

.corporate-copy {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* STEP 3B: Operational Infrastructure Grid */
.infrastructure-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

.infrastructure-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    transform: translateX(-4rem);
    width: 100%;
}

.infrastructure-visuals {
    flex: 1;
    display: flex;
    justify-content: center;
}

.infra-img {
    height: 400px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.infrastructure-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: none;
}

.grid-column {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
}

.grid-column:last-child {
    border-right: none;
    border-bottom: none;
}

.grid-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--neon-purple);
    margin-bottom: 0;
}

.grid-text-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.grid-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    white-space: nowrap;
}

.grid-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    white-space: normal;
    line-height: 1.5;
}

/* STEP 3C: Core Technology Close-Up */
.core-tech-section {
    padding: 4rem 5% 10rem 5%;
}

.tech-layout {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.tech-visual {
    flex: 1;
    position: relative;
}

.tech-img {
    width: 100%;
    max-width: 600px;
    object-fit: contain;
    mix-blend-mode: screen;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    transform: translateY(-3rem);
}

.tech-features {
    flex: 1;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-hairline);
    position: relative;
    z-index: 1;
}

.features-list li:hover {
    z-index: 50;
}


.feature-icon {
    font-size: 2rem;
    background: var(--btn-bg);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-hairline);
}

.feature-text {
    font-size: 1.2rem;
    font-weight: 500;
}

.feature-dropdown-container {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.feature-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(108, 0, 250, 0.2);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.feature-dropdown-container:hover .feature-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.feature-dropdown-container:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.05);
}

/* STEP 3D: Fulfillment & Conversion Footer */
.conversion-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
    padding-top: 5rem;
    padding-bottom: 10rem;
    scroll-margin-top: 45px;
}

.footer-visual-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.footer-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    mask-image: radial-gradient(ellipse at center, black 45%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 75%);
    position: relative;
    z-index: 2;
}

.cyan-neon-overlay {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30%;
    background: var(--neon-cyan);
    filter: blur(100px);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.footer-cta {
    flex: 1;
    width: 100%;
}

.corporate-callout {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.cta-form {
    display: flex;
    gap: 1rem;
    background: var(--btn-bg);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-hairline);
}

.dark-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
}

.dark-input::placeholder {
    color: var(--text-secondary);
}

.capsule-btn {
    background: var(--btn-solid);
    color: var(--btn-solid-text);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.capsule-btn:hover {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-black);
}

.login-bg-blend {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Inicio.jpeg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
    /* Softly fade the image out at the edges to blend into black, completely removing image corners */
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.login-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 3;
    line-height: 1;
    transition: color 0.3s ease;
}

.login-close:hover {
    color: var(--neon-cyan);
}

.login-container {
    position: relative;
    z-index: 2;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid var(--border-hairline);
    padding: 4rem;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(108, 0, 250, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-input:focus {
    border-color: var(--neon-cyan);
}

.login-btn {
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1rem;
    border-radius: 12px;
    letter-spacing: 0.1em;
}

/* FAQ Section */
.faq-section {
    padding-top: 5rem;
    padding-bottom: 10rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 5rem;
}

.faq-category {
    margin-bottom: 4rem;
}

.faq-category-title {
    font-size: 1.5rem;
    color: var(--neon-purple);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
}

.faq-item:hover {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(108, 0, 250, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(108, 0, 250, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(108, 0, 250, 0.1);
    color: var(--neon-cyan);
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
    background: var(--neon-purple);
    color: #fff;
    transform: scale(1.1);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    padding-left: 3.5rem;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.faq-item:hover .faq-answer {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .split-column, .tech-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .infrastructure-grid {
        flex-direction: column;
        border: none;
    }
    
    .grid-column {
        border-right: none;
        border-bottom: 1px solid var(--border-hairline);
    }
    
    .infrastructure-visuals {
        flex-direction: column;
        align-items: center;
    }
    
    .infra-img {
        height: auto;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .global-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .massive-headline {
        font-size: 3rem;
    }
    
    .cta-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .dark-input {
        background: var(--btn-bg);
        border: 1px solid var(--border-hairline);
        border-radius: 50px;
    }
}

/* Intro Loading Screen */
.intro-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-black);
    z-index: 99999; /* Keep above everything else */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.intro-loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================================================= */
/* REACT SCROLL-GLOBE TRANSLATION TO VANILLA CSS                             */
/* ========================================================================= */

/* Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, rgba(24,24,27,0.5), rgba(39,39,42,0.8), rgba(24,24,27,0.5));
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #a855f7, #6366f1, #22d3ee);
    transform-origin: left center;
    transform: scaleX(0);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
    transition: transform 0.15s ease-out;
}

/* Right Navigation Dots */
.right-nav {
    display: none;
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .right-nav { display: flex; }
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #52525b; /* zinc-600 */
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.nav-dot:hover {
    border-color: #c084fc; /* purple-400 */
    background: rgba(168, 85, 247, 0.1);
    transform: scale(1.25);
}

.nav-dot.active {
    background: #a855f7; /* purple-500 */
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    transform: scale(1.25);
}

/* Ping animation for active dot */
.nav-dot.active::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.4);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.nav-label {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(9, 9, 11, 0.9); /* zinc-950/90 */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e4e4e7; /* zinc-200 */
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

/* Label fade out logic - native equivalent */
.nav-label.visible {
    opacity: 1;
    animation: fadeOutLabel 3s ease-out forwards;
}

@keyframes fadeOutLabel {
    0%, 70% { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50%) translateX(0.5rem) scale(0.95); }
}

.pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a855f7;
    display: inline-block;
    animation: pulse-op 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-op {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.nav-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.2), transparent);
    transform: translateX(-50%);
    z-index: 1;
}

/* Globe Animation & Container */
.globe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.globe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform, opacity;
    transition: transform 1.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 1.4s ease;
    /* initial transform is set by JS */
}

.globe {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    /* CSS Globe Styling */
    box-shadow: 0 0 20px rgba(255,255,255,0.2), -5px 0 8px #c3f4ff inset, 15px 2px 25px #000 inset, -24px -2px 34px rgba(195,244,255,0.6) inset, 250px 0 44px rgba(0,0,0,0.4) inset, 150px 0 38px rgba(0,0,0,0.6) inset;
    background-image: url('https://images.unsplash.com/photo-1614730321146-b6fa6a46bcb4?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: left;
    animation: earthRotate 30s linear infinite;
}

@keyframes earthRotate {
    0% { background-position: 0 0; }
    100% { background-position: 400px 0; }
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

@keyframes twinkling { 0%,100% { opacity:0.1; } 50% { opacity:1; } }
@keyframes twinkling-slow { 0%,100% { opacity:0.1; } 50% { opacity:1; } }
@keyframes twinkling-fast { 0%,100% { opacity:0.1; } 50% { opacity:1; } }
@keyframes twinkling-long { 0%,100% { opacity:0.1; } 50% { opacity:1; } }

.star-1 { left: -20px; top: 120px; animation: twinkling 3s infinite; }
.star-2 { left: -40px; top: 30px; animation: twinkling-slow 2s infinite; }
.star-3 { left: 350px; top: 90px; animation: twinkling-long 4s infinite; }
.star-4 { left: 200px; top: 290px; animation: twinkling 3s infinite; }
.star-5 { left: 50px; top: 270px; animation: twinkling-fast 1.5s infinite; }
.star-6 { left: 250px; top: -50px; animation: twinkling-long 4s infinite; }
.star-7 { left: 290px; top: 60px; animation: twinkling-slow 2s infinite; }

/* Enhancements for typography and layout based on React design */
.hero-features-mini {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mini-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.feature-item-enhanced {
    padding: 1.5rem;
    background: rgba(24, 24, 27, 0.3); /* zinc-900/30 */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(39, 39, 42, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item-enhanced:hover {
    background: rgba(24, 24, 27, 0.6);
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(168,85,247,0.05);
}

.feature-item-enhanced .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
    transition: all 0.3s ease;
}

.feature-item-enhanced:hover .feature-icon {
    background: rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
}

/* Hide video background slightly more to make globe pop */
.hero-video-bg {
    opacity: 0.25;
}

/* =========================================
   CONTACT US SECTION
   ========================================= */
.contact-section {
    position: relative;
    background-color: transparent; /* Changed from var(--bg-black) to blend completely */
    color: var(--text-primary);
    padding: 0 1.5rem 6rem 1.5rem; /* Removed top padding entirely */
    margin-top: -8rem; /* Negative margin to pull it up through the FAQ's bottom padding */
    /* Removed border-top to eliminate harsh edges */
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
}

.contact-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-purple-dim) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 1.25rem;
    border-radius: 9999px;
    background-color: var(--neon-purple-dim);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.contact-title {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

.contact-subtitle a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px dashed var(--neon-purple);
}

.contact-subtitle a:hover {
    color: var(--neon-purple);
    border-bottom: 1px solid var(--neon-purple);
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    width: 100%;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper:focus-within .input-icon {
    color: #fff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: rgba(20, 20, 20, 0.4);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(10px);
}

.contact-form input {
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 9999px; /* Seamless Pill */
}

.contact-form textarea {
    padding: 1rem 1.5rem;
    border-radius: 24px; /* Soft edges */
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form input:hover,
.contact-form textarea:hover {
    background-color: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: rgba(20, 20, 20, 0.8);
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple-dim);
}

.contact-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--btn-solid);
    color: var(--btn-solid-text);
    padding: 1.25rem;
    border-radius: 9999px;
    border: none;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
}

.contact-submit:hover {
    background-color: #e0e0e0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.submit-icon {
    transition: transform 0.3s ease;
}

.contact-submit:hover .submit-icon {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 2.25rem;
    }
}

/* =========================================
   GLOBAL FOOTER
   ========================================= */
.global-footer {
    background-color: var(--bg-black);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    padding: 4rem 1.5rem 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-icon {
    color: #ffffff;
}

.footer-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--neon-cyan);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.footer-nav-main {
    display: flex;
    gap: 1.5rem;
}

.footer-nav-main a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav-main a:hover {
    color: var(--text-secondary);
}

.footer-nav-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-nav-legal a {
    color: #71717a;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.footer-nav-legal a:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-top, .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links-wrapper {
        align-items: center;
    }
    
    .footer-nav-main {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    /* Hide floating dots on small screens to prevent overlap */
    .right-nav {
        display: none !important;
    }

    /* Reduce section paddings for mobile */
    section {
        padding: 3rem 1.5rem !important;
        scroll-margin-top: 80px;
    }

    /* Header adjustments - keep menu compact and out of the way */
    .global-header {
        padding: 0.5rem 1rem !important;
        justify-content: center;
    }
    .nav-left {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .nav-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        gap: 0.5rem;
    }
    .nav-capsule {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.65rem !important;
    }

    /* Hero adjustments - prevent XEVARIS from wrapping */
    .hero-xevaris {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        white-space: nowrap;
        letter-spacing: 0.2em !important;
    }
    .hero-smart-retail {
        font-size: 0.6rem !important;
        letter-spacing: 0.2em !important;
    }
    .hero-layer-container {
        height: 55vh;
    }

    /* Why Xevaris - Split sections to stack vertically */
    .split-column {
        flex-direction: column !important;
        gap: 2rem;
    }
    .massive-headline {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    .corporate-copy {
        font-size: 0.95rem !important;
        padding: 0 0.5rem;
    }

    /* Infrastructure Section (How do we operate?) */
    .infrastructure-content {
        flex-direction: column !important;
        transform: none !important;
        gap: 3rem;
    }
    .infra-img {
        width: 100%;
        max-width: 100% !important;
        height: auto;
    }
    /* Fix the squished text in the grid */
    .grid-column {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding: 1.5rem 0 !important;
        gap: 1rem !important;
    }
    .grid-text-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 0.5rem !important;
    }
    .grid-title {
        white-space: normal !important;
        font-size: 1.25rem !important;
    }
    .grid-desc {
        font-size: 0.95rem !important;
    }

    /* Core Tech Section */
    .tech-layout {
        flex-direction: column !important;
        gap: 3rem;
    }
    .tech-img {
        transform: none !important;
        max-width: 100% !important;
    }
    /* Fix Fully Automated Operation squished text & dropdowns */
    .features-list li {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        text-align: center;
    }
    .feature-text {
        font-size: 1.1rem !important;
        white-space: normal !important;
    }

    /* Conversion Footer (Measures) */
    .conversion-footer {
        flex-direction: column !important;
        gap: 3rem;
        text-align: center;
    }
    .footer-visual-container {
        order: -1;
    }
    .footer-img {
        max-width: 100% !important;
    }
    .corporate-callout {
        font-size: 2rem !important;
    }
    .cta-form {
        flex-direction: column !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        gap: 1rem !important;
    }
    .dark-input {
        background: var(--btn-bg) !important;
        border-radius: 50px !important;
        border: 1px solid var(--border-hairline) !important;
        width: 100%;
    }
    .capsule-btn {
        width: 100%;
    }

    /* FAQ */
    .faq-header {
        margin-bottom: 2rem;
    }
    .faq-question {
        font-size: 1rem;
    }
    .faq-category-title {
        font-size: 1.2rem;
    }
    .faq-icon {
        width: 30px;
        height: 30px;
    }
    .faq-icon svg {
        width: 16px;
        height: 16px;
    }
}
