:root {
    color-scheme: light;
    --paper: #f2f0e9;
    --paper-bright: #fbfaf6;
    --ink: #17201d;
    --ink-deep: #0c1512;
    --forest: #17352e;
    --green: #116f63;
    --mint: #b8d8cc;
    --signal: #daf05e;
    --warning: #f0c45c;
    --text: #1a2421;
    --muted: #66706c;
    --line: rgba(23, 32, 29, 0.17);
    --line-light: rgba(255, 255, 255, 0.18);
    --max-width: 1160px;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
        "PingFang TC", "Hiragino Sans", "Yu Gothic UI", "Noto Sans",
        "Helvetica Neue", Arial, sans-serif;
    --display: "Iowan Old Style", "Songti SC", "Songti TC", "Yu Mincho",
        "Hiragino Mincho ProN", Georgia, serif;
    --mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, monospace;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
summary {
    font: inherit;
}

.container {
    width: min(var(--max-width), calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 9px 13px;
    color: #fff;
    background: var(--ink-deep);
    transform: translateY(-160%);
}

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

/* Shared header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(242, 240, 233, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-lockup,
.brand {
    display: inline-flex;
    align-items: center;
}

.brand-lockup {
    gap: 10px;
    min-width: max-content;
}

.studio-brand {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.brand-divider {
    color: #9aa29f;
}

.brand {
    gap: 8px;
    font-size: 16px;
    font-weight: 720;
    letter-spacing: -0.025em;
}

.brand img {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--muted);
    font-size: 13px;
}

.nav a,
.footer-links a,
.language-list a,
.side-card a {
    transition: color 160ms ease;
}

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

.language-menu {
    position: relative;
}

.language-menu summary {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--paper-bright);
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu summary::after {
    content: "+";
    color: var(--muted);
}

.language-menu[open] summary::after {
    content: "−";
}

.language-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 168px;
    padding: 7px;
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--paper-bright);
    box-shadow: 8px 12px 0 rgba(23, 32, 29, 0.10);
    transform-origin: top right;
}

.language-list a {
    display: block;
    padding: 8px 9px;
    font-size: 13px;
}

.language-list a[aria-current="page"] {
    color: #fff;
    background: var(--green);
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 760;
    line-height: 1;
    transition: transform 150ms var(--ease-out), background-color 160ms ease,
        color 160ms ease, border-color 160ms ease;
}

.btn:active,
.document-list a:active,
.support-line a:active {
    transform: scale(0.97);
}

.btn-primary {
    color: var(--ink-deep);
    background: var(--signal);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
    background: transparent;
}

/* Home: editorial, compact, and product-led */
.hero {
    color: #fff;
    background: var(--ink-deep);
}

.hero-grid {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.62fr);
    gap: clamp(52px, 8vw, 112px);
    align-items: center;
    padding: 60px 0 54px;
}

.eyebrow,
.badge {
    width: fit-content;
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--signal);
}

.hero h1,
.section-title,
.documents-column > h2,
.legal-hero h1 {
    font-family: var(--display);
    font-weight: 560;
}

.hero h1 {
    max-width: 720px;
    margin: 20px 0 18px;
    font-size: clamp(52px, 6.4vw, 82px);
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.hero-lead {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(17px, 1.55vw, 20px);
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 27px;
}

.hero-note {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.47);
    font-size: 12px;
    line-height: 1.58;
}

.hero-visual {
    position: relative;
    width: min(330px, 100%);
    margin: 0;
    justify-self: end;
}

.hero-phone {
    overflow: hidden;
    aspect-ratio: 1284 / 2778;
    border: 6px solid #e5e2da;
    background: #080c0b;
    box-shadow: 18px 22px 0 rgba(218, 240, 94, 0.13);
    transform: rotate(1deg);
}

.hero-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual figcaption {
    position: absolute;
    right: -22px;
    bottom: 34px;
    min-width: 142px;
    padding: 13px 15px;
    color: var(--ink-deep);
    background: var(--signal);
    box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.34);
    transform: rotate(-2deg);
}

.hero-visual figcaption strong,
.hero-visual figcaption span {
    display: block;
}

.hero-visual figcaption strong {
    font-family: var(--mono);
    font-size: 13px;
}

.hero-visual figcaption span {
    margin-top: 2px;
    font-size: 11px;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-light);
}

.trust-item {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-left: 1px solid var(--line-light);
    color: rgba(255, 255, 255, 0.67);
    font-size: 12px;
}

.trust-item:first-child {
    border-left: 0;
}

.trust-item span {
    color: var(--signal);
    font-family: var(--mono);
    font-size: 10px;
}

.section {
    padding: 78px 0;
}

.section-head-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
    gap: clamp(40px, 8vw, 110px);
    align-items: end;
    margin-bottom: 38px;
}

.section-title {
    max-width: 720px;
    margin: 13px 0 0;
    font-size: clamp(38px, 4.5vw, 59px);
    letter-spacing: -0.04em;
    line-height: 1.03;
    text-wrap: balance;
}

.section-desc {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.capability-ledger {
    border-top: 1px solid var(--line);
}

.capability-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 180px;
    gap: 22px;
    align-items: baseline;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
}

.capability-number,
.capability-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.capability-number {
    color: var(--green);
}

.capability-tag {
    color: var(--muted);
    text-align: right;
}

.capability-row > div {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
    gap: 28px;
    align-items: baseline;
}

.capability-row h3,
.capability-row p {
    margin: 0;
}

.capability-row h3 {
    font-size: 18px;
    line-height: 1.25;
}

.capability-row p {
    color: var(--muted);
    font-size: 13px;
}

.process-section {
    color: #fff;
    background: var(--forest);
}

.on-dark .badge,
.verification-heading > span {
    color: var(--signal);
}

.on-dark .section-desc,
.verification-heading p {
    color: rgba(255, 255, 255, 0.58);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}

.workflow-step {
    min-height: 228px;
    padding: 21px 22px 23px;
    border-left: 1px solid var(--line-light);
}

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

.step-number {
    color: var(--signal);
    font-family: var(--mono);
    font-size: 11px;
}

.workflow-step h3 {
    margin: 54px 0 9px;
    font-size: 18px;
    line-height: 1.25;
}

.workflow-step p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.workflow-note {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 26px;
    margin: 16px 0 0;
    padding: 17px 20px;
    color: var(--ink-deep);
    background: var(--warning);
    font-size: 13px;
}

.workflow-note p {
    margin: 0;
}

.verification-block {
    display: grid;
    grid-template-columns: minmax(240px, 0.56fr) minmax(0, 1fr);
    gap: clamp(42px, 7vw, 94px);
    padding-top: 66px;
}

.verification-heading > span {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.verification-heading h2 {
    margin: 11px 0 12px;
    font-family: var(--display);
    font-size: clamp(32px, 4vw, 49px);
    font-weight: 560;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.verification-heading p {
    margin: 0;
    font-size: 14px;
}

.verification-grid {
    border-top: 1px solid var(--line-light);
}

.verification-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 22px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line-light);
}

.tier-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tier-label h3 {
    margin: 0;
    font-size: 16px;
}

.pro-tag {
    padding: 2px 5px;
    border: 1px solid rgba(218, 240, 94, 0.42);
    color: var(--signal);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.verification-row p {
    margin: 0;
    color: rgba(255, 255, 255, 0.57);
    font-size: 12px;
}

.preview-section {
    background: #deddd5;
}

.gallery {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    overflow-x: auto;
    padding: 22px 22px 26px;
    color: #fff;
    background: var(--ink-deep);
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--green) rgba(255, 255, 255, 0.12);
    scrollbar-width: thin;
}

.gallery-secondary {
    display: contents;
}

.gallery-shot {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding-top: 25px;
    scroll-snap-align: start;
}

.gallery-shot:nth-child(even),
.gallery-secondary .gallery-shot:nth-child(odd) {
    transform: none;
}

.gallery-shot::before {
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--mono);
    font-size: 9px;
}

.gallery-primary::before { content: "01"; }
.gallery-secondary .gallery-shot:nth-child(1)::before { content: "02"; }
.gallery-secondary .gallery-shot:nth-child(2)::before { content: "03"; }
.gallery-secondary .gallery-shot:nth-child(3)::before { content: "04"; }
.gallery-secondary .gallery-shot:nth-child(4)::before { content: "05"; }

.gallery-shot img {
    width: auto;
    height: clamp(390px, 54vh, 540px);
    aspect-ratio: 1284 / 2778;
    border: 1px solid rgba(255, 255, 255, 0.18);
    object-fit: contain;
}

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

.closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(50px, 8vw, 112px);
    align-items: start;
}

.safety-column {
    position: sticky;
    top: 104px;
}

.safety-column .section-title {
    margin-bottom: 14px;
    font-size: clamp(35px, 4vw, 51px);
}

.safety-notes {
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.safety-notes article {
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}

.safety-notes h3,
.safety-notes p,
.safety-notes ul {
    margin: 0;
}

.safety-notes h3 {
    margin-bottom: 7px;
    font-size: 15px;
}

.safety-notes p,
.safety-notes li {
    color: var(--muted);
    font-size: 12px;
}

.safety-notes ul {
    padding-left: 17px;
}

.safety-notes li + li {
    margin-top: 6px;
}

.documents-column > h2 {
    margin: 13px 0 12px;
    font-size: clamp(35px, 4.2vw, 53px);
    font-weight: 560;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.documents-column > p {
    margin: 0 0 29px;
    color: var(--muted);
    font-size: 14px;
}

.document-list {
    border-top: 1px solid var(--line);
}

.document-list a {
    display: grid;
    grid-template-columns: 36px 150px minmax(0, 1fr) 20px;
    gap: 16px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    transition: color 160ms ease, transform 150ms var(--ease-out);
}

.document-list span,
.document-list small {
    color: var(--muted);
}

.document-list span {
    font-family: var(--mono);
    font-size: 9px;
}

.document-list strong {
    font-size: 14px;
}

.document-list small {
    font-size: 11px;
    line-height: 1.5;
}

.document-list b {
    color: var(--green);
    font-weight: 500;
}

.support-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-top: 30px;
    padding: 21px;
    color: #fff;
    background: var(--green);
}

.support-line strong {
    font-size: 14px;
}

.support-line p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
}

.support-line a {
    min-width: max-content;
    padding: 9px 11px;
    color: var(--ink-deep);
    background: var(--signal);
    font-size: 11px;
    font-weight: 760;
    transition: transform 150ms var(--ease-out);
}

.site-footer {
    padding: 34px 0 42px;
    color: rgba(255, 255, 255, 0.53);
    background: var(--ink-deep);
    font-size: 12px;
}

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

.footer-links,
.footer-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.footer-languages,
.icp {
    grid-column: 1 / -1;
}

.footer-languages a[aria-current="page"] {
    color: var(--signal);
}

.icp a {
    color: var(--mint);
}

/* Legal and support pages retain a quieter reading layout. */
.legal-body {
    background: #edf0ec;
}

.legal-hero {
    padding: 64px 0 44px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-bright);
}

.legal-hero h1 {
    max-width: 850px;
    margin: 15px 0 10px;
    font-size: clamp(40px, 5vw, 62px);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.legal-hero p {
    max-width: 790px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.legal-hero .updated {
    margin-top: 13px;
    font-family: var(--mono);
    font-size: 11px;
}

.legal-main {
    padding: 38px 0 76px;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
    align-items: start;
}

.document {
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--line);
    background: var(--paper-bright);
}

.document-intro {
    margin: 0 0 30px;
    padding: 20px;
    border-left: 3px solid var(--green);
    color: #36514a;
    background: #dcebe5;
}

.document-intro p {
    margin: 0;
}

.document-intro p + p {
    margin-top: 10px;
}

.document h2 {
    margin: 40px 0 12px;
    padding-top: 3px;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.document section:first-of-type h2 {
    margin-top: 0;
}

.document p {
    margin: 11px 0;
    color: #354640;
}

.document ul {
    margin: 11px 0 17px;
    padding-left: 21px;
    color: #354640;
}

.document li {
    margin: 8px 0;
}

.document a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: rgba(17, 111, 99, 0.30);
    text-underline-offset: 3px;
}

.side-panel {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 12px;
}

.side-card {
    padding: 17px;
    border: 1px solid var(--line);
    background: rgba(251, 250, 246, 0.82);
}

.side-card strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.side-card a {
    display: block;
    margin: 7px 0;
    color: #52625d;
    font-size: 12px;
    line-height: 1.45;
}

.side-card a[aria-current="page"] {
    color: var(--green);
    font-weight: 700;
}

.legal-body .site-footer {
    color: #68736f;
    background: #dfe4df;
}

.legal-body .footer-languages a[aria-current="page"] {
    color: var(--green);
    font-weight: 700;
}

.legal-body .icp a {
    color: #40534e;
}

@media (hover: hover) and (pointer: fine) {
    .nav a:hover,
    .footer-links a:hover,
    .language-list a:hover,
    .side-card a:hover,
    .document-list a:hover {
        color: var(--green);
    }

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

    .btn-primary:hover,
    .support-line a:hover {
        background: #e5f981;
    }
}

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

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 0.55fr);
        gap: 38px;
    }

    .capability-row > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

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

    .workflow-step:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line-light);
    }

    .workflow-step:nth-child(4) {
        border-top: 1px solid var(--line-light);
    }

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

    .safety-column {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 30px, var(--max-width));
    }

    .header-inner {
        min-height: 62px;
    }

    .studio-brand {
        font-size: 11px;
    }

    .brand {
        font-size: 14px;
    }

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

    .language-menu summary {
        width: 38px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .language-menu summary::before {
        content: "文";
        font-size: 12px;
    }

    .language-menu summary::after {
        display: none;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 52px 0 48px;
    }

    .hero h1 {
        font-size: clamp(46px, 14vw, 64px);
    }

    .hero-visual {
        width: min(290px, 78vw);
        justify-self: center;
    }

    .hero-visual figcaption {
        right: -11px;
    }

    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(3) {
        border-left: 0;
    }

    .trust-item:nth-child(n + 3) {
        border-top: 1px solid var(--line-light);
    }

    .section {
        padding: 62px 0;
    }

    .section-head-split {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 30px;
    }

    .capability-row {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }

    .capability-tag {
        display: none;
    }

    .workflow-note,
    .verification-block,
    .verification-row {
        grid-template-columns: 1fr;
    }

    .verification-block {
        gap: 26px;
        padding-top: 52px;
    }

    .verification-row {
        gap: 8px;
    }

    .gallery-shot img {
        height: min(54vh, 460px);
    }

    .document-list a {
        grid-template-columns: 26px minmax(0, 1fr) 18px;
        gap: 10px;
    }

    .document-list small {
        display: none;
    }

    .support-line {
        grid-template-columns: 1fr;
    }

    .footer-inner,
    .legal-layout {
        grid-template-columns: 1fr;
    }

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

    .side-panel {
        position: static;
        grid-template-columns: 1fr;
    }

    .legal-hero {
        padding: 48px 0 34px;
    }

    .legal-main {
        padding-top: 24px;
    }
}

@media (max-width: 520px) {
    .brand-divider,
    .brand span {
        display: none;
    }

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

    .trust-items,
    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .trust-item,
    .trust-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line-light);
    }

    .trust-item:first-child {
        border-top: 0;
    }

    .workflow-step,
    .workflow-step:nth-child(2),
    .workflow-step:nth-child(4) {
        min-height: 0;
        border-left: 0;
        border-top: 1px solid var(--line-light);
    }

    .workflow-step:first-child {
        border-top: 0;
    }

    .workflow-step h3 {
        margin-top: 30px;
    }

    .document {
        padding: 24px 20px;
    }
}

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

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