:root {
    --bg: #f3efe7;
    --bg-deep: #e6ddd0;
    --surface: rgba(255, 251, 245, 0.78);
    --surface-strong: #fffaf4;
    --surface-tint: rgba(24, 58, 48, 0.08);
    --text: #1f221d;
    --muted: #5d6056;
    --line: rgba(31, 34, 29, 0.1);
    --accent: #1e5b4d;
    --accent-strong: #143f35;
    --accent-soft: rgba(30, 91, 77, 0.12);
    --warm: #b85c33;
    --warm-soft: rgba(184, 92, 51, 0.12);
    --ok: #2b6b4f;
    --warn: #8c5a11;
    --shadow: 0 24px 60px rgba(45, 42, 36, 0.1);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --content: 1120px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 26rem),
        radial-gradient(circle at 100% 0, rgba(30, 91, 77, 0.12), transparent 24rem),
        linear-gradient(155deg, #f5f1ea 0%, #ece5db 48%, #e7efe9 100%);
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

.shell {
    max-width: var(--content);
    margin: 0 auto;
    padding: 24px 20px 56px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(243, 239, 231, 0.74);
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    max-width: calc(var(--content) + 40px);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--accent), var(--warm));
    color: #fffaf4;
    box-shadow: 0 14px 28px rgba(30, 91, 77, 0.2);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    display: block;
}

.brand-logo-company {
    background: none;
    box-shadow: 0 12px 24px rgba(17, 31, 48, 0.2);
}

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

.nav-links a,
.lang-switch button,
.button,
.link-tile {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.8);
    padding: 10px 16px;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.nav-links a:hover,
.lang-switch button:hover,
.button:hover,
.link-tile:hover {
    transform: translateY(-1px);
    background: #fffdf8;
    border-color: rgba(20, 63, 53, 0.22);
    box-shadow: 0 10px 24px rgba(31, 34, 29, 0.06);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-primary {
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    color: #fffaf5;
    border-color: transparent;
}

.hero,
.panel,
.callout,
.doc-card,
.hero-side {
    border: 1px solid rgba(31, 34, 29, 0.08);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero {
    position: relative;
    margin-top: 28px;
    padding: 36px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(184, 92, 51, 0.16), transparent 68%);
    pointer-events: none;
}

.hero::after {
    content: "";
    display: block;
    margin-top: 26px;
    width: 160px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(184, 92, 51, 0.14));
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 330px);
    gap: 22px;
    align-items: end;
}

.hero-copy {
    max-width: 62ch;
}

.hero-copy p {
    font-size: 1.04rem;
}

.hero-side {
    padding: 22px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12)),
        var(--surface);
}

.eyebrow {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
    line-height: 1.1;
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    max-width: 14ch;
}

h2 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
}

h3 {
    font-size: 1.14rem;
}

p {
    margin: 0 0 14px;
    color: var(--muted);
}

.hero-actions,
.lang-switch,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin-top: 22px;
}

.card-actions {
    margin-top: auto;
}

.section {
    margin-top: 28px;
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.doc-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: var(--radius-lg);
}

.app-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 10px 20px rgba(17, 31, 48, 0.14);
    background: rgba(255, 255, 255, 0.7);
    flex: 0 0 auto;
}

.doc-card p:last-child,
.panel p:last-child,
.callout p:last-child,
.hero-side p:last-child {
    margin-bottom: 0;
}

.doc-card a {
    text-decoration: none;
}

.panel {
    padding: 26px;
    border-radius: var(--radius-lg);
}

.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.callout {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
}

.panel-grid .callout {
    margin-top: 0;
}

.callout-warning {
    border-left: 4px solid var(--warn);
}

.callout-success {
    border-left: 4px solid var(--ok);
}

.doc-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.doc-section:first-of-type {
    padding-top: 0;
}

.doc-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.checklist,
.inline-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.inline-list li + li,
.checklist li + li {
    margin-top: 8px;
}

.meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    padding: 8px 12px;
    font-size: 0.92rem;
    font-weight: 700;
}

.lang-switch {
    justify-content: flex-end;
}

.lang-switch button.active {
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    color: #fffaf5;
    border-color: transparent;
}

.link-stack {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.link-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 250, 244, 0.68);
}

.link-tile img {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    object-fit: contain;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(17, 31, 48, 0.12);
}

.link-tile strong,
.link-tile span {
    display: block;
}

.link-tile-copy {
    min-width: 0;
}

.link-tile strong {
    margin-bottom: 2px;
    font-size: 0.98rem;
}

.link-tile span {
    color: var(--muted);
    font-size: 0.94rem;
}

.note-list {
    display: grid;
    gap: 12px;
}

.note-item {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid rgba(31, 34, 29, 0.08);
}

.note-item strong,
.note-item span {
    display: block;
}

.note-item span {
    color: var(--muted);
}

[data-lang-section] {
    display: none;
}

[data-lang-section].active {
    display: block;
}

.footer {
    margin-top: 34px;
    padding: 22px 0 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
}

code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(31, 34, 29, 0.06);
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.92em;
}

@media (max-width: 900px) {
    .hero-layout,
    .panel-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links,
    .hero-actions,
    .lang-switch,
    .card-actions {
        width: 100%;
    }

    .nav-links a,
    .lang-switch button,
    .button {
        text-align: center;
        justify-content: center;
    }

    .hero,
    .panel,
    .doc-card,
    .hero-side {
        padding: 22px;
    }
}
