:root {
    --paper: #f6f9fe;
    --surface: #ffffff;
    --ink: #101828;
    --ink-soft: #475467;
    --rule: #d0d5dd;
    --blue: #1264f3;
    --blue-dark: #0e54d8;
    --deep-navy: #0b1f3a;
    --navy-2: #12345b;
    --light-blue: #eef5ff;
    --light-blue-2: #f6f9fe;
    --nav-height: 76px;
    --container: min(1320px, calc(100% - 64px));
    --radius: 8px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font-sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 24px);
    overflow-x: clip;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    inset: 0 0 auto;
    z-index: 100;
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 0 max(28px, calc((100vw - 1440px) / 2));
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--paper);
    border-bottom: 1px solid rgba(180, 199, 224, 0.6);
}

.brand,
.site-footer > div:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand img,
.site-footer img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.8vw, 44px);
}

.site-nav a {
    position: relative;
    padding: 24px 0;
    color: #3c4a63;
    font-size: 16px;
    font-weight: 500;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-toggle,
.nav-toggle {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.language-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.header-cta,
.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-weight: 700;
}

.header-cta,
.button-primary {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: white;
}

.button-secondary {
    border: 1px solid var(--rule);
    background: white;
    color: var(--ink);
}

.section {
    width: 100%;
    padding: 96px 0;
}

.section-inner {
    width: var(--container);
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 24px) 0 48px;
    background: var(--deep-navy);
    color: white;
}

.platform-hero .hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .94;
    transform: scale(1.035);
    transition: opacity 760ms var(--ease), transform 1100ms var(--ease);
}

.platform-hero .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.92) contrast(.98);
}

.platform-hero .hero-media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 31, 58, .04) 0%, rgba(11, 31, 58, .1) 34%, rgba(11, 31, 58, .58) 68%, rgba(11, 31, 58, .92) 100%),
        linear-gradient(90deg, rgba(11, 31, 58, .3) 0%, rgba(11, 31, 58, .08) 52%, rgba(11, 31, 58, .04) 100%);
}

.platform-hero-knowledge .hero-media img {
    object-position: center 46%;
}

.platform-hero-agent .hero-media img {
    object-position: center 50%;
}

.hero-inner {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: start;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    line-height: 1.08;
}

.hero p {
    max-width: 680px;
    color: #d8e5f4;
    font-size: 16px;
}

.hero-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-keys span,
.detail-keywords li {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(238, 245, 255, .2);
    border-radius: 6px;
    background: rgba(238, 245, 255, .06);
    color: rgba(255, 255, 255, .96);
    font-size: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-panel {
    align-self: start;
    padding: 30px;
    margin-bottom: 0;
    border: 1px solid rgba(238, 245, 255, .16);
    border-radius: 12px;
    background: rgba(16, 24, 40, .14);
}

.hero-panel-media {
    margin: 0 0 18px;
    border: 1px solid rgba(238, 245, 255, .18);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
}

.hero-panel-media img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-copy,
.hero-panel,
.process-track article,
.detail-card,
.detail-list article {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 620ms var(--ease) var(--motion-delay, 0ms),
        transform 620ms var(--ease) var(--motion-delay, 0ms);
}

.hero .hero-copy,
.hero .hero-panel,
.hero-copy.is-visible,
.hero-panel.is-visible,
.process-track article.is-visible,
.detail-card.is-visible,
.detail-list article.is-visible {
    opacity: 1;
    transform: none;
}

.hero-media.is-visible {
    opacity: .94;
    transform: scale(1);
}

.hero-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.2;
}

.hero-panel p,
.detail-copy p,
.detail-copy li {
    color: #d8e5f4;
}

.detail-section {
    padding: clamp(56px, 8vh, 80px) 0;
}

.process-section {
    background: var(--paper);
}

.process-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-top: 42px;
}

.process-track-agent {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.process-track::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 18px;
    height: 1px;
    background: #b7c9df;
}

.process-track article {
    position: relative;
    z-index: 1;
    padding: 0 18px 0 0;
}

.process-track article + article {
    padding-left: 18px;
}

.process-track article > span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue);
    border-radius: 50%;
    background: var(--paper);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.process-track h3 {
    margin: 18px 0 8px;
    font-size: 20px;
}

.process-track p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

.detail-band {
    background: var(--light-blue);
}

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(2.25rem, 3vw, 3.25rem);
    line-height: 1.08;
}

.detail-copy {
    width: var(--container);
    margin: 0 auto;
}

.platform-evidence {
    width: min(1120px, 100%);
    margin: 32px auto 40px;
    padding: 12px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: white;
    box-shadow: 0 18px 42px rgba(11, 31, 58, .08);
}

.platform-evidence-compact {
    width: min(860px, 100%);
}

.platform-evidence-contact {
    width: 100%;
    margin: 36px 0 18px;
}

.platform-evidence img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.detail-copy p,
.detail-copy li {
    max-width: 980px;
    color: var(--ink);
    font-size: 16px;
}

.detail-copy ul,
.detail-copy ol {
    margin: 18px 0 0;
    padding-left: 22px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.detail-card {
    padding: 28px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: white;
}

.detail-card h3 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-list {
    display: grid;
    gap: 14px;
}

.detail-list article {
    padding: 18px 0;
    border-bottom: 1px solid rgba(208, 213, 221, .7);
}

.detail-list h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.detail-list p {
    margin: 0;
    color: var(--ink-soft);
}

.detail-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-keywords li {
    color: white;
}

.contact {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding: clamp(48px, 7vh, 64px) max(32px, calc((100vw - 1320px) / 2));
    background: var(--navy-2);
    color: white;
}

.contact h2 {
    margin: 0;
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.08;
}

.contact-copy > p:last-child {
    max-width: 620px;
    color: #aebed2;
    font-size: 16px;
}

.contact-links {
    align-self: center;
    border-top: 1px solid #38506f;
}

.contact-links a {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    min-height: 76px;
    border-bottom: 1px solid #38506f;
}

.contact-links span {
    color: #94a8c2;
    font-size: 13px;
}

.contact-links strong {
    overflow-wrap: anywhere;
    font-size: 18px;
}

.contact-links b {
    color: #7eb6ff;
    font-size: 22px;
}

.site-footer {
    min-height: 96px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px 32px;
    padding: 24px max(32px, calc((100vw - 1440px) / 2));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #233954;
    background: var(--deep-navy);
    color: #afbed0;
    font-size: 13px;
}

.site-footer > div:first-child {
    color: white;
}

.site-footer p {
    margin: 0;
}

.site-footer .footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 20px;
}

.site-footer .icp-link {
    color: #afbed0;
}

.site-footer .icp-link:hover {
    color: #fff;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--deep-navy);
    color: white;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(11, 31, 58, .28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease, background 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.back-to-top:hover {
    background: var(--navy-2);
    transform: translateY(-3px);
}

.site-footer .filing {
    grid-column: 1 / -1;
    justify-self: center;
    color: #8ea2bc;
    font-size: 12px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 42px;
    align-items: end;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.25rem, 3.2vw, 3.5rem);
    line-height: 1.08;
}

.section-heading p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 700;
}

.title-muted {
    color: #6b7c95;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-navy {
    background: var(--deep-navy);
    color: white;
}

.section-light {
    background: var(--light-blue);
}

.muted {
    color: var(--ink-soft);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--radius);
    border: 1px solid var(--rule);
    background: white;
    color: var(--ink);
    font-weight: 700;
}

.page-link.primary {
    border-color: var(--blue);
    background: var(--blue);
    color: white;
}

.contact .page-link {
    border-color: rgba(238, 245, 255, .28);
    background: transparent;
    color: white;
}

.contact .page-link.primary {
    border-color: var(--blue);
    background: var(--blue);
    color: white;
}

.contact .page-link:hover {
    border-color: rgba(238, 245, 255, .5);
}

.contact .page-link.primary:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}

@media (max-width: 1120px) {
    .hero-inner,
    .section-heading,
    .contact {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .process-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 32px;
    }

    .process-track-agent {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .process-track::before {
        display: none;
    }

    .process-track article,
    .process-track article + article {
        padding: 0;
    }
}

@media (max-width: 1320px) and (min-width: 861px) {
    .process-track,
    .process-track-agent { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 32px; }
    .process-track::before { display: none; }
    .process-track article,
    .process-track article + article { padding: 0; }
}

@media (max-width: 1180px) {
    .site-header { gap: 20px; }
    .hero-inner { gap: 32px; }
    .hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); }
    .section-heading { gap: 32px; }
}

@media (max-width: 860px) {
    :root {
        --container: calc(100% - 36px);
        --nav-height: 68px;
    }

    .site-header {
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        padding: 0 18px;
    }

    .hero-inner > *,
    .detail-copy,
    .section-heading > *,
    .detail-card,
    .contact-copy,
    .contact-links { min-width: 0; }

    .nav-toggle {
        display: block;
        order: 3;
    }

    .header-actions {
        order: 2;
    }

    .site-nav {
        position: fixed;
        inset: var(--nav-height) 0 auto;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        display: grid;
        gap: 0;
        padding: 18px;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform 240ms var(--ease), visibility 240ms;
    }

    .site-nav.open {
        transform: none;
        visibility: visible;
    }

    .site-nav a {
        min-height: 52px;
        padding: 14px 6px;
        border-bottom: 1px solid var(--rule);
        color: #3c4a63;
    }

    .site-nav a::after {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hero {
        display: block;
        height: auto;
        min-height: 0;
        padding: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 16px) 0 40px;
    }

    .hero h1,
    .detail-title,
    .contact h2 {
        font-size: clamp(2.25rem, 9vw, 3.5rem);
    }

    .hero p,
    .detail-copy p,
    .contact-copy > p:last-child {
        font-size: 16px;
    }

    .contact {
        gap: 48px;
        padding: 56px 18px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 12px;
    }

    .site-footer .footer-meta {
        justify-content: flex-start;
    }

    .back-to-top {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer .filing {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }

    .platform-hero .hero-media {
        opacity: .82;
    }

    .process-track {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 28px;
    }

    .process-track-agent {
        grid-template-columns: 1fr;
    }

    .process-track article {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 14px;
        align-items: start;
    }

    .process-track article > span {
        grid-row: span 2;
    }

    .process-track h3 {
        margin: 0 0 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
