/* ============================================
   LAYOUT
   Container, sections, navigation, footer.
   Includes responsive overrides for nav/footer.
   ============================================ */

/* ------ Container + section primitives ------ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--acid);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(182, 255, 60, 0.3);
    border-radius: 4px;
    background: rgba(182, 255, 60, 0.05);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 64px;
    max-width: 800px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 0, 13, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--acid);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Language toggle pill */
.lang-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px;
    font-family: var(--font-mono);
    backdrop-filter: blur(8px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 36px;
}

.lang-btn:hover { color: var(--text-primary); }

.lang-btn.active {
    background: linear-gradient(135deg, var(--purple), #6b1fd1);
    color: white;
    box-shadow: 0 0 12px rgba(139, 61, 255, 0.4);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--purple), #6b1fd1);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--border-strong);
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(139, 61, 255, 0.3);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(139, 61, 255, 0.55);
    color: white;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--acid); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom .legal-links {
    display: flex;
    gap: 24px;
}

.footer-bottom .legal-links a {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom .legal-links a:hover { color: var(--text-secondary); }

/* ============================================
   RESPONSIVE (nav, sections, footer)
   ============================================ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav.open .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 0, 13, 0.97);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        gap: 18px;
    }

    section { padding: 70px 0; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .nav-cta { padding: 8px 14px; font-size: 12px; }
    .nav-right { gap: 8px; }
}
