/* =============================================================================
   SEMAPHORIC V2 - Palantir-Inspired Dark Precision Theme
   ============================================================================= */

/* CSS Custom Properties */
:root {
    /* ===========================================
       PAPER MODE - Editorial Systems Aesthetic
       =========================================== */
    
    /* Backgrounds - Warm paper tones */
    --bg-primary: #FAF8F5;
    --bg-elevated: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-input: #FFFFFF;
    --bg-hover: #F5F2EE;
    --bg-subtle: #F0EDE8;
    
    /* Text - Ink tones */
    --text-primary: #1A1816;
    --text-secondary: #5B5651;
    --text-tertiary: #8A857D;
    --text-muted: #B5AFA6;
    
    /* Accent - Signal orange (matches logo & SVG) */
    --accent: #F5631A;
    --accent-bright: #FF5722;
    --accent-dark: #C73E12;
    --accent-glow: rgba(232, 77, 28, 0.20);
    --accent-subtle: rgba(232, 77, 28, 0.08);
    --accent-faint: rgba(232, 77, 28, 0.04);
    
    /* Structural - Warm grays */
    --border: #E5E0D8;
    --border-subtle: #EBE7E1;
    --border-hover: rgba(232, 77, 28, 0.5);
    --border-active: var(--accent);
    --divider: #DDD8D0;
    
    /* Grid - Subtle construction lines */
    --grid-line: rgba(0, 0, 0, 0.025);
    --grid-major: rgba(0, 0, 0, 0.045);
    
    /* Status Colors */
    --status-active: #0A9B66;
    --status-warning: #D4940A;
    --status-error: #D93636;
    
    /* Spacing - Museum wall rhythm */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 112px;
    --spacing-4xl: 140px;
    --spacing-5xl: 160px;
    --spacing-6xl: 180px;
    --spacing-7xl: 200px;
    --spacing-8xl: 220px;
    --spacing-9xl: 240px;
    --spacing-10xl: 260px;
    --spacing-11xl: 280px;
    --spacing-12xl: 300px;
    --spacing-13xl: 320px;
    --spacing-14xl: 340px;
    --spacing-15xl: 360px;
    --spacing-16xl: 380px;
    --spacing-17xl: 400px;
    --spacing-18xl: 420px;
    --spacing-19xl: 440px;
    
    /* Typography */
    --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Instrument Serif', 'Georgia', serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
    --font-logo: 'Satoshi', 'IBM Plex Sans', sans-serif;
    
    /* Transitions - Confident, editorial */
    --transition-fast: 150ms ease;
    --transition-base: 250ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 400ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-cinematic: 800ms cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Shadows - Soft, warm */
    --shadow-soft: 0 4px 24px rgba(26, 24, 22, 0.06);
    --shadow-medium: 0 8px 40px rgba(26, 24, 22, 0.08);
    --shadow-lift: 0 12px 48px rgba(26, 24, 22, 0.12);
    
    /* Corner accent size */
    --corner-size: 12px;
    
    /* Content width */
    --content-max: 1200px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html {
    scroll-behavior: smooth;
}

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

/* Fixed background gradient using pseudo-element (GPU accelerated, no scroll repaints) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        var(--bg-primary) 20%,
        #FBF6F1 40%,
        #FDF5EE 60%,
        #FFF8F2 75%,
        #FFF5ED 90%,
        var(--bg-primary) 100%
    );
    pointer-events: none;
}

/* =============================================================================
   Precision Grid Background - Ultra Subtle Blueprint Style
   ============================================================================= */
.precision-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        /* Minor grid - very subtle */
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        /* Major grid - slightly more visible */
        linear-gradient(var(--grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
    background-size: 
        40px 40px,
        40px 40px,
        200px 200px,
        200px 200px;
}

/* Network Canvas */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.2; /* Start subtle, increases on scroll */
    transition: opacity 0.15s ease-out;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 10;
}

/* =============================================================================
   Section Divider
   ============================================================================= */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border) 20%,
        var(--border) 80%,
        transparent 100%
    );
}

.divider-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
}

