@import url("/components/buttons/button-system.css");

/* ═══════════════════════════════════════════════════════════════════════════
   DOCUMENT BASE CANVAS & DELIBERATE STACKING CONTEXT HIERARCHY
   Stacking Order:
   1. z-index: 1   -> Ghost/smoke WebGL canvas background
   2. z-index: 10  -> Page content sections (main, headings, hero text, buttons, glass cards)
   3. z-index: 100 -> Floating corporate navigation island
   4. z-index: 250 -> Fullscreen command drawer and interactive modals
   ═══════════════════════════════════════════════════════════════════════════ */
html, body {
    background-color: #050407 !important;
    color: #ffffff;
    min-height: 100vh;
}

main,
.page-content-wrapper,
#root > div > div.relative.z-10 {
    position: relative;
    z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NIEVROX CORPORATE DESIGN SYSTEM & MOTION STYLES (SHARED ASSET)
   Matches NIEVROX-Website.html: Glassmorphism, Floating Navigation & Futuristic Footer
   ═══════════════════════════════════════════════════════════════════════════ */

/* Font Family Utilities */
.font-orbitron { font-family: 'Orbitron', sans-serif !important; }
.font-space { font-family: 'Space Grotesk', sans-serif !important; }
.font-mono-code { font-family: 'JetBrains Mono', monospace !important; }

/* Signature Glows & Accents */
.brand-x-glyph,
.nievrox-brand-x {
    color: #CA38FF !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    text-shadow: 0 0 14px rgba(202, 56, 255, 1.0), 0 0 28px rgba(202, 56, 255, 0.75) !important;
}

.nievrox-purple-glow {
    box-shadow: 0 0 25px rgba(202, 56, 255, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NIEVROX UNIFIED HEADER BRAND SIGNATURE (EMBLEM + WORDMARK)
   Desktop: Emblem ~58px, Wordmark ~25px
   Mobile: Emblem ~48px, Wordmark ~20px
   No bounding boxes, square backgrounds, borders, or artificial halos
   ═══════════════════════════════════════════════════════════════════════════ */
.nievrox-brand-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important; /* 12px mobile spacing */
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0 !important;
    margin: 0 !important;
    outline: none !important;
}

@media (min-width: 768px) {
    .nievrox-brand-link {
        gap: 0.875rem !important; /* 14px desktop spacing */
    }
}

.nievrox-brand-emblem {
    height: 48px !important; /* Mobile: enlarged for bold clarity */
    width: 48px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    mix-blend-mode: screen !important;
    filter: drop-shadow(0 0 12px rgba(202, 56, 255, 0.72)) drop-shadow(0 0 22px rgba(180, 50, 255, 0.48)) !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}

@media (min-width: 768px) {
    .nievrox-brand-emblem {
        height: 58px !important; /* Desktop: enlarged from 48px (~21% optical boost) */
        width: 58px !important;
    }
}

.nievrox-brand-link:hover .nievrox-brand-emblem {
    transform: scale(1.04) !important;
    filter: drop-shadow(0 0 16px rgba(202, 56, 255, 0.95)) drop-shadow(0 0 30px rgba(180, 50, 255, 0.70)) !important;
}

/* NIEVROX Electric Emblem - Pure Neon Glow System */
.nievrox-electric-emblem-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.nievrox-electric-emblem-glow {
    position: relative;
    width: 82%;
    height: 82%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1536 / 1024;
    object-fit: contain;
    overflow: visible;
    filter: drop-shadow(0 0 6px #e040fb) drop-shadow(0 0 18px #c026d3) drop-shadow(0 0 40px rgba(192, 38, 211, 0.6));
    animation: nievroxNeonPulse 4.5s ease-in-out infinite alternate;
    will-change: filter;
    pointer-events: none;
    user-select: none;
}

.nievrox-electric-emblem-highlight {
    position: absolute;
    width: 82%;
    height: 82%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1536 / 1024;
    object-fit: contain;
    opacity: 0.22;
    filter: blur(1.5px) brightness(1.8);
    pointer-events: none;
    user-select: none;
    mix-blend-mode: screen;
}

@keyframes nievroxNeonPulse {
    0% {
        filter: drop-shadow(0 0 6px #e040fb) drop-shadow(0 0 18px #c026d3) drop-shadow(0 0 40px rgba(192, 38, 211, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 9px #f0abfc) drop-shadow(0 0 24px #d946ef) drop-shadow(0 0 52px rgba(192, 38, 211, 0.78));
    }
    100% {
        filter: drop-shadow(0 0 6px #e040fb) drop-shadow(0 0 18px #c026d3) drop-shadow(0 0 40px rgba(192, 38, 211, 0.6));
    }
}

@media (prefers-reduced-motion: reduce) {
    .nievrox-electric-emblem-glow {
        animation: none !important;
        filter: drop-shadow(0 0 6px #e040fb) drop-shadow(0 0 18px #c026d3) drop-shadow(0 0 40px rgba(192, 38, 211, 0.6)) !important;
    }
}

.nievrox-brand-wordmark {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 20px !important; /* Mobile: 19–21px range */
    line-height: 1 !important;
    letter-spacing: 0.05em !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    display: inline-flex !important;
    align-items: baseline !important;
    user-select: none !important;
    white-space: nowrap !important;
}

@media (min-width: 768px) {
    .nievrox-brand-wordmark {
        font-size: 24px !important; /* Desktop: 22–25px range */
    }
}

/* Tiered Readability-First Glassmorphism System */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(202, 56, 255, 0.03) 35%, rgba(16, 10, 30, 0.36) 100%) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    border: 1px solid rgba(202, 56, 255, 0.22) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(202, 56, 255, 0.08), inset 0 1px 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 1px 0 rgba(202, 56, 255, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(202, 56, 255, 0.45) !important;
    box-shadow: 0 24px 60px -8px rgba(202, 56, 255, 0.22), 0 0 40px rgba(202, 56, 255, 0.15), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-2px);
}

.glass-card-subtle {
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING CINEMATIC NAVIGATION BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.corporate-header-floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    padding: 1rem 1rem 0;
    transition: all 0.4s ease;
}

@media (min-width: 640px) {
    .corporate-header-floating {
        padding: 1.25rem 1.5rem 0;
    }
}

.corporate-header-floating.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    padding-bottom: 0.75rem;
}

.corporate-nav-island {
    pointer-events: auto;
    background: rgba(16, 8, 27, 0.58);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    backdrop-filter: blur(20px) saturate(135%);
    border: 1px solid rgba(190, 95, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(90, 30, 150, 0.14);
    border-radius: 9999px;
    padding: 0.5rem 1.75rem;
}

.nav-link-item {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: #d1d5db;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link-item:hover, .nav-link-item.active {
    color: #ffffff;
}

.nav-link-item.active::after, .nav-link-item:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ca38ff;
    box-shadow: 0 0 8px #ca38ff;
    border-radius: 2px;
}

.orbital-menu-trigger {
    pointer-events: auto;
    background: rgba(16, 8, 27, 0.58);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    backdrop-filter: blur(20px) saturate(135%);
    border: 1px solid rgba(190, 95, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(90, 30, 150, 0.18);
    border-radius: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orbital-menu-trigger:hover {
    border-color: rgba(202, 56, 255, 0.7);
    box-shadow: 0 0 22px rgba(202, 56, 255, 0.35);
    transform: scale(1.05);
}

/* Fullscreen Command Menu Drawer */
.command-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(12, 6, 20, 0.92);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid rgba(190, 95, 255, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MASTER FUTURISTIC FOOTER (5-COLUMN GLASS GRID + ZONE B HORIZON)
   ═══════════════════════════════════════════════════════════════════════════ */
.master-futuristic-footer {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: #040307;
    margin-top: 4rem;
}

.footer-glass-panel {
    width: 100%;
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(202, 56, 255, 0.02) 40%, rgba(16, 9, 28, 0.32) 100%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    border: 1px solid rgba(202, 56, 255, 0.24) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 35px rgba(202, 56, 255, 0.08), inset 0 1px 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 1px 0 rgba(202, 56, 255, 0.08) !important;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .footer-glass-panel {
        padding: 1.75rem;
    }
}

.footer-5col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: start;
    width: 100%;
}

.footer-col-brand,
.footer-col-products,
.footer-col-explore,
.footer-col-company,
.footer-col-legal {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .footer-5col-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 2rem;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
        max-width: 620px;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (min-width: 1024px) {
    .footer-5col-grid {
        grid-template-columns: 28.5% 27.5% 12.5% 12.5% 19%;
        gap: 0;
        align-items: start;
    }
    .footer-col-brand {
        padding-right: 1.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    .footer-col-products {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    .footer-col-explore {
        padding-left: 1.25rem;
        padding-right: 1rem;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    .footer-col-company {
        padding-left: 1.25rem;
        padding-right: 1rem;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    .footer-col-legal {
        padding-left: 1.5rem;
    }
}

/* Footer Tagline Single Line Guarantee & Responsive Scaling */
.footer-brand-tagline {
    white-space: nowrap;
    letter-spacing: 0.08em;
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .footer-brand-tagline {
        font-size: 9.5px !important;
        letter-spacing: 0.05em !important;
    }
}

@media (max-width: 380px) {
    .footer-brand-tagline {
        font-size: 8.5px !important;
        letter-spacing: 0.04em !important;
        white-space: normal;
        word-break: break-word;
    }
}

/* 3D Visual Folder Card Styling & Reduced Motion */
.footer-folder-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.footer-folder-card:hover {
    border-color: rgba(202, 56, 255, 0.55) !important;
    box-shadow: 0 12px 30px -5px rgba(202, 56, 255, 0.35), 0 0 20px rgba(202, 56, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .footer-folder-card,
    .footer-folder-card:hover {
        transform: none !important;
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL ATMOSPHERIC EFFECTS & GHOST CURSOR
   ═══════════════════════════════════════════════════════════════════════════ */
.ghost-cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none !important;
    z-index: 1;
    overflow: hidden;
}

.ghost-cursor-container canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    display: block;
}



/* Zone B: Cinematic Wordmark, Laser Horizon & Perspective Arcs */
.footer-zone-b {
    position: relative;
    width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

.footer-cinematic-wordmark-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.footer-laser-horizon {
    width: 100%;
    max-width: 1380px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(202, 56, 255, 0.25) 15%, #ca38ff 50%, rgba(202, 56, 255, 0.25) 85%, transparent);
    box-shadow: 0 0 8px rgba(202, 56, 255, 0.7), 0 0 16px rgba(202, 56, 255, 0.35);
}

.footer-laser-halo {
    position: absolute;
    top: 0;
    width: 66%;
    height: 26px;
    transform: translateY(-50%);
    background: radial-gradient(ellipse at center, rgba(202, 56, 255, 0.22) 0%, rgba(121, 40, 202, 0.08) 45%, transparent 70%);
    pointer-events: none;
}

.footer-orbital-arcs {
    width: 100%;
    max-width: 56rem;
    height: 2.5rem;
    position: relative;
    overflow: hidden;
    pointer-events: none;
    margin-top: 0.25rem;
}

.footer-cinematic-wordmark {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(2rem, 7vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-align: center;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.wordmark-x {
    display: inline-block;
    color: #CA38FF !important;
    -webkit-text-fill-color: #CA38FF !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    filter: drop-shadow(0 0 10px rgba(202, 56, 255, 0.95)) 
            drop-shadow(0 0 24px rgba(202, 56, 255, 0.75)) 
            drop-shadow(0 0 45px rgba(202, 56, 255, 0.4));
}

.wordmark-x-aura {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle closest-side, rgba(202, 56, 255, 0.45) 0%, rgba(202, 56, 255, 0.18) 45%, transparent 75%);
    filter: blur(16px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
    border-radius: 9999px;
}

/* PixelSnow WebGL Canvas Container */
.pixel-snow-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.pixel-snow-canvas {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
}

/* Lenis Smooth Scroll CSS Integration */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   SMOOTH TRANSFORMATION, SLIDING EFFECTS & SCROLL MARGINS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Global Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Generous anchor scroll margin to keep content safely below floating navigation */
section[id], [id^="sec-"], #sec-1, #sec-2, #sec-3, #sec-4, #sec-5, #sec-6, #sec-7, #sec-8, #sec-9, #sec-10 {
    scroll-margin-top: 7rem !important;
}

@media (min-width: 640px) {
    section[id], [id^="sec-"], #sec-1, #sec-2, #sec-3, #sec-4, #sec-5, #sec-6, #sec-7, #sec-8, #sec-9, #sec-10 {
        scroll-margin-top: 8rem !important;
    }
}

/* Keyframe Animations for Smooth Sliding Entrances */
@keyframes nvxSlideUpFade {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nvxSlideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nvxFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.nvx-page-title-animate {
    animation: nvxSlideUpFade 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nvx-page-sidebar-animate {
    animation: nvxSlideUpFade 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.nvx-page-content-animate {
    animation: nvxSlideUpFade 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

/* Interactive Card & Policy Card Smooth Hover Transformation */
.policy-card, .glass-panel, .motion-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease !important;
    will-change: transform, box-shadow;
}

.policy-card:hover, .motion-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(202, 56, 255, 0.18) !important;
    border-color: rgba(202, 56, 255, 0.42) !important;
}

/* Table of Contents Link Sliding Hover */
.toc-link {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.toc-link:hover {
    color: #ca38ff !important;
    transform: translateX(6px) !important;
    text-shadow: 0 0 8px rgba(202, 56, 255, 0.4);
}

/* Reduced Motion Graceful Degradation */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .footer-cinematic-wordmark {
        transform: none !important;
        opacity: 1 !important;
    }
}
