:root {
    --ink: #17231f;
    --ink-soft: #34443e;
    --paper: #f5f6f1;
    --paper-strong: #ffffff;
    --pine: #1f6a50;
    --pine-dark: #154a39;
    --sun: #f2b84b;
    --vermilion: #c75035;
    --line: #d9ded7;
    --muted: #65706b;
    --shadow: 0 12px 34px rgba(23, 35, 31, 0.09);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body,
button,
a {
    letter-spacing: 0;
}

#main-content {
    scroll-margin-top: 72px;
}

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

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

a:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 4px;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    color: #ffffff;
    background: var(--ink);
    border-radius: 4px;
    transform: translateY(-160%);
    transition: none !important;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(23, 35, 31, 0.12);
}

.nav-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    font-weight: 800;
}

.brand {
    gap: 12px;
    flex: 0 0 auto;
    min-height: 44px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(23, 35, 31, 0.12);
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 17px;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

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

.desktop-nav a {
    position: relative;
    padding: 23px 0;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
}

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

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
    transform: scaleX(1);
}

.header-action,
.button,
.product-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 750;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-action {
    padding: 0 18px;
    color: #ffffff;
    background: var(--pine);
    font-size: 14px;
}

.header-action:hover,
.button-primary:hover {
    background: var(--pine-dark);
}

.hero {
    position: relative;
    height: calc(100svh - 128px);
    min-height: 520px;
    max-height: 720px;
    overflow: hidden;
    background: #ded9cd;
}

.hero-media,
.hero-media img,
.hero-scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
    object-position: center;
}

.hero-scrim {
    background: rgba(255, 255, 255, 0.08);
}

.hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: 53%;
    max-width: 620px;
    padding: 34px 0;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: var(--pine-dark);
    font-size: 13px;
    font-weight: 800;
}

.hero-kicker::before,
.section-kicker::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 2px;
    margin: 0 10px 4px 0;
    background: var(--vermilion);
}

.hero h1 {
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: 68px;
    font-weight: 800;
    line-height: 1.05;
}

.hero-subtitle {
    max-width: 600px;
    margin: 22px 0 0;
    color: var(--ink);
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
}

.hero-description {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.button {
    padding: 0 22px;
    border: 1px solid transparent;
}

.button-primary {
    color: #ffffff;
    background: var(--pine);
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(23, 35, 31, 0.3);
}

.button-secondary:hover {
    background: #ffffff;
    border-color: var(--ink);
}

.hero-note {
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 650;
}

.section {
    padding: 80px 0;
}

.products-section {
    scroll-margin-top: 72px;
}

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

.section-heading h2,
.about-section h2,
.closing-section h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: 42px;
    line-height: 1.22;
}

.section-heading > p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
}

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

.product-roadmap {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-roadmap h3,
.product-roadmap p {
    margin: 0;
}

.product-roadmap h3 {
    font-size: 21px;
}

.product-roadmap > div:last-child > p:first-child {
    color: var(--ink-soft);
}

.product-roadmap .product-boundary {
    margin-top: 10px;
}

.product-card {
    grid-column: span 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9ece7;
    border-bottom: 1px solid var(--line);
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.product-card:hover .product-visual img {
    transform: scale(1.012);
}

.product-body {
    min-width: 0;
    min-height: 260px;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.product-audience {
    margin: 0 0 8px;
    color: var(--pine);
    font-size: 12px;
    font-weight: 800;
}

.product-body h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
}

.product-summary,
.product-boundary,
.product-requirement {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.product-requirement {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.product-boundary {
    padding-top: 12px;
    color: #695b40;
    border-top: 1px solid #eadfbf;
}

.product-link,
.product-status {
    margin-top: auto;
    padding-top: 22px;
}

.product-link {
    width: fit-content;
    gap: 8px;
    justify-content: flex-start;
    color: var(--pine-dark);
}

.product-link:hover {
    color: var(--vermilion);
    transform: translateX(2px);
}

.product-status {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.principles-section {
    scroll-margin-top: 72px;
    padding: 84px 0;
    color: #f8faf8;
    background: var(--ink);
}

.section-heading-light .section-kicker {
    color: #badbce;
}

.section-heading-light h2 {
    color: #ffffff;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.principle {
    min-width: 0;
    padding: 34px 34px 8px 0;
}

.principle + .principle {
    padding-left: 34px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.principle-index {
    color: var(--sun);
    font-size: 13px;
    font-weight: 800;
}

.principle h3 {
    margin: 13px 0 10px;
    color: #ffffff;
    font-size: 20px;
}

.principle p {
    margin: 0;
    color: #cbd4d0;
    font-size: 14px;
}

.about-section {
    scroll-margin-top: 72px;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 72px;
}

.about-lede {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.about-details {
    min-width: 0;
    padding-left: 34px;
    border-left: 1px solid var(--line);
}

.about-details dl {
    display: grid;
    gap: 20px;
    margin: 0;
}

.about-details dl > div {
    min-width: 0;
}

.about-details dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.about-details dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 700;
}

.about-details dd a:hover,
.footer-links a:hover {
    color: var(--vermilion);
}

.about-details dd a,
.footer-brand,
.footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--pine-dark);
    font-weight: 750;
}

.closing-section {
    padding: 58px 0;
    color: #ffffff;
    background: var(--vermilion);
}

.closing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.closing-section .section-kicker {
    color: #ffffff;
}

.closing-section .section-kicker::before {
    background: var(--sun);
}

.closing-section h2 {
    font-size: 34px;
}

.button-warm {
    flex: 0 0 auto;
    color: var(--ink);
    background: var(--sun);
}

.button-warm:hover {
    background: #ffd16d;
}

.site-footer {
    padding: 52px 0 calc(28px + env(safe-area-inset-bottom));
    color: #cbd4d0;
    background: #101714;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    color: #ffffff;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: 24px;
}

.footer-grid p {
    margin: 10px 0 0;
    color: #9fabaa;
    font-size: 13px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    color: #8f9c97;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 960px) {
    .desktop-nav {
        display: none;
    }

    .hero-copy {
        width: 60%;
    }

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

    .hero-subtitle {
        font-size: 25px;
    }

    .product-card {
        grid-column: span 3;
    }

    .about-grid {
        gap: 44px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(var(--container), calc(100% - 32px));
    }

    .nav-shell {
        min-height: 64px;
        gap: 14px;
    }

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

    .brand-copy small {
        display: none;
    }

    .header-action {
        min-width: 92px;
        padding: 0 14px;
    }

    .hero {
        height: calc(100svh - 112px);
        min-height: 480px;
        max-height: 620px;
        color: #ffffff;
    }

    .hero-media img {
        object-position: center;
    }

    .hero-scrim {
        background:
            linear-gradient(90deg, rgba(10, 18, 15, 0.84) 0%, rgba(10, 18, 15, 0.74) 58%, rgba(10, 18, 15, 0.18) 100%),
            linear-gradient(0deg, rgba(10, 18, 15, 0.54) 0%, rgba(10, 18, 15, 0.02) 62%);
    }

    .hero-copy {
        width: 68%;
        max-width: 300px;
        align-self: flex-end;
        padding: 30px 0;
    }

    .hero-kicker {
        color: #d8eee5;
    }

    .hero-kicker::before {
        background: var(--sun);
    }

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

    .hero-subtitle {
        max-width: none;
        margin-top: 16px;
        color: #ffffff;
        font-size: 21px;
    }

    .hero-description {
        max-width: none;
        margin-top: 14px;
        color: #e4ebe8;
        font-size: 15px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
        margin-top: 24px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .button-primary {
        color: var(--ink);
        background: var(--sun);
    }

    .button-primary:hover {
        background: #ffd16d;
    }

    .button-secondary {
        color: #ffffff;
        background: rgba(15, 24, 21, 0.4);
        border-color: rgba(255, 255, 255, 0.7);
    }

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

    .hero-note {
        color: #d1dcd7;
    }

    .section {
        padding: 64px 0;
    }

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

    .section-heading h2,
    .about-section h2 {
        font-size: 34px;
    }

    .product-grid {
        gap: 18px;
    }

    .product-roadmap {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        grid-column: span 6;
    }

    .product-body {
        min-height: 0;
        padding: 22px 20px;
    }

    .product-link,
    .product-status {
        margin-top: 20px;
        padding-top: 0;
    }

    .principles-section {
        padding: 68px 0;
    }

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

    .principle {
        padding: 28px 0;
    }

    .principle + .principle {
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        border-left: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-details {
        padding-top: 28px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .closing-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .closing-section h2 {
        font-size: 30px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 390px) {
    .brand-copy strong {
        font-size: 16px;
    }

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

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-copy {
        width: 74%;
        max-width: 238px;
        padding: 24px 0;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.55;
    }

    .hero-note {
        display: none;
    }

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

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

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