:root {
    --ink: #17202c;
    --muted: #657184;
    --line: #dce3eb;
    --paper: #f7f8f4;
    --panel: #ffffff;
    --green: #167a62;
    --green-dark: #0f5646;
    --blue: #285c9f;
    --gold: #d9a441;
    --red: #bf4c3d;
    --shadow: 0 22px 60px rgba(32, 45, 61, .16);
    --soft-shadow: 0 18px 42px rgba(32, 45, 61, .11);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "HarmonyOS Sans SC", "Avenir Next", "PingFang SC", "Microsoft Yahei", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.site-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(22, 122, 98, .13), transparent 28%),
        radial-gradient(circle at 88% 22%, rgba(217, 164, 65, .13), transparent 30%),
        linear-gradient(90deg, rgba(23, 32, 44, .04) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(0deg, rgba(23, 32, 44, .03) 1px, transparent 1px) 0 0 / 44px 44px,
        var(--paper);
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image: linear-gradient(115deg, transparent 0, rgba(255, 255, 255, .55) 46%, transparent 54%);
    background-size: 260% 260%;
    animation: ambientSweep 14s ease-in-out infinite alternate;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 18px;
    left: 50%;
    width: min(1180px, calc(100% - 28px));
    height: 64px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 12px 0 18px;
    border: 1px solid rgba(220, 227, 235, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 40px rgba(23, 32, 44, .09);
    backdrop-filter: blur(18px);
    animation: headerDrop .65s cubic-bezier(.2, .8, .2, 1) both;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
}

.site-nav a,
.nav-login {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: #edf4f1;
    color: var(--green-dark);
    transform: translateY(-1px);
}

.nav-login {
    color: #fff;
    background: var(--ink);
    box-shadow: 0 12px 28px rgba(23, 32, 44, .18);
}

.hero-section,
.section,
.workspace-section,
.download-section,
.security-section,
.pricing-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-section {
    min-height: 100vh;
    padding: 126px 0 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 540px);
    align-items: center;
    gap: 52px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow,
.section-heading p,
.workspace-copy > p,
.pricing-section p,
.download-copy > p {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(64px, 8vw, 112px);
    line-height: .95;
    letter-spacing: 0;
    font-weight: 800;
    color: #111827;
    text-shadow: 0 12px 34px rgba(23, 32, 44, .10);
    animation: titleRise .76s cubic-bezier(.2, .8, .2, 1) both .08s;
}

.hero-lead {
    max-width: 650px;
    margin: 26px 0 0;
    color: #344256;
    font-size: 20px;
    line-height: 1.72;
    font-weight: 500;
    animation: titleRise .76s cubic-bezier(.2, .8, .2, 1) both .18s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 0;
    animation: titleRise .76s cubic-bezier(.2, .8, .2, 1) both .28s;
}

.btn-primary,
.btn-secondary,
.btn-dark {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.btn-primary {
    color: #fff;
    background: var(--green);
    box-shadow: 0 16px 36px rgba(22, 122, 98, .28);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    transition: transform .6s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(23, 32, 44, .16);
}

.btn-primary:hover::after {
    transform: translateX(120%) skewX(-18deg);
}

.btn-secondary {
    color: var(--green-dark);
    background: #e5f1ed;
}

.btn-dark {
    color: #fff;
    background: var(--ink);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 38px;
    animation: titleRise .76s cubic-bezier(.2, .8, .2, 1) both .38s;
}

.hero-metrics span {
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.hero-metrics span:hover,
.feature-grid article:hover,
.security-grid div:hover,
.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 122, 98, .28);
    box-shadow: var(--soft-shadow);
    background: rgba(255, 255, 255, .94);
}

.hero-metrics strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 17px;
}

.hero-board {
    border: 1px solid #cbd5df;
    border-radius: 8px;
    background: #fdfdfb;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: rotate(-1.2deg);
    animation: boardFloat 5.8s ease-in-out infinite, titleRise .8s cubic-bezier(.2, .8, .2, 1) both .18s;
}

.board-top {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: #eef3f5;
}

.board-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--red);
    animation: dotPulse 2.8s ease-in-out infinite;
}

.board-top span:nth-child(2) {
    background: var(--gold);
}

.board-top span:nth-child(3) {
    background: var(--green);
}

.board-top b {
    margin-left: 8px;
    font-size: 14px;
}

.board-layout {
    display: grid;
    grid-template-columns: 145px 1fr;
    min-height: 430px;
}

.board-layout aside {
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: #f5f6f0;
}

.board-layout aside em,
.board-layout aside strong {
    display: block;
    margin-bottom: 10px;
    padding: 11px 12px;
    border-radius: 6px;
    font-style: normal;
    font-size: 13px;
}

.board-layout aside strong {
    color: #fff;
    background: var(--green);
}

.file-panel {
    padding: 20px;
}

.file-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.file-toolbar span {
    padding: 8px 11px;
    border-radius: 6px;
    color: var(--green-dark);
    background: #e5f1ed;
    font-size: 12px;
    font-weight: 800;
}

.file-row {
    position: relative;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    padding: 16px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.file-row.active {
    border-color: rgba(22, 122, 98, .5);
    box-shadow: 0 14px 28px rgba(22, 122, 98, .12);
}

.file-row:hover {
    transform: translateX(4px);
    border-color: rgba(40, 92, 159, .35);
    box-shadow: 0 12px 26px rgba(40, 92, 159, .10);
}

.file-row i {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: var(--blue);
}

.file-row b {
    font-size: 15px;
}

.file-row small {
    grid-column: 2;
    margin-top: -6px;
    color: var(--muted);
}

.section {
    padding: 84px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-heading h2,
.workspace-copy h2,
.pricing-section h2,
.download-copy h2 {
    margin: 0;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.12;
    letter-spacing: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-grid article,
.security-grid div {
    min-height: 232px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.feature-grid article span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.feature-grid h3,
.security-grid h3 {
    margin: 26px 0 10px;
    font-size: 20px;
}

.feature-grid p,
.security-grid p,
.workspace-copy li,
.download-note,
.download-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.workspace-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
    align-items: center;
    gap: 40px;
    padding: 90px 42px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 26px 70px rgba(23, 32, 44, .16);
}

.workspace-copy li {
    margin: 18px 0;
    color: #d7dee7;
}

.workspace-copy strong {
    color: #fff;
}

.workflow-card {
    display: grid;
    gap: 12px;
}

.workflow-card div {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    transition: transform .24s ease, background .24s ease, border-color .24s ease;
}

.workflow-card div:hover {
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .13);
}

.workflow-card b,
.workflow-card span {
    display: block;
}

.workflow-card span {
    margin-top: 8px;
    color: #c9d4df;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pricing-section,
.download-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 34px;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(32, 45, 61, .07);
}

.download-section {
    align-items: stretch;
    margin-bottom: 84px;
}

.download-copy {
    max-width: 620px;
}

.download-note {
    margin-top: 18px;
}

.download-note code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #edf1f5;
    color: #304257;
    font-family: "Menlo", "Consolas", monospace;
}

.download-card {
    width: min(390px, 100%);
    padding: 26px;
    border-radius: 8px;
    background: #f3f7f5;
    transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.system-pill {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(40, 92, 159, .24);
    animation: pillPulse 2.6s ease-in-out infinite;
}

.download-card h3 {
    margin: 0 0 10px;
    font-size: 25px;
}

.download-main {
    width: 100%;
    margin: 24px 0 14px;
}

.download-main.is-disabled {
    pointer-events: none;
    opacity: .56;
}

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

.download-options a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: #344256;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.download-options a:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 122, 98, .36);
    color: var(--green-dark);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: var(--ink);
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    text-align: right;
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translate(-50%, -14px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes titleRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes boardFloat {
    0%, 100% {
        transform: rotate(-1.2deg) translateY(0);
    }
    50% {
        transform: rotate(-.4deg) translateY(-10px);
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: .85;
    }
    50% {
        transform: scale(1.18);
        opacity: 1;
    }
}

@keyframes pillPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes ambientSweep {
    from {
        background-position: 0 50%;
    }
    to {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 1040px) {
    .hero-section,
    .workspace-section,
    .download-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 112px;
    }

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

    .hero-board {
        animation-name: titleRise;
        transform: none;
    }

    .pricing-section,
    .download-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .site-header {
        top: 10px;
        height: auto;
        min-height: 58px;
        flex-wrap: wrap;
        padding: 10px;
    }

    .site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .site-nav a,
    .nav-login {
        flex: 0 0 auto;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 138px;
        gap: 30px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-metrics,
    .feature-grid,
    .security-grid,
    .download-options {
        grid-template-columns: 1fr;
    }

    .board-layout {
        grid-template-columns: 1fr;
    }

    .board-layout aside {
        display: none;
    }

    .workspace-section,
    .pricing-section,
    .download-section {
        padding: 28px 20px;
    }

    .site-footer {
        display: block;
    }

    .site-footer p {
        margin-top: 14px;
        text-align: left;
    }
}
