/* ========================================
   Global Navigation (Linear.app style)
   Shared across public pages
   ======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
    transition: background 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.spc-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.spc-logo-link:hover {
    opacity: 0.8;
}

.spc-logo {
    height: 36px;
    width: auto;
}

.spc-logo-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fafafa);
    letter-spacing: -0.02em;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #a1a1aa);
    text-decoration: none;
    border-radius: 8px;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text-primary, #fafafa);
    background: var(--bg-card-hover, rgba(255,255,255,0.06));
}

.nav-link svg {
    width: 14px;
    height: 14px;
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 200px;
    background: var(--bg-secondary, #111113);
    border: 1px solid var(--border-color, rgba(255,255,255,0.06));
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--text-secondary, #a1a1aa);
    text-decoration: none;
    border-radius: 8px;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-link:hover {
    color: var(--text-primary, #fafafa);
    background: var(--bg-card-hover, rgba(255,255,255,0.06));
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color, rgba(255,255,255,0.06));
    margin: 8px 0;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-nav-ghost {
    color: var(--text-secondary, #a1a1aa);
    background: transparent;
}

.btn-nav-ghost:hover {
    color: var(--text-primary, #fafafa);
    background: var(--bg-card-hover, rgba(255,255,255,0.06));
}

.btn-nav-primary {
    color: var(--text-primary, #fafafa);
    background: var(--accent-primary, #3b82f6);
}

.btn-nav-primary:hover {
    background: #062ca1;
    box-shadow: 0 0 20px rgba(8, 52, 189, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border-color, rgba(255,255,255,0.06));
    border-radius: 8px;
    color: var(--text-primary, #fafafa);
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
    background: var(--bg-card-hover, rgba(255,255,255,0.06));
    border-color: var(--border-hover, rgba(255,255,255,0.16));
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu - Linear Style Full Screen */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-primary, #0a0a0b);
    z-index: 1001;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.mobile-menu-logo .spc-logo {
    height: 36px;
    width: auto;
}

.mobile-menu-logo .spc-logo-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fafafa);
    letter-spacing: -0.02em;
}

.mobile-menu-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-signin {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary, #fafafa);
    text-decoration: none;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-signin:hover {
    opacity: 0.7;
}

.mobile-menu-signup {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bg-primary, #0a0a0b);
    background: var(--text-primary, #fafafa);
    border-radius: 8px;
    text-decoration: none;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-signup:hover {
    background: var(--text-secondary, #a1a1aa);
}

.mobile-menu-close {
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--text-primary, #fafafa);
    cursor: pointer;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 24px;
}

.mobile-nav-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary, #71717a);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.mobile-nav-section-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-section-links li {
    margin: 0;
}

.mobile-nav-section-links a {
    display: block;
    padding: 12px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #fafafa);
    text-decoration: none;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
}

.mobile-nav-section-links a:hover {
    opacity: 0.7;
}

/* ========================================
   Global Page Layout - Consistent Spacing
   Ensures all pages have proper spacing below fixed nav
   ======================================== */

/* Main content area - accounts for fixed header (64px) */
/* This ensures content starts below the fixed navigation */
body.dark-theme > main:first-of-type,
body.dark-theme > main {
    padding-top: calc(64px + 40px) !important;
}

/* Hero sections handle their own padding */
.hero-section {
    padding-top: calc(64px + 60px) !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    body.dark-theme > main:first-of-type,
    body.dark-theme > main {
        padding-top: calc(64px + 24px) !important;
    }
    
    .hero-section {
        padding-top: calc(64px + 40px) !important;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

