:root {
    --bg: #050810;
    --panel: rgba(13, 18, 31, 0.78);
    --panel-strong: rgba(18, 23, 38, 0.92);

    --border: rgba(255, 255, 255, 0.13);
    --border-soft: rgba(255, 255, 255, 0.08);

    --text: #f3eefc;
    --text-muted: #b9b3c8;
    --text-soft: #8d879d;

    --purple: #9b63ff;
    --purple-soft: #c797ff;
    --gold: #d6b86a;

    --max-width: 1130px;
    --header-height: 74px;

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-panel: 0 0 50px rgba(80, 51, 150, 0.18);
    --shadow-purple: 0 0 35px rgba(155, 99, 255, 0.35);
    --shadow-gold: 0 0 35px rgba(214, 184, 106, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(104, 54, 180, 0.22), transparent 34rem),
        radial-gradient(circle at 15% 20%, rgba(78, 230, 220, 0.10), transparent 26rem),
        linear-gradient(180deg, #050810 0%, #070b14 48%, #050810 100%);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
    opacity: 0.35;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 4vw, 4.5rem);
    background: rgba(5, 8, 16, 0.78);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark,
.brand-full {
    width: auto;
    height: 32px;
    object-fit: contain;
}

.brand-full {
    margin-top: 0.3rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    font-size: 0.95rem;
}

.main-nav a {
    color: var(--text-muted);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover {
    color: var(--text);
    border-color: var(--purple);
}

.main-nav a[href="#home"] {
    color: var(--text);
    border-color: var(--purple);
}

body:has(:target) .main-nav a[href="#home"] {
    color: var(--text-muted);
    border-color: transparent;
}

body:has(#home:target) .main-nav a[href="#home"],
body:has(#status:target) .main-nav a[href="#status"],
body:has(#about:target) .main-nav a[href="#about"],
body:has(#preview:target) .main-nav a[href="#preview"],
body:has(#download:target) .main-nav a[href="#download"] {
    color: var(--text);
    border-color: var(--purple);
}

.language-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

/* Hero */

.hero {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 5.2rem 1.5rem 4.3rem;
    border-bottom: 1px solid var(--border-soft);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(5, 8, 16, 0.15), var(--bg) 96%),
        linear-gradient(to right, rgba(5, 8, 16, 0.72), transparent 40%, rgba(5, 8, 16, 0.72)),
        url("assets/hero-bg.jpg") center / cover no-repeat;
    opacity: 0.72;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5, 8, 16, 0.18) 0%, rgba(5, 8, 16, 0.32) 34%, rgba(5, 8, 16, 0.86) 86%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, var(--max-width));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo {
    width: auto;
    height: clamp(4rem, 9vw, 8rem);
}

.ornament {
    width: min(430px, 70vw);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 1.4rem;
    color: var(--gold);
}
.ornament span {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}
.ornament span:last-child {
    background: linear-gradient(to left, transparent, var(--gold));
}
.ornament strong {
    font-weight: 400;
    font-size: 1.2rem;
}

.hero-subtitle {
    margin: 0 0 2.2rem;
    color: var(--text);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.45;
}

.hero-subtitle strong {
    color: var(--purple-soft);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: min(500px, 100%);
}

.hero-button {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 1rem 1.35rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.hero-button:hover {
    transform: translateY(-2px);
}

.hero-button-primary {
    background: linear-gradient(135deg, rgba(214, 184, 106, 0.96), rgba(164, 119, 55, 0.96));
    color: #fff7df;
    box-shadow: var(--shadow-gold);
}
.hero-button-primary:hover {
    box-shadow: 0 0 45px rgba(214, 184, 106, 0.42);
}

.hero-button-secondary {
    background: linear-gradient(135deg, rgba(150, 104, 255, 0.95), rgba(109, 80, 210, 0.94));
    color: white;
    box-shadow: var(--shadow-purple);
}
.hero-button-secondary:hover {
    box-shadow: 0 0 45px rgba(155, 99, 255, 0.46);
}

.hero-button-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.hero-button-image {
    object-fit: contain;
}

.hero-button-text {
    display: flex;
    flex-direction: column;
}
.hero-button-text strong {
    font-size: 1.2rem;
    font-weight: 600;
}
.hero-button-text span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
}

/* Shared sections */

.panel,
.features {
    width: min(calc(100% - 2rem), var(--max-width));
    margin-inline: auto;
}

.panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
        var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.4rem;
    text-align: center;
}

.section-title span {
    width: min(150px, 20vw);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}

.section-title span:last-child {
    background: linear-gradient(to left, transparent, var(--gold));
}

.section-title h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.text-link {
    color: var(--purple-soft);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2.4rem;
    margin-left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Status */

.status-panel {
    margin-top: 2.3rem;
    padding: clamp(1.5rem, 3vw, 2.6rem);
}

.status-layout {
    display: grid;
    grid-template-columns: minmax(230px, 0.85fr) minmax(0, 2.25fr);
    gap: clamp(1.8rem, 4vw, 3.5rem);
    align-items: center;
}

.status-description {
    max-width: 330px;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.status-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    padding-left: clamp(1.4rem, 4vw, 3rem);
    border-left: 1px solid var(--border-soft);
}

.status-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.status-icon,
.feature-icon {
    color: var(--purple-soft);
    font-size: 1.35rem;
    line-height: 1;
}

.status-item strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.97rem;
}

.status-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Features */

.features {
    margin-top: 2.6rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    border-right: 1px solid var(--border-soft);
}

.feature-card:last-child {
    border-right: none;
}

.feature-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}

/* Preview */

.preview-panel {
    margin-top: 3.2rem;
    padding: clamp(1.3rem, 3vw, 2rem);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.preview-card {
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.preview-image-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--border-soft);
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.preview-image-button::after {
    content: "Open";
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.22rem 0.55rem;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(5, 8, 16, 0.72);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    font-size: 0.78rem;
    backdrop-filter: blur(10px);
}

.preview-image-button:hover::after,
.preview-image-button:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.preview-image-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.preview-image-button img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0.88;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.preview-image-button:hover img,
.preview-image-button:focus-visible img {
    opacity: 1;
    transform: scale(1.025);
}

.preview-card div {
    padding: 1rem;
}

.preview-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.preview-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}



/* Screenshot lightbox */

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 4, 10, 0.86);
    backdrop-filter: blur(12px);
    cursor: zoom-out;
}

.lightbox-frame {
    position: relative;
    z-index: 1;
    width: min(96vw, 1500px);
    min-height: 20vh;
    max-height: 92vh;
    display: grid;
    place-items: center;
}

.lightbox-figure {
    width: 100%;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(8, 12, 22, 0.94);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.55), var(--shadow-panel);
    overflow: hidden;
}

.lightbox-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: calc(92vh - 5.5rem);
    object-fit: contain;
    background: #02050b;
    cursor: zoom-in;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.18s ease;
}

.lightbox-image.is-zoomed {
    cursor: zoom-out;
    transform: scale(2);
}

.lightbox-caption {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-soft);
    background: rgba(8, 12, 22, 0.94);
}

.lightbox-caption strong {
    color: var(--text);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(13, 18, 31, 0.82);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    color: white;
    border-color: rgba(155, 99, 255, 0.55);
    background: rgba(155, 99, 255, 0.22);
}

.lightbox-close {
    top: -0.75rem;
    right: -0.75rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.9rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    width: 44px;
    height: 64px;
    border-radius: var(--radius-md);
    font-size: 2.2rem;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: -1.35rem;
}

.lightbox-next {
    right: -1.35rem;
}

@media (max-width: 700px) {
    .lightbox {
        padding: 0.7rem;
    }

    .lightbox-frame {
        width: 100%;
        max-height: 94vh;
    }

    .lightbox-image {
        max-height: calc(94vh - 7rem);
    }

    .lightbox-caption {
        display: block;
    }

    .lightbox-caption span {
        display: block;
        margin-top: 0.2rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .lightbox-nav {
        top: auto;
        bottom: 0.5rem;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

/* Download */

.download-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: clamp(1.6rem, 4vw, 3rem);
    align-items: start;
    margin-top: 1.8rem;
    padding: clamp(1.5rem, 3vw, 2.3rem);
}

.download-info h2 {
    margin: 0 0 1.4rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.download-info p {
    margin: 0;
    color: var(--text-muted);
}

.download-tabs {
    position: relative;
}

.download-tabs > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.download-tab-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.download-tab-labels label {
    display: grid;
    place-items: center;
    min-height: 42px;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.download-tab-labels label:hover {
    color: var(--text);
    border-color: rgba(155, 99, 255, 0.35);
}

#download-windows:checked ~ .download-tab-labels label[for="download-windows"],
#download-linux:checked ~ .download-tab-labels label[for="download-linux"],
#download-macos:checked ~ .download-tab-labels label[for="download-macos"] {
    color: var(--text);
    background: rgba(155, 99, 255, 0.16);
    border-color: rgba(155, 99, 255, 0.55);
    box-shadow: inset 0 0 20px rgba(155, 99, 255, 0.12);
}

#download-windows:focus-visible ~ .download-tab-labels label[for="download-windows"],
#download-linux:focus-visible ~ .download-tab-labels label[for="download-linux"],
#download-macos:focus-visible ~ .download-tab-labels label[for="download-macos"] {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.download-tab-panel {
    display: none;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    align-items: start;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

#download-windows:checked ~ .download-tab-panels .download-panel-windows,
#download-linux:checked ~ .download-tab-panels .download-panel-linux,
#download-macos:checked ~ .download-tab-panels .download-panel-macos {
    display: grid;
}

.build-meta {
    display: grid;
    grid-template-columns:
        minmax(190px, 1.35fr)
        minmax(120px, 1fr)
        minmax(130px, 1fr)
        minmax(90px, 0.7fr);
    gap: 0.7rem;
    align-items: stretch;
    margin: 0;
}

.build-meta > div {
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.build-meta > .build-download {
    display: flex;
    padding: 0;
    border: 0;
    background: transparent;
}

.build-download dd {
    display: flex;
    width: 100%;
    margin: 0;
}

.build-meta dt {
    margin-bottom: 0.15rem;
    color: var(--text-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.build-meta dd {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    white-space: nowrap;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    white-space: nowrap;
    padding: 0.65rem 1rem;
    color: #fff7df;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(214, 184, 106, 0.96), rgba(164, 119, 55, 0.96));
    box-shadow: var(--shadow-gold);
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(214, 184, 106, 0.42);
}

.download-instructions {
    grid-column: 1 / -1;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}
.download-instructions h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}
.download-instructions ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-muted);
}
.download-instructions li + li {
    margin-top: 0.35rem;
}
.download-instructions code {
    padding: 0.1rem 0.35rem;
    color: var(--text);
    border: 1px solid var(--border-soft);
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.24);
    font-size: 0.9em;
}

.download-notes {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}
.download-note {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}
.download-note p {
    margin: 0;
}

.setup-note {
    margin: 1rem 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}
.command-line {
    display: block;
    margin-top: 0.35rem;
}

.support-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    gap: 0.8rem;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    border-color: rgba(155, 99, 255, 0.35);
    background: rgba(155, 99, 255, 0.16);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.support-link:hover {
    color: var(--text);
    border-color: rgba(155, 99, 255, 0.55);
}

.support-icon,
.social-icon {
    width: 1rem;
    height: auto;
}

/* Social and footer */

.social-links {
    width: min(calc(100% - 2rem), 720px);
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    margin: 2.2rem auto 2.5rem;
    color: var(--text-muted);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.18s ease;
}

.social-links a:hover {
    color: var(--text);
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(1.8rem, 4vw, 4rem);
    align-items: center;
    padding: 2rem clamp(1.25rem, 5vw, 4.5rem);
    border-top: 1px solid var(--border-soft);
    background: rgba(3, 6, 12, 0.85);
}

.legal {
    max-width: 650px;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--text);
}

/* Legal */
.legal-page {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 2.5rem auto 3rem;
}

.legal-panel {
    padding: clamp(1.5rem, 3vw, 2.6rem);
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.legal-content section + section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
}

.legal-content h2 {
    margin: 0 0 0.65rem;
    color: var(--text);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.legal-content p {
    margin: 0;
}

.legal-content p + p {
    margin-top: 0.85rem;
}

.legal-updated {
    margin-bottom: 2rem !important;
    color: var(--text-soft);
    font-size: 0.92rem;
    text-align: center;
}

.legal-content a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    padding: 0.45rem 0.7rem;
    color: var(--text);
    border: 1px solid rgba(155, 99, 255, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(155, 99, 255, 0.12);
    text-decoration: none;
}
.legal-content a:hover,
.legal-content a:focus-visible {
    border-color: rgba(155, 99, 255, 0.65);
    background: rgba(155, 99, 255, 0.2);
}

@media (max-width: 1000px) {
    .download-panel,
    .status-layout,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .status-description {
        max-width: none;
    }

    .status-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-soft);
        padding-top: 1.5rem;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-header {
        height: auto;
        min-height: var(--header-height);
        flex-wrap: wrap;
        gap: 0.9rem;
        padding-block: 1rem;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        min-height: 480px;
        padding-top: 4rem;
    }

    .status-items,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .feature-card {
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        padding-inline: 0.5rem;
    }

    .feature-card:last-child {
        border-bottom: none;
    }

    .download-tab-panel {
        grid-template-columns: 1fr;
    }

    .download-button {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }
    .build-meta {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    .build-meta dd {
        white-space: nowrap;
    }

    .site-footer {
        text-align: center;
        justify-items: center;
    }
}

@media (max-width: 560px) {
    .hero-logo {
        height: clamp(3.1rem, 17vw, 4.4rem);
    }

    .hero-button {
        gap: 0.9rem;
        padding: 0.9rem 1rem;
    }

    .hero-button-icon {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }

    .section-title {
        gap: 0.7rem;
    }

    .section-title span {
        width: 52px;
    }

    .download-tab-labels,
    .build-meta {
        grid-template-columns: 1fr;
    }

    .social-links,
    .footer-nav {
        flex-wrap: wrap;
    }
}
