:root {
    color-scheme: light dark;
    --background: #f5faf9;
    --surface: rgba(255, 255, 255, 0.88);
    --text: #173634;
    --muted: #54706d;
    --accent: #087f75;
    --accent-strong: #05675f;
    --line: rgba(8, 127, 117, 0.18);
    --shadow: 0 18px 50px rgba(8, 77, 72, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(31, 184, 167, 0.17), transparent 32rem),
        linear-gradient(180deg, #f9fcfb 0%, var(--background) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    line-height: 1.75;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(249, 252, 251, 0.9);
    backdrop-filter: blur(18px);
}

.nav {
    width: min(1080px, calc(100% - 32px));
    min-height: 64px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

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

.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent-strong); font-weight: 700; }
.language-picker {
    max-width: 180px;
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.hero, main, .footer-inner {
    width: min(1080px, calc(100% - 32px));
    margin-inline: auto;
}

.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 64px;
    padding-block: 84px;
}

.eyebrow {
    color: var(--accent-strong);
    font-weight: 750;
    letter-spacing: 0.08em;
}

h1 { margin: 12px 0 20px; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.03; letter-spacing: -0.04em; }
h2 { margin-top: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; }
h3 { margin-bottom: 8px; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.28rem); }

.hero-icon {
    width: min(100%, 320px);
    justify-self: center;
    border-radius: 28%;
    box-shadow: var(--shadow);
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    text-decoration: none;
}
.button:hover { background: var(--accent-strong); color: white; }
.button.secondary { background: transparent; color: var(--accent-strong); }

.section { padding-block: 72px; }
.section > p { max-width: 760px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card, .document {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.card { padding: 26px; }
.card p { margin-bottom: 0; color: var(--muted); }
.symbol { font-size: 1.7rem; }

.document { max-width: 820px; margin: 64px auto; padding: clamp(24px, 6vw, 58px); }
.document h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
.document h2 { margin-top: 42px; font-size: 1.45rem; }
.document li + li { margin-top: 8px; }
.meta { color: var(--muted); font-size: 0.92rem; }
.notice { padding: 18px 20px; border-left: 4px solid var(--accent); background: rgba(8, 127, 117, 0.08); }

footer { margin-top: 70px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 28px; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 760px) {
    .nav { align-items: flex-start; flex-direction: column; padding-block: 12px; gap: 8px; }
    .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 56px; gap: 38px; }
    .hero-icon { width: 190px; grid-row: 1; }
    .grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #071c1a;
        --surface: rgba(15, 42, 39, 0.88);
        --text: #e8f7f4;
        --muted: #aac5c0;
        --accent: #3bd1be;
        --accent-strong: #71e3d4;
        --line: rgba(113, 227, 212, 0.2);
        --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    }
    body { background: radial-gradient(circle at 10% 0%, #104d47, transparent 30rem), var(--background); }
    .site-header { background: rgba(7, 28, 26, 0.9); }
    .button { color: #06201d; }
    .button:hover { color: #06201d; }
}

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