/* Enterprise Design System - Design Tokens & Utilities */

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
    /* Colors */
    --enterprise-primary: #0B5F2A; /* Deep Infrastructure Green */
    --enterprise-secondary: #0E141B; /* Charcoal Black */
    --enterprise-background: #FAFBFC; /* Soft White */
    --enterprise-accent: #4DFF88; /* Electric Lime */
    --enterprise-muted: #8A9199; /* Muted Gray */
    
    /* Spacing Scale */
    --space-xs: 0.5rem; /* 8px */
    --space-sm: 1rem; /* 16px */
    --space-md: 1.5rem; /* 24px */
    --space-lg: 2rem; /* 32px */
    --space-xl: 3rem; /* 48px */
    --space-2xl: 4rem; /* 64px */
    --space-3xl: 6rem; /* 96px */
    --space-4xl: 8rem; /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.5rem; /* 8px */
    --radius-md: 0.75rem; /* 12px */
    --radius-lg: 1rem; /* 16px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(11, 95, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(11, 95, 42, 0.1), 0 2px 4px -1px rgba(11, 95, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(11, 95, 42, 0.1), 0 4px 6px -2px rgba(11, 95, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(11, 95, 42, 0.1), 0 10px 10px -5px rgba(11, 95, 42, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(11, 95, 42, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GRADIENT UTILITIES
   ============================================ */

.gradient-primary {
    background: linear-gradient(135deg, #0B5F2A 0%, #0E141B 100%) !important;
}

.gradient-primary-transparent {
    background: linear-gradient(135deg, #0B5F2A 0%, transparent 100%) !important;
}

.gradient-accent {
    background: linear-gradient(135deg, #0B5F2A 0%, #4DFF88 100%) !important;
}

.gradient-green-charcoal {
    background: linear-gradient(135deg, #0B5F2A 0%, #0E141B 100%) !important;
}

.gradient-green-transparent {
    background: linear-gradient(135deg, #0B5F2A 0%, transparent 100%) !important;
}

/* ============================================
   BLUEPRINT GRID PATTERN
   ============================================ */

.blueprint-grid {
    background-image: 
        linear-gradient(to right, rgba(11, 95, 42, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 95, 42, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blueprint-grid-dark {
    background-image: 
        linear-gradient(to right, rgba(77, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(77, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   DATA PARTICLES ANIMATION
   ============================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes drawLine {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
    }
}

.animate-float {
    animation: floatCard 3s ease-in-out infinite;
}

.animate-draw-line {
    animation: drawLine 2s ease-out forwards;
}

.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--enterprise-accent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

/* ============================================
   ENTERPRISE BUTTON STYLES
   ============================================ */

.btn-enterprise-primary {
    background: var(--enterprise-primary) !important;
    color: #FFFFFF !important;
    padding: 0.875rem 2rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    transition: all var(--transition-base) !important;
    box-shadow: var(--shadow-md) !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-enterprise-primary:hover {
    background: #0A5425 !important;
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-2px) !important;
}

.btn-enterprise-secondary {
    background: transparent !important;
    color: var(--enterprise-primary) !important;
    padding: 0.875rem 2rem !important;
    border: 2px solid var(--enterprise-primary) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    transition: all var(--transition-base) !important;
    cursor: pointer !important;
}

.btn-enterprise-secondary:hover {
    background: var(--enterprise-primary) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* ============================================
   KPI CARD STYLES
   ============================================ */

.kpi-card {
    background: #FFFFFF !important;
    border: 2px solid rgba(11, 95, 42, 0.1) !important;
    border-radius: var(--radius-md) !important;
    padding: 2rem !important;
    text-align: center !important;
    transition: all var(--transition-base) !important;
    box-shadow: var(--shadow-sm) !important;
}

.kpi-card:hover {
    border-color: var(--enterprise-primary) !important;
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-4px) !important;
}

.kpi-value {
    font-size: 3rem !important;
    font-weight: 900 !important;
    color: var(--enterprise-primary) !important;
    font-family: 'Inter', monospace !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
}

.kpi-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--enterprise-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

/* ============================================
   TIMELINE STYLES
   ============================================ */

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--enterprise-primary), var(--enterprise-accent));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--enterprise-primary);
    border: 4px solid #FFFFFF;
    box-shadow: 0 0 0 4px rgba(11, 95, 42, 0.1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* ============================================
   TRUST BAR STYLES
   ============================================ */

.trust-bar {
    background: #FAFBFC;
    border-top: 1px solid rgba(11, 95, 42, 0.1);
    border-bottom: 1px solid rgba(11, 95, 42, 0.1);
    padding: 2rem 0;
}

.client-logo {
    opacity: 0.6;
    transition: opacity var(--transition-base);
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

/* Bottom Sticky CTA for Mobile */
@media (max-width: 768px) {
    .mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: #0B5F2A;
        padding: 1rem;
        box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-sticky-cta a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        background: white;
        color: #0B5F2A;
        font-weight: 600;
        border-radius: 0.5rem;
    }
    
    /* Tap-friendly spacing - minimum 44px touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Vertical card stacking */
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Improved mobile menu */
    .mobile-menu-panel {
        width: 100%;
        max-width: 100%;
    }
    
    .timeline-line {
        left: 1.5rem;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 3rem;
    }
    
    .timeline-dot {
        left: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* AA Contrast Ratios */
:root {
    --text-primary: #0E141B; /* 16.8:1 contrast on white */
    --text-secondary: #8A9199; /* 4.5:1 contrast on white - AA compliant */
    --bg-primary: #0B5F2A; /* 7.1:1 contrast with white text */
}

/* Focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4DFF88;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0B5F2A;
    color: white;
    padding: 12px 16px;
    z-index: 100;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-to-main:focus {
    top: 0;
}

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

/* ARIA labels for icons */
.icon-only {
    position: relative;
}

.icon-only::after {
    content: attr(aria-label);
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Readable font sizes - minimum 16px */
body, p, .body {
    font-size: 16px !important;
}

@media (max-width: 640px) {
    body, p, .body {
        font-size: 16px !important;
    }
}

/* Keyboard navigation support */
*:focus-visible {
    outline: 2px solid #4DFF88;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .enterprise-card {
        border: 2px solid #0E141B;
    }
    
    .btn-enterprise-primary {
        border: 2px solid #0E141B;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

