:root {
    --bg: #f4efe6;
    --surface: rgba(255, 252, 247, 0.82);
    --surface-strong: #fffaf2;
    --text: #1f1b16;
    --muted: #645b52;
    --accent: #1f6a5d;
    --accent-strong: #11493f;
    --border: rgba(31, 27, 22, 0.1);
    --shadow: 0 24px 70px rgba(58, 46, 30, 0.12);
    --hero-gradient: radial-gradient(circle at top left, rgba(31, 106, 93, 0.22), transparent 38%),
        radial-gradient(circle at top right, rgba(230, 176, 74, 0.22), transparent 28%),
        linear-gradient(180deg, #faf4ea 0%, #f3ebdf 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: var(--text);
    background: var(--hero-gradient);
    min-height: 100vh;
    line-height: 1.65;
}

a {
    color: var(--accent-strong);
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.page-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 250, 242, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.lang-globe {
    font-size: 15px;
    line-height: 1;
    opacity: 0.75;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    margin: 0;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    padding: 2px 20px 2px 0;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23645b52' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 10px 6px;
}

.lang-select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Legacy button switcher (kept for backward compatibility). */
.lang-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    font: inherit;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.lang-button.is-active {
    color: #fff;
    background: var(--accent);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 250, 242, 0.68);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, #0f7667 0%, #2ba88d 100%);
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy span,
.eyebrow,
.meta,
.card-note,
.footer {
    color: var(--muted);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-links a,
.button-link {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.65);
}

.button-link.primary {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.hero,
.content-card,
.feature-grid article,
.faq-item,
.support-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero {
    margin-top: 22px;
    border-radius: 34px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 28px;
    padding: 42px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    margin-bottom: 14px;
}

p,
li {
    font-size: 1rem;
}

.hero-copy p {
    max-width: 52rem;
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-panel {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(17, 73, 63, 0.94), rgba(11, 42, 37, 0.92));
    color: #effaf7;
}

.hero-panel ul {
    margin: 16px 0 0;
    padding-left: 18px;
}

.section {
    margin-top: 22px;
}

.content-card {
    border-radius: 28px;
    padding: 30px;
}

.feature-grid,
.support-grid,
.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-grid article,
.support-card {
    border-radius: 24px;
    padding: 24px;
}

.feature-grid h3,
.support-card h3 {
    margin-bottom: 10px;
    font-size: 1.14rem;
}

.policy-grid {
    align-items: start;
}

.policy-list,
.faq-list,
.timeline,
.contact-list {
    display: grid;
    gap: 14px;
}

.policy-item,
.faq-item {
    padding: 20px 22px;
    border-radius: 22px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
}

.policy-item h3,
.faq-item h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.meta {
    font-size: 0.94rem;
}

.timeline {
    counter-reset: support-step;
}

.timeline article {
    position: relative;
    padding-left: 54px;
}

.timeline article::before {
    counter-increment: support-step;
    content: counter(support-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(31, 106, 93, 0.14);
    color: var(--accent-strong);
    font-weight: 700;
}

.card-note {
    margin-top: 12px;
    font-size: 0.95rem;
}

.footer {
    margin-top: 26px;
    padding: 0 4px;
    font-size: 0.94rem;
}

code {
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(17, 73, 63, 0.08);
}

@media (max-width: 860px) {
    .hero-inner,
    .feature-grid,
    .support-grid,
    .policy-grid {
        grid-template-columns: 1fr;
    }

    .shell {
        width: min(100% - 20px, 1120px);
    }

    .page-tools {
        justify-content: flex-start;
    }

    .hero-inner,
    .content-card,
    .feature-grid article,
    .support-card,
    .policy-item,
    .faq-item {
        padding: 22px;
    }

    h1 {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }
}