/* ===========================================
   MAIN NAVIGATION
   =========================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-logo img {
    height: 43px;
    width: auto;
}

/* ===========================================
   DESKTOP NAV LINKS
   =========================================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-item-wrapper {
    position: relative;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: #94a3b8;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.nav-chevron {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-item[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

/* ===========================================
   DROPDOWN MENUS
   =========================================== */

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

/* Wide dropdown (3 columns) */
.nav-dropdown-wide {
    min-width: 700px;
    left: 50%;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
}

.dropdown-column > h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 12px 0;
    padding: 0 12px;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-links h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 12px 0 8px 0;
    padding: 0 12px;
}

.dropdown-links h4:first-child {
    margin-top: 0;
}

.dropdown-header {
    display: block;
    padding: 10px 12px;
    font-weight: 600;
    color: #f1f5f9;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    transition: all 0.2s ease;
}

.dropdown-header:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.25);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-link .icon {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
}

.dropdown-link:hover .icon {
    color: #06b6d4;
}

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

/* ===========================================
   NAV ACTIONS (Sign In / Get Started)
   =========================================== */

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

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-btn-secondary {
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn-secondary:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn-primary {
    color: #020617;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
}

.nav-btn-primary:hover {
    filter: brightness(1.1);
}

/* ===========================================
   USER MENU
   =========================================== */

.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-button:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}

.user-button .icon {
    width: 20px;
    height: 20px;
}

.user-button .icon:last-child {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===========================================
   MOBILE MENU BUTTON
   =========================================== */

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn .icon {
    width: 20px;
    height: 20px;
}

/* Toggle icons based on menu state */
.mobile-menu-btn .icon-close {
    display: none;
}

.mobile-menu-btn.active .icon-bars {
    display: none;
}

.mobile-menu-btn.active .icon-close {
    display: block;
}

/* ===========================================
   MOBILE NAVIGATION
   =========================================== */

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #0f172a;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-header .nav-logo img {
    height: 34px;
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-close .icon {
    width: 24px;
    height: 24px;
}

.mobile-nav-links {
    flex: 1;
    padding: 16px;
}

.mobile-nav-link {
    display: block;
    padding: 16px;
    color: #f1f5f9;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.05);
}

.mobile-nav-ctas {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-ctas .btn-gold,
.mobile-nav-ctas .btn-outline {
    display: flex;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
}

.mobile-nav-ctas .btn-gold {
    color: #020617;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.mobile-nav-ctas .btn-outline {
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

@media (max-width: 1200px) {
    .nav-links {
        gap: 0;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

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

    .nav-actions {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 16px;
        height: 64px;
    }

    .nav-logo img {
        height: 36px;
    }

    .mobile-nav {
        max-width: 100%;
    }
}

/* ===========================================
   SITE FOOTER
   =========================================== */

.site-footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 80px 0 32px;
}

.site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.25fr 2fr;
    gap: 64px;
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 43px;
    width: auto;
}

.footer-description {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 0 28px 0;
}

.footer-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-ctas .btn-gold,
.footer-ctas .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-ctas .btn-gold {
    color: #020617;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.footer-ctas .btn-gold:hover {
    filter: brightness(1.1);
}

.footer-ctas .btn-outline {
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-ctas .btn-outline:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Navigation Columns */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.footer-column-title {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 20px 0;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin: 0;
}

.footer-column a {
    display: block;
    padding: 6px 0;
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #f59e0b;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-left p {
    margin: 0;
    color: #475569;
    font-size: 0.8125rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-legal-links a {
    color: #64748b;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #94a3b8;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #f1f5f9;
}

.footer-contact .icon {
    width: 14px;
    height: 14px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.footer-social .icon {
    width: 18px;
    height: 18px;
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 56px 0 24px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-ctas {
        flex-direction: column;
        width: 100%;
    }

    .footer-ctas .btn-gold,
    .footer-ctas .btn-outline {
        justify-content: center;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-left {
        flex-direction: column;
        gap: 16px;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 20px;
    }

    .footer-contact {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }
}
