/* =========================================
   RAVIE.IN - MASTER STYLESHEET (v2.6 FINAL)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Sen:wght@400;500;600;700&display=swap');

:root {
    --bg-deep:        #080f1a;
    --brand-accent:   #00D4FF;          
    --accent-sky:     #7FD3F7;          
    --accent-dim:     rgba(0, 212, 255, 0.14);
    --accent-glow:    rgba(0, 212, 255, 0.08);
    --text-primary:   #EEF4FA;          
    --text-secondary: #B8D4E8;          
    --text-muted:     #3E5A72;          
    --glow-core:      rgba(0, 212, 255, 0.14);
    --glow-halo:      rgba(127, 211, 247, 0.10);
    --cursor-glow:    var(--accent-glow);
}

*, *::before, *::after {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Sen', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    max-width: 100vw; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh; 
    position: relative; 
    z-index: 1;
}

/* Typography Assignments */
.text-logo, .gateway-menu-toggle, .split-text,
.glass-nav-links span, .mobile-nav-links span,
.page-title, .raw-text-block h2, .step-name,
.step-content.raw-text-block h3, .social-card h3,
.terminal-link, #console-clock, .sidebar-option span {
    font-family: 'Montserrat', sans-serif;
}

a, button, span, .split-option, .hamburger, .social-card {
    outline: none; 
    user-select: none; 
    -webkit-user-select: none;
}

/* =========================================
   2. ENVIRONMENT & WEBGL BACKGROUND
   ========================================= */
#webgl-canvas {
    position: fixed; top: -5vh; left: -5vw;
    width: 110vw; height: 110vh;
    background-color: var(--bg-deep);
    z-index: -3; pointer-events: none;
    transition: filter 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#webgl-canvas.depth-surface {
    filter: blur(26px) brightness(0.55) hue-rotate(6deg);
    transform: scale(1.05) translateY(0);
}

#webgl-canvas.depth-deep {
    filter: blur(34px) brightness(0.50) saturate(1.4) hue-rotate(3deg);
    transform: scale(1.15) translateY(-4vh);
}

#webgl-canvas.frozen-blur {
    filter: blur(65px) brightness(0.15) hue-rotate(6deg);
}

.grain {
    position: fixed; inset: 0; pointer-events: none;
    z-index: -2; opacity: 0.88; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================
   3. UNIVERSAL FLOATING HEADER
   ========================================= */
.top-nav {
    position: fixed; top: 0; left: 0; width: 100vw;
    padding: 2rem 2.5rem; 
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; pointer-events: none; 
}

.logo-container, .gateway-menu-toggle, .hamburger { pointer-events: auto; }

.text-logo {
    font-size: 1.4rem; letter-spacing: 8px; 
    color: var(--text-primary); text-transform: uppercase;
    text-decoration: none; display: inline-block; font-weight: 700;
}

.gateway-menu-toggle {
    font-size: 0.7rem; letter-spacing: 4px; color: var(--text-primary);
    cursor: pointer; text-transform: uppercase; font-weight: 600;
}

.hamburger, .mobile-dropdown { display: none; }

/* =========================================
   4. GATEWAY (MAIN SCREEN)
   ========================================= */
#app-container {
    height: 100vh; width: 100vw;
    display: flex; justify-content: center; align-items: center;
}

.view { display: none; opacity: 0; transition: opacity 0.6s ease-in-out; }
.view.active-view { display: flex; opacity: 1; }
.split-container { display: flex; gap: 25vw; align-items: center; }

.split-option {
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
    cursor: pointer; transition: all 0.4s ease;
}

.split-icon {
    height: 42px; width: auto; max-width: 150px; 
    object-fit: contain; mix-blend-mode: screen; 
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); display: block;
}

.split-text { font-size: 0.75rem; letter-spacing: 6px; transition: all 0.4s ease; font-weight: 600; }

.split-container:has(.split-option:hover) .split-option:not(:hover) { opacity: 0.15; }
.split-option:hover { opacity: 1; }
.split-option:hover .split-icon {
    filter: drop-shadow(0px 0px 8px var(--glow-core)) drop-shadow(0px 0px 35px var(--glow-halo));
    transform: scale(1.08) translateY(-5px);
}
.split-option:hover .split-text {
    color: var(--text-primary); 
    text-shadow: 0px 0px 8px var(--glow-core), 0px 0px 20px var(--glow-halo);
}

/* =========================================
   5. LIQUID GLASS OVERLAY (MENU)
   ========================================= */
.liquid-glass-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(4, 20, 60, 0.55); backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px); 
    z-index: 90; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-overlay.active-glass { opacity: 1; pointer-events: auto; }
.glass-nav-links { display: flex; flex-direction: column; align-items: center; gap: 2rem; }

.glass-nav-links span {
    font-size: 0.85rem; letter-spacing: 8px; cursor: pointer; opacity: 0; font-weight: 600;
    transform: translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav-links span:hover {
    font-weight: 700;
}

.liquid-glass-overlay.active-glass .glass-nav-links span { opacity: 1; transform: translateY(0); }
.liquid-glass-overlay.active-glass .glass-nav-links span:nth-child(1) { transition-delay: 0.1s; }
.liquid-glass-overlay.active-glass .glass-nav-links span:nth-child(2) { transition-delay: 0.2s; }
.liquid-glass-overlay.active-glass .glass-nav-links span:nth-child(3) { transition-delay: 0.3s; }
.liquid-glass-overlay.active-glass .glass-nav-links span:nth-child(4) { transition-delay: 0.4s; }

.copyright-footer {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: rgba(195, 211, 226, 0.4);
    text-transform: uppercase;
    font-weight: 600;
    pointer-events: none;
}

/* =========================================
   6. INNER PLATFORM LEDGER
   ========================================= */
#platform-view {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100dvh;
    display: none; opacity: 0; pointer-events: none; transform: translateX(40px); 
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); z-index: 50;
}

#platform-view.active-platform { opacity: 1; pointer-events: auto; transform: translateX(0); }

.platform-sidebar {
    position: fixed; left: 3rem; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 0.3rem; z-index: 100;
}

/* Legal pages sidebar compass */
.sidebar-compass {
    position: fixed; left: 3rem; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 0.3rem; z-index: 100;
}

.sidebar-option {
    cursor: pointer; opacity: 0.55; padding: 0.7rem 1rem; 
    border-radius: 0 8px 8px 0; border-left: 2px solid transparent; background: transparent; 
}

.sidebar-option span { font-size: 0.6rem; letter-spacing: 5px; color: var(--text-primary); pointer-events: none; font-weight: 600; }

.sidebar-option.active-sidebar {
    opacity: 1;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.1) 0%, transparent 100%);
    border-left: 2px solid #00E5FF;
    transform: translateX(5px);
}

.platform-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100dvh;
    width: 100%;
    padding: 6rem 10vw 4rem 18rem;
    overflow-y: auto;
}

.ledger-stream { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
.ledger-stream.active-stream { display: flex; animation: textFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.raw-text-block { max-width: 640px; text-align: left; }

.raw-text-block h2 {
    font-size: 1.4rem; letter-spacing: 5px; color: var(--text-primary);
    text-transform: uppercase; margin-bottom: 2.5rem; position: relative;
    padding-bottom: 15px; font-weight: 700;
}

.raw-text-block h2::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px;
    background: #00E5FF; box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.raw-text-block p { font-size: 1.05rem; line-height: 1.85; color: rgba(238, 244, 250, 0.75); margin-bottom: 2rem; font-weight: 400; }
.raw-text-block strong { color: #00E5FF; font-weight: 700; }

.terminal-link {
    display: inline-block; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-primary); text-decoration: none; margin-top: 1.5rem; padding-bottom: 6px;
    border-bottom: 2px solid rgba(0, 229, 255, 0.3); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto; font-weight: 700;
}

.terminal-link:hover { color: #00E5FF; border-bottom-color: #00E5FF; }

@keyframes textFadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}
/* =========================================
   LEGAL CONTENT STYLES
   ========================================= */
.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(195, 211, 226, 0.08);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    color: #00E5FF;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: rgba(238, 244, 250, 0.7);
    margin-bottom: 0.8rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-blockquote {
    margin: 1rem 0;
    padding: 0;
    background: transparent;
    border-left: none;
    border-radius: 0;
}

.legal-blockquote p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(238, 244, 250, 0.65);
    margin: 0;
}

/* =========================================
   7. SUBPAGES & SOCIALS
   ========================================= */
.page-container { padding: 120px 5vw 100px 5vw; max-width: 1000px; margin: 0 auto; position: relative; z-index: 5; }

.page-title {
    font-size: 2.2rem; letter-spacing: 8px; text-align: center; margin-bottom: 80px;
    color: var(--text-primary); text-transform: uppercase; position: relative; padding-bottom: 25px; font-weight: 700;
}

.page-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 2px; background: #00E5FF; box-shadow: 0 0 12px rgba(0, 229, 255, 0.6); 
}

.timeline-wrapper { position: relative; padding-left: 180px; }
.timeline-wrapper::before { content: ''; position: absolute; top: 5px; bottom: 0; left: 140px; width: 1px; background: rgba(0, 229, 255, 0.2); }
.timeline-step { position: relative; margin-bottom: 90px; }
.timeline-step:last-child { margin-bottom: 0; }
.step-indicator { position: absolute; left: -180px; width: 140px; display: flex; align-items: center; justify-content: flex-end; top: 5px; }
.step-name { font-family: monospace; color: #00E5FF; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; padding-right: 18px; font-weight: 600; }
.step-node { position: absolute; right: -4px; width: 8px; height: 8px; background: #00E5FF; border-radius: 50%; box-shadow: 0 0 12px rgba(0, 229, 255, 0.9); }
.step-content { padding-left: 0; }
.step-content.raw-text-block h3 { font-size: 1.1rem; letter-spacing: 3px; color: var(--text-primary); margin-top: 2.5rem; margin-bottom: 0.8rem; text-transform: uppercase; font-weight: 700;}
.step-content.raw-text-block h3:first-child { margin-top: 0; }

.socials-container { padding: 12rem 2rem 4rem; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 10; }
.social-cards { display: flex; gap: 8vw; margin-top: 2rem; }
.social-card {
    background: rgba(0, 2, 8, 0.4); border: 1px solid rgba(238, 244, 250, 0.05); padding: 3.5rem 3rem; width: 360px; text-decoration: none; border-radius: 4px; backdrop-filter: blur(12px); transition: all 0.4s ease; cursor: pointer; position: relative; overflow: hidden;
}
.social-card h3 { color: var(--text-primary); font-size: 1.1rem; letter-spacing: 6px; margin-bottom: 1.2rem; transition: color 0.3s ease; font-weight: 700; }
.social-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.8; transition: color 0.3s ease; }
.social-card:hover { transform: translateY(-12px); border-color: rgba(0, 229, 255, 0.4); box-shadow: 0px 15px 40px rgba(0, 229, 255, 0.15); background: rgba(0, 2, 8, 0.8); }
.social-card:hover h3 { color: var(--brand-accent); text-shadow: 0px 0px 15px rgba(0, 229, 255, 0.5); }
.social-card:hover p { color: #e5e7eb; }

#console-clock {
    position: fixed; bottom: 2rem; left: 2.5rem; 
    font-size: 0.6rem; letter-spacing: 3px; color: var(--text-primary); text-transform: uppercase; z-index: 10; pointer-events: none; font-weight: 600;
}

/* =========================================
   8. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    body {
        background-image: 
            radial-gradient(circle at 50% 30%, var(--cursor-glow) 0%, transparent 60%),
            radial-gradient(circle at 50% 80%, #000d26 0%, transparent 65%),
            radial-gradient(circle at 50% 50%, #01030a 0%, transparent 80%);
    }

  .top-nav { 
    top: 15px; left: 5%; width: 90%; padding: 0.6rem 1.2rem; 
    border-radius: 30px; background: rgba(2, 16, 36, 0.15); 
    backdrop-filter: blur(25px) saturate(100%); -webkit-backdrop-filter: blur(25px) saturate(100%);
    border: 1px solid rgba(238, 244, 250, 0.25); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
 body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 90px; 
    background: linear-gradient(to bottom,#051996 35%, transparent 100%); z-index: 95; pointer-events: none;
}

    .text-logo { font-size: 1.1rem; letter-spacing: 6px; }

    .hamburger { 
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; z-index: 105; pointer-events: auto;
        width: 42px; height: 42px; background: rgba(238, 244, 250, 0.05); border-radius: 50%; border: 1px solid rgba(238, 244, 250, 0.05); transition: all 0.3s ease;
    }
    .hamburger .bar { width: 16px; height: 2px; background-color: var(--text-primary); transition: all 0.3s ease; }
    .hamburger.active { background: rgba(238, 244, 250, 0.1); }
    .hamburger.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); background-color: var(--brand-accent); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background-color: var(--brand-accent); }

    .mobile-dropdown {
        position: fixed; top: 85px; left: 5%; width: 90%;
        background: rgba(0, 2, 8, 0.35); backdrop-filter: blur(40px) saturate(150%); -webkit-backdrop-filter: blur(40px) saturate(150%);
        border: 1px solid rgba(238, 244, 250, 0.15); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(238, 244, 250, 0.1);
        border-radius: 24px; padding: 1.2rem 1rem; display: flex; flex-direction: column; z-index: 250;
        opacity: 0; pointer-events: none; transform: translateY(-20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto; max-height: 80vh;
    }
    .mobile-dropdown.active-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .mobile-nav-links { display: flex; flex-direction: column; width: 100%; gap: 0.3rem; }
    .mobile-nav-links span { font-size: 0.9rem; letter-spacing: 3px; padding: 0.8rem 1.5rem; border-radius: 12px; text-align: left; font-weight: 600; transition: font-weight 0.3s ease; }
    .mobile-nav-links span:hover { font-weight: 700; }

    .platform-content { padding: 11rem 5vw 4rem 5vw; height: auto; min-height: 100vh; }
    #platform-view { height: auto; min-height: 100dvh; }

    .platform-sidebar {
        position: fixed; left: 0; top: 7rem; width: 100vw; flex-direction: row; justify-content: center; gap: 3rem; border-left: none; padding-left: 0; z-index: 40;
    }
    .sidebar-compass {
        position: fixed; left: 0; top: 7rem; width: 100vw; flex-direction: row; justify-content: center; gap: 1rem; border-left: none; padding-left: 0; z-index: 40;
    }
    .sidebar-option { 
        padding: 0.5rem; 
        border-left: none !important; 
        border-radius: 0; 
        background: transparent; 
        position: relative; 
    }
       .sidebar-option.active-sidebar {
        background: transparent !important;
        transform: none !important;
    }
    .sidebar-option span { font-size: 0.6rem; letter-spacing: 3px; opacity: 0.6; }
    .sidebar-option.active-sidebar span { opacity: 1; }
    .sidebar-option::after {
        content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0%; height: 2px;
        background: #00E5FF; box-shadow: 0 0 10px rgba(0, 229, 255, 0.8); transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); opacity: 0;
    }
    .sidebar-option.active-sidebar::after { width: 100%; opacity: 1; }

    /* Remove vertical line on mobile sidebar (compass-secondary border-left) */
    .compass-secondary {
        position: fixed;
        left: 0;
        top: 10rem;
        width: 100vw;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin: 0;
        padding: 0;
        border-left: none !important;
        z-index: 40;
    }
    .sidebar-sub-option {
        border-left: none !important;
        background: transparent !important;
    }
    .sidebar-sub-option span {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }
    .sidebar-sub-option.active-sub span {
        color: #00E5FF;
    }

    .split-container { flex-direction: column; gap: 4.5rem; }
    .split-icon { height: 36px; max-width: 120px; }
    .split-text { font-size: 0.7rem; letter-spacing: 5px; }
    .gateway-menu-toggle, .liquid-glass-overlay, #console-clock, .copyright-footer { display: none; }

    .page-container { padding-top: 8rem; }
    .page-title { margin-bottom: 60px; }
    .timeline-wrapper { padding-left: 30px; }
    .timeline-wrapper::before { left: 5px; }
    .step-indicator { left: 0; width: auto; top: -30px; justify-content: flex-start; }
    .step-name { margin-left: 20px; text-align: left; }
    .step-node { left: 1px; right: auto; top: 2px; }
    .step-content { margin-top: 40px; margin-bottom: 60px; }

    .socials-container { padding-top: 9rem; }
    .social-cards { flex-direction: column; gap: 2.5rem; }
    .social-card { width: 100%; max-width: 380px; padding: 2.5rem 2rem; }

    #webgl-canvas.frozen-blur {
        opacity: 1; visibility: visible;
        filter: blur(18px) brightness(0.65) saturate(1.2); 
    }

    #mobile-dropdown.active-menu {
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    }

    /* Mobile legal content */
    .legal-section h3 {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    .legal-section p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .legal-blockquote {
        padding: 0;
        margin: 0.5rem 0;
    }
}

/* =========================================
   9. DESKTOP OPTIMIZATIONS
   ========================================= */
@media (min-width: 769px) {
    body, .text-logo, .gateway-menu-toggle, .glass-nav-links span, 
    .raw-text-block h2, .page-title, #console-clock, .sidebar-option span, 
    .step-content.raw-text-block h3, .social-card h3, .terminal-link {
        color: #C3D3E2; 
    }

    .top-nav { padding: 28px 36px; }
    #console-clock { bottom: 28px; left: 36px; font-size: 0.55rem; letter-spacing: 4px; }

    .text-logo { font-size: 1.2rem; letter-spacing: 9px; }   
    .gateway-menu-toggle { font-size: 0.63rem; letter-spacing: 5px; }  
    .glass-nav-links span { font-size: 0.85rem; }  

    .split-icon { height: 38px; } 
    .split-text { font-size: 0.65rem; letter-spacing: 5px; }

    .platform-content { padding-top: 5vh; }
    .sidebar-option span { font-size: 0.55rem; }
    .raw-text-block { max-width: 680px; }
    .raw-text-block h2 { font-size: 1.15rem; letter-spacing: 6px; margin-bottom: 2rem; }

    .raw-text-block p {
        font-size: 0.95rem; line-height: 2.1; font-weight: 400;   
        color: rgba(238, 244, 250, 0.85); 
    }

    .terminal-link { font-size: 0.85rem; letter-spacing: 3px; }

    #webgl-canvas.depth-surface { filter: blur(32px) brightness(0.55) contrast(1.15) saturate(1.3); }
    #webgl-canvas.depth-deep { filter: blur(32px) brightness(0.55) contrast(1.15) saturate(1.3); }
    #webgl-canvas.frozen-blur { filter: blur(75px) brightness(0.4); }
    .liquid-glass-overlay { background: rgba(8, 15, 26, 0.3); }
}

/* =========================================
   LEGAL LEFT-SIDEBAR NESTED SUB-MENU
   ========================================= */
.compass-secondary {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(195, 211, 226, 0.15); 
}

.sidebar-sub-option span {
    font-size: 0.5rem; 
    letter-spacing: 4px;
    color: rgba(195, 211, 226, 0.4); 
    text-transform: uppercase;
    transition: color 0.3s ease;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.sidebar-sub-option:hover span {
    color: rgba(238, 244, 250, 0.85); 
}

.sidebar-sub-option.active-sub span {
    color: #00E5FF;
    font-weight: 600;
}

.submenu-closed {
    display: none !important;
}

.submenu-open {
    display: flex !important;
    animation: slideRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* =========================================
   LEGAL DESKTOP SIDEBAR
   ========================================= */
.legal-sidebar {
    position: fixed;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 100;
}

@media (max-width: 768px) {
    .legal-sidebar {
        display: none;
    }
}

@media (min-width: 769px) {
    .legal-tabs,
    .legal-sub-tabs {
        display: none;
    }
    
    .legal-container.page-container {
        margin-left: 16rem;
        margin-right: 5vw;
        max-width: 900px;
    }
}
/* =========================================
   LEGAL PAGE HORIZONTAL TABS
   ========================================= */
.legal-container {
    padding-top: 140px;
}

.legal-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.legal-tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: rgba(195, 211, 226, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.7rem 0.5rem;
    position: relative;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-tab:hover {
    color: rgba(238, 244, 250, 0.85);
}

.legal-tab.active-tab {
    color: var(--text-primary);
}

.legal-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: #00E5FF;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.legal-tab.active-tab::after {
    width: 100%;
    opacity: 1;
}

/* Sub-tabs for TOS pages */
.legal-sub-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.legal-sub-tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: rgba(195, 211, 226, 0.4);
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.5rem 0.3rem;
    position: relative;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-sub-tab:hover {
    color: rgba(238, 244, 250, 0.75);
}

.legal-sub-tab.active-sub-tab {
    color: #00E5FF;
}

.legal-content {
    max-width: 860px;
    margin: 0 auto;
}

/* Adjust page title for legal pages with tabs */
.legal-container .page-title {
    margin-top: 2rem;
    margin-bottom: 60px;
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */
.contact-container {
    padding-top: 140px;
}

.contact-container .page-title {
    margin-bottom: 60px;
}

.contact-intro {
    font-size: 1.05rem;
    color: rgba(238, 244, 250, 0.75);
    margin-bottom: 3rem;
    line-height: 1.85;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-links .terminal-link {
    margin-top: 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* =========================================
   MOBILE: LEGAL TABS & CONTACT
   ========================================= */
@media (max-width: 768px) {
    .legal-container {
        padding-top: 10rem;
    }

    .legal-tabs {
        gap: 1rem;
    }

    .legal-tab {
        font-size: 0.55rem;
        letter-spacing: 2px;
        padding: 0.5rem 0.3rem;
    }

    .legal-sub-tabs {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .legal-sub-tab {
        font-size: 0.65rem;
        letter-spacing: 2px;
        padding: 0.6rem 0.4rem;
    }
    .legal-container .page-title {
        margin-top: 1rem;
        margin-bottom: 40px;
        font-size: 1.4rem;
        letter-spacing: 4px;
    }

    .legal-content {
        padding: 0 1rem;
    }

    .contact-container {
        padding-top: 10rem;
    }

    .contact-container .page-title {
        margin-bottom: 40px;
    }

    .contact-links .terminal-link {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}
.sidebar-compass {
    top: 8rem;
    gap: 2rem;
}
@media (min-width: 1024px) {

  .contact-content.raw-text-block {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-intro {
    text-align: left;
  }

}
/* Hide legal tab nav — sidebar handles this on all screens */
.legal-tabs,
.legal-sub-tabs {
    display: none;
}
/* =========================================
   LEGAL NAV — COMPLETE OVERHAUL
   ========================================= */

/* Kill the redundant tab rows everywhere */
.legal-tabs,
.legal-sub-tabs {
    display: none !important;
}

/* Desktop sidebar — force correct vertical centering */
.sidebar-compass {
    position: fixed;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    z-index: 100;
}

/* Sub-options indent under TOS on desktop */
.compass-secondary {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 1.2rem;
    margin-top: 0.5rem;
    border-left: 1px solid rgba(0, 229, 255, 0.15);
}

.sidebar-sub-option {
    cursor: pointer;
    opacity: 0.45;
    padding: 0.5rem 1rem;
}

.sidebar-sub-option span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 4px;
    color: var(--text-primary);
    font-weight: 600;
}

.sidebar-sub-option.active-sub {
    opacity: 1;
}

.sidebar-sub-option.active-sub span {
    color: #00E5FF;
}

/* Mobile — clean horizontal rows below pill */
@media (max-width: 768px) {

    .sidebar-compass {
        position: fixed;
        left: 0;
        top: 7.5rem;
        width: 100vw;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: none;
        z-index: 40;
        padding: 0;
    }

    .sidebar-compass .sidebar-option {
        padding: 0.4rem 0.2rem;
        border-left: none !important;
        background: transparent !important;
        transform: none !important;
        position: relative;
    }

    .sidebar-compass .sidebar-option::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0%;
        height: 2px;
        background: #00E5FF;
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
        transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 0;
    }

    .sidebar-compass .sidebar-option.active-sidebar::after {
        width: 100%;
        opacity: 1;
    }

    .sidebar-compass .sidebar-option span {
        font-size: 0.58rem;
        letter-spacing: 3px;
        opacity: 0.5;
    }

    .sidebar-compass .sidebar-option.active-sidebar span {
        opacity: 1;
    }

    /* Sub-nav row (FOR TALENTS / FOR BRANDS) */
    .compass-secondary {
        position: fixed;
        left: 0;
        top: 10.5rem;
        width: 100vw;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding-left: 0;
        margin-top: 0;
        border-left: none;
        z-index: 40;
    }

    .sidebar-sub-option {
        border-left: none !important;
        background: transparent !important;
        padding: 0.4rem 0.2rem;
    }

    .sidebar-sub-option span {
        font-size: 0.55rem;
        letter-spacing: 3px;
        opacity: 0.45;
    }

    .sidebar-sub-option.active-sub span {
        opacity: 1;
        color: #00E5FF;
    }

    /* Push page content below both nav rows */
    .legal-page .page-container {
        padding-top: 15rem;
    }
}
/* =========================================
   LEGAL NAV MOBILE — FINAL POLISH
   ========================================= */

/* Page entry animation — content fades up */
.legal-page .page-container {
    animation: legalContentIn 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

@media (max-width: 768px) {

    .sidebar-compass {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;              /* allows second row to break */
        justify-content: center;
        align-items: center;
        gap: 0;
        margin-top: 7.5rem;
        padding: 0 0 0.8rem 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
        animation: navSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .sidebar-compass > .sidebar-option {
        margin: 0 1.5rem;
        padding-bottom: 0.8rem;
    }

    /* Force sub-row onto its own line */
    .compass-secondary {
        width: 100% !important;       /* breaks onto new row */
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        padding: 0.8rem 0 0.4rem 0;
        margin-top: 0;
        border-left: none;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        animation: navSlideDown 0.5s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .legal-page .page-container {
        padding-top: 2rem;
    }
}
    /* Nav slide-down entry animation */
    @keyframes navSlideDown {
        0%   { opacity: 0; transform: translateY(-12px); }
        100% { opacity: 1; transform: translateY(0); }
    }
}
/* FIX 1 — Desktop menu covering sidebar */
.liquid-glass-overlay {
    z-index: 110;
}

/* FIX 2 — Mobile separator line */
@media (max-width: 768px) {

    .sidebar-compass {
        border-bottom: none;
        padding-bottom: 0;
    }

    .compass-secondary {
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        padding-top: 0.8rem;
        margin-top: 0.4rem;
    }
}
/* =========================================
   LEGAL NAV — DEFINITIVE FINAL FIX
   ========================================= */

/* DESKTOP: Make overlay opaque enough to fully cover sidebar */
.liquid-glass-overlay {
    z-index: 110;
    background: rgba(0, 2, 8, 0.92);
}

/* MOBILE: Complete nav reset */
@media (max-width: 768px) {

    .sidebar-compass {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
        margin-top: 7.5rem !important;
        padding: 0 0 0.8rem 0 !important;
        border: none !important;        /* kill ALL borders first */
    }

    /* Main options — PRIVACY POLICY and TOS in one centered row */
    .sidebar-compass > .sidebar-option {
        padding: 0.4rem 1.5rem 0.8rem 1.5rem !important;
        border: none !important;
        background: transparent !important;
        transform: none !important;
    }

    /* Separator — drawn as bottom border on the main options row */
    /* We use a pseudo wrapper via a full-width element */
    .compass-secondary {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3rem !important;
        padding: 0.8rem 0 0.4rem 0 !important;
        margin: 0 !important;
        border: none !important;
        border-top: 1px solid rgba(0, 212, 255, 0.25) !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .sidebar-sub-option {
        border: none !important;
        background: transparent !important;
        padding: 0.3rem 0.5rem !important;
    }

    .sidebar-sub-option span {
        font-size: 0.58rem !important;
        letter-spacing: 3px !important;
        opacity: 0.45 !important;
        color: var(--text-primary) !important;
    }

    .sidebar-sub-option.active-sub span {
        opacity: 1 !important;
        color: #00E5FF !important;
    }

    .legal-page .page-container {
        padding-top: 2rem !important;
    }
}
/* =========================================
   DEFINITIVE FIX — OVERLAY + MOBILE NAV
   ========================================= */

/* Restore glass overlay to original look */
.liquid-glass-overlay {
    z-index: 110 !important;
    background:rgba(0,53,132,0.6) !important;
    backdrop-filter: blur(35px) !important;
    -webkit-backdrop-filter: blur(35px) !important;
}

/* Lower sidebar so overlay naturally covers it */
.sidebar-compass {
    z-index: 80;
}

/* MOBILE — full reset */
@media (max-width: 768px) {

    .sidebar-compass {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
        margin-top: 7.5rem !important;
        padding: 0 0 0.8rem 0 !important;
        border: none !important;
        z-index: 40 !important;
    }

    .sidebar-compass > .sidebar-option {
        padding: 0.4rem 1.5rem 0.8rem 1.5rem !important;
        border: none !important;
        background: transparent !important;
        transform: none !important;
    }

    .compass-secondary {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3rem !important;
        /* Kill ALL spacing that causes the left offset */
        padding: 0.8rem 0 0.4rem 0 !important;
        margin: 0 !important;
        /* Kill ALL borders then only add top */
        border: none !important;
        border-top: 1px solid rgba(0, 212, 255, 0.25) !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .sidebar-sub-option {
        border: none !important;
        background: transparent !important;
        padding: 0.3rem 0.5rem !important;
        margin: 0 !important;
    }

    .sidebar-sub-option span {
        font-size: 0.58rem !important;
        letter-spacing: 3px !important;
        opacity: 0.45 !important;
        color: var(--text-primary) !important;
    }

    .sidebar-sub-option.active-sub span {
        opacity: 1 !important;
        color: #00E5FF !important;
    }

    .legal-page .page-container {
        padding-top: 2rem !important;
    }
}
/* RESTORE — overlay glass look + fix nav visibility */

/* Restore original glass appearance */
.liquid-glass-overlay {
    background: rgba(0,39,96,0.25) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    z-index: 110 !important;
}

/* Raise top-nav ABOVE the overlay so RAVIE + CLOSE stay visible */
.top-nav {
    z-index: 120 !important;
}

/* Lower sidebar below overlay */
.sidebar-compass {
    z-index: 80 !important;
}
