:root {
    color-scheme: light;
    --paper: #f7f8f5;
    --surface: #ffffff;
    --ink: #20231f;
    --muted: #666c64;
    --line: #dfe3dc;
    --tomato: #f65248;
    --leaf: #2f9363;
    --peach: #ffbf97;
    --content: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0;
}

a {
    color: var(--leaf);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--tomato);
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid rgba(32, 35, 31, 0.08);
    background: rgba(247, 248, 245, 0.92);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

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

.header-tools {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.language-picker {
    min-height: 38px;
    max-width: 152px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: min(720px, calc(88svh - 68px));
    align-items: center;
    overflow: hidden;
    padding: clamp(72px, 10vw, 132px) clamp(20px, 7vw, 112px);
    background: var(--surface);
    isolation: isolate;
}

.hero::after {
    position: absolute;
    z-index: -1;
    right: clamp(-120px, -5vw, -32px);
    width: min(60vw, 720px);
    aspect-ratio: 1;
    background: url("assets/icon.png") center / contain no-repeat;
    content: "";
    opacity: 0.92;
    transform: rotate(3deg);
    animation: icon-arrival 800ms cubic-bezier(.2, .8, .2, 1) both;
}

.hero-copy {
    width: min(620px, 58vw);
    min-width: 0;
    animation: copy-arrival 650ms 100ms cubic-bezier(.2, .8, .2, 1) both;
}

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

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(46px, 7vw, 88px);
    font-weight: 760;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

html[lang="zh-Hans"] h1,
html[lang="ja"] h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.hero-summary {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(19px, 2.2vw, 25px);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.summary-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.summary-item {
    min-height: 180px;
    padding: 38px clamp(20px, 4vw, 58px);
    border-right: 1px solid var(--line);
}

.summary-item:last-child {
    border-right: 0;
}

.summary-item strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}

.summary-item p {
    margin: 0;
    color: var(--muted);
}

.document {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: clamp(72px, 10vw, 120px) 0;
}

.document-intro {
    margin-bottom: 64px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.document-intro h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 44px);
}

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

.policy-section {
    margin: 0 0 52px;
}

.policy-section h3 {
    margin-bottom: 14px;
    font-size: 23px;
}

.policy-section p {
    margin: 0 0 18px;
    color: #3f443e;
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
    background: var(--ink);
    color: var(--surface);
    transform: translateY(-2px);
}

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

.button.primary:hover {
    border-color: #d9433a;
    background: #d9433a;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 36px clamp(20px, 5vw, 72px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.site-footer p {
    margin: 0;
}

[data-locale-panel][hidden] {
    display: none;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
}

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

@keyframes copy-arrival {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes icon-arrival {
    from {
        opacity: 0;
        transform: translateX(40px) rotate(8deg) scale(0.94);
    }
}

@media (max-width: 760px) {
    .site-header {
        gap: 12px;
        padding-inline: 16px;
    }

    .header-link {
        display: none;
    }

    .language-picker {
        width: 126px;
    }

    .hero {
        min-height: 690px;
        align-items: end;
        padding: 330px 20px 64px;
    }

    .hero::after {
        top: 42px;
        right: 50%;
        width: min(86vw, 360px);
        transform: translateX(50%) rotate(3deg);
    }

    .hero-copy {
        width: 100%;
    }

    h1 {
        font-size: 48px;
    }

    html[lang="zh-Hans"] h1,
    html[lang="ja"] h1 {
        font-size: 42px;
    }

    .summary-band {
        grid-template-columns: 1fr;
    }

    .summary-item {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .summary-item:last-child {
        border-bottom: 0;
    }

    .site-footer {
        flex-direction: column;
    }
}

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

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