/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    padding: var(--sp-md) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--c-text-main);
}

.nav-menu {
    display: flex;
    gap: var(--sp-lg);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text-muted);
    transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

/* Language Switcher */
.lang-btn {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-main);
    width: 48px;
    height: 48px;
    /* Fixed height to match CTA */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    font-family: var(--f-mono);
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.lang-btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

/* Buttons */
.btn {
    height: 48px;
    /* Fixed height to match Lang Btn */
    padding: 0 28px;
    /* Horizontal padding only, height handles vertical */
    border-radius: var(--r-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    font-family: var(--f-body);
    font-size: 0.95rem;
    /* Ensure font size alignment */
}

.btn-primary {
    background: var(--c-accent);
    color: white;
}

.btn-primary:hover {
    background: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-main);
}

.btn-outline:hover {
    border-color: var(--c-text-main);
    background: white;
    color: black;
}

/* Grid System */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: var(--sp-lg);
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.section-padding {
    padding: var(--sp-xxl) 0;
}

/* Cards */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-lg);
    border-radius: var(--r-md);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--c-text-muted);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: var(--sp-md);
    color: var(--c-accent);
    /* Make icons accent color as base */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG overrides for icons */
.card-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

/* Stat Item */
.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--f-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--sp-xs);
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* --- MOBILE BOTTOM NAV --- */
.bottom-nav {
    display: none;
    /* Hidden on Desktop */
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .section-padding {
        padding: var(--sp-xl) 0;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .display-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {

    /* Hide Desktop Nav Elements */
    .nav-menu,
    .nav-actions .btn {
        display: none !important;
    }

    /* Keep Language Toggle, but maybe make it smaller or position differently? 
       User wants minimal top bar. We'll leave logo + lang toggle. */
    .navbar {
        padding: 15px 0;
        background: rgba(10, 10, 10, 0.95);
        /* More opaque on mobile */
    }

    /* Reset Grids to Single Column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Bottom Navigation */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--c-border);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1001;
        padding-bottom: env(safe-area-inset-bottom);
        /* iOS safe area */
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--c-text-muted);
        gap: 4px;
        flex: 1;
        /* evenly distribute */
        height: 100%;
    }

    .bottom-nav-item svg {
        width: 24px;
        height: 24px;
        stroke-width: 1.5;
        transition: 0.3s;
    }

    .bottom-nav-item span {
        font-size: 10px;
        font-family: var(--f-mono);
        letter-spacing: 1px;
    }

    .bottom-nav-item.active {
        color: var(--c-accent);
    }

    .bottom-nav-item.active svg {
        stroke: var(--c-accent);
        fill: rgba(255, 77, 0, 0.1);
    }

    /* Adjust Hero for Mobile */
    header.section-padding {
        min-height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
        text-align: center;
    }

    .hero-content {
        order: 2;
        /* Visual below title on mobile if needed, or keeping standard order */
    }

    .hero-visual {
        margin-bottom: 30px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content div {
        /* Button container */
        justify-content: center;
    }

    /* Adjust Footer for Bottom Nav spacing */
    .footer {
        padding-bottom: 90px;
        /* Space for bottom nav */
    }
}