/* Remove dark overlay from base template */
body::before {
    display: none;
}

/* Gilroy font */
@font-face {
    font-family: 'Gilroy-ExtraBold';
    src: url('/static/fonts/Gilroy-ExtraBold.woff2') format('woff2'),
         url('/static/fonts/Gilroy-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Gilroy-Light';
    src: url('/static/fonts/Gilroy-Light.woff2') format('woff2'),
         url('/static/fonts/Gilroy-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

/* Gilroy utility classes */
.gilroy-bold {
    font-family: 'Gilroy-ExtraBold', sans-serif;
}

.gilroy-light {
    font-family: 'Gilroy-Light', sans-serif;
    font-weight: 300;
}

/* Navigation */
.marketing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0A0A24;
    backdrop-filter: blur(0);
    transition: all 0.3s ease;
}

.marketing-nav.scrolled {
    padding: 12px 40px;
    background: rgba(16, 16, 53, 0.95);
    backdrop-filter: blur(10px);
}

.marketing-nav .nav-brand {
    transition: font-size 0.3s ease;
}

.marketing-nav.scrolled .nav-brand {
    font-size: 22px;
}

.nav-brand {
    font-size: 28px;
    text-decoration: none;
    color: #ffffff;
}

.nav-brand .light {
    font-family: 'Gilroy-Light', sans-serif;
}

.nav-brand .bold {
    font-family: 'Gilroy-ExtraBold', sans-serif;
}

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

.nav-right .btn-login {
    font-family: 'Gilroy-Light', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-transform: lowercase;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: all 0.2s;
    display: none;
}

.nav-right .btn-login:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.menu-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.menu-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-toggle.open .menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mega Menu - Slide from Right */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mega-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mega-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    width: 420px;
    background: rgba(10, 10, 36, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mega-menu.open {
    transform: translateX(0);
}

.mega-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mega-menu-header .menu-brand {
    font-size: 22px;
    text-decoration: none;
    color: #ffffff;
}

.mega-menu-inner {
    display: flex;
    flex-direction: column;
    padding: 80px 0 16px;
    flex: 1;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}

.mega-menu-item:last-child {
    border-bottom: none;
}

.mega-menu-item:hover {
    background: rgba(255,255,255,0.04);
}

.mega-menu-item i {
    font-size: 28px;
    color: #F766AE;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.mega-menu-item-text {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 4px;
    text-transform: lowercase;
}

.mega-menu-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

.mega-menu-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mega-menu-footer .btn-login-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Gilroy-Light', sans-serif;
    font-size: 15px;
    transition: all 0.2s;
}

.mega-menu-footer .btn-login-menu:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

/* Common Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #F766AE;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #d4508f;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* Page Hero (contact, pricing, terms, privacy) */
.page-hero {
    padding: 140px 20px 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.marketing-footer {
    position: relative;
    padding: 60px 40px 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0a0a24;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    font-family: 'Gilroy-ExtraBold', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.footer-brand-col .footer-brand {
    font-size: 28px;
    margin-bottom: 16px;
}

.footer-address {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-contact-item i {
    width: 16px;
    text-align: center;
    color: rgba(255,255,255,0.4);
}

.footer-contact-item a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    text-transform: lowercase;
    transition: color 0.2s;
}

.footer-links a i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.footer-links a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border-color: rgba(255,255,255,0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-copy {
    color: rgba(255,255,255,0.35);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: rgba(255,255,255,0.7);
}

/* Legal Content (terms, privacy) */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin: 40px 0 16px;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin: 24px 0 12px;
}

.legal-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.legal-content ul li {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
}

.legal-content table th,
.legal-content table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-content table th {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.legal-updated {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 40px;
    text-align: center;
}

/* Responsive - Navigation */
@media (max-width: 768px) {
    .marketing-nav {
        padding: 16px 20px;
    }

    .mega-menu {
        width: 100%;
    }

    .mega-menu-header {
        padding: 20px;
    }

    .mega-menu-item {
        padding: 16px 20px;
        gap: 16px;
    }

    .mega-menu-item i {
        font-size: 24px;
    }

    .mega-menu-title {
        font-size: 16px;
    }

    .mega-menu-footer {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .nav-right .btn-login {
        display: none;
    }
}

/* Responsive - Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .marketing-footer {
        padding: 40px 20px 24px;
    }

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

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

    .page-hero {
        padding: 120px 20px 40px;
    }

    .page-hero h1 {
        font-size: 32px;
    }
}
