/* ==========================================
   VEXIA GLASS v2.0 DESIGN SYSTEM
   "Liquid Intelligence" - Premium Refractive UI
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* ===== VEXIA GLASS v2.0 PALETTE ===== */
    /* BASES - Clinical Platinum Theme */
    --bg-body: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-card: #FFFFFF;
    --bg-panel: #FFFFFF;
    --bg-dock: rgba(255, 255, 255, 0.85);

    --border-subtle: rgba(226, 232, 240, 0.6);
    --text-primary: #020617;
    /* High contrast Slate 950 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --border-light: rgba(226, 232, 240, 0.4);

    /* DIVISION ACCENTS - Enhanced Triad */
    --accent-vantis: #C5A028;
    /* Polished Gold */
    --accent-relth: #D81B60;
    /* Deep Pink */
    --accent-kora: #6200EA;
    /* Deep Purple */
    --accent-ops: #C62828;
    /* Strong Red */

    /* RGB Versions */
    --accent-vantis-rgb: 197, 160, 40;
    --accent-relth-rgb: 216, 27, 96;
    --accent-kora-rgb: 98, 0, 234;
    --accent-ops-rgb: 198, 40, 40;

    /* GLASSMORPHISM - v2.0 Refractive */
    --glass-blur: blur(25px);
    --glass-saturate: saturate(180%);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-premium: 0 8px 32px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.08);

    /* TYPOGRAPHY - Modern Stack */
    --font-head: 'Manrope', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* PHYSICS */
    --radius-premium: 24px;
    --radius-card: 32px;
    --easing-premium: cubic-bezier(0.2, 0, 0, 1);

    /* LAYOUT TOKENS */
    --sidebar-width-collapsed: 72px;
    --sidebar-width-expanded: 240px;
    --main-margin-normal: 112px;
    --main-margin-expanded: 280px;
}

/* ===== DARK MODE - Midnight Vault ===== */
[data-theme="dark"] {
    /* BASES - Midnight Velvet Theme */
    --bg-body: #0A0C10;
    /* Richer Midnight Slate */
    --bg-glass: rgba(10, 12, 16, 0.75);
    --bg-card: #0F1116;
    --bg-panel: #0A0A0A;
    --bg-dock: rgba(10, 12, 16, 0.85);

    --border-subtle: rgba(255, 255, 255, 0.05);
    --text-primary: #FDFDFD;
    --text-secondary: #94A3B8;
    --text-muted: #475569;
    --border-light: rgba(255, 255, 255, 0.03);

    /* GLASSMORPHISM - Dark */
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-premium: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Dark mode selection adjustment */
[data-theme="dark"] *::selection {
    background: rgba(var(--accent-vantis-rgb), 0.3);
    color: var(--text-primary);
}

/* Dark mode scrollbar */
[data-theme="dark"] * {
    scrollbar-color: var(--text-muted) transparent;
}

/* ===== GLOBAL GLASS CLASSES ===== */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    transition: all 0.4s var(--easing-premium);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: rgba(var(--accent-vantis-rgb), 0.3);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--easing-premium);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fail-safe: Show content if JS is slow or blocked for some reason */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

.shutter-open {
    animation: shutterOpen 1.2s var(--easing-premium) forwards;
}

@keyframes shutterOpen {
    0% {
        clip-path: inset(0 0 0 0);
    }

    100% {
        clip-path: inset(0 100% 0 0);
    }
}

/* ===== GLOBAL RESET ===== */
* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) transparent;
}

*::selection {
    background: rgba(var(--accent-vantis-rgb), 0.2);
    color: var(--text-primary);
}

/* Focus visible para accesibilidad (teclado) */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-arrow:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* ===== BASE STYLES ===== */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Fade-in animation */
    opacity: 0;
    animation: fadeInPage 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Texture Overlay: "Expensive Paper Feel" */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/noise.svg');
    background-repeat: repeat;
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 9998;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

vexia-sidebar {
    display: block;
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

aside {
    /* VEXIA COCKPIT POSITIONING */
    position: fixed;
    top: 24px;
    left: 24px;
    width: var(--sidebar-width-collapsed);
    height: calc(100vh - 48px);

    /* LIQUID GLASSMORPHISM */
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-premium);
    box-shadow: var(--shadow-premium);

    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    /* CRITICAL: Prevent logo bleed */
    transition: all 0.5s var(--easing-premium);
    pointer-events: auto;
}

aside:hover {
    width: var(--sidebar-width-expanded);
    box-shadow: var(--shadow-float);
    border-color: rgba(var(--accent-vantis-rgb), 0.3);
}

/* Sidebar expansion logic for content */
vexia-sidebar:hover~main {
    margin-left: var(--main-margin-expanded);
}

vexia-sidebar:hover~main::before {
    left: var(--main-margin-expanded);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
    aside {
        background: rgba(241, 244, 246, 0.95);
    }
}

/* Logo superior: botón al index general */
.sidebar-logo-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sidebar-logo-link:hover .sidebar-header {
    background: rgba(0, 0, 0, 0.02);
}

/* Sidebar Header */
.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.brand-box {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo-expanded {
    height: 28px;
    width: auto;
    max-width: 180px;
    display: none;
    opacity: 0;
    object-fit: contain;
}

aside:hover .brand-logo-expanded {
    display: block;
    opacity: 1;
}

.brand-logo-collapsed {
    height: 32px;
    width: auto;
    display: block;
    opacity: 1;
    object-fit: contain;
}

aside:hover .brand-logo-collapsed {
    display: none;
    opacity: 0;
}

/* Navigation Scroll Area */
.nav-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
    scrollbar-width: none;
    /* Hide scrollbar in collapsed mode for aesthetics */
}

aside:hover .nav-scroll-area {
    scrollbar-width: thin;
}

.nav-scroll-area::-webkit-scrollbar {
    width: 0;
    /* Hide by default */
}

aside:hover .nav-scroll-area::-webkit-scrollbar {
    width: 4px;
}

.nav-scroll-area::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 2px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-label {
    padding: 24px 20px 8px;
    /* Slightly less padding */
    font-family: var(--font-code);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    /* Less letter spacing for fit */
    text-transform: uppercase;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: opacity 0.3s var(--easing-premium);
}

aside:hover .nav-label {
    opacity: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    /* Centered in collapsed state */
    margin: 2px 8px;
    /* Slightly tighter margins for better centering */
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s var(--easing-premium);
    position: relative;
    white-space: nowrap;
    min-height: 76px;
    /* Increased to accommodate Super-Max division icons */
    justify-content: center;
    /* Center the icon when collapsed */
}

aside:hover .nav-item {
    padding: 8px 16px;
    /* Restore padding on hover */
    margin: 2px 12px;
    justify-content: flex-start;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    font-weight: 600;
}

/* Contenedor: mismo tamaño para todos los ítems */
.nav-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 0;
    transition: all 0.3s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Iconos SVG (Gateway, Solutions, etc.) - Matener equilibrados */
.nav-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    opacity: 0.8;
}

.nav-icon .division-icon {
    width: 58px;
    /* High-impact sizing for divisions only */
    height: 58px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.7);
    transition: all 0.3s var(--easing-premium);
}

.nav-item:hover .division-icon,
.nav-item.active .division-icon {
    filter: grayscale(0) opacity(1);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    color: var(--text-primary);
}

aside:hover .nav-icon {
    margin-right: 15px;
}

.nav-text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    font-size: 0.7rem;
    /* Slightly smaller for better fit */
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease 0.1s, max-width 0.3s ease;
}

aside:hover .nav-text {
    opacity: 1;
    max-width: 160px;
    /* Reduced to avoid pushing boundaries */
}

/* Division Icon Glows */
body.theme-vantis .nav-item.active .nav-icon {
    filter: drop-shadow(0 0 10px var(--accent-vantis));
    color: var(--accent-vantis);
}

body.theme-relth .nav-item.active .nav-icon {
    filter: drop-shadow(0 0 10px var(--accent-relth));
    color: var(--accent-relth);
}

body.theme-kora .nav-item.active .nav-icon {
    filter: drop-shadow(0 0 10px var(--accent-kora));
    color: var(--accent-kora);
}

body.theme-ops .nav-item.active .nav-icon {
    filter: drop-shadow(0 0 10px var(--accent-ops));
    color: var(--accent-ops);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
}

.user-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    gap: 8px;
    transition: justify-content 0.3s ease;
}

aside:hover .user-badge {
    justify-content: flex-start;
    padding: 0 12px;
}

.sys-indicator {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.sys-text {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: #10B981;
    font-weight: 600;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease 0.1s, max-width 0.3s ease;
}

aside:hover .sys-text {
    opacity: 1;
    max-width: 150px;
}

/* ===== MAIN CONTENT AREA ===== */
main {
    flex: 1;
    margin-left: var(--main-margin-normal);
    margin-right: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 40px 20px 40px 0;
    transition: margin-left 0.4s var(--easing-premium);
    box-sizing: border-box;
    overflow-x: hidden;
    width: calc(100% - var(--main-margin-normal));
}

/* Dot Grid Background (subtle) */
main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 112px;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, var(--border-subtle) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
}

/* ===== HEADER (HUD) ===== */
/* ===== VEXIA GLASS v2.0 HEADER (Modern Pill) ===== */
header {
    position: sticky;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 900;
    pointer-events: none;
    /* Let clicks pass through to content behind the gap */
    padding: 0 40px;
    display: flex;
    justify-content: center;
    transition: all 0.4s var(--easing-premium);
}

.floating-pill-header {
    pointer-events: auto;
    /* Re-enable clicks for the pill itself */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 64px;
    width: auto;
    min-width: 600px;
    padding: 0 32px;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: var(--shadow-premium);
    transition: all 0.4s var(--easing-premium);
}

.floating-pill-header:hover {
    box-shadow: var(--shadow-float);
    border-color: rgba(var(--accent-vantis-rgb), 0.3);
}

.pill-path {
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.pill-metadata {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-code);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.meta-hash {
    color: var(--text-secondary);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 0.7rem;
}

.lang-link {
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s var(--easing-premium);
    padding: 4px 8px;
    border-radius: 8px;
}

.lang-link:hover,
.lang-link.active {
    color: var(--text-primary);
    background: rgba(var(--accent-vantis-rgb), 0.1);
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ===== ARCHITECTURAL TYPOGRAPHY: MEGA-HEADERS ===== */
.mega-title {
    position: fixed;
    top: 15%;
    left: -5%;
    font-family: var(--font-head);
    font-size: clamp(150px, 25vw, 400px);
    font-weight: 900;
    color: var(--text-primary);
    opacity: 0.03;
    /* Barely visible for architectural depth */
    z-index: -1;
    pointer-events: none;
    letter-spacing: -0.05em;
    line-height: 0.8;
    white-space: nowrap;
    user-select: none;
}

/* Data-Type Ambient Code */
.data-type {
    position: absolute;
    font-family: var(--font-code);
    font-size: 9px;
    color: var(--text-muted);
    opacity: 0.15;
    z-index: 0;
    letter-spacing: 0.5px;
    line-height: 1.4;
    pointer-events: none;
    user-select: none;
}

/* ===== VEXIA GLASS v2.0 COMPONENTS ===== */

/* ===== VEXIA GLASS v2.0 CARDS (Tech Card) ===== */
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.5s var(--easing-premium);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    box-shadow: var(--shadow-premium);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-float);
    border-color: rgba(var(--accent-vantis-rgb), 0.3);
}

/* Glass Shine Effect on Hover */
.tech-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--easing-premium);
    pointer-events: none;
}

.tech-card:hover::before {
    opacity: 1;
}

/* Card Components */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-id {
    font-family: var(--font-code);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Skip to content link for accessibility - Hidden by default */
.skip-to-content {
    position: fixed;
    top: -100px;
    /* Safe distance */
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-body);
    padding: 10px 20px;
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.8rem;
    border-radius: 0 0 12px 12px;
    z-index: 10000;
    transition: top 0.4s var(--easing-premium);
}

.skip-to-content:focus {
    top: 0;
}

.card-icon {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    opacity: 0.8;
}

.card-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    /* Slightly smaller for balance */
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.2;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.card-spec-list {
    margin-top: 16px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-action {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
}

.btn-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.btn-arrow:hover {
    background: var(--text-primary);
    color: #FFFFFF;
    border-color: var(--text-primary);
    transform: translateX(4px);
}

/* ===== PREMIUM ACTION BUTTONS v4.3 ===== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s var(--easing-premium);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-body);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-relth);
    color: var(--accent-relth);
    background: rgba(var(--accent-relth-rgb), 0.05);
    transform: translateY(-2px);
}

/* Theme-Specific Overrides */
body.theme-relth .btn-primary {
    background: var(--accent-relth);
    border-color: var(--accent-relth);
    color: #FFF;
}

body.theme-relth .btn-primary:hover {
    background: transparent;
    color: var(--accent-relth);
}

body.theme-vantis .btn-primary {
    background: var(--accent-vantis);
    border-color: var(--accent-vantis);
    color: #FFF;
}

body.theme-vantis .btn-primary:hover {
    background: transparent;
    color: var(--accent-vantis);
}

body.theme-kora .btn-primary {
    background: var(--accent-kora);
    border-color: var(--accent-kora);
    color: #FFF;
}

body.theme-kora .btn-primary:hover {
    background: transparent;
    color: var(--accent-kora);
}

/* ===== PRODUCT HERO (Sandbar Style) ===== */
.product-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
    min-height: auto;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 280px;
    max-width: 100%;
    overflow: hidden;
    order: -1;
}

.product-img {
    max-width: 100%;
    max-height: 260px;
    height: auto;
    object-fit: contain;
}

@media (min-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .hero-image {
        order: 0;
        max-height: 350px;
    }
    
    .product-img {
        max-height: 320px;
    }
}

.product-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.product-hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== VEXIA GLASS v2.0 - CORE LAYOUT & COMPONENTS ===== */

/* Consolidated Layout Logic handled at top or specific section */

/* 2. GRID SYSTEM v2.0 */
.grid-system,
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 60px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .grid-system,
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-system,
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-grid .wide {
    grid-column: span 2;
}

.bento-grid .tall {
    grid-row: span 2;
}

/* 3. SECTION DIVIDERS v2.0 */
.section-divider {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 80px 0 40px;
}

.divider-label {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    white-space: nowrap;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

/* 4. ANIMATIONS & INTERACTIVITY */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. DIVISION SPECIFIC OVERRIDES */
body.theme-kora .tech-card:hover {
    border-color: var(--accent-kora);
    box-shadow: 0 0 30px rgba(var(--accent-kora-rgb), 0.2);
}

body.theme-relth .tech-card:hover {
    border-color: var(--accent-relth);
    box-shadow: 0 0 30px rgba(var(--accent-relth-rgb), 0.2);
}

body.theme-vantis .tech-card:hover {
    border-color: var(--accent-vantis);
    box-shadow: 0 0 30px rgba(var(--accent-vantis-rgb), 0.2);
}

/* 6. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    main {
        margin-left: 0;
        padding-top: 100px;
    }

    main::before {
        left: 0;
    }

    aside {
        top: 0;
        left: 0;
        width: 100%;
        height: 64px;
        border-radius: 0;
        border-width: 0 0 1px 0;
    }

    aside:hover {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .grid-system {
        grid-template-columns: 1fr;
    }

}

/* ===== VEXIA FOOTER v2.0 ===== */
.vexia-footer {
    margin-top: 100px;
    padding: 100px 0 60px;
    border-top: 1px solid var(--border-light);
    background: linear-gradient(to bottom, transparent, rgba(var(--accent-vantis-rgb), 0.03));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col-title {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-transform: uppercase;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 0.8rem;
    transition: all 0.3s var(--easing-premium);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 32px;
}

.footer-legal-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--text-primary);
}

/* 7. SCROLL PROGRESS */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-vantis), var(--accent-kora));
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* ===== THEME SWITCHER - Vexia Orbit v4.2 ===== */
.sidebar-footer {
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.theme-switch {
    width: 52px;
    height: 28px;
    border-radius: 20px;
    background: rgba(var(--bg-card-rgb, 15, 17, 22), 0.3);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
    cursor: pointer;
    position: relative;
    padding: 3px;
    transition: all 0.4s var(--easing-premium);
    box-shadow: none;
    overflow: hidden;
}

.theme-switch:hover {
    border-color: rgba(var(--accent-vantis-rgb), 0.5);
    background: rgba(var(--bg-card-rgb, 15, 17, 22), 0.5);
}

.switch-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch-orbit {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.switch-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--text-muted);
    transition: color 0.4s var(--easing-premium);
}

/* Light Theme Position */
.switch-orbit {
    transform: translateX(0);
}

/* Dark Theme Position */
[data-theme="dark"] .switch-orbit {
    transform: translateX(24px);
    background: var(--accent-vantis);
    box-shadow: 0 0 10px rgba(var(--accent-vantis-rgb), 0.3);
}

[data-theme="dark"] .switch-icon.moon {
    color: var(--text-primary);
}

[data-theme="dark"] .switch-icon.sun {
    color: var(--text-muted);
}

/* END OF VEXIA GLASS v2.0 STYLESHEET */

/* ==========================================
   VEXIA GLASS v2.1 - ENHANCED COMPONENTS
   Client Investigation & UX Improvements
   ========================================== */

/* ===== INVESTIGATION PROCESS - Premium Card v2.1 ===== */
.investigation-process {
    margin: 60px 0;
}

.investigation-process .glass-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(var(--accent-vantis-rgb), 0.02) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 48px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.investigation-process .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-kora), var(--accent-relth), var(--accent-vantis));
}

.investigation-process h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.investigation-process h3::before {
    content: '◆';
    color: var(--accent-vantis);
    font-size: 1.2rem;
}

.process-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

/* Process Grid - Modern Layout */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.process-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s var(--easing-premium);
    position: relative;
    backdrop-filter: blur(10px);
}

.process-item:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--accent-vantis-rgb), 0.3);
    box-shadow: 0 20px 40px rgba(var(--accent-vantis-rgb), 0.1);
}

.process-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.process-item h4 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.process-item p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Process CTA Section */
.process-cta {
    margin-top: 48px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(var(--accent-kora-rgb), 0.03) 0%, rgba(var(--accent-relth-rgb), 0.03) 100%);
    border-radius: 20px;
    border: 1px dashed var(--border-subtle);
    text-align: center;
}

.process-cta h4 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.process-cta p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== FAQ SECTION - Accordion Style ===== */
.faq-section {
    margin: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s var(--easing-premium);
}

.faq-item:hover {
    border-color: rgba(var(--accent-vantis-rgb), 0.3);
    box-shadow: var(--shadow-premium);
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(var(--accent-vantis-rgb), 0.02);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-vantis);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 32px 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.faq-answer ul {
    margin: 16px 0 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== BREADCRUMBS - Navigation Aid ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-code);
    font-size: 0.75rem;
}

.breadcrumb-item {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-item:hover {
    color: var(--text-primary);
}

.breadcrumb-item.active {
    color: var(--accent-vantis);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ===== COOKIE CONSENT - GDPR Compliant ===== */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 48px);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: var(--shadow-float);
    z-index: 9999;
    display: flex;
    gap: 24px;
    align-items: center;
    backdrop-filter: blur(20px);
}

.cookie-content {
    flex: 1;
}

.cookie-content h4 {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cookie-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-cookie-accept {
    background: var(--text-primary);
    color: var(--bg-body);
}

.btn-cookie-accept:hover {
    background: var(--accent-vantis);
}

.btn-cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-cookie-decline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Hide cookie banner when accepted */
.cookie-consent.hidden {
    display: none;
}

/* ===== FOOTER SOCIAL MEDIA ===== */
.footer-social {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(45deg, #E4405F, #F58529);
    border-color: #E4405F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.3);
}

.social-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-item::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .investigation-process .glass-card {
        padding: 32px 24px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* END VEXIA GLASS v2.1 ENHANCEMENTS */