/* Public homepage only. Other public templates keep their existing styles. */
.home-page {
    --home-background: #f7f8f9;
    --home-text: #333;
    --home-blue: #3b66f4;
    margin: 0;
    min-width: 0;
    background: var(--home-background);
    color: var(--home-text);
    font-family:
        'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}
.home-page h1,
.home-page h2,
.home-page h3,
.home-page p,
.home-page ul {
    margin: 0;
}
.home-page ul {
    padding: 0;
    list-style: none;
}
.home-page img {
    display: block;
    max-width: 100%;
}
.home-page a {
    color: inherit;
    text-decoration: none;
}
.home-page button {
    font: inherit;
}
.home-page a,
.home-page button {
    -webkit-tap-highlight-color: transparent;
}
.home-page :focus-visible {
    outline: 3px solid var(--home-blue);
    outline-offset: 5px;
}
.home-page main:focus {
    outline: none;
}
.home-container {
    width: min(1400px, calc(100% - 80px));
}
.home-page .home-container {
    margin-inline: auto;
}
.home-skip-link {
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 10;
    padding: 12px 18px;
    background: #fff;
    border-radius: 6px;
    transform: translateY(-150%);
}
.home-skip-link:focus {
    transform: translateY(0);
}

.home-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    background: rgb(255 255 255 / 21%);
}
.home-nav {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.home-brand {
    display: inline-flex;
    min-width: 0;
    max-width: calc(100% - 240px);
    align-items: center;
    gap: 8px;
    padding-block: 7px;
}
.home-brand-mark {
    flex: 0 0 56px;
    object-fit: contain;
}
.home-brand-custom {
    flex: 0 0 auto;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
.home-brand-name {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 2px;
    overflow-wrap: anywhere;
}
.home-nav-links {
    display: flex;
    align-items: stretch;
    gap: 48px;
    align-self: stretch;
}
.home-nav-links li {
    display: flex;
}
.home-nav-links a {
    position: relative;
    display: flex;
    min-height: 64px;
    align-items: center;
    font-size: 18px;
}
.home-nav-links a:hover,
.home-nav-links a[aria-current] {
    color: var(--home-blue);
}
.home-nav-links a[aria-current]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--home-blue);
}
.home-nav-toggle {
    display: none;
}

.home-masthead {
    position: relative;
    min-height: 586px;
    padding-top: 64px;
    isolation: isolate;
    background: #eaf3fd;
}
.home-hero-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.home-hero {
    padding-top: 76px;
    padding-bottom: 160px;
}
.home-hero-copy {
    width: 845px;
    max-width: 65%;
}
.home-hero h1 {
    color: #282b2d;
    font-size: 80px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}
.home-hero p {
    margin-top: 24px;
    color: #747e95;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 1px;
}
.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.home-hero .home-actions {
    margin-top: 36px;
}
.home-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 18px;
    line-height: 24px;
    transition:
        box-shadow 160ms ease,
        transform 160ms ease;
}
.home-button img {
    flex: 0 0 20px;
    object-fit: contain;
}
.home-page .home-button-primary {
    color: #fff;
    background: linear-gradient(100deg, #4755f5, #65a9d9);
}
.home-page .home-button-secondary {
    color: #222;
    border-color: #333;
    background: #fff;
}
.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(41 69 122 / 14%);
}
.home-button:active {
    transform: translateY(0);
}

.home-metrics-wrap {
    position: relative;
    z-index: 1;
    margin-top: -53px;
}
.home-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 27px;
}
.home-metric {
    display: flex;
    min-height: 120px;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 8px;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 5px 14px rgb(28 59 108 / 3%);
}
.home-metric > img {
    flex: 0 0 56px;
    object-fit: contain;
}
.home-metric > div {
    min-width: 0;
}
.home-metric strong {
    font-size: 20px;
    font-weight: 700;
}
.home-metric p {
    margin-top: 9px;
    font-size: 14px;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.home-features-section {
    padding-top: 90px;
    padding-bottom: 90px;
}
.home-section-heading {
    text-align: center;
}
.home-section-heading h2 {
    color: #111;
    font-size: 40px;
    line-height: 56px;
    font-weight: 600;
}
.home-section-heading p {
    margin-top: 4px;
    color: #666;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 1px;
}
.home-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 28px;
    margin-top: 60px;
}
.home-feature {
    position: relative;
    min-width: 0;
    min-height: 214px;
    padding: 25px 24px 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgb(28 59 108 / 3%);
}
.home-feature > img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}
.home-feature-number {
    position: absolute;
    top: 12px;
    right: 24px;
    color: #f1f5fb;
    font-family: 'DIN Condensed', Impact, 'Arial Narrow', sans-serif;
    font-size: 76px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 1px;
}
.home-feature h3 {
    margin-top: 22px;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
}
.home-feature p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.home-deployment {
    position: relative;
    isolation: isolate;
    min-height: 334px;
    margin-bottom: 67px;
    padding: 104px 0 40px;
    text-align: center;
}
.home-deployment::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('deployment-background.webp') calc(50% - 76px) center /
        2400px 800px no-repeat;
    opacity: 0.6;
}
.home-deployment h2 {
    font-size: 44px;
    line-height: 62px;
    font-weight: 600;
}
.home-deployment p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 24px;
}
.home-deployment .home-actions {
    justify-content: center;
    margin-top: 36px;
}
.home-footer {
    display: flex;
    min-height: 120px;
    align-items: center;
    padding: 32px 0;
    background: #16181a;
    color: #fff;
}
.home-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
    font-size: 16px;
    line-height: 24px;
}
.home-footer-links li {
    min-width: 0;
    overflow-wrap: anywhere;
}
.home-footer-links li + li {
    border-left: 1px solid #aaa;
    padding-left: 24px;
}
.home-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (min-width: 1025px) and (max-width: 1500px) {
    .home-hero-copy {
        max-width: 55%;
    }
    .home-hero h1 {
        font-size: 64px;
    }
    .home-hero p {
        font-size: 20px;
        line-height: 32px;
    }
    .home-hero-art {
        inset: auto 0 0;
        height: auto;
        mask-image: linear-gradient(to bottom, transparent, #000 100px);
    }
    .home-metric {
        gap: 16px;
        padding-inline: 20px;
    }
    .home-section-heading h2 {
        font-size: 36px;
    }
    .home-section-heading p {
        font-size: 20px;
    }
}
@media (max-width: 1024px) {
    .home-container {
        width: calc(100% - 48px);
    }
    .home-masthead {
        min-height: 620px;
    }
    .home-hero {
        padding-top: 68px;
        padding-bottom: 200px;
    }
    .home-hero-copy {
        width: 650px;
        max-width: 76%;
    }
    .home-hero h1 {
        font-size: 56px;
        line-height: 1.3;
    }
    .home-hero p {
        font-size: 18px;
        line-height: 30px;
        letter-spacing: 0;
    }
    .home-hero-art {
        inset: auto 0 0;
        height: auto;
        mask-image: linear-gradient(to bottom, transparent, #000 80px);
    }
    .home-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .home-features-section {
        padding-block: 72px;
    }
    .home-section-heading h2 {
        font-size: 30px;
        line-height: 44px;
    }
    .home-section-heading p {
        max-width: 660px;
        margin: 16px auto 0;
        font-size: 18px;
        line-height: 30px;
        letter-spacing: 0;
    }
    .home-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        margin-top: 40px;
    }
    .home-feature {
        padding: 24px;
    }
    .home-deployment {
        padding-block: 72px;
        margin-bottom: 48px;
    }
    .home-deployment h2 {
        font-size: 32px;
        line-height: 46px;
    }
    .home-deployment p {
        max-width: 640px;
        margin-inline: auto;
    }
    .home-footer-links {
        font-size: 14px;
    }
}
@media (max-width: 640px) {
    .home-container {
        width: calc(100% - 40px);
    }
    .home-header {
        position: relative;
        background: #eaf3fd;
    }
    .home-nav {
        min-height: 68px;
        flex-wrap: wrap;
        gap: 0 16px;
    }
    .home-brand {
        max-width: calc(100% - 60px);
        padding-block: 14px;
        gap: 8px;
    }
    .home-brand-mark {
        width: 44px;
        height: 32px;
        flex-basis: 44px;
    }
    .home-brand-custom {
        max-width: 72px;
        max-height: 36px;
    }
    .home-brand-name {
        font-size: 18px;
        line-height: 1.5;
        letter-spacing: 0.5px;
    }
    .home-nav-enhanced .home-nav-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid #b7cbee;
        border-radius: 6px;
        color: #354c79;
        background: rgb(255 255 255 / 65%);
        cursor: pointer;
    }
    .home-nav-toggle span {
        width: 18px;
        height: 2px;
        background: currentColor;
        transition:
            transform 160ms ease,
            opacity 160ms ease;
    }
    .home-nav.is-open .home-nav-toggle span:first-child {
        transform: translateY(7px) rotate(45deg);
    }
    .home-nav.is-open .home-nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    .home-nav.is-open .home-nav-toggle span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }
    .home-nav-links {
        width: 100%;
        gap: 28px;
    }
    .home-nav-links a {
        min-height: 48px;
        font-size: 16px;
    }
    .home-nav-enhanced .home-nav-links {
        display: none;
    }
    .home-nav-enhanced.is-open .home-nav-links {
        display: flex;
        padding-bottom: 12px;
    }
    .home-masthead {
        min-height: 0;
        padding-top: 0;
        background: #eaf3fd;
    }
    .home-hero {
        padding-top: 40px;
        padding-bottom: 292px;
    }
    .home-hero-copy {
        width: 100%;
        max-width: none;
    }
    .home-hero h1 {
        font-size: 40px;
        line-height: 1.35;
        letter-spacing: 0;
    }
    .home-hero p {
        margin-top: 20px;
        color: #66748c;
        font-size: 16px;
        line-height: 28px;
    }
    .home-hero-art {
        inset: auto 0 0;
        height: 260px;
        object-position: right bottom;
        mask-image: linear-gradient(to bottom, transparent, #000 48px);
    }
    .home-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .home-hero .home-actions {
        margin-top: 28px;
    }
    .home-button {
        min-height: 48px;
        width: 100%;
        font-size: 16px;
    }
    .home-metrics-wrap {
        margin-top: -24px;
    }
    .home-metrics {
        gap: 12px;
    }
    .home-metric {
        min-height: 138px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
        padding: 18px 14px;
    }
    .home-metric > img {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    .home-metric strong {
        font-size: 18px;
    }
    .home-metric p {
        margin-top: 4px;
        font-size: 12px;
        line-height: 20px;
    }
    .home-features-section {
        padding-block: 56px;
    }
    .home-section-heading h2 {
        font-size: 27px;
        line-height: 40px;
        text-wrap: balance;
    }
    .home-section-heading p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 28px;
    }
    .home-features {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 32px;
    }
    .home-feature {
        min-height: 214px;
    }
    .home-feature p {
        font-size: 14px;
        line-height: 24px;
    }
    .home-deployment {
        padding-block: 64px 48px;
        margin-bottom: 32px;
    }
    .home-deployment::before {
        background-size: auto 700px;
        background-position: center;
    }
    .home-deployment h2 {
        font-size: 30px;
        line-height: 44px;
        text-wrap: balance;
    }
    .home-deployment p {
        margin-top: 20px;
        font-size: 15px;
        line-height: 26px;
    }
    .home-deployment .home-actions {
        margin-top: 28px;
    }
    .home-footer-links {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .home-footer-links li + li {
        border-left: 0;
        padding-left: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        transition: none !important;
    }
}
