:root {
    color-scheme: light;
    --bg: #f3efe8;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #fffdfa;
    --text: #1d1a17;
    --muted: #6a6259;
    --accent: #0f6a62;
    --accent-2: #154a86;
    --border: #d9cfc3;
    --shadow: 0 14px 38px rgba(29, 26, 23, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(21, 74, 134, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(15, 106, 98, 0.12), transparent 30%),
        linear-gradient(180deg, #f8f5f0 0%, #eee5d9 100%);
    color: var(--text);
}

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

.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 20px 56px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(29, 26, 23, 0.06);
    backdrop-filter: blur(8px);
}

.topbar-home {
    color: var(--muted);
    font-size: 0.95rem;
}

.language-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.language-link.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e6f2ef;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.lead {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(29, 26, 23, 0.08);
}

h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.28rem;
}

h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.08rem;
}

p {
    margin-top: 0;
    line-height: 1.7;
}

.actions,
.release-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover,
.btn:focus-visible,
.language-link:hover,
.language-link:focus-visible,
.doc-link:hover,
.doc-link:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 106, 98, 0.18);
}

.btn-secondary {
    background: #edf3fb;
    color: var(--accent-2);
    border: 1px solid #cbd8ea;
}

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

.doc-links,
.release-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.tutorials-section {
    margin-top: 22px;
}

.tutorial-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.tutorial-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
    box-shadow: 0 10px 24px rgba(29, 26, 23, 0.08);
}

.tutorial-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    background: #d9cfc3;
}

.tutorial-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
    gap: 10px;
}

.tutorial-body h3 {
    margin-bottom: 0;
}

.tutorial-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.tutorial-description {
    margin-bottom: 0;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.6;
}

.tutorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.doc-link {
    display: block;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    text-decoration: none;
    color: inherit;
}

.doc-link strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-2);
}

.release-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
}

.release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.release-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf3fb;
    color: var(--accent-2);
    font-weight: 700;
}

.release-empty {
    margin: 0;
    color: var(--muted);
}

.policy-page {
    max-width: 920px;
}

.policy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(31, 26, 23, 0.08);
}

.meta {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f1ebe3;
    border: 1px solid var(--border);
}

.footer {
    margin-top: 28px;
    padding: 18px 4px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.redirect-card {
    text-align: center;
}

.redirect-card p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 720px) {
    .page {
        padding: 16px 16px 44px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .card,
    .policy-card {
        padding: 24px 20px;
    }

    .actions,
    .release-actions,
    .language-switcher {
        width: 100%;
    }

    .btn,
    .language-link {
        width: 100%;
    }
}
