:root {
    --bg-color: #f9fafb;
    --primary-text: #111827;
    --secondary-text: #4b5563;
    --accent-color: #0071e3;
    --accent-hover: #005bb5;
    --accent-gradient: linear-gradient(135deg, #0071e3 0%, #00b4d8 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --glass-backdrop: blur(12px);

    /* Dark HUD Theme Variables */
    --hud-bg: #162A45;
    /* Lighter Navy Blue */
    --hud-border: #38bdf8;
    /* Cyan/Light Blue */
    --hud-text: #f3f4f6;
    --hud-text-dim: #9ca3af;
    --hud-glow: 0 0 10px rgba(56, 189, 248, 0.3);

    --nav-bg: var(--hud-bg);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--primary-text);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Navbar - Dark HUD Style */
header {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hud-text);
    text-decoration: none;
    letter-spacing: -0.03em;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--hud-border);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--hud-border);
}

.nav-links a {
    margin-left: 32px;
    text-decoration: none;
    color: var(--hud-text-dim);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--hud-border);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--hud-border);
}

.nav-links a:hover {
    color: var(--hud-text);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Common Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section Styles (Shared base) */
h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.04em;
    color: var(--primary-text);
    font-weight: 700;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    padding: 14px 32px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
    filter: brightness(1.1);
    background: var(--accent-hover);
}

/* Footer */
footer {
    background: #fff;
    padding: 4rem 0;
    border-top: 1px solid #f3f4f6;
    color: var(--secondary-text);
    font-size: 0.875rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-text);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Navbar stack - Compact version for mobile */
    nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.25rem;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        display: inline-block;
        white-space: nowrap;
        /* Inherit or explicitly match button style */
        color: var(--hud-text-dim);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 9999px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:hover {
        border-color: var(--hud-border);
        color: var(--hud-text);
        box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
        background: rgba(255, 255, 255, 0.1);
    }

    /* Typography scale down */
    h1 {
        font-size: 3rem;
        /* Reduced from 5rem */
    }

    .hero {
        padding: 6rem 1rem 4rem;
    }

    /* Layout adjustments */
    .container {
        padding: 0 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    /* Footer stack */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .footer-links a {
        margin: 0;
    }

    /* Pages specific */
    .page-content {
        padding-top: 4rem !important;
        /* Adjust specific spacing */
    }
}