/* =============================================================
   LAUNCH YOU — GLOBAL NAVIGATION, FOOTER & LAYOUT
   =============================================================
   
   SINGLE SOURCE OF TRUTH for header, nav, footer, and mobile menu.
   Loaded by every page via: <link rel="stylesheet" href="/2026/assets/global-nav.css">
   
   ⚠️  DO NOT duplicate these styles in individual page <style> blocks.
       If you need to override something (e.g. North Star light/dark mode),
       add ONLY the override in the page stylesheet — not the base rules.
   
   Last updated: 2026-02-04
   ============================================================= */


/* --- Container --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}


/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 60px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    padding: 16px 60px;
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
@media (max-width: 1000px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}


/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img,
.logo img {
    height: 32px;
    width: auto;
}


/* --- Desktop Nav ---
   flex:1 keeps it in the document flow so it CANNOT overlap the CTA buttons.
   DO NOT use position:absolute here — that causes the overlap bug.
*/
.nav {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    min-width: 0;
}
.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text, #fff);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.nav a:hover { opacity: 1; }


/* --- CTA Buttons (Sign In / Get Started) --- */
.nav-cta {
    grid-column: 3;
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    justify-self: end;
    position: relative;
    z-index: 2;
}
.btn {
    display: inline-block;
    font-family: 'Nunito Sans', 'Avenir', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.btn-ghost {
    background: transparent;
    color: var(--text, #fff);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}
.btn-primary {
    background: var(--text, #fff);
    color: var(--black, #000);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255,255,255,0.2);
}


/* --- Theme Toggle (North Star etc.) --- */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text, #fff);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}
.theme-toggle svg { width: 18px; height: 18px; }


/* --- Mobile Toggle --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text, #fff);
    transition: all 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* --- Mobile Menu Overlay --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu a {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.mobile-menu a:hover { opacity: 1; }
.mobile-menu .btn {
    margin-top: 16px;
    padding: 16px 40px;
    font-size: 16px;
}
.mobile-menu a.btn-primary {
    background: #fff;
    color: #000 !important;
    opacity: 1;
}
.mobile-menu .btn-ghost { opacity: 1; }


/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
    background: var(--black, #000);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 32px;
}
.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 14px;
    color: var(--text-muted, rgba(255,255,255,0.5));
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--text, #fff); }
.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-subtle, rgba(255,255,255,0.4));
}
.footer-bottom p {
    font-size: 13px;
    color: inherit;
    max-width: none;
    margin: 0;
}


/* =============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================= */

/* Mobile: hide desktop nav, show hamburger */
@media (max-width: 1000px) {
    .nav { display: none; }
    .nav-cta { display: none; }
    .header { padding: 20px 24px; }
    .mobile-toggle { display: flex; }
    .container { padding: 0 24px; }
    .footer { padding: 60px 0 30px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; gap: 24px; }
}

/* Medium screens: tighten spacing to prevent crowding */
@media (min-width: 1001px) and (max-width: 1400px) {
    .nav { gap: 16px; }
    .nav a { font-size: 13px; }
    .header { padding: 20px 32px; }
    .nav-cta .btn { padding: 12px 20px; font-size: 13px; }
    .container { padding: 0 40px; }
}
