:root {
    color-scheme: light;
    --ink: #121a22;
    --ink-soft: #465462;
    --paper: #ffffff;
    --canvas: #f3f6f8;
    --line: #d8e0e6;
    --green: #08783f;
    --green-bright: #07c160;
    --green-soft: #e8f7ee;
    --blue: #174ea6;
    --red: #a43a32;
    --shadow: 0 16px 40px rgba(18, 26, 34, 0.14);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.environment-banner {
    padding: 7px 20px;
    color: #fff;
    background: var(--red);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px max(24px, calc((100% - 1180px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    background: #111a20;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    background: var(--green-bright);
    font-size: 16px;
    font-weight: 800;
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: #e7edf1;
    font-size: 14px;
    text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.hero {
    position: relative;
    display: flex;
    height: min(720px, 78svh);
    min-height: 560px;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background-color: #17222b;
    background-image: url("/assets/xiaowei-workspace.png");
    background-position: 36% center;
    background-size: cover;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 22, 0.72);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #78efa8;
}

.hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: 64px;
    font-weight: 750;
    line-height: 1.08;
}

.hero-vision {
    max-width: 760px;
    margin: 24px 0 0;
    font-size: 24px;
    font-weight: 650;
    line-height: 1.5;
}

.hero-copy {
    max-width: 680px;
    margin: 16px 0 0;
    color: #dce5ea;
    font-size: 17px;
}

.primary-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    margin-top: 28px;
    padding: 0 20px;
    border: 1px solid #fff;
    border-radius: 6px;
    color: #102019;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.primary-link:hover,
.primary-link:focus-visible {
    color: #fff;
    background: transparent;
}

.hero-caption {
    position: absolute;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 18px;
    z-index: 1;
    margin: 0;
    color: #d1dce2;
    font-size: 12px;
}

.section {
    padding: 88px 24px;
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.section h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.2;
}

.service-state {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 14px;
}

.service-state-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #7b8790;
    border-radius: 50%;
    background: transparent;
}

.service-state[data-status="ready"] .service-state-dot {
    border-color: var(--green);
    background: var(--green);
}

.service-state[data-status="unavailable"] .service-state-dot {
    border-color: var(--red);
    background: var(--red);
}

.work-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: start;
    gap: 52px;
}

.product-figure {
    margin: 0;
}

.product-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.product-figure figcaption {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 13px;
}

.work-copy {
    padding-top: 4px;
}

.work-kicker {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.work-copy h3 {
    margin: 0 0 18px;
    font-size: 27px;
    line-height: 1.3;
}

.work-copy > p:not(.work-kicker):not(.service-meta) {
    margin: 0 0 15px;
    color: var(--ink-soft);
}

.fact-list {
    margin: 28px 0 0;
    border-top: 1px solid var(--line);
}

.fact-list div {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.fact-list dt {
    color: var(--ink-soft);
    font-size: 13px;
}

.fact-list dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.service-meta {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.loop-section {
    color: #f5f8fa;
    background: #17232a;
}

.loop-section .eyebrow {
    color: #78efa8;
}

.loop-intro {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr);
    gap: 80px;
    align-items: start;
}

.loop-intro > p {
    margin: 0;
    color: #c6d1d7;
}

.loop-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 52px 0 0;
    padding: 0;
    border-top: 1px solid #52616a;
    list-style: none;
}

.loop-steps li {
    min-width: 0;
    padding: 24px 18px 0 0;
}

.loop-steps span,
.loop-steps strong,
.loop-steps small {
    display: block;
}

.loop-steps span {
    color: #78efa8;
    font-size: 12px;
    font-weight: 800;
}

.loop-steps strong {
    margin-top: 8px;
    font-size: 15px;
}

.loop-steps small {
    margin-top: 7px;
    color: #aab7be;
    font-size: 12px;
    line-height: 1.6;
}

.about-section {
    background: var(--canvas);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr);
    gap: 80px;
}

.about-copy p {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 18px;
}

.site-footer {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px max(24px, calc((100% - 1180px) / 2));
    color: #d9e2e7;
    background: #10181e;
    font-size: 13px;
}

.site-footer div,
.legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.site-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

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

    .hero-vision {
        font-size: 21px;
    }

    .work-layout,
    .loop-intro,
    .about-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 620px) {
    .site-header {
        min-height: 60px;
        padding: 8px 16px;
    }

    .brand {
        font-size: 15px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    nav {
        gap: 14px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        height: min(650px, 78svh);
        min-height: 530px;
        background-position: 30% center;
    }

    .hero-content {
        width: calc(100% - 32px);
    }

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

    .hero-vision {
        margin-top: 20px;
        font-size: 19px;
    }

    .hero-copy {
        font-size: 15px;
    }

    .hero-caption {
        right: 16px;
        bottom: 12px;
    }

    .section {
        padding: 64px 16px;
    }

    .section-heading {
        display: block;
        margin-bottom: 28px;
    }

    .section h2 {
        font-size: 31px;
    }

    .service-state {
        margin-top: 18px;
    }

    .work-copy h3 {
        font-size: 24px;
    }

    .fact-list div {
        grid-template-columns: 120px 1fr;
        gap: 10px;
    }

    .loop-steps {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }

    .loop-steps li {
        padding: 18px 0;
        border-bottom: 1px solid #36464f;
    }

    .about-copy p {
        font-size: 16px;
    }

    .site-footer {
        display: block;
        padding: 28px 16px;
    }

    .legal-links {
        margin-top: 10px;
    }
}

@media (max-width: 390px) {
    nav {
        gap: 8px;
    }

    nav a {
        padding: 0 2px;
        font-size: 12px;
    }

    .brand > span:last-child {
        max-width: 80px;
        line-height: 1.25;
    }
}

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