/* ==============================================================================
   PURPOSE: High-Density Iridescent Tokens, Cinematic Glass & Kinetic Custom Cursor
   DEPENDENCIES: None (Base Global Core Sheet)
   MODIFICATION HISTORY: 2026.07.23 - Appended Status Badges & Telemetry Button Tokens
   ============================================================================== */

/* 1. ULTRA-PREMIUM EDITORIAL FONTS INGESTION */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Space+Grotesk:wght@400;500;600&family=Syne:wght@700;800&display=swap');

/* 2. UNIVERSAL DESIGN TOKENS (DEFAULT ADAPTIVE LIGHT MODE) */
:root, html[data-theme="light"] {
    --color-surface-base: #F6F8FA;
    --color-surface-card: rgba(255, 255, 255, 0.7);
    --color-surface-elevated: rgba(255, 255, 255, 0.92);
    
    --color-border-subtle: rgba(99, 102, 241, 0.08);
    --color-border-muted: rgba(15, 23, 42, 0.1);
    --color-border-bright: rgba(99, 102, 241, 0.28);
    
    --color-text-heading: #060A12;
    --color-text-body: #3A4659;
    --color-text-muted: #7E8E9F;
    
    --color-brand-primary: #4F46E5;
    --color-brand-secondary: #0284C7;
    --color-status-success: #059669;
    --color-status-danger: #EF4444;
    
    --gos-shadow-rgb: 15, 23, 42;
    --gos-mesh-opacity: 0.98;

    --type-font-primary: 'Space Grotesk', -apple-system, sans-serif;
    --type-font-display: 'Syne', sans-serif;
    --type-font-mono: 'JetBrains Mono', monospace;
    
    --type-display-xl: clamp(2.25rem, 5.5vw, 4.85rem);
    --type-heading-lg: clamp(1.65rem, 3.5vw, 2.75rem);
    --type-heading-md: clamp(1.20rem, 2vw, 1.75rem);
    --type-body-lead: clamp(1.00rem, 1.5vw, 1.25rem);
    
    --type-tracking-tighter: -0.05em;
    --type-tracking-tight: -0.01em;
    
    --radius-interactive-sm: 6px;
    --radius-interactive-md: 14px;
    --radius-module-lg: 24px;
    --radius-pill: 9999px;
}

/* 3. HARDENED DARK THEME SYSTEM OVERRIDES CASCADE */
html[data-theme="dark"] {
    --color-surface-base: #010103;
    --color-surface-card: rgba(6, 6, 10, 0.65);
    --color-surface-elevated: rgba(12, 12, 18, 0.85);
    
    --color-border-subtle: rgba(255, 255, 255, 0.03);
    --color-border-muted: rgba(255, 255, 255, 0.08);
    --color-border-bright: rgba(16, 185, 129, 0.28);
    
    --color-text-heading: #FAFAFC;
    --color-text-body: #A1B0CB;
    --color-text-muted: #64748B;
    
    --color-brand-primary: #6366F1;
    --color-brand-secondary: #10B981;
    --color-status-success: #10B981;
    
    --gos-shadow-rgb: 0, 0, 0;
    --gos-mesh-opacity: 0.8;
}

/* 4. BASE LAYER DOCUMENT RESETS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--color-surface-base);
    color: var(--color-text-body);
    font-family: var(--type-font-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

/* 5. HARDENED NON-TOUCH OPTICAL CURSOR ENGINE CONSTRAINTS */
@media (hover: hover) and (pointer: fine) {
    html, body, a, button, input, select, textarea, .c-btn {
        cursor: none !important;
    }
    
    .c-os-pointer-dot {
        width: 6px;
        height: 6px;
        background-color: var(--color-brand-primary);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 100000;
        transform: translate(-50%, -50%);
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    
    .c-os-pointer-ring {
        width: 32px;
        height: 32px;
        border: 1px solid var(--color-brand-secondary);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        will-change: transform;
        transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                    height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                    background-color 0.4s ease, 
                    border-color 0.4s ease;
    }
    
    html[data-theme="dark"] .c-os-pointer-dot {
        background-color: var(--color-brand-secondary);
    }
    
    html[data-theme="dark"] .c-os-pointer-ring {
        border-color: rgba(16, 185, 129, 0.4);
    }

    .c-os-pointer-ring.is-locked-on-target {
        width: 48px;
        height: 48px;
        background-color: rgba(99, 102, 241, 0.05);
        border-color: var(--color-brand-primary);
    }

    html[data-theme="dark"] .c-os-pointer-ring.is-locked-on-target {
        background-color: rgba(16, 185, 129, 0.08);
        border-color: var(--color-brand-secondary);
    }

    .c-os-pointer-dot.is-locked-on-target {
        transform: translate(-50%, -50%) scale(1.4);
    }
}

@media (hover: none) {
    .c-os-pointer-dot, .c-os-pointer-ring {
        display: none !important;
    }
}

/* 6. DYNAMIC GENERATIVE CANVAS HOUSING STRUCTURES */
.s-global-environment {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.s-global-environment__mesh {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 25%, rgba(99, 102, 241, 0.28) 0%, transparent 45%),
                radial-gradient(circle at 80% 75%, rgba(6, 182, 212, 0.22) 0%, transparent 50%),
                radial-gradient(circle at 50% 10%, rgba(236, 72, 153, 0.15) 0%, transparent 40%);
    filter: blur(130px);
    opacity: var(--gos-mesh-opacity);
    animation: globalFabricDrift 20s ease-in-out infinite alternate;
    transition: opacity 0.5s ease;
}

@keyframes globalFabricDrift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(3%, 2%) scale(1.04) rotate(2deg); }
}

/* 7. CRYSTAL CAPSULE SYSTEM NAVIGATION BAR */
.c-nav-capsule {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1280px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03), inset 0 1px 1px #FFFFFF;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] .c-nav-capsule {
    background: rgba(10, 10, 15, 0.5);
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.c-nav-capsule--scrolled {
    top: 12px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .c-nav-capsule--scrolled {
    background: rgba(6, 6, 9, 0.75);
}

.c-nav-capsule__logo {
    font-family: var(--type-font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-text-heading);
    text-decoration: none;
    letter-spacing: var(--type-tracking-tighter);
}

.c-nav-capsule__menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.c-nav-capsule__link {
    font-family: var(--type-font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-body);
    text-decoration: none;
}

.c-nav-capsule__link:hover { color: var(--color-text-heading); }

.c-nav-toggle-icon-btn {
    width: 36px;
    height: 36px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-muted);
    border-radius: 50%;
    color: var(--color-text-heading);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(var(--gos-shadow-rgb), 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-nav-toggle-icon-btn:hover {
    border-color: var(--color-border-bright);
    transform: scale(1.05);
}

.c-nav-toggle-icon-btn .icon-sun { display: block; }
.c-nav-toggle-icon-btn .icon-moon { display: none; }

html[data-theme="dark"] .c-nav-toggle-icon-btn .icon-sun { display: none; }
html[data-theme="dark"] .c-nav-toggle-icon-btn .icon-moon { display: block; }

/* 8. HARDENED ATOMIC ACTION BUTTON COMPONENTS DEFINITIONS */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--type-font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

.c-btn--primary {
    background: var(--color-text-heading) !important;
    color: var(--color-surface-base) !important;
    border: 1px solid var(--color-text-heading) !important;
    box-shadow: 0 10px 25px rgba(var(--gos-shadow-rgb), 0.08);
}

.c-btn--secondary {
    background: var(--color-surface-card) !important;
    border: 1px solid var(--color-border-bright) !important;
    color: var(--color-text-heading) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.c-btn--telemetry {
    background: rgba(99, 102, 241, 0.1) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: var(--color-brand-primary) !important;
    padding: 8px 18px !important;
    font-size: 0.8125rem !important;
    font-family: var(--type-font-mono) !important;
}

.c-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(var(--gos-shadow-rgb), 0.15);
}

/* 9. MONOSPACE STATUS BADGE INDICATOR COMPONENT */
.c-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--type-font-mono);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.22);
    color: var(--color-brand-primary);
    box-sizing: border-box;
}

.c-badge-status__indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.c-badge-status--success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.28);
    color: var(--color-status-success);
}

.c-badge-status--diagnostic {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.25);
    color: var(--color-brand-secondary);
}

.c-badge-status--warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.c-badge-status--critical {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-status-danger);
}

/* 10. REUSABLE TELEMETRY HARDWARE PANELS */
.c-os-hardware-monitor {
    background: var(--color-surface-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-interactive-md);
    padding: 24px;
    box-shadow: 0 30px 60px rgba(var(--gos-shadow-rgb), 0.02);
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

.c-os-hardware-monitor:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-bright);
}

@media (max-width: 768px) {
    .c-nav-capsule__menu { display: none; }
}