@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* --- The "Anduril" Industrial Palette --- */
    --bg-core: #050505;
    --bg-grid: rgba(255, 255, 255, 0.03);
    --tactical-accent: #FF9F0A; /* Amber for data/warnings */
    
    /* --- The "Apple" Interface Palette --- */
    --primary-blue: #2997FF;    /* Clean Apple Blue */
    --text-main: #F5F5F7;       /* Off-white readable text */
    --text-muted: #86868b;      
    --glass-surface: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-tech: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-core);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    
    /* The "Technical Friction" Grid Background */
    background-image: 
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    overflow-x: hidden;
}

/* --- NAVIGATION (Frosted Glass) --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links { display: flex; gap: 2rem; }
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text-main); }

/* --- HERO SECTION (Cinematic) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#globe-viz {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.4; /* Dimmed to blend with grid */
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto; 
    margin-right: auto;
}

/* --- BUTTONS --- */
.hero-cta { display: flex; gap: 1rem; justify-content: center; }

.btn {
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--text-main);
    color: #000;
    border: 1px solid var(--text-main);
}
.btn-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* --- STATS HUD --- */
.stats-section {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.5);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item { text-align: left; }

.stat-number {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number::before {
    content: '>';
    color: var(--tactical-accent);
    margin-right: 10px;
    font-size: 1.5rem;
    vertical-align: middle;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-tech);
}

/* --- BENTO BOX SOLUTIONS --- */
.solutions-section { padding: 8rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: left; margin-bottom: 4rem; }
.section-title { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; }

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.solution-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 320px;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: var(--text-muted);
}

.solution-icon {
    color: var(--text-main);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.solution-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.solution-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.solution-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: auto;
}

/* --- FOOTER --- */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-size: 0.8rem;
}

.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    color: var(--text-muted); font-family: var(--font-tech); font-size: 0.7rem;
    letter-spacing: 0.2em; opacity: 0.7;
}

/* --- PAGE OVERRIDES (To fix existing pages) --- */
.page-title { color: var(--text-main); }
.mission-quote-container { 
    background: rgba(10,10,10,0.8); 
    border-radius: 24px; 
    border: 1px solid var(--glass-border); 
}

/* Fix Contact Form Dark Mode */
.contact-form-container, .enterprise-container, .support-container, .ai-ml-container, .data-infrastructure-container, .case-studies-container { 
    background: #0A0A0A !important; 
    color: #fff !important; 
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important;
}

.form-input, .form-textarea, .form-select {
    background: #111 !important; 
    border: 1px solid #333 !important; 
    color: #fff !important;
    border-radius: 12px !important;
}

.form-label { color: #ccc !important; }
.close-btn { color: #fff !important; }

/* Responsive Tweaks */
@media (max-width: 768px) {
    .stats-grid { flex-direction: column; gap: 1.5rem; }
    .hero-title { font-size: 3rem; }
}