:root {
    --color-ink: #0f172a;
    --color-ink-soft: #334155;
    --color-muted: #64748b;
    --color-primary: #1e3a5f;
    --color-action: #2563eb;
    --color-action-hover: #1d4ed8;
    --color-success: #059669;
    --color-surface: #ffffff;
    --color-surface-muted: #f8fafc;
    --color-surface-blue: #edf4ff;
    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;
    --shadow-window: 0 28px 70px rgba(15, 23, 42, 0.13), 0 4px 16px rgba(15, 23, 42, 0.06);
    --container: 1200px;
    --radius: 8px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--color-ink);
    background: var(--color-surface);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
a {
    touch-action: manipulation;
}

button {
    font: inherit;
    letter-spacing: 0;
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.48);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    color: #fff;
    background: var(--color-ink);
    border-radius: 4px;
    transform: translateY(-160%);
    transition: transform 180ms ease-out;
}

.skip-link:focus {
    transform: translateY(0);
}

.nav-shell,
.hero-shell,
.section-shell,
.footer-shell {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(14px);
}

.nav-shell {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 11px;
    color: var(--color-primary);
    font-size: 19px;
    font-weight: 750;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.nav-content,
.site-nav,
.nav-actions {
    display: flex;
    align-items: center;
}

.nav-content {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 42px;
}

.site-nav {
    gap: 30px;
}

.site-nav a,
.nav-web {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--color-ink-soft);
    font-size: 14px;
    font-weight: 600;
    transition: color 180ms ease-out;
}

.site-nav a:hover,
.nav-web:hover {
    color: var(--color-action);
}

.nav-actions {
    gap: 18px;
}

.nav-download {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    color: #fff;
    background: var(--color-action);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 180ms ease-out, transform 180ms ease-out;
}

.nav-download:hover {
    background: var(--color-action-hover);
    transform: translateY(-1px);
}

.nav-toggle {
    width: 48px;
    height: 48px;
    display: none;
    padding: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    width: 23px;
    height: 2px;
    display: block;
    margin: 5px auto;
    background: var(--color-ink);
    transition: transform 180ms ease-out, opacity 140ms ease-out;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.hero-shell {
    padding: 80px 0 72px;
    text-align: center;
}

.hero-label,
.section-label,
.download-label,
.template-count {
    margin: 0;
    color: var(--color-action);
    font-size: 13px;
    font-weight: 750;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--color-primary);
}

.hero-label span {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.1);
}

.hero h1 {
    margin: 17px 0 0;
    color: var(--color-primary);
    font-size: 64px;
    font-weight: 780;
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-statement {
    max-width: 760px;
    margin: 22px auto 0;
    color: var(--color-ink-soft);
    font-size: 22px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--color-action);
}

.button-primary:hover {
    background: var(--color-action-hover);
}

.button-secondary {
    color: var(--color-primary);
    background: #fff;
    border-color: var(--color-border-strong);
}

.button-secondary:hover {
    color: var(--color-action);
    border-color: #94a3b8;
    background: var(--color-surface-muted);
}

.support-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 180ms ease-out;
}

.support-link:hover {
    color: var(--color-action);
}

.release-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    color: var(--color-muted);
    font-size: 13px;
}

.release-line span {
    display: inline-flex;
    align-items: center;
}

.release-line span + span::before {
    content: "";
    width: 1px;
    height: 12px;
    margin: 0 14px;
    background: var(--color-border-strong);
}

.product-stage,
.capabilities,
.template-section,
.workflow,
.faq-section {
    padding: 104px 0;
}

.product-stage,
.template-section,
.faq-section {
    background: var(--color-surface-muted);
}

.stage-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
    gap: 64px;
    align-items: end;
    margin-bottom: 40px;
}

.stage-heading h2,
.section-heading h2,
.download-shell h2 {
    margin: 10px 0 0;
    color: var(--color-ink);
    font-size: 38px;
    font-weight: 740;
    line-height: 1.32;
    letter-spacing: 0;
}

.stage-heading > p,
.section-heading > p:not(.section-label),
.download-shell > div > p:not(.download-label) {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.app-window {
    width: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    color: var(--color-ink);
    text-align: left;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-window);
    cursor: zoom-in;
    transition: border-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

.app-window:hover {
    border-color: #94a3b8;
    box-shadow: 0 32px 78px rgba(15, 23, 42, 0.16), 0 6px 18px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.window-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    background: #eef2f7;
}

.proof-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 48px 0 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.proof-list div {
    min-width: 0;
    padding: 22px 24px;
    border-left: 1px solid var(--color-border);
}

.proof-list div:first-child {
    border-left: 0;
}

.proof-list dt {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 740;
}

.proof-list dd {
    margin: 5px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 46px;
}

.section-heading > p:not(.section-label) {
    margin-top: 16px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.capability-grid article {
    min-width: 0;
    min-height: 220px;
    padding: 36px 34px 34px;
    border-left: 1px solid var(--color-border);
}

.capability-grid article:first-child {
    border-left: 0;
}

.capability-grid article > span,
.workflow-list > li > span {
    color: var(--color-action);
    font-size: 13px;
    font-weight: 800;
}

.capability-grid h3,
.workflow-list h3,
.template-copy h3 {
    margin: 18px 0 0;
    color: var(--color-ink);
    font-size: 21px;
    line-height: 1.4;
}

.capability-grid p,
.workflow-list p,
.template-copy > p:last-child {
    margin: 10px 0 0;
    color: var(--color-muted);
}

.template-heading {
    max-width: 800px;
}

.template-tabs {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border-strong);
    scrollbar-width: thin;
}

.template-tabs button {
    position: relative;
    min-width: max-content;
    min-height: 50px;
    padding: 0 1px;
    color: var(--color-muted);
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    transition: color 180ms ease-out;
}

.template-tabs button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--color-action);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease-out;
}

.template-tabs button:hover {
    color: var(--color-ink);
}

.template-tabs button[aria-selected="true"] {
    color: var(--color-action);
}

.template-tabs button[aria-selected="true"]::after {
    transform: scaleX(1);
}

.template-view {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    transition: opacity 110ms ease-out;
}

.template-view.is-changing {
    opacity: 0.42;
}

.template-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 34px;
    border-right: 1px solid var(--color-border);
}

.template-copy h3 {
    margin-top: 12px;
    font-size: 24px;
}

.template-image-button {
    min-width: 0;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #eef2f7;
    cursor: zoom-in;
}

.template-image-button img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    transition: transform 220ms ease-out;
}

.template-image-button:hover img {
    transform: scale(1.008);
}

.workflow-heading {
    margin-bottom: 40px;
}

.workflow-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.workflow-list li {
    min-height: 180px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-content: center;
    padding: 30px;
    border-left: 1px solid var(--color-border);
}

.workflow-list li:first-child {
    border-left: 0;
}

.workflow-list h3 {
    margin-top: 0;
}

.faq-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.faq-heading {
    margin: 0;
}

.faq-list {
    border-top: 1px solid var(--color-border-strong);
}

.faq-list details {
    border-bottom: 1px solid var(--color-border-strong);
}

.faq-list summary {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--color-ink);
    font-size: 17px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--color-action);
    border: 1px solid var(--color-border-strong);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    margin: -2px 44px 24px 0;
    color: var(--color-muted);
}

.download-section {
    padding: 80px 0;
    background: var(--color-surface-blue);
    border-top: 1px solid #dbe8fb;
}

.download-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.download-shell > div:first-child {
    max-width: 660px;
}

.download-shell h2 {
    color: var(--color-primary);
}

.download-shell > div > p:not(.download-label) {
    margin-top: 14px;
}

.download-actions {
    min-width: 260px;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 12px;
}

.download-actions p {
    grid-column: 1 / -1;
    max-width: 430px;
    margin: 2px 0 0;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.6;
}

.button-white {
    color: #fff;
    background: var(--color-action);
}

.button-white:hover {
    background: var(--color-action-hover);
}

.button-outline-light {
    color: var(--color-primary);
    background: transparent;
    border-color: #a8bdd8;
}

.button-outline-light:hover {
    color: var(--color-action);
    background: rgba(255, 255, 255, 0.7);
    border-color: #7f9fca;
}

.site-footer {
    padding: 48px 0 28px;
    color: #d7e0ec;
    background: #0f1b2d;
}

.footer-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: #fff;
    font-size: 17px;
}

.footer-brand span,
.footer-shell > p {
    color: #91a2b7;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 24px;
}

.footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #c8d3e0;
    font-size: 14px;
    transition: color 180ms ease-out;
}

.footer-links a:hover {
    color: #fff;
}

.footer-shell > p {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid #29374a;
}

.lightbox {
    width: min(calc(100% - 32px), 1500px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.lightbox::backdrop {
    background: rgba(6, 12, 22, 0.88);
    backdrop-filter: blur(3px);
}

.lightbox img {
    width: 100%;
    height: auto;
}

.lightbox p {
    margin: 0;
    padding: 14px 20px 18px;
    color: var(--color-ink-soft);
    font-size: 14px;
    font-weight: 650;
}

.lightbox-close {
    position: sticky;
    top: 12px;
    z-index: 2;
    float: right;
    width: 46px;
    height: 46px;
    margin: 12px 12px -58px 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 56px;
    }

    .stage-heading,
    .faq-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .stage-heading > p {
        max-width: 680px;
    }

    .proof-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proof-list div:nth-child(3) {
        border-left: 0;
    }

    .proof-list div:nth-child(n + 3) {
        border-top: 1px solid var(--color-border);
    }

    .template-view {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .template-copy {
        padding: 32px 26px;
    }

    .download-shell {
        align-items: flex-start;
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 800px) {
    html {
        scroll-padding-top: 76px;
    }

    .site-header {
        height: 66px;
    }

    .nav-shell,
    .hero-shell,
    .section-shell,
    .footer-shell {
        width: min(calc(100% - 32px), var(--container));
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-content {
        position: fixed;
        top: 66px;
        right: 0;
        left: 0;
        max-height: calc(100dvh - 66px);
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        overflow: auto;
        padding: 16px 16px 22px;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    }

    .nav-content.is-open {
        display: flex;
    }

    .site-nav,
    .nav-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .site-nav a,
    .nav-web {
        min-height: 48px;
        padding: 6px 10px;
        font-size: 16px;
    }

    .nav-actions {
        padding-top: 10px;
        border-top: 1px solid var(--color-border);
    }

    .nav-download {
        min-height: 48px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-shell {
        padding: 70px 0 60px;
    }

    .hero h1 {
        margin-top: 15px;
        font-size: 44px;
    }

    .hero-statement {
        margin-top: 18px;
        font-size: 18px;
    }

    .product-stage,
    .capabilities,
    .template-section,
    .workflow,
    .faq-section {
        padding: 76px 0;
    }

    .stage-heading h2,
    .section-heading h2,
    .download-shell h2 {
        font-size: 31px;
    }

    .capability-grid,
    .workflow-list {
        grid-template-columns: 1fr;
    }

    .capability-grid article,
    .workflow-list li {
        min-height: 0;
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }

    .capability-grid article:first-child,
    .workflow-list li:first-child {
        border-top: 0;
    }

    .capability-grid article {
        padding: 28px 4px;
    }

    .workflow-list li {
        padding: 28px 4px;
    }

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

    .template-copy {
        min-height: 190px;
        padding: 28px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .faq-shell {
        gap: 36px;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 8px 22px;
    }

    .footer-shell > p {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .hero {
        min-height: 570px;
    }

    .hero-shell {
        padding: 58px 0 52px;
    }

    .hero-label {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.2;
    }

    .hero-statement br {
        display: none;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 28px;
    }

    .button {
        width: 100%;
    }

    .release-line {
        align-items: center;
        flex-direction: column;
        gap: 4px;
    }

    .release-line span + span::before {
        display: none;
    }

    .product-stage,
    .capabilities,
    .template-section,
    .workflow,
    .faq-section {
        padding: 64px 0;
    }

    .stage-heading {
        margin-bottom: 28px;
    }

    .stage-heading h2,
    .section-heading h2,
    .download-shell h2 {
        font-size: 28px;
        line-height: 1.4;
    }

    .proof-list {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }

    .proof-list div,
    .proof-list div:nth-child(3) {
        padding: 18px 4px;
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }

    .proof-list div:first-child {
        border-top: 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .template-tabs {
        gap: 24px;
        margin-right: -16px;
        padding-right: 16px;
    }

    .template-view {
        margin-right: -8px;
        margin-left: -8px;
    }

    .template-copy {
        min-height: 0;
        padding: 24px 20px;
    }

    .template-copy h3 {
        font-size: 21px;
    }

    .faq-list summary {
        min-height: 68px;
        font-size: 16px;
    }

    .download-section {
        padding: 64px 0;
    }

    .download-actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .download-actions p {
        grid-column: auto;
    }

    .lightbox {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
    }

    .lightbox img {
        width: 900px;
        max-width: none;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
