/* ============================================
   NEKSIO ACCESSGUARD - COMPLETE STYLESHEET
   Version: 1.0.0
   Author: Neksio Tool
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #050816;
    --bg-secondary: #0F172A;
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --accent: #06B6D4;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Borders */
    --border: #1E293B;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(148, 163, 184, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-danger: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    --gradient-orange: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    --shadow-orange: 0 0 20px rgba(251, 146, 60, 0.4);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-primary: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 120px 24px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   3. BACKGROUND EFFECTS
   ============================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.bg-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: particleFloat 20s linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
}

/* ============================================
   4. NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: var(--container-max);
    padding: 16px 24px;
    background: rgba(5, 8, 22, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    z-index: 1000;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar.scrolled {
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 12px 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: all var(--transition-base);
}

.navbar.scrolled .nav-logo img {
    width: 32px;
    height: 32px;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-download {
    padding: 10px 20px;
    background: var(--gradient-gold);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-download:hover::before {
    transform: translateX(100%);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--glass-border);
    padding: 80px 24px 24px;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-menu-list a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.mobile-menu-cta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.mobile-menu-cta .btn-download {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
}

/* ============================================
   5. PROGRESS NAVIGATION
   ============================================ */
.progress-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 10px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-dot::before {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--glass-border);
}

.progress-dot:hover::before {
    opacity: 1;
    right: 28px;
}

.progress-dot:hover {
    background: rgba(148, 163, 184, 0.6);
    transform: scale(1.3);
}

.progress-dot.active {
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    transform: scale(1.4);
}

@media (max-width: 768px) {
    .progress-nav {
        right: 12px;
        padding: 12px 6px;
        gap: 10px;
    }
    .progress-dot {
        width: 8px;
        height: 8px;
    }
    .progress-dot::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .progress-nav {
        display: none;
    }
}

/* ============================================
   6. HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 160px 24px 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: dotPulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

.hero-visual {
    position: relative;
    height: 600px;
}

.hexagon-container {
    position: absolute;
    inset: 0;
}

#hexagon-canvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 16px 60px;
    }
    .hero-cta {
        flex-direction: column;
    }
}

/* ============================================
   7. SECURITY TICKER
   ============================================ */
.security-ticker {
    position: relative;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    z-index: 2;
}

.security-ticker::before,
.security-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.security-ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.security-ticker::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.ticker-track {
    display: flex;
    gap: 48px;
    animation: tickerScroll 40s linear infinite;
    width: max-content;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #fb923c;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
    letter-spacing: 0.02em;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    background: #fb923c;
    border-radius: 50%;
    box-shadow: 0 0 12px #fb923c;
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ============================================
   8. STORY SECTIONS (COMMON)
   ============================================ */
.story-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    overflow: hidden;
}

.story-container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.story-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.story-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 800px;
}

.story-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 40px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   9. BUTTONS (COMMON)
   ============================================ */
.btn-primary {
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   10. SECTION 1: FILE SCENE
   ============================================ */
.file-scene {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.files-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.floating-file {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    width: 200px;
    box-shadow: var(--shadow-lg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.floating-file.animated {
    opacity: 1;
    transform: translateY(0);
}

.floating-file .file-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.floating-file .file-name {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.floating-file .file-status {
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.floating-file .file-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

.floating-file.modified {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.3);
}

.floating-file.modified .file-icon {
    background: var(--gradient-danger);
}

.floating-file.modified .file-status {
    color: var(--danger);
}

.floating-file.modified .file-status::before {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
    animation: dangerPulse 1s ease-in-out infinite;
}

@keyframes dangerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.file-wp-config { top: 10%; left: 5%; }
.file-htaccess { top: 5%; right: 10%; }
.file-functions { top: 45%; left: 15%; }
.file-index { bottom: 10%; left: 5%; }
.file-robots { bottom: 15%; right: 10%; }

@media (max-width: 1024px) {
    .file-scene {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .files-visual {
        height: 400px;
    }
    .floating-file {
        width: 160px;
        padding: 16px;
    }
}

/* ============================================
   11. SECTION 2: TIMELINE
   ============================================ */
.timeline-section {
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.05) 50%, transparent 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--success), var(--warning), var(--danger), var(--primary));
}

.timeline-item {
    position: relative;
    padding: 20px 0 40px 40px;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--text-muted);
    transition: all 0.4s ease;
}

.timeline-item.active::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    transform: scale(1.2);
}

.timeline-item.danger::before {
    border-color: var(--danger);
}

.timeline-item.danger.active::before {
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 20px var(--danger);
}

.timeline-item.success::before {
    border-color: var(--success);
}

.timeline-item.success.active::before {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 20px var(--success);
}

.timeline-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-desc code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent);
}

/* ============================================
   12. SECTION 3: FILE GUARDIAN
   ============================================ */
.guardian-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    opacity: 0.5;
}

.file-list-item.lit {
    opacity: 1;
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.05);
}

.file-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.file-list-item.lit .file-list-icon {
    background: var(--success);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.file-list-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
    transition: all var(--transition-base);
}

.file-list-item.lit .file-list-icon svg {
    color: white;
}

.file-list-info {
    flex: 1;
}

.file-list-name {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.file-list-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.file-list-status {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.file-list-item.lit .file-list-status {
    color: var(--success);
}

.dashboard-preview {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}

.dashboard-preview img {
    width: 100%;
    display: block;
}

.dashboard-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
}

.monitoring-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(5, 8, 22, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--glass-border);
    font-size: 13px;
    font-weight: 500;
}

.monitoring-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--success);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

@media (max-width: 1024px) {
    .guardian-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   13. SECTION 4: WORKFLOW
   ============================================ */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 60px;
    position: relative;
}

.workflow-step {
    position: relative;
    padding: 24px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-align: center;
    opacity: 0.3;
    transition: all 0.6s ease;
}

.workflow-step.active {
    opacity: 1;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
    transform: translateY(-8px);
}

.workflow-step.complete {
    opacity: 1;
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.05);
}

.workflow-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.workflow-step.active .workflow-icon {
    background: var(--gradient-primary);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

.workflow-step.complete .workflow-icon {
    background: var(--success);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.workflow-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-light);
    transition: all var(--transition-base);
}

.workflow-step.active .workflow-icon svg,
.workflow-step.complete .workflow-icon svg {
    color: white;
}

.workflow-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.workflow-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.workflow-connector {
    position: absolute;
    top: 50%;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.workflow-step:last-child .workflow-connector {
    display: none;
}

@media (max-width: 1024px) {
    .workflow-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   14. SECTION 5: ACTIVITY FEED
   ============================================ */
.activity-feed {
    max-width: 700px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.activity-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.activity-icon.success { background: var(--success); }
.activity-icon.danger { background: var(--danger); }
.activity-icon.warning { background: var(--warning); }
.activity-icon.info { background: var(--primary); }

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-meta,
.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ============================================
   15. SECTION 6: EMAIL ALERTS
   ============================================ */
.email-scene {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.email-mockup {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.email-header {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.email-dot.red { background: #EF4444; }
.email-dot.yellow { background: #F59E0B; }
.email-dot.green { background: #22C55E; }

.email-body {
    padding: 24px;
}

.email-from {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.email-subject {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.email-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.email-content code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--danger);
}

.email-actions {
    display: flex;
    gap: 12px;
}

.email-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.email-btn.approve {
    background: var(--success);
    color: white;
}

.email-btn.reject {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.email-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .email-scene {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   16. SECTION 7: TRUSTED DEVICES
   ============================================ */
.devices-scene {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.device-card {
    width: 220px;
    padding: 32px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    opacity: 0.4;
    transform: scale(0.9);
}

.device-card.visible {
    opacity: 1;
    transform: scale(1);
}

.device-card.trusted {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.2);
}

.device-card.unknown {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.2);
}

.device-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-light);
}

.device-card.trusted .device-icon svg {
    color: var(--success);
}

.device-card.unknown .device-icon svg {
    color: var(--danger);
}

.device-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.device-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.device-shield {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.device-card.trusted .device-shield {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.device-card.unknown .device-shield {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .devices-scene {
        gap: 20px;
    }
    .device-card {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   17. SECTION 8: LOGIN SECURITY
   ============================================ */
.login-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.login-feature {
    padding: 32px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.login-feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.login-feature:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.login-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.login-feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.login-feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .login-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .login-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   18. SECTION 9: DASHBOARD TOUR
   ============================================ */
.dashboard-tour {
    position: relative;
    margin-top: 60px;
}

.dashboard-stack {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/10;
}

.dashboard-screen {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-screen.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.dashboard-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-screen-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(5, 8, 22, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.dashboard-tab {
    padding: 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.dashboard-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

/* ============================================
   19. SECTION 10: COMPARE
   ============================================ */
.compare-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.compare-side {
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.compare-side.typical {
    background: rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.2);
}

.compare-side.accessguard {
    background: rgba(34, 197, 94, 0.03);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.1);
}

.compare-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.compare-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-side.typical .compare-icon {
    background: rgba(239, 68, 68, 0.1);
}

.compare-side.accessguard .compare-icon {
    background: rgba(34, 197, 94, 0.1);
}

.compare-icon svg {
    width: 24px;
    height: 24px;
}

.compare-side.typical .compare-icon svg {
    color: var(--danger);
}

.compare-side.accessguard .compare-icon svg {
    color: var(--success);
}

.compare-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.compare-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compare-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.compare-list li.active {
    opacity: 1;
    color: var(--text-primary);
}

.compare-list li .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.compare-side.accessguard .compare-list li.active .step-num {
    background: var(--success);
    color: white;
}

@media (max-width: 1024px) {
    .compare-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   20. SECTION 11: PRICING
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.pricing-card.pro {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.1);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient-gold);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.pricing-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pricing-features li svg.check {
    color: var(--success);
}

.pricing-features li svg.lock {
    color: var(--warning);
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pricing-btn.free {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.pricing-btn.free:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pricing-btn.pro {
    background: var(--gradient-gold);
    color: white;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

.pricing-btn.pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5);
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* ============================================
   21. SECTION 12: FINAL CTA
   ============================================ */
.final-cta {
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.final-cta .story-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

.final-cta .story-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.cta-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}

.cta-link:hover {
    color: var(--text-primary);
}

.cta-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   22. FOOTER - COMPLETE
   ============================================ */
.footer {
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 80px 24px 40px;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Newsletter Section */
.footer-newsletter {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-newsletter h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

/* Footer Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    font-style: italic;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 16px 30px;
    }
    
    .footer-newsletter h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   23. FLOATING BUTTONS
   ============================================ */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 998;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.floating-btn:hover {
    transform: translateY(-4px);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.floating-btn svg {
    width: 20px;
    height: 20px;
}

.floating-btn.back-to-top {
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
}

.floating-btn.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .floating-buttons {
        right: 16px;
        bottom: 16px;
    }
    
    .floating-btn {
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   24. NEWSLETTER POPUP
   ============================================ */
.newsletter-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    padding: 20px;
}

.newsletter-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.newsletter-popup {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.newsletter-popup-overlay.active .newsletter-popup {
    transform: scale(1);
}

.newsletter-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.newsletter-popup h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.newsletter-popup p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.newsletter-popup .newsletter-form {
    flex-direction: column;
    max-width: 100%;
}

.newsletter-popup .newsletter-form button {
    width: 100%;
}

.newsletter-popup-privacy {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

.newsletter-popup-privacy a {
    color: var(--primary-light);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .newsletter-popup {
        padding: 32px 24px;
    }
    
    .newsletter-popup h3 {
        font-size: 22px;
    }
}

/* ============================================
   25. COOKIE CONSENT
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    z-index: 9998;
    box-shadow: var(--shadow-lg);
    transform: translateY(150%);
    transition: transform var(--transition-base);
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cookie-consent p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
}

.cookie-consent-actions button {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cookie-btn-accept {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ============================================
   26. UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.hidden { display: none !important; }
.visible-block { display: block !important; }

/* ============================================
   27. PAGE-SPECIFIC STYLES
   ============================================ */

/* Page Header (for inner pages) */
.page-header {
    padding: 160px 24px 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.page-header p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Content Section (for inner pages) */
.content-section {
    padding: 80px 24px;
    position: relative;
    z-index: 2;
}

.content-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Feature Cards (for features page) */
.feature-card {
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.feature-card-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.1);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   28. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   29. ACCESSIBILITY
   ============================================ */
@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;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 10000;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   30. PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .progress-nav,
    .floating-buttons,
    .newsletter-popup-overlay,
    .cookie-consent,
    .bg-grid,
    .bg-glow,
    .particles {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
/* Logo with Text */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all var(--transition-base);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
}

.navbar.scrolled .nav-logo img {
    width: 38px;
    height: 38px;
}

.navbar.scrolled .nav-logo-text {
    font-size: 16px;
}

/* Mobile Logo */
@media (max-width: 1024px) {
    .nav-logo-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-logo img {
        width: 40px;
        height: 40px;
    }
    
    .navbar.scrolled .nav-logo img {
        width: 35px;
        height: 35px;
    }
}
/* ============================================
   TERMS & PRIVACY PAGES
   ============================================ */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.terms-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.terms-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.terms-list {
    list-style: none;
    margin: 16px 0;
    padding-left: 0;
}

.terms-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.terms-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

.terms-section a {
    color: var(--primary-light);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.terms-section a:hover {
    color: var(--accent);
}

.contact-info {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: var(--primary-light);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .terms-section {
        padding: 24px;
        margin-bottom: 32px;
    }
    
    .terms-section h2 {
        font-size: 20px;
    }
    
    .terms-list li {
        padding-left: 28px;
        font-size: 14px;
    }
}
/* Newsletter Popup */
.newsletter-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.newsletter-popup-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.newsletter-popup {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.newsletter-popup-overlay.active .newsletter-popup {
    transform: scale(1);
}

.newsletter-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
/* ==========================================================
   NEKSIO – GLOBAL FIXES & LIGHT/DARK THEME (2026 refresh)
   ========================================================== */

/* ---- Light theme overrides (opt-in via html.light-theme) ---- */
html.light-theme {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.10);
}
html.light-theme body { background: var(--bg-primary); color: var(--text-primary); }
html.light-theme .bg-grid,
html.light-theme .bg-glow,
html.light-theme .particles { opacity: 0.35; }

/* ---- Floating actions stack (email + theme toggle) ---- */
.floating-email-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    box-shadow: var(--shadow-md);
}
.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}
.theme-toggle-btn svg { width: 22px; height: 22px; }
.theme-toggle-btn .icon-sun { display: none; }
.theme-toggle-btn .icon-moon { display: block; }
html.light-theme .theme-toggle-btn .icon-sun { display: block; }
html.light-theme .theme-toggle-btn .icon-moon { display: none; }
@media (max-width: 768px) {
    .theme-toggle-btn { width: 44px; height: 44px; }
    .theme-toggle-btn svg { width: 18px; height: 18px; }
}

/* ---- CONTACT: options cards center + fade-in animation ---- */
#options .story-container > div[style*="grid-template-columns"] {
    max-width: 1080px;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center;
}
#options .story-container > div[style*="grid-template-columns"] > div {
    opacity: 0;
    transform: translateY(20px);
    animation: neksioCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
#options .story-container > div[style*="grid-template-columns"] > div:nth-child(1) { animation-delay: 0.05s; }
#options .story-container > div[style*="grid-template-columns"] > div:nth-child(2) { animation-delay: 0.15s; }
#options .story-container > div[style*="grid-template-columns"] > div:nth-child(3) { animation-delay: 0.25s; }
#options .story-container > div[style*="grid-template-columns"] > div:nth-child(4) { animation-delay: 0.35s; }
#options .story-container > div[style*="grid-template-columns"] > div:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
}
@keyframes neksioCardIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- CONTACT: community tag cards, ensure visible & centered ---- */
#community .story-container > div > div[style*="grid-template-columns"] {
    max-width: 820px;
    margin: 24px auto 0;
    justify-content: center;
}
#community .story-container span[style*="border-radius: var(--radius-full)"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: var(--glass-bg) !important;
    color: var(--text-primary) !important;
    opacity: 0;
    transform: translateY(12px);
    animation: neksioCardIn 0.6s ease-out forwards;
}
#community .story-container span[style*="border-radius: var(--radius-full)"]:nth-child(1) { animation-delay: 0.05s; }
#community .story-container span[style*="border-radius: var(--radius-full)"]:nth-child(2) { animation-delay: 0.12s; }
#community .story-container span[style*="border-radius: var(--radius-full)"]:nth-child(3) { animation-delay: 0.19s; }
#community .story-container span[style*="border-radius: var(--radius-full)"]:nth-child(4) { animation-delay: 0.26s; }
#community .story-container span[style*="border-radius: var(--radius-full)"]:nth-child(5) { animation-delay: 0.33s; }

/* ---- DOCUMENTATION: Ready to Secure CTA – properly centered ---- */
.faq-cta-section {
    padding: 100px 24px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.05) 50%, transparent 100%);
}
.faq-cta-section .cta-container {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.faq-cta-section .cta-container h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.15;
}
.faq-cta-section .cta-container p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto 32px;
}
.faq-cta-section .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ---- CHANGELOG: stats cards – distributed & centered ---- */
#stats .story-container > div[style*="grid-template-columns"] {
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    justify-content: center;
    gap: 20px;
}
#stats .story-container > div[style*="grid-template-columns"] > div {
    opacity: 0;
    transform: translateY(16px);
    animation: neksioCardIn 0.6s ease-out forwards;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
#stats .story-container > div[style*="grid-template-columns"] > div:nth-child(1) { animation-delay: 0.05s; }
#stats .story-container > div[style*="grid-template-columns"] > div:nth-child(2) { animation-delay: 0.12s; }
#stats .story-container > div[style*="grid-template-columns"] > div:nth-child(3) { animation-delay: 0.19s; }
#stats .story-container > div[style*="grid-template-columns"] > div:nth-child(4) { animation-delay: 0.26s; }
#stats .story-container > div[style*="grid-template-columns"] > div:nth-child(5) { animation-delay: 0.33s; }
#stats .story-container > div[style*="grid-template-columns"] > div:nth-child(6) { animation-delay: 0.40s; }
#stats .story-container > div[style*="grid-template-columns"] > div:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
}

/* ---- GALLERY page ---- */
.gallery-hero {
    padding: 140px 24px 60px;
    text-align: center;
}
.gallery-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}
.gallery-hero p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 8px;
}
.gallery-section { padding: 40px 24px 120px; }
.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.gallery-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    opacity: 0;
    transform: translateY(16px);
    animation: neksioCardIn 0.6s ease-out forwards;
}
.gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
}
.gallery-card .thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(6,182,212,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    overflow: hidden;
}
.gallery-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-card .meta { padding: 18px 20px; }
.gallery-card .meta h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.gallery-card .meta p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ---- Light theme: footer + newsletter visibility fixes ---- */
html.light-theme .footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border);
}
html.light-theme .footer-newsletter h3,
html.light-theme .footer-column h4,
html.light-theme .footer-logo-text {
    color: var(--text-primary);
}
html.light-theme .footer-newsletter p,
html.light-theme .footer-column ul li a,
html.light-theme .footer-tagline,
html.light-theme .footer-copyright {
    color: var(--text-secondary);
}
html.light-theme .newsletter-form input {
    background: #FFFFFF;
    border-color: var(--border);
    color: var(--text-primary);
}
html.light-theme .newsletter-form input::placeholder { color: var(--text-muted); }
html.light-theme .footer-newsletter,
html.light-theme .footer-bottom { border-color: var(--border); }

/* ================================================================
   LIGHT THEME – NAVBAR / MOBILE MENU / POPUP / MISC OVERRIDES
   (fixes dark-navbar-on-light-page issue)
   ================================================================ */
html.light-theme .navbar {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
html.light-theme .navbar.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.10);
}
html.light-theme .nav-logo,
html.light-theme .nav-logo-text {
    color: #0F172A !important;
}
html.light-theme .nav-menu a {
    color: #334155 !important;
}
html.light-theme .nav-menu a:hover,
html.light-theme .nav-menu a.active {
    color: #0F172A !important;
    background: rgba(15, 23, 42, 0.06) !important;
}
html.light-theme .mobile-toggle {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #0F172A !important;
}
html.light-theme .mobile-toggle:hover {
    background: rgba(15, 23, 42, 0.10) !important;
}
html.light-theme .mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0F172A !important;
}
html.light-theme .mobile-menu a { color: #0F172A !important; }

/* Popup close button visible in light mode */
html.light-theme .newsletter-popup-overlay { background: rgba(15, 23, 42, 0.55); }
html.light-theme .newsletter-popup {
    background: #FFFFFF;
    border-color: var(--border);
}
html.light-theme .newsletter-popup-close {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.10);
    color: #334155;
}
html.light-theme .newsletter-popup-close:hover {
    background: rgba(15, 23, 42, 0.12);
    color: #0F172A;
}

/* Card/section backgrounds that used dark rgba should soften in light mode */
html.light-theme .glass,
html.light-theme .story-container [class*="card"],
html.light-theme .feature-card,
html.light-theme .pricing-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
}
html.light-theme section { color: var(--text-primary); }
html.light-theme h1, html.light-theme h2, html.light-theme h3,
html.light-theme h4, html.light-theme h5, html.light-theme h6 { color: var(--text-primary); }
html.light-theme p, html.light-theme li, html.light-theme span,
html.light-theme label { color: inherit; }

/* Contact form inputs in light */
html.light-theme .form-group input,
html.light-theme .form-group textarea,
html.light-theme .form-group select {
    background: #FFFFFF;
    color: #0F172A;
    border-color: var(--border);
}
html.light-theme .form-group label { color: #334155; }

/* Toast for contact form response */
.neksio-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all .35s cubic-bezier(.22,1,.36,1);
    max-width: 92vw;
}
.neksio-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.neksio-toast.success { border-color: rgba(16,185,129,.45); }
.neksio-toast.error { border-color: rgba(239,68,68,.45); }

/* Auto-injected floating theme toggle (non-index pages) */
.theme-toggle-btn.neksio-floating-theme {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 997;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #F8FAFC;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform .25s ease, background .25s ease;
}
.theme-toggle-btn.neksio-floating-theme:hover { transform: translateY(-50%) scale(1.08); }
.theme-toggle-btn .icon-sun { display: none; }
html.light-theme .theme-toggle-btn .icon-moon { display: none; }
html.light-theme .theme-toggle-btn .icon-sun { display: block; }
html.light-theme .theme-toggle-btn.neksio-floating-theme {
    background: rgba(255,255,255,0.9);
    border-color: rgba(15,23,42,0.12);
    color: #0F172A;
    box-shadow: 0 8px 24px rgba(15,23,42,0.10);
}
@media (max-width: 768px) {
    .theme-toggle-btn.neksio-floating-theme { left: 14px; width: 40px; height: 40px; }
}
