@font-face {
    font-family: 'PubGuard Heading';
    src: url('/assets/fonts/noto-sans-sc-heading-700.woff') format('woff');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

main section:not(#download) h1,
main section:not(#download) h2,
main section:not(#download) h3,
main section:not(#download) h4 {
    font-family: 'PubGuard Heading', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Keep the English hero line in the existing Latin typeface. */
main section h1 .text-primary {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

@media (max-width: 767px) {
    main section:not(#download) h1 {
        font-size: clamp(28px, 8.2vw, 32px);
        line-height: 1.2;
    }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    main section:not(#download) h1,
    main section:not(#download) h2,
    main section:not(#download) h3,
    main section:not(#download) h4 {
        color: #142e5c;
        background-image: linear-gradient(105deg, #142e5c 0%, #2459a5 58%, #32a3ce 100%);
        background-size: 100% 100%;
        background-repeat: no-repeat;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    main section h1 .text-primary {
        -webkit-text-fill-color: currentColor;
    }
}
