:root {
    color-scheme: light;
    --ink: #132344;
    --muted: #4b5c77;
    --brand: #234de7;
    --brand-dark: #1436b8;
    --border: #d7e0f0;
    --surface: #f5f7fc;
    --white: #fff;
    font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid #1342cc;
    outline-offset: 4px;
}
.shell { width: min(1120px, calc(100% - 3.5rem)); margin: 0 auto; }
.skip {
    position: absolute;
    z-index: 2;
    left: 1rem;
    top: 1rem;
    padding: .8rem 1rem;
    background: var(--white);
    transform: translateY(-160%);
}
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--border); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 1.5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 750;
    letter-spacing: -.025em;
}
.brand img { border-radius: 9px; display: block; }
.navigation { display: flex; gap: 1.65rem; margin-left: auto; }
.navigation a, .footer-inner a { text-decoration: none; color: var(--muted); font-weight: 650; }
.navigation a:hover, .footer-inner a:hover { color: var(--brand-dark); text-decoration: underline; }
.languages {
    display: flex;
    align-items: center;
    background: #e9eef8;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.languages a {
    padding: .44rem .59rem;
    min-width: 39px;
    text-align: center;
    border-radius: 7px;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 650;
    color: var(--muted);
}
.languages a[aria-current="true"] { background: var(--white); color: var(--brand-dark); box-shadow: 0 1px 3px #16296019; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-copy { padding-block: .35rem; }
.platform {
    margin: 0 0 1.2rem;
    color: var(--brand-dark);
    font-size: .9rem;
    font-weight: 720;
    letter-spacing: .035em;
}
.platform span { padding-inline: .28rem; color: #6781bc; }
h1, h2, h3 { margin: 0; }
h1 {
    font-size: clamp(2.75rem, 5vw, 4.45rem);
    line-height: 1.03;
    letter-spacing: -.065em;
    font-weight: 780;
    overflow-wrap: break-word;
}
h1 span { display: block; }
h1 span:last-child { color: var(--brand); }
html[lang="hu"] h1 { font-size: clamp(2.5rem, 4.55vw, 4.1rem); }
html[lang^="zh"] h1 { letter-spacing: -.065em; line-height: 1.12; }
.hero-description { margin: 1.5rem 0 1.75rem; color: var(--muted); max-width: 42ch; line-height: 1.65; font-size: 1.085rem; }
.hero-visual {
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #1642c5;
    box-shadow: 0 14px 36px #0e2d8524;
}
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-actions, .release-action { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.button {
    min-height: 46px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: .68rem 1.05rem;
    line-height: 1.25;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.button-primary { background: var(--brand); color: var(--white); }
.button-primary:hover { background: var(--brand-dark); }
.button-text { color: var(--brand-dark); }
.button-text:hover { background: #e7eeff; }
.button-outline { border-color: var(--border); background: var(--white); color: var(--ink); }
.button-outline:hover { background: #eef3ff; border-color: #a7b9ee; }
.button:disabled { opacity: .6; cursor: wait; }

.release-section { scroll-margin-block-start: 1rem; }
.release-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 1.05rem 1.7rem;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand);
    border-radius: 14px;
    padding: clamp(1.3rem, 3vw, 2rem);
    box-shadow: 0 6px 22px #1c367b0b;
}
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.15; letter-spacing: -.038em; }
.release-status { margin: .55rem 0 0; line-height: 1.55; color: var(--muted); }
.release-action { justify-content: flex-end; align-self: center; }
.release-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem clamp(1.5rem, 5vw, 4rem);
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.release-meta dt { color: var(--muted); font-size: .875rem; }
.release-meta dd { margin: .3rem 0 0; font-weight: 720; overflow-wrap: anywhere; }
.release-panel details { grid-column: 1 / -1; color: var(--muted); line-height: 1.55; }
summary { cursor: pointer; color: var(--brand-dark); font-weight: 650; width: fit-content; }
#release-notes { white-space: pre-line; margin: .6rem 0 0; }
.checksum { margin: .55rem 0 0; overflow-wrap: anywhere; }
.checksum code { font-size: .875rem; }

.setup { padding-block: clamp(2.75rem, 6vw, 4.75rem); scroll-margin-block-start: 1rem; }
.setup ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.2rem, 4vw, 3rem);
    margin: 1.35rem 0 0;
    padding-left: 1.28rem;
}
.setup li { padding-left: .3rem; line-height: 1.55; }
.setup li::marker { color: var(--brand-dark); font-weight: 730; }
.setup h3 { font-size: 1.14rem; letter-spacing: -.015em; }
.setup p { margin: .3rem 0 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.35rem; font-size: .9rem; }

@media (max-width: 850px) {
    .hero { gap: 1.6rem; }
    .release-panel { grid-template-columns: 1fr; }
    .release-action { justify-content: start; }
}
@media (max-width: 680px) {
    .shell { width: min(100% - 2rem, 520px); }
    .header-inner { min-height: 65px; gap: .5rem; }
    .navigation { display: none; }
    .hero { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2.4rem; }
    h1 { font-size: clamp(2.45rem, 9.5vw, 3.7rem); }
    html[lang="hu"] h1 { font-size: clamp(2.25rem, 8.7vw, 3.45rem); }
    .hero-description { margin-block: 1.15rem; }
    .hero-visual { border-radius: 12px; }
    .setup ol { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 365px) {
    .brand { gap: .45rem; font-size: 1rem; }
    .brand img { width: 32px; height: 32px; }
    .languages a { min-width: 34px; padding-inline: .37rem; }
    .hero-actions .button-primary { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
