/* ============================================
   NAVETTA — SHARED COMPONENTS
   Navbar, Footer, Cards, Product Grid
   ============================================ */

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    padding: var(--space-3) 0;
    background: transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.95) 0%, rgba(10, 15, 26, 0.88) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-bottom: 1px solid var(--color-border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 10;
}

.logo-img {
    height: 36px;
    opacity: 0.95;
}

.logo-text {
    font-family: var(--font-brand);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.logo-text span {
    transition: color var(--transition-fast);
}

.nav-logo:hover .logo-text span {
    color: var(--color-accent-bright);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cta);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Products Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-dropdown-trigger svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-3));
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 260px;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.dropdown-item:hover {
    background: var(--color-surface-glass-hover);
    color: var(--color-text-primary);
}

.dropdown-item__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.dropdown-item__icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-accent-bright);
}

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

.dropdown-item__name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
}

.dropdown-item__desc {
    font-size: var(--text-xs);
    color: var(--color-text-dim);
}

/* Nav CTA Button */
.nav-cta {
    font-family: var(--font-mono) !important;
    background: var(--gradient-cta) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: var(--text-xs) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-full);
    padding: 4px;
}

.lang-btn {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--color-text-primary);
}

.lang-btn.active {
    background: var(--gradient-cta);
    color: white;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 10;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    left: 0;
    transition: transform var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-bg-secondary);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--color-border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

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

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo-img {
    height: 32px;
    opacity: 0.9;
}

.footer-logo {
    font-family: var(--font-brand);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-accent-bright);
    border-color: var(--color-accent);
    background: rgba(99, 102, 241, 0.1);
}

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

.footer-col h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-accent-bright);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-glass);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--color-text-dim);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: var(--text-xs);
    color: var(--color-text-dim);
}

.footer-legal a:hover {
    color: var(--color-accent-bright);
}

/* ========================================
   PRODUCT CARDS (Portfolio Grid)
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-8);
}

.product-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cta);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-glass-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--shadow-glow-accent);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}

.product-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent-bright);
}

/* Stat badge — large number inside cards */
.product-card__stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    font-family: var(--font-headline);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-accent-bright);
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.product-card__name {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-bright);
    margin-bottom: var(--space-2);
}

.product-card__title {
    font-family: var(--font-headline);
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.product-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    flex: 1;
    margin-bottom: var(--space-6);
}

.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.product-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-accent-secondary);
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.product-card__link {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-bright);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.product-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.product-card:hover .product-card__link svg {
    transform: translateX(4px);
}

/* ========================================
   COMPARISON TABLE
   ======================================== */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--gradient-glass);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-4) var(--space-6);
    text-align: left;
    border-bottom: 1px solid var(--color-border-glass);
}

.comparison-table th {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    background: var(--color-surface-glass);
}

.comparison-table th:first-child {
    color: var(--color-accent-bright);
}

.comparison-table td {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--color-text-primary);
}

.comparison-highlight {
    color: var(--color-accent-secondary) !important;
    font-weight: 600 !important;
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    text-align: center;
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border-glass);
}

.trust-bar__text {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.trust-bar__text strong {
    color: var(--color-accent-bright);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--color-border-glass);
}

.cta-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.cta-section__title {
    font-family: var(--font-headline);
    font-size: var(--text-3xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.cta-section__text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    max-width: 520px;
}

.cta-section .btn {
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVE — COMPONENTS
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile nav */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 15, 26, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-6);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: block;
    }

    .nav-link {
        font-size: var(--text-lg);
    }

    /* Dropdown becomes inline on mobile */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: var(--space-2) 0 0 var(--space-6);
        backdrop-filter: none;
    }

    .lang-switcher {
        margin-top: var(--space-4);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

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

    .footer-legal {
        justify-content: center;
    }

    /* Products */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-section .container {
        flex-direction: column;
        text-align: center;
    }
}
