:root {
    --bg: #070403;
    --panel: rgba(21, 11, 8, 0.90);
    --panel-soft: rgba(42, 19, 14, 0.88);
    --border: #7b422d;
    --gold: #d39a53;
    --text: #fff0d7;
    --muted: #d3af8a;
    --red: #ad2018;
    --red-hover: #cc2d22;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(115deg, rgba(94, 10, 6, 0.62), rgba(7, 4, 3, 0.78) 42%, rgba(7, 4, 3, 0.92)),
        url("Assets/bg.png") center / cover fixed,
        var(--bg);
}

a {
    color: inherit;
}

.page {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 32px 0 24px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid var(--border);
    background:
        linear-gradient(90deg, rgba(7, 4, 3, 0.88), rgba(35, 8, 6, 0.48), rgba(7, 4, 3, 0.72)),
        url("Assets/header.png") center / cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(211, 154, 83, 0.35);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 26px;
    align-items: center;
    min-height: 280px;
    padding: 38px;
}

.badge {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border: 2px solid var(--gold);
    background: #641710;
    box-shadow: inset 0 0 0 8px #2b0907, inset 0 0 0 12px #9d4e2c;
    font-family: Georgia, serif;
    font-size: 58px;
    font-weight: 900;
    color: #ffd99d;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
}

h1 {
    font-size: clamp(38px, 6vw, 68px);
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}

.subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.download {
    text-align: right;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 58px;
    padding: 14px 24px;
    border: 1px solid #e0713d;
    background: var(--red);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button:hover {
    background: var(--red-hover);
}

.counter {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 22px;
    margin-top: 24px;
}

.card {
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 24px;
}

.card h2 {
    margin-bottom: 16px;
    font-size: 26px;
}

.features,
.meta {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.features li,
.meta div {
    padding: 11px 12px;
    border: 1px solid rgba(123, 66, 45, 0.55);
    background: rgba(12, 7, 6, 0.72);
}

.meta {
    margin-top: 14px;
    font-size: 14px;
}

.small {
    color: var(--muted);
    line-height: 1.65;
}

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

.ghost {
    min-height: 46px;
    min-width: 150px;
    background: rgba(42, 25, 21, 0.94);
    border-color: var(--border);
    cursor: pointer;
}

.changelog {
    margin-top: 24px;
}

details {
    border: 1px solid var(--border);
    background: var(--panel-soft);
    margin-bottom: 10px;
}

summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 800;
    color: var(--text);
}

details div {
    padding: 0 18px 18px;
    color: var(--muted);
    line-height: 1.65;
}

footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(123, 66, 45, 0.7);
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.72);
    z-index: 10;
}

.modal:target {
    display: flex;
}

.modal-box {
    width: min(860px, 100%);
    max-height: 84vh;
    overflow: auto;
    border: 1px solid var(--border);
    background: #100806;
    padding: 26px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.close {
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 8px 12px;
    background: #2a1915;
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(123, 66, 45, 0.75);
    background: rgba(7, 4, 3, 0.82);
    color: var(--text);
    padding: 12px 13px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid var(--gold);
    border-color: var(--gold);
}

.contact-form textarea {
    resize: vertical;
    min-height: 170px;
}

.message {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: rgba(12, 7, 6, 0.72);
    color: var(--text);
}

.message.success {
    border-color: #8fbf66;
}

.message.error {
    border-color: #d65a43;
}

.privacy {
    margin: 0;
}

ol.small,
ul.small {
    padding-left: 22px;
}

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

    .download {
        text-align: left;
    }

    .badge {
        width: 92px;
        height: 92px;
        font-size: 44px;
    }
}
