/* ═══════════════════════════════════════════════════════════
   shared-nav-footer.css
   Shared Nav + Footer styles for all Tectonian pages.
   Link this in <head>: <link rel="stylesheet" href="shared-nav-footer.css">
   ═══════════════════════════════════════════════════════════ */


/* ── Nav Bar ── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    height: 70px;
    display: flex;
    justify-content: center;
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-inner .logo {
    flex-shrink: 0;
}

.nav-inner .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Legal/secondary pages: nav links right-aligned instead of centered */
.legal-page .nav-inner .nav-links {
    position: static;
    transform: none;
    margin-left: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    padding: 4px;
    margin-left: 1rem;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary, #f0f2f5);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-primary, #f0f2f5);
    cursor: pointer;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding: 4px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

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

.nav-links a {
    color: var(--text-secondary, #8a8f9d);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.nav-links a:hover {
    color: var(--text-primary, #f0f2f5);
}

.nav-links .btn {
    margin-left: 0.5rem;
}

.nav-links .btn:hover {
    transform: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent, #4a9eff);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-bright, #6bb3ff);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-elevated, #1a1a24);
    color: var(--text-primary, #f0f2f5);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

.btn-secondary:hover {
    background: var(--bg-node, #1e2230);
    border-color: rgba(255, 255, 255, 0.12);
}


/* Hide mobile-only CTA on desktop */
.nav-mobile-cta {
    display: none;
}

.nav-right .btn {
    padding: .5rem 1rem;
}

/* Dark mode scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
    border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-elevated) var(--bg-deep);
}

/* ── Mobile Nav ── */

@media (max-width: 868px) {
    .nav-inner {
        padding: 0 1.25rem;
    }

    .nav-inner .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        transform: none;
        background: var(--bg-deep, #0a0a0f);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 1.5rem;
        gap: 0.25rem;
        display: none;
        overflow-y: auto;
        z-index: 9999;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-links a {
        padding: 1.15rem 1.5rem;
        font-size: 1.3rem;
        font-weight: 500;
        letter-spacing: -0.01em;
        width: 100%;
        max-width: 300px;
        text-align: center;
        border-radius: 12px;
        color: var(--text-secondary, #ffffff);
        transition: color 0.2s, background 0.2s;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: var(--text-primary, #f0f2f5);
        background: rgba(255, 255, 255, 0.05);
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* Hide desktop CTA, show mobile CTA inside hamburger */
    .nav-desktop-only {
        display: none !important;
    }

    .nav-mobile-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    .nav-mobile-cta .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    .nav-mobile-cta a {
        color: white;
    }
    .nav-mobile-cta .nav-links:hover {
        background: blue;
    }
    .nav-mobile-cta .btn:hover,
    .nav-mobile-cta .btn:active {
        background: #65acfa;
    }
}


/* ═══════════════════════════════════════════════════════════
   Mega Footer
   ═══════════════════════════════════════════════════════════ */

.mega-footer {
    background: #0b0b10;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    border-image: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.25), transparent) 1;
    position: relative;
    overflow-x: hidden;
}

.mega-footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 3rem 10rem;
    display: flex;
    gap: 5rem;
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    width: 320px;
}

.footer-brand-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 240px;
}

.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary, #f0f2f5);
}

.footer-brand-lockup .f-logo {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
}

.footer-brand-lockup .f-logo svg {
    width: 100%;
    height: 100%;
}

.footer-brand-lockup .f-name {
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.footer-brand-tagline {
    font-size: 1rem;
    color: #5b5f6e;
    line-height: 1.6;
    padding-bottom: 1rem;
}

.footer-social-row {
    display: flex;
    gap: 1.65rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.footer-social-row a {
    color: var(--text-muted, #5a5f6d);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social-row a:hover {
    color: var(--text-primary, #f0f2f5);
}

.footer-social-row a svg {
    width: 20px;
    height: 20px;
}

.footer-links-group {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted, #5a5f6d);
    margin-bottom: 1.25rem;
}

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

.footer-col ul li a {
    color: var(--text-secondary, #8a8f9d);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--text-primary, #f0f2f5);
}

.soon {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent, #4a9eff);
    background: var(--accent-dim, rgba(74, 158, 255, 0.15));
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.35rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.footer-col-brand .soon {
    padding: 0.15rem 5.3rem;
}
.card .soon {
    padding: 0.15rem 7.1rem;
}

.mega-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem 3rem;
}

.mega-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted, #5a5f6d);
}

.mega-footer-powered {
    font-size: 0.8rem;
}

.mega-footer-powered a {
    color: var(--text-muted, #5a5f6d);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mega-footer-powered a:hover {
    opacity: 1;
    color: var(--text-secondary, #8a8f9d);
}
.email {
    color: #4a9eff;
}
/* Footer */
        /* Newsletter */
        .newsletter-section {
            padding: 3rem 2rem 5rem;
            display: flex;
            justify-content: center;
        }

/* ── Footer Responsive — Tablet ── */

@media (max-width: 1000px) {
    .mega-footer-main {
        flex-direction: column;
        gap: 3rem;
        padding: 5rem 2rem 5rem;
    }

    .footer-col-brand {
        width: auto;
        align-items: center;
        text-align: center;
    }

    .footer-brand-content {
        align-items: center;
        max-width: none;
    }

    .footer-social-row {
        justify-content: center;
        margin-top: 0.5rem;
        padding-top: 0;
    }

    .footer-links-group {
        gap: 2rem;
        border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
        border-image: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.25), transparent) 1;
        padding-top: 2.5rem;
    }

    .footer-col {
        flex: 1;
    }

    .mega-footer-bottom {
        padding: 1.25rem 1.5rem;
    }
}


/* ── Footer Responsive — Mobile ── */

@media (max-width: 600px) {
    .mega-footer-main {
        padding: 4rem 1.5rem 4rem;
        gap: 2.5rem;
    }

    .footer-links-group {
        flex-wrap: wrap;
        gap: 2rem;
        padding-top: 2rem;
    }

    .footer-col {
        flex: none;
        width: calc(50% - 1rem);
    }

    .footer-col:last-child {
        width: 100%;
    }

    .mega-footer-bottom-inner {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}