/* ========== GoodSync Page Common Styles (Shared by all subpages) ========== */

/* Navigation - Refined Modern */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 9000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
}
.navbar.scrolled::after { opacity: 1; }

.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    gap: 32px;
}
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}
.navbar-logo { height: 40px; width: auto; display: block; object-fit: contain; }
.navbar-brand-text {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #0A0E27;
    line-height: 1.1;
    letter-spacing: -0.3px;
}
.brand-company {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.2;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: space-between;
}
.navbar-nav {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px 14px;
    border-radius: 8px;
    letter-spacing: 0.1px;
    position: relative;
}
.nav-link:hover { color: #0A0E27; background: rgba(0, 0, 0, 0.04); }
.nav-item.active .nav-link, .nav-link.active {
    color: var(--primary-blue);
    background: rgba(4, 90, 255, 0.06);
}
.navbar-actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: #0A0E27;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-download svg { width: 14px; height: 14px; }
.btn-download:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(4, 90, 255, 0.04);
}
.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary-red);
    color: #ffffff;
    border: 1px solid var(--primary-red);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(247, 70, 84, 0.2);
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-buy svg { width: 14px; height: 14px; }
.btn-buy:hover {
    background: #e63846;
    border-color: #e63846;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(247, 70, 84, 0.32);
}
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1001;
}
.navbar-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}
.hamburger-line {
    width: 18px;
    height: 2px;
    background: #0A0E27;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger-line:nth-child(2) { width: 12px; align-self: flex-end; margin-right: 11px; }
.navbar-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active .hamburger-line:nth-child(2) { opacity: 0; transform: translateX(20px); }
.navbar-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 18px; }

@media (max-width: 1024px) {
    .navbar-wrapper { padding: 0 24px; gap: 16px; }
    .navbar-nav { gap: 0; }
    .nav-link { padding: 8px 10px; font-size: 13px; }
    .btn-download { display: none; }
}
@media (max-width: 768px) {
    .navbar { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
    .navbar.scrolled { background: #ffffff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
    .navbar-wrapper { height: 60px; padding: 0 20px; gap: 12px; }
    .navbar-logo { height: 38px; }
    .brand-name { font-size: 16px; }
    .brand-company { font-size: 9px; letter-spacing: 0.3px; }
    .navbar-toggle { display: flex; }
    .navbar-menu {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        z-index: 1000;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 24px 32px;
        gap: 32px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s 0.4s;
        overflow-y: auto;
    }
    .navbar-menu.active {
        transform: translateY(0); opacity: 1; visibility: visible;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s;
    }
    .navbar-nav { flex-direction: column; gap: 4px; width: 100%; align-items: stretch; }
    .navbar-nav .nav-item { width: 100%; }
    .nav-link { width: 100%; padding: 16px 20px; font-size: 17px; font-weight: 600; color: #0A0E27; border-radius: 12px; justify-content: space-between; }
    .nav-link::after { content: '→'; font-size: 18px; color: rgba(0, 0, 0, 0.25); transition: all 0.25s ease; }
    .nav-link:hover::after, .nav-item.active .nav-link::after { color: var(--primary-blue); transform: translateX(4px); }
    .navbar-actions { flex-direction: column; width: 100%; gap: 10px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.06); }
    .btn-download { display: inline-flex; width: 100%; padding: 14px 20px; font-size: 15px; justify-content: center; border-radius: 12px; }
    .btn-buy { width: 100%; padding: 14px 20px; font-size: 15px; justify-content: center; border-radius: 12px; }
    body.nav-open { overflow: hidden; }
}

/* ========== Page Hero (subpage banner) ========== */
.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(4, 90, 255, 0.08), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}
.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.page-hero-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--primary-blue);
}
.page-hero-eyebrow-dot { display: none; }
.page-hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: #0A0E27;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
}
.page-hero p {
    font-size: 18px;
    color: #6b6b6b;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .page-hero { padding: 110px 0 56px; }
    .page-hero h1 { font-size: 36px; letter-spacing: -1px; }
    .page-hero p { font-size: 16px; }
}

/* ========== Section common ========== */
.page-section {
    padding: 80px 0;
}
.page-section-light { background: #fafbfc; }
.page-section-white { background: #ffffff; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--primary-blue);
}
.section-heading {
    font-size: 36px;
    font-weight: 700;
    color: #0A0E27;
    letter-spacing: -1.2px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 16px;
    color: #6b6b6b;
    line-height: 1.7;
    margin: 0 0 16px;
}
.section-header-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.section-header-center .section-eyebrow { justify-content: center; }
@media (max-width: 768px) {
    .page-section { padding: 56px 0; }
    .section-heading { font-size: 28px; letter-spacing: -0.8px; }
}

/* ========== Card/Tile ========== */
.tile {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tile:hover {
    border-color: rgba(4, 90, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(4, 90, 255, 0.06);
}
.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(4, 90, 255, 0.08);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.tile-icon svg { width: 22px; height: 22px; }
.tile-icon img { width: 28px; height: 28px; }
.tile h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0A0E27;
    line-height: 1.3;
    margin-bottom: 10px;
}
.tile p {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.7;
    margin: 0;
}

/* Two/Three/Four column grids */
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) {
    .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* Image-text alternating row */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-row-text { order: 2; }
.feature-row.reverse .feature-row-visual { order: 1; }
.feature-row-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0A0E27;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.feature-row-text p {
    font-size: 16px;
    color: #6b6b6b;
    line-height: 1.8;
    margin-bottom: 14px;
}
.feature-row-visual {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8efff 100%);
    border: 1px solid rgba(4, 90, 255, 0.06);
    padding: 24px;
}
.feature-row-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
@media (max-width: 1024px) {
    .feature-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
    .feature-row.reverse .feature-row-text { order: 0; }
    .feature-row.reverse .feature-row-visual { order: 0; }
    .feature-row-text h2 { font-size: 26px; }
}

/* CTA bar (compact light, reusable) */
.page-cta {
    padding: 60px 32px 100px;
    background: #ffffff;
}
.cta-bar {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
    border: 1px solid rgba(4, 90, 255, 0.1);
    border-radius: 24px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
}
.cta-bar::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(4, 90, 255, 0.12), transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}
.cta-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-blue), transparent);
}
.cta-bar-content { position: relative; z-index: 2; max-width: 540px; }
.cta-bar-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0A0E27;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 8px;
}
.cta-bar-content p {
    font-size: 14px;
    color: #6b6b6b;
    margin: 0;
    line-height: 1.6;
}
.cta-bar-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.cta-bar-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-bar-actions .btn-secondary {
    background: transparent;
    color: #0A0E27;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.cta-bar-actions .btn-secondary:hover {
    background: #ffffff;
    border-color: rgba(4, 90, 255, 0.3);
    transform: translateY(-2px);
}
.cta-bar-actions .btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 6px 20px rgba(247, 70, 84, 0.25);
}
.cta-bar-actions .btn-primary:hover {
    background: #e63846;
    transform: translateY(-2px);
}
@media (max-width: 1024px) {
    .cta-bar { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px; }
}
@media (max-width: 640px) {
    .page-cta { padding: 32px 16px 60px; }
    .cta-bar { padding: 28px 22px; }
    .cta-bar-content h2 { font-size: 22px; }
    .cta-bar-actions { flex-direction: column; width: 100%; gap: 10px; }
    .cta-bar-actions .btn { width: 100%; justify-content: center; }
}

/* ========== Footer ========== */
.footer {
    background: #ffffff;
    color: #0A0E27;
    padding: 0;
    margin-top: auto;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: flex-start;
    gap: 64px;
    padding: 56px 0 40px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
}
.footer-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.footer-logo { height: 32px; width: auto; display: block; object-fit: contain; }
.footer-brand-divider { width: 1px; height: 22px; background: rgba(0, 0, 0, 0.1); }
.footer-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #0A0E27;
    letter-spacing: -0.3px;
}
.footer-brand-desc {
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.7;
    margin: 0;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    text-align: right;
}
.footer-contact-title {
    font-size: 11px;
    font-weight: 700;
    color: #0A0E27;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 4px;
}
.contact-item { display: inline-flex; align-items: center; gap: 8px; transition: color 0.25s ease; }
.contact-item svg { width: 14px; height: 14px; color: var(--primary-blue); flex-shrink: 0; }
.contact-item a {
    color: #0A0E27;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}
.contact-item:hover a { color: var(--primary-blue); }

.footer-notice-block {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}
.footer-notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(4, 90, 255, 0.08);
    color: var(--primary-blue);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.footer-notice-text { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 4px; }
.footer-notice-zh { font-size: 12px; color: #4a4a4a; line-height: 1.6; margin: 0; }
.footer-notice-en { font-size: 11px; color: #9ca3af; line-height: 1.6; margin: 0; font-style: italic; }

.footer-bottom {
    padding: 18px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-copyright { font-size: 12px; color: #9ca3af; margin: 0; }
.footer-notice-line { font-size: 11px; color: #9ca3af; line-height: 1.5; margin: 0; }

@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 28px; }
    .footer-contact { align-items: flex-start; text-align: left; }
}
@media (max-width: 768px) {
    .footer-main { gap: 24px; padding: 32px 0 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Body offset for fixed navbar */
.with-navbar { padding-top: 0; }

/* ========== Navigation Dropdowns (added) ========== */
.nav-item.has-dropdown { position: relative; }
.nav-link.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 8px;
    transition: transform 0.25s ease;
    opacity: 0.6;
}
.nav-item.has-dropdown:hover .nav-link.dropdown-toggle::after,
.nav-item.has-dropdown.open .nav-link.dropdown-toggle::after {
    transform: rotate(225deg) translateY(2px);
    opacity: 1;
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 48px rgba(10, 14, 39, 0.12);
    padding: 10px;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
    z-index: 9001;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown.open .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.nav-dropdown a:hover { background: rgba(4, 90, 255, 0.06); color: var(--primary-blue); }
.nav-dropdown .dropdown-section-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: #9aa0a6;
    padding: 12px 14px 6px;
}
.nav-dropdown .dropdown-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 6px 8px; }

/* Mega dropdown (multi-column) */
.nav-dropdown.mega {
    min-width: 720px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 16px;
    left: 50%; transform: translate(-50%, -6px);
}
.nav-item.has-dropdown:hover .nav-dropdown.mega,
.nav-item.has-dropdown.open .nav-dropdown.mega { transform: translate(-50%, 0); }
.nav-dropdown.mega .dropdown-col { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown.mega .dropdown-section-title { padding: 4px 10px 8px; }
.nav-dropdown.mega a { padding: 7px 10px; font-size: 13px; }

@media (max-width: 1200px) {
    .nav-dropdown.mega { min-width: 600px; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .nav-dropdown.mega { min-width: 460px; grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: dropdowns become collapsible */
@media (max-width: 768px) {
    .nav-link.dropdown-toggle::after {
        transform: rotate(45deg);
        margin-left: auto;
    }
    .nav-item.has-dropdown.open .nav-link.dropdown-toggle::after {
        transform: rotate(225deg) translateY(0);
    }
    .nav-dropdown, .nav-dropdown.mega {
        position: static;
        min-width: 0; width: 100%;
        background: rgba(0, 0, 0, 0.02);
        border: none;
        box-shadow: none;
        padding: 4px 8px 10px;
        margin: 4px 0 8px;
        opacity: 1; visibility: visible;
        transform: none !important;
        display: none;
        grid-template-columns: 1fr !important;
        border-radius: 10px;
    }
    .nav-item.has-dropdown.open .nav-dropdown,
    .nav-item.has-dropdown.open .nav-dropdown.mega { display: block; }
    .nav-dropdown.mega.open-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 0; }
    .nav-dropdown a { font-size: 14.5px; padding: 12px 14px; }
    .nav-link.dropdown-toggle::after { display: inline-block !important; }
    /* Hide global mobile nav-link arrow on dropdown toggles */
    .nav-link.dropdown-toggle { padding-right: 20px; }
}
/* Active dropdown link */
.nav-dropdown a.active {
    background: rgba(4, 90, 255, 0.08);
    color: var(--primary-blue);
    font-weight: 600;
}
/* ========== Language Switcher ========== */
.lang-switcher .nav-link.lang-toggle {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}
.lang-switcher .nav-link.lang-toggle svg { color: var(--primary-blue); }
.lang-dropdown { min-width: 200px; left: auto; right: 0; }
.lang-dropdown[data-align="right"] { right: 0; left: auto; }
.lang-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.lang-dropdown .lang-flag { font-size: 16px; line-height: 1; }
.lang-dropdown a.active {
    background: rgba(4, 90, 255, 0.08);
    color: var(--primary-blue);
    font-weight: 600;
}
.lang-dropdown a.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--primary-blue);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .lang-switcher .nav-link.lang-toggle { padding: 8px 8px; }
    .lang-switcher .lang-label { display: none; }
    .lang-switcher .nav-link.lang-toggle svg { margin-right: 0 !important; }
}
@media (max-width: 768px) {
    .lang-switcher .nav-link.lang-toggle { padding: 16px 20px; }
    .lang-switcher .lang-label { display: inline; margin-left: 8px; font-size: 17px; }
    .lang-switcher .nav-link.lang-toggle svg { margin-right: 8px !important; width: 20px; height: 20px; }
    .lang-dropdown { right: auto; left: 0; min-width: 0; }
}
/* ========== Navbar density refinement ========== */
.navbar-wrapper { gap: 20px; }
.navbar-menu { gap: 16px; }
.navbar-nav { gap: 2px; }
.nav-link { padding: 8px 12px; font-size: 13.5px; }
.navbar-actions { gap: 8px; }
.btn-download, .btn-buy { padding: 8px 14px; font-size: 13px; }

@media (max-width: 1280px) {
    .nav-link { padding: 7px 9px; font-size: 13px; }
    .navbar-menu { gap: 10px; }
    .btn-download span, .btn-buy span { display: none; }
}
@media (max-width: 1100px) {
    /* Hide download text button — keep only buy */
    .btn-download { display: none; }
    .navbar-wrapper { gap: 12px; }
    .nav-link { padding: 7px 8px; }
}
@media (max-width: 960px) and (min-width: 769px) {
    /* Tight desktop just before mobile breakpoint */
    .navbar-actions .btn-buy { padding: 7px 12px; font-size: 12.5px; }
    .nav-link { font-size: 12.5px; padding: 6px 7px; }
}