/* ===== TORZON MARKET STYLES ===== */
/* Futuristic Dark Theme with Neon Blue Accents */

/* CSS Custom Properties */
:root {
    /* Enhanced Sky Blue Palette with Gradients */
    --primary-blue: #3aa9ff;
    --primary-blue-dark: #1e7ed6;
    --primary-blue-light: #6bc3ff;
    --secondary-blue: #0f6bbd;
    --accent-blue: #9bd6ff;
    
    /* Orange accent color (used throughout the design) */
    --primary-orange: #3aa9ff;
    --primary-orange-light: #6bc3ff;
    
    /* Gradients for Performance (CSS only) */
    --gradient-primary: linear-gradient(135deg, #3aa9ff 0%, #667eea 100%);
    --gradient-secondary: linear-gradient(135deg, #1e7ed6 0%, #3aa9ff 100%);
    --gradient-glow: linear-gradient(135deg, #3aa9ff 0%, #00ffaa 100%);
    --gradient-card: linear-gradient(135deg, rgba(58, 169, 255, 0.12) 0%, rgba(102, 126, 234, 0.08) 100%);
    --gradient-border: linear-gradient(135deg, #3aa9ff, #667eea, #00ffaa);
    --gradient-text: linear-gradient(135deg, #3aa9ff 0%, #6bc3ff 100%);
    
    /* Dark Theme Colors */
    --matrix-bg: #000000;
    --matrix-surface: #0a0a0a;
    --matrix-surface-light: #111111;
    --matrix-surface-hover: #1a1a1a;
    --matrix-border: #3aa9ff;
    
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #888888;
    --text-accent: var(--primary-blue);
    --text-matrix: #3aa9ff;
    
    --border-color: #333333;
    --border-accent: var(--primary-blue);
    --border-matrix: rgba(58, 169, 255, 0.3);
    
    /* Overlay for mobile menu */
    --overlay-bg: rgba(0, 0, 0, 0.8);
    
    /* Typography */
    --font-primary: 'JetBrains Mono', monospace;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing - Common for all themes */
    --container-max-width: 1400px;
    --section-padding: 100px 0;
    --card-padding: 2.5rem;
    
    /* Animations - GPU accelerated only */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Enhanced Shadows with more depth */
    --shadow-glow: 0 0 20px rgba(58, 169, 255, 0.5), 0 0 40px rgba(58, 169, 255, 0.3);
    --shadow-glow-strong: 0 0 30px rgba(58, 169, 255, 0.7), 0 0 60px rgba(58, 169, 255, 0.5), 0 0 90px rgba(58, 169, 255, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.6), 0 20px 80px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 15px 50px rgba(58, 169, 255, 0.4), 0 25px 100px rgba(0, 0, 0, 0.5);
    --shadow-matrix: 0 0 40px rgba(58, 169, 255, 0.3), 0 0 80px rgba(58, 169, 255, 0.15);
    --shadow-inset-glass: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* Light Theme Variables */
[data-theme="light"] {
    /* Light Theme Colors */
    --matrix-bg: #ffffff;
    --matrix-surface: #f8f9fa;
    --matrix-surface-light: #e9ecef;
    --matrix-surface-hover: #dee2e6;
    --matrix-border: #3aa9ff;
    
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --text-accent: var(--primary-blue);
    --text-matrix: #3aa9ff;
    
    --border-color: #dee2e6;
    --border-accent: var(--primary-blue);
    --border-matrix: rgba(58, 169, 255, 0.3);
    
    /* Overlay for mobile menu - lighter for light theme */
    --overlay-bg: rgba(0, 0, 0, 0.3);
    
    /* Light Theme Gradients */
    --gradient-card: linear-gradient(135deg, rgba(58, 169, 255, 0.08) 0%, rgba(102, 126, 234, 0.05) 100%);
    
    /* Light theme shadows - lighter */
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.1), 0 20px 80px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 15px 50px rgba(58, 169, 255, 0.2), 0 25px 100px rgba(0, 0, 0, 0.08);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    background: var(--matrix-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

/* ===== MINIMAL LOADING SCREEN ===== */
#matrix-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--matrix-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#matrix-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}

/* Simple Logo */
.logo-container {
    margin-bottom: 3rem;
}

.logo-symbol {
    font-size: 4rem;
    color: var(--primary-blue);
    text-shadow: 0 0 20px var(--primary-blue);
    margin-bottom: 1rem;
    animation: logoGlow 2s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.2em;
}

/* Simple Progress Bar */
.progress-system {
    width: 100%;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(58, 169, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-blue);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-blue);
}

.progress-text {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* Simple Animation */
@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 20px var(--primary-blue);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px var(--primary-blue), 0 0 40px var(--primary-blue);
        transform: scale(1.05);
    }
}

/* ===== CYBER NAVIGATION ===== */
.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--matrix-surface);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 0;
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(58, 169, 255, 0.2);
    z-index: 1000;
    transition: all var(--transition-smooth);
    transform: translateZ(0);
}

.cyber-nav.scrolled {
    background: var(--matrix-surface-light);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 
        var(--shadow-glow),
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(58, 169, 255, 0.4);
}

.nav-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-blue);
    text-shadow: var(--shadow-glow);
}

.nav-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    cursor: pointer;
}

.nav-logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform var(--transition-normal);
}

.nav-logo-link:hover {
    transform: scale(1.05);
}

.nav-logo-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-logo {
    width: 140px;
    height: 140px;
    border-radius: 0;
    filter: drop-shadow(0 0 8px var(--primary-blue));
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 1px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width var(--transition-normal);
    box-shadow: 0 0 10px var(--primary-orange);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-orange);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(58, 169, 255, 0.1);
    border: 2px solid var(--border-matrix);
    border-radius: 8px;
    transition: all var(--transition-smooth);
    font-family: inherit;
    outline: none;
}

.nav-toggle:hover {
    background: rgba(58, 169, 255, 0.2);
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(58, 169, 255, 0.3);
}

.nav-toggle:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.toggle-line {
    width: 24px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary-blue);
    border-radius: 2px;
    transform-origin: center;
}

.nav-toggle.active .toggle-line {
    background: var(--primary-blue);
    box-shadow: 0 0 15px var(--primary-blue);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-matrix);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Theme toggle visibility */
.nav-actions .theme-toggle {
    display: flex;
}

.theme-toggle.mobile-only {
    display: none;
}

/* Hide the duplicate theme toggle inside mobile menu */
.mobile-theme-container {
    display: none;
}

.theme-toggle:hover {
    border-color: var(--primary-blue);
    background: rgba(58, 169, 255, 0.1);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(58, 169, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.95);
}

.theme-icon {
    font-size: 1.5rem;
    transition: all var(--transition-smooth);
    filter: drop-shadow(0 0 5px currentColor);
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg) scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary-blue));
}

/* Light theme specific styles for toggle */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-color);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(58, 169, 255, 0.1);
    border-color: var(--primary-blue);
    box-shadow: 
        0 6px 20px rgba(58, 169, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ===== MATRIX HERO SECTION ===== */
.matrix-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Hero Main Title (H1) - Visible for SEO */
.hero-main-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0 auto 1.5rem auto;
    max-width: 100%;
    text-shadow: 0 0 15px rgba(58, 169, 255, 0.4);
    display: block;
    position: relative;
    line-height: 1.2;
    /* Visible to both search engines and users */
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--matrix-bg);
}

.digital-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

/* Pulsating dots - simplified for performance */
.pulsating-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(58, 169, 255, 0.3);
    pointer-events: none;
    opacity: 0.5;
}

.pulsating-dot.small {
    width: 4px;
    height: 4px;
}

.pulsating-dot.medium {
    width: 6px;
    height: 6px;
}

.pulsating-dot.large {
    width: 8px;
    height: 8px;
}

.matrix-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Brand Container */
.hero-brand-container {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.brand-lightning {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: rotatePulse 3s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 30px var(--primary-orange));
    /* Glass effect behind lightning */
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50%;
    padding: 1.5rem;
    border: 1px solid rgba(58, 169, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    margin: 0 0 1.5rem 0;
    position: relative;
    display: inline-block;
    /* Compact modern design */
    background: linear-gradient(135deg, 
        rgba(58, 169, 255, 0.12) 0%, 
        rgba(102, 126, 234, 0.08) 50%,
        rgba(0, 255, 170, 0.12) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(58, 169, 255, 0.4);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(58, 169, 255, 0.2),
        0 0 60px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 255, 170, 0.05);
    animation: brandContainerGlow 4s ease-in-out infinite;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.brand-title:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(58, 169, 255, 0.3),
        0 0 80px rgba(102, 126, 234, 0.2),
        0 0 120px rgba(0, 255, 170, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 255, 170, 0.1);
    border-color: rgba(0, 255, 170, 0.6);
}

.brand-title.holographic-3d:hover {
    transform: translateY(-2px) scale(1.02) perspective(800px) rotateY(2deg);
    filter: drop-shadow(0 0 25px rgba(58, 169, 255, 0.5)) 
            drop-shadow(0 0 50px rgba(102, 126, 234, 0.4));
}

.brand-title.holographic-3d {
    position: relative;
    background: linear-gradient(135deg, #3aa9ff 0%, #667eea 50%, #3aa9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(58, 169, 255, 0.3));
    /* Compact design */
    padding: 0.8rem 1.5rem !important;
    border-radius: 12px !important;
    max-width: fit-content !important;
    font-size: clamp(2rem, 5.5vw, 4rem) !important;
    letter-spacing: 0.08em !important;
}


.brand-letter {
    display: inline-block;
    transition: all 0.3s ease;
}

.brand-tagline {
    font-family: var(--font-primary);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
}

.tagline-word {
    display: inline-block;
}

.tagline-separator {
    margin: 0 0.8rem;
    color: var(--primary-blue);
}

.brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background: var(--gradient-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 2px solid var(--border-matrix);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        var(--shadow-inset-glass);
    will-change: transform, box-shadow;
    transform: translateZ(0);
}


.stat-box:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(58, 169, 255, 0.2) 0%, rgba(102, 126, 234, 0.15) 100%);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    transform: translateY(-8px) translateZ(0) scale(1.05);
    box-shadow: 
        var(--shadow-glow-strong),
        0 12px 40px rgba(0, 0, 0, 0.5),
        var(--shadow-inset-glass);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px var(--primary-orange));
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px var(--primary-orange);
}

.stat-label {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.brand-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.feature-tag {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-matrix);
    border-radius: 20px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    cursor: default;
}

.feature-tag:hover {
    border-color: var(--primary-orange);
    color: var(--primary-blue);
    background: rgba(58, 169, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.3);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-photo-placeholder {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-matrix);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.hero-photo-placeholder:hover {
    border-color: var(--primary-blue);
    box-shadow: 
        var(--shadow-glow),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.hero-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    filter: drop-shadow(0 0 10px rgba(58, 169, 255, 0.3));
    transition: all var(--transition-normal);
}

.hero-photo-placeholder:hover .hero-photo {
    filter: drop-shadow(0 0 20px rgba(58, 169, 255, 0.5));
    transform: scale(1.02);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: matrixBounce 2s infinite;
    z-index: 10;
    pointer-events: none;
}

.scroll-text {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--primary-blue);
    animation: matrixBounce 2s infinite;
}

/* ===== CYBER BUTTONS ===== */
.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    min-width: 250px;
    background: linear-gradient(var(--matrix-surface), var(--matrix-surface)) padding-box, var(--gradient-border) border-box;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), var(--shadow-inset-glass);
    transform: translateZ(0);
}

.cyber-btn.primary {
    background: 
        var(--gradient-card) padding-box,
        var(--gradient-border) border-box;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 
        var(--shadow-glow),
        0 4px 20px rgba(0, 0, 0, 0.5),
        var(--shadow-inset-glass);
}

.cyber-btn.secondary {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: var(--border-matrix);
}

.cyber-btn:hover {
    transform: translateY(-3px) translateZ(0) scale(1.02);
    box-shadow: 
        var(--shadow-glow-strong),
        0 8px 30px rgba(0, 0, 0, 0.6),
        var(--shadow-inset-glass);
    filter: brightness(1.2);
}

.btn-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(58, 169, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cyber-btn:hover .btn-glow {
    left: 100%;
}

/* ===== SECTIONS ===== */
section {
    padding: var(--section-padding);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

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

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.title-prefix {
    color: var(--primary-blue);
    display: block;
    font-size: 0.6em;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
    text-shadow: 0 0 20px var(--primary-orange);
}

.title-main {
    color: var(--text-primary);
    display: block;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== VAULT SECTION ===== */
.vault-section {
    background: var(--matrix-surface);
}

.vault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.vault-item {
    background: var(--gradient-card);
    border: 2px solid var(--border-matrix);
    border-radius: 20px;
    padding: var(--card-padding);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 
        var(--shadow-inset-glass),
        var(--shadow-card),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.vault-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.vault-item:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 
        var(--shadow-inset-glass),
        var(--shadow-card-hover),
        0 0 0 1px rgba(58, 169, 255, 0.3);
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(58, 169, 255, 0.15) 0%, rgba(102, 126, 234, 0.1) 100%);
}

.vault-item:hover::before {
    transform: scaleX(1);
}

.vault-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(58, 169, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: matrixPulse 3s ease-in-out infinite;
}

.icon-symbol {
    font-size: 3rem;
    z-index: 2;
    position: relative;
}

.vault-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.vault-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.vault-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--matrix-surface);
    border-radius: 8px;
    border: 1px solid var(--border-matrix);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-family: var(--font-primary);
}

/* ===== TERMINAL SECTION ===== */
.terminal-section {
    background: var(--matrix-bg);
}

/* ===== PROTOCOL SECTION ===== */
.protocol-section {
    background: var(--matrix-surface);
}

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.protocol-card {
    background: var(--gradient-card);
    border: 2px solid var(--border-matrix);
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 
        var(--shadow-inset-glass),
        var(--shadow-card),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.protocol-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.protocol-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 
        var(--shadow-inset-glass),
        var(--shadow-card-hover),
        0 0 0 1px rgba(58, 169, 255, 0.3);
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(58, 169, 255, 0.15) 0%, rgba(102, 126, 234, 0.1) 100%);
}

.protocol-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.card-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-primary);
}

.card-status.active {
    background: rgba(58, 169, 255, 0.2);
    color: var(--primary-blue);
    border: 1px solid var(--primary-orange);
}

.card-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.protocol-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    text-align: center;
    padding: 1rem;
    background: var(--matrix-surface);
    border-radius: 8px;
    border: 1px solid var(--border-matrix);
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.info-value {
    display: block;
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-family: var(--font-primary);
}

.protocol-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--border-matrix);
    border-radius: 8px;
    color: var(--primary-blue);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.protocol-btn:hover {
    background: rgba(58, 169, 255, 0.1);
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-glow);
}

.protocol-warning {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(58, 169, 255, 0.1);
    border: 2px solid var(--primary-orange);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.warning-icon {
    font-size: 2rem;
    min-width: 60px;
}

.warning-content h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.warning-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== ONION LINK STYLES ===== */
.onion-link-box {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--primary-orange);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.onion-url {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
    letter-spacing: 1px;
    user-select: all;
    word-break: break-all;
    flex: 1;
}

.copy-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border-matrix);
    border-radius: 6px;
    color: var(--primary-blue);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(255, 136, 0, 0.1);
    border-color: var(--primary-orange);
}

.access-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(58, 169, 255, 0.1), rgba(58, 169, 255, 0.05));
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    color: var(--primary-blue);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 1rem;
}

.access-btn:hover {
    background: rgba(58, 169, 255, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

/* ===== MARKETPLACE FEATURES ===== */
.marketplace-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--gradient-card);
    border: 2px solid var(--border-matrix);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 
        var(--shadow-inset-glass),
        var(--shadow-card),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 
        var(--shadow-inset-glass),
        var(--shadow-card-hover),
        0 0 0 1px rgba(58, 169, 255, 0.3);
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(58, 169, 255, 0.15) 0%, rgba(102, 126, 234, 0.1) 100%);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.feature-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.feature-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--matrix-surface);
    border-radius: 8px;
    border: 1px solid var(--border-matrix);
}

.stat-item .stat-value {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-family: var(--font-primary);
    margin-bottom: 0.3rem;
}

.stat-item .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-primary);
}

/* ===== FAQ SECTION ===== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.faq-item {
    background: var(--gradient-card);
    border: 2px solid var(--border-matrix);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        var(--shadow-inset-glass),
        0 6px 30px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.faq-item:hover {
    transform: translateY(-8px) translateZ(0) scale(1.02);
    box-shadow: 
        var(--shadow-inset-glass),
        var(--shadow-card-hover),
        0 0 0 1px rgba(58, 169, 255, 0.3);
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(58, 169, 255, 0.15) 0%, rgba(102, 126, 234, 0.1) 100%);
}

.faq-item:hover::before {
    transform: scaleX(1);
}

.faq-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.faq-question {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    text-align: center;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.7;
    text-align: center;
}

/* ===== SUPPORT SECTION ===== */
.support-section {
    background: var(--matrix-bg);
}

/* ===== CYBER FOOTER ===== */
.cyber-footer {
    background: var(--matrix-surface);
    border-top: 2px solid var(--border-matrix);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    text-align: left;
}

.footer-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.footer-logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform var(--transition-normal);
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-logo {
    width: 180px;
    height: 180px;
    border-radius: 0;
    filter: drop-shadow(0 0 10px var(--primary-blue));
    object-fit: contain;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group {
    text-align: left;
}

.group-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.footer-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-blue);
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-matrix);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(58, 169, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.social-link:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background: rgba(58, 169, 255, 0.1);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 
        0 4px 15px rgba(58, 169, 255, 0.3),
        0 0 20px rgba(58, 169, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link:hover::before {
    left: 100%;
}

.social-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px currentColor);
    transition: all var(--transition-fast);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary-blue));
}

.social-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.8px;
}

/* Specific colors for each social platform */
.social-link.youtube:hover {
    color: #ff0000;
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 
        0 4px 15px rgba(255, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link.tor:hover {
    color: #7d4698;
    border-color: #7d4698;
    background: rgba(125, 70, 152, 0.1);
    box-shadow: 
        0 4px 15px rgba(125, 70, 152, 0.3),
        0 0 20px rgba(125, 70, 152, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link.github:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 15px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link.telegram:hover {
    color: #0088cc;
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
    box-shadow: 
        0 4px 15px rgba(0, 136, 204, 0.3),
        0 0 20px rgba(0, 136, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link.x:hover {
    color: #1da1f2;
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
    box-shadow: 
        0 4px 15px rgba(29, 161, 242, 0.3),
        0 0 20px rgba(29, 161, 242, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link.reddit:hover {
    color: #ff4500;
    border-color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
    box-shadow: 
        0 4px 15px rgba(255, 69, 0, 0.3),
        0 0 20px rgba(255, 69, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-matrix);
}

.footer-info {
    color: var(--text-muted);
}

.security-warning {
    color: var(--primary-blue);
    font-weight: 500;
    margin-top: 0.5rem;
    font-family: var(--font-primary);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: matrixPulse 2s infinite;
    box-shadow: 0 0 10px var(--primary-orange);
}

.status-text {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

/* ===== ANIMATIONS ===== */
@keyframes matrixPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes matrixBounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
        opacity: 1;
    }
    40% { 
        transform: translateX(-50%) translateY(-8px); 
        opacity: 0.8;
    }
    60% { 
        transform: translateX(-50%) translateY(-4px); 
        opacity: 0.9;
    }
}

@keyframes matrixBounceMobile {
    0%, 100% { 
        transform: translateX(-50%) translateY(0); 
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) translateY(-6px); 
        opacity: 0.7;
    }
}

@keyframes matrixBounceTablet {
    0%, 100% { 
        transform: translateX(-50%) translateY(0); 
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) translateY(-7px); 
        opacity: 0.75;
    }
}


@keyframes rotatePulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 20px var(--primary-orange));
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
        filter: drop-shadow(0 0 40px var(--primary-orange));
    }
    50% {
        transform: rotate(10deg) scale(1);
        filter: drop-shadow(0 0 20px var(--primary-orange));
    }
    75% {
        transform: rotate(-5deg) scale(1.05);
        filter: drop-shadow(0 0 30px var(--primary-orange));
    }
}

@keyframes brandContainerGlow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(58, 169, 255, 0.2),
            0 0 60px rgba(102, 126, 234, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 255, 170, 0.05);
        border-color: rgba(58, 169, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.4),
            0 0 50px rgba(58, 169, 255, 0.3),
            0 0 80px rgba(102, 126, 234, 0.2),
            0 0 100px rgba(0, 255, 170, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            inset 0 -1px 0 rgba(0, 255, 170, 0.1);
        border-color: rgba(0, 255, 170, 0.6);
    }
}










/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }
    
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--matrix-surface);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem 0;
        border-top: 2px solid var(--border-matrix);
        box-shadow: 
            inset 0 2px 0 rgba(58, 169, 255, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.6);
        z-index: 999;
        display: flex;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        left: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-item {
        display: block;
        padding: 1.2rem 2rem;
        margin: 0.5rem 1.5rem;
        font-size: 1.2rem;
        border-radius: 8px;
        border: 1px solid transparent;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .nav-menu .nav-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: var(--primary-blue);
        transition: height 0.3s ease;
        box-shadow: 0 0 10px var(--primary-blue);
    }
    
    .nav-menu .nav-item:hover,
    .nav-menu .nav-item.active {
        background: rgba(58, 169, 255, 0.1);
        border-color: var(--primary-blue);
        transform: translateX(8px);
    }
    
    .nav-menu .nav-item:hover::before,
    .nav-menu .nav-item.active::before {
        height: 60%;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
        z-index: 1001;
    }

    .nav-actions .theme-toggle {
        width: 45px;
        height: 45px;
    }

    .nav-actions .theme-icon {
        font-size: 1.3rem;
    }

    .nav-toggle.active .toggle-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        width: 24px;
    }

    .nav-toggle.active .toggle-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.active .toggle-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        width: 24px;
    }
    
    .nav-toggle.active {
        background: rgba(58, 169, 255, 0.2);
        border-color: var(--primary-blue);
        box-shadow: 0 0 20px rgba(58, 169, 255, 0.4);
    }

    .matrix-hero {
        padding-top: 80px;
    }

    .matrix-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-brand-container {
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
    }

    .brand-lightning {
        font-size: 4rem;
    }

    .brand-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0 auto;
        max-width: 100%;
        justify-items: center;
    }

    .brand-features {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .feature-tag {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        align-items: center;
    }

    .hero-photo-placeholder {
        max-width: 500px;
        margin: 0 auto 1.5rem auto;
        display: block;
    }

    .hero-photo {
        height: 300px;
    }

    .vault-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .protocol-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .marketplace-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .social-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .social-icon {
        font-size: 1rem;
    }

    .social-text {
        font-size: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-logo-placeholder {
        width: 140px;
        height: 140px;
    }

    .nav-logo {
        width: 120px;
        height: 120px;
    }

    .footer-logo-placeholder {
        width: 160px;
        height: 160px;
        margin: 0 auto 1rem;
    }

    .footer-logo {
        width: 140px;
        height: 140px;
    }

    /* Improved scroll indicator animation for tablets */
    .scroll-indicator {
        animation: matrixBounceTablet 2.2s ease-in-out infinite;
    }

    .scroll-arrow {
        animation: matrixBounceTablet 2.2s ease-in-out infinite;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .nav-wrapper {
        padding: 0 1rem;
    }
    
    .nav-actions .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .nav-actions .theme-icon {
        font-size: 1.1rem;
    }

    .matrix-content {
        padding: 0 1rem;
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
    }

    .hero-brand-container {
        padding: 0.5rem;
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
    }

    .brand-lightning {
        font-size: 3rem;
    }

    .brand-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        letter-spacing: 0.08em;
        padding: 0.6rem 1.2rem !important;
        border-radius: 10px !important;
        margin: 0 auto 1rem auto;
        text-align: center;
        display: block;
        max-width: fit-content;
    }
    
    .brand-title.holographic-3d {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        padding: 0.6rem 1.2rem !important;
        border-radius: 10px !important;
        letter-spacing: 0.06em !important;
        margin: 0 auto 1rem auto !important;
        text-align: center !important;
        display: block !important;
        max-width: fit-content !important;
    }

    .brand-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }

    .tagline-separator {
        margin: 0 0.4rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .feature-tag {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }

    .cyber-btn {
        min-width: auto;
        width: 100%;
        padding: 1.2rem 2rem;
    }

    .hero-actions {
        width: 100%;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-photo-placeholder {
        max-width: 350px;
        margin: 0 auto 1rem auto;
        display: block;
    }

    .hero-photo {
        height: 200px;
    }

    /* Improved scroll indicator animation for mobile */
    .scroll-indicator {
        bottom: 2rem;
        animation: matrixBounceMobile 2.5s ease-in-out infinite;
    }

    .scroll-text {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .scroll-arrow {
        font-size: 1.2rem;
        animation: matrixBounceMobile 2.5s ease-in-out infinite;
    }


    .onion-link-box {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .copy-btn {
        width: 100%;
    }

    .protocol-warning {
        flex-direction: column;
        text-align: center;
    }

    .nav-logo-placeholder {
        width: 120px;
        height: 120px;
    }

    .nav-logo {
        width: 100px;
        height: 100px;
    }

    .footer-logo-placeholder {
        width: 140px;
        height: 140px;
    }

    .footer-logo {
        width: 120px;
        height: 120px;
    }

    .social-links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        justify-content: center;
    }

    .social-icon {
        font-size: 0.9rem;
    }

    .social-text {
        font-size: 0.7rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        margin-left: 0.5rem;
    }

    .theme-icon {
        font-size: 1.1rem;
    }

    /* Mobile Loading Screen */
    .loading-container {
        padding: 1.5rem;
        max-width: 300px;
    }

    .logo-symbol {
        font-size: 3rem;
    }

    .logo-text {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }

    .progress-text {
        font-size: 0.8rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU Acceleration for animated elements */
.matrix-logo,
.logo-symbol,
.icon-bg,
.cyber-btn,
.vault-item,
.protocol-card,
.brand-lightning,
.brand-title,
.brand-letter,
.stat-box,
.feature-tag,
.feature-card,
.faq-item,
.cyber-nav {
    transform: translateZ(0);
}

/* Only add will-change during interactions */
.vault-item:hover,
.protocol-card:hover,
.feature-card:hover,
.stat-box:hover,
.cyber-btn:hover,
.faq-item:hover {
    will-change: transform, box-shadow;
}

/* Content visibility for better rendering */
.vault-item,
.protocol-card,
.feature-card,
.faq-item {
    content-visibility: auto;
    contain: layout style paint;
}

/* ===== PERFORMANCE & ACCESSIBILITY ===== */

/* Reduce motion for users who prefer it */
@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;
    }
    
    .logo-symbol {
        animation: none !important;
    }
}

/* Performance optimizations - simple loading on slower devices */
@media (max-width: 768px) {
    .logo-symbol {
        animation-duration: 3s !important;
    }
}

@media (max-width: 480px) {
    .logo-symbol {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #ff6600;
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --border-color: #ffffff;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(58, 169, 255, 0.9) 0%, rgba(102, 126, 234, 0.9) 100%);
    border: 2px solid rgba(58, 169, 255, 0.6);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-smooth);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(58, 169, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    letter-spacing: 0.05em;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, rgba(58, 169, 255, 1) 0%, rgba(102, 126, 234, 1) 100%);
    border-color: rgba(58, 169, 255, 1);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 12px 40px rgba(58, 169, 255, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-arrow-icon {
    display: block;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.scroll-to-top:hover .scroll-arrow-icon {
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
.cyber-btn:focus,
.nav-item:focus,
a:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-orange);
    color: var(--text-primary);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
}

.skip-link:focus {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
