/* Homepage Authority Design System v2.0 - Cloudflare/DigitalOcean Sophistication */
:root {
    /* Primary Color Palette */
    --navy-primary: #0A2540;
    --cyber-cyan: #00D4FF;
    --indigo-accent: #6366F1;
    --dark-surface: #0F172A;
    
    /* Text Colors */
    --text-primary: #1A1A2A;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-white: #FFFFFF;
    --text-light: #E2E8F0;
    
    /* Card & Interface Colors */
    --card-bg: #FFFFFF;
    --card-border: #E5E7EB;
    --card-hover: #F1F5F9;
    --card-shadow: rgba(10, 37, 64, 0.1);
    
    /* Effects */
    --gradient-start: var(--navy-primary);
    --gradient-end: var(--cyber-cyan);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.12);
    --blur-backdrop: blur(12px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section - Full Viewport Impact */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(10, 37, 64, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.04) 0%, transparent 55%);
    z-index: 1;
}

#infraMap {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: var(--blur-backdrop);
    -webkit-backdrop-filter: var(--blur-backdrop);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    text-align: center;
    animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    line-height: 1.2;
}

.hero-content .lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 24px;
    opacity: 0.95;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: var(--blur-backdrop);
    -webkit-backdrop-filter: var(--blur-backdrop);
    padding: 14px 28px;
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.18);
}

.stat-highlight {
    color: var(--cyber-cyan);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 0.4;
}

.btn-primary {
    background: var(--cyber-cyan);
    color: var(--navy-primary);
    border: none;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyber-cyan);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.25);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .meta-item {
        flex-direction: column;
        text-align: center;
        padding: 10px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* Stats Grid Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 80px auto;
    animation: fadeInUp 0.6s ease-out 1s;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 20px;
    }
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--card-border), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: var(--cyber-cyan);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-primary);
    margin-bottom: 8px;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .stat-card {
        padding: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Performance */
html {
    scroll-behavior: smooth;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    border: none;
}

/* Accessibility */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid var(--cyber-cyan);
    outline-offset: 3px;
}

/* Animations - 60fps CSS Only */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Canvas Animation */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Desktop Optimizations */
@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .meta-item {
        padding: 8px 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 1rem;
        padding: 16px 28px;
    }
}
