:root {
    --bg: #090d0f;
    --surface: #101619;
    --surface-2: #151d21;
    --surface-3: #1b252a;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f4f7f5;
    --muted: #9aa7a2;
    --green: #19d19a;
    --green-2: #0aa876;
    --red: #e9445d;
    --blue: #4f8cff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(25, 209, 154, 0.08), transparent 360px),
        var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(9, 13, 15, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-text {
    display: grid;
    gap: 1px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
}

.brand-text small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-links a {
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.header-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
}

main {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 46px;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: 58px 0 40px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 680px;
    margin-bottom: 20px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-text {
    max-width: 660px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding: 16px;
    background: rgba(16, 22, 25, 0.86);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.release-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#releaseVersion {
    display: block;
    font-size: 20px;
}

#releaseDate,
.download-status {
    color: var(--muted);
    font-size: 13px;
}

.download-status {
    grid-column: 1 / -1;
    margin: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #04120d;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

.product-preview {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
}

.window-bar {
    display: flex;
    gap: 7px;
    padding: 13px 16px;
    background: #0b0f11;
    border-bottom: 1px solid var(--line);
}

.window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #394248;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.mini-logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--green);
    color: #04120d;
    font-weight: 900;
}

.preview-header div:nth-child(2) {
    display: grid;
    gap: 2px;
    margin-right: auto;
}

.preview-header small {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}

.preview-header button {
    height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #04120d;
    font-weight: 900;
}

.field {
    position: relative;
    height: 270px;
    margin: 18px;
    overflow: hidden;
    border: 3px solid rgba(230, 255, 235, 0.78);
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 38px, transparent 38px 76px),
        #6f8f5e;
}

.field-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: rgba(230, 255, 235, 0.78);
}

.field-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    border: 3px solid rgba(230, 255, 235, 0.78);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.player {
    position: absolute;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 3px solid #070a0b;
    border-radius: 50%;
    color: white;
    font-weight: 900;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.player-red {
    top: 52%;
    left: 24%;
    background: #ef6956;
}

.player-blue {
    top: 35%;
    right: 18%;
    background: #83a6ff;
}

.preview-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
}

.preview-panel span {
    padding: 14px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--muted);
    font-size: 13px;
}

.preview-panel strong {
    color: var(--green);
}

.stats-strip,
.feature-grid,
.steps {
    display: grid;
    gap: 14px;
}

.stats-strip {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 86px;
}

.stats-strip div,
.feature-grid article,
.steps li,
.safety-note {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(16, 22, 25, 0.72);
}

.stats-strip div {
    padding: 18px;
}

.stats-strip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
}

.stats-strip span,
.feature-grid p,
.steps span,
.safety-note p {
    color: var(--muted);
}

.section {
    padding: 42px 0;
}

.section-heading {
    max-width: 660px;
    margin-bottom: 26px;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

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

.feature-grid article {
    min-height: 220px;
    padding: 22px;
}

.feature-grid article span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 24px;
    border-radius: 8px;
    background: rgba(25, 209, 154, 0.14);
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.feature-grid h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.steps {
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    min-height: 150px;
    padding: 22px 22px 22px 64px;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    top: 22px;
    left: 22px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--red);
    font-weight: 900;
}

.steps strong,
.steps span {
    display: block;
}

.steps strong {
    margin-bottom: 8px;
}

.safety-note {
    margin: 44px 0 72px;
    padding: 28px;
    border-color: rgba(233, 68, 93, 0.24);
}

.safety-note h2 {
    margin-bottom: 12px;
    font-size: 28px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 36px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.site-footer div {
    display: flex;
    gap: 14px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

[data-anime] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
}

[data-anime].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .header-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hero,
    .feature-grid,
    .steps,
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 36px;
    }

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

    .btn-primary {
        width: 100%;
    }

    .product-preview {
        order: -1;
    }
}

@media (max-width: 560px) {
    main,
    .site-footer {
        width: min(100% - 24px, 1180px);
    }

    h1 {
        font-size: 40px;
    }

    .hero-text {
        font-size: 16px;
    }

    .site-footer {
        flex-direction: column;
    }

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

    .field {
        height: 220px;
    }
}
