:root {
    --cc-primary: #2563eb;
    --cc-primary-dark: #1d4ed8;
    --cc-ink: #111318;
    --cc-muted: #616f89;
    --cc-line: #e5e7eb;
    --cc-soft-blue: #eff6ff;
    --cc-font: "Lexend", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--cc-font) !important;
    color: var(--cc-ink);
    background: #fff;
}

body > header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--cc-line) !important;
    backdrop-filter: blur(12px);
}

body > header > div:first-child,
body > header .header-inner {
    max-width: 1280px !important;
    min-height: 64px !important;
    height: 64px !important;
    margin: 0 auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

body > header > div:first-child > div:first-child > a[href="/"],
body > header .logo,
body > header .brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--cc-ink) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.015em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body > header > div:first-child > div:first-child > a[href="/"] > div:first-child,
body > header .logo-icon,
body > header .brand-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: var(--cc-primary) !important;
}

body > header nav:not(#mobile-menu):not(.mobile-menu):not(.drawer-links),
body > header .desktop-nav {
    align-items: center !important;
    gap: 24px !important;
    min-width: 0 !important;
}

body > header nav:not(#mobile-menu):not(.mobile-menu):not(.drawer-links) a,
body > header .desktop-nav a {
    color: var(--cc-muted) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}

body > header nav:not(#mobile-menu):not(.mobile-menu):not(.drawer-links) a:hover,
body > header nav:not(#mobile-menu):not(.mobile-menu):not(.drawer-links) a.active,
body > header nav:not(#mobile-menu):not(.mobile-menu):not(.drawer-links) a.text-primary,
body > header .desktop-nav a:hover,
body > header .desktop-nav a.active {
    color: var(--cc-primary) !important;
}

body > header button[onclick*="copy"],
body > header .copy-btn,
body > header .btn-primary-sm {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: var(--cc-primary) !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    font-family: var(--cc-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

body > header button[onclick*="copy"]:hover,
body > header .copy-btn:hover,
body > header .btn-primary-sm:hover {
    background: var(--cc-primary-dark) !important;
}

body > header .menu-toggle,
body > header .menu-btn,
body > header #mobile-menu-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
}

#mobile-menu a,
.mobile-menu a,
.drawer-links a {
    font-family: var(--cc-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

main h1,
.hero h1 {
    letter-spacing: -0.02em !important;
}

@media (max-width: 768px) {
    body > header > div:first-child,
    body > header .header-inner {
        min-height: 64px !important;
        height: 64px !important;
    }

    body > header > div:first-child > div:first-child > a[href="/"],
    body > header .logo,
    body > header .brand {
        font-size: 17px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body > header nav:not(#mobile-menu):not(.mobile-menu):not(.drawer-links),
    body > header .desktop-nav,
    body > header button[onclick*="copy"],
    body > header .copy-btn,
    body > header .btn-primary-sm {
        display: none !important;
    }

    body > header > div:first-child > div:last-child {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-shrink: 0 !important;
    }

    body > header .menu-toggle,
    body > header .menu-btn,
    body > header #mobile-menu-btn {
        display: inline-flex !important;
        margin-left: auto !important;
    }
}
