:root {
    --bg: #0f1115;
    --panel: #171a20;
    --panel-strong: #1d2128;
    --line: #303640;
    --line-soft: #242931;
    --text: #f4f5f7;
    --muted: #9aa1ab;
    --red: #ff4655;
    --red-hover: #ef3d4c;
    --white-soft: #d8dce2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    line-height: 1.55;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    width: min(1120px, calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 17, 21, .94);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.brand span {
    color: var(--red);
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #bac0c8;
    font-size: 13px;
}

nav a:hover,
.hero-links a:hover,
.release-actions a:hover,
footer a:hover {
    color: var(--text);
}

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

.hero {
    min-height: 670px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.release-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.release-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(255, 70, 85, .1);
}

#release-version {
    color: var(--white-soft);
}

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

h1,
h2,
h3 {
    line-height: 1.08;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(44px, 6vw, 72px);
    letter-spacing: -3px;
}

h1 span {
    color: var(--red);
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(31px, 4vw, 46px);
    letter-spacing: -1.7px;
}

h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.lead {
    max-width: 590px;
    margin-bottom: 28px;
    color: #b7bdc6;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .25px;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

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

.button.primary {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

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

.button.secondary {
    background: var(--panel);
    color: var(--white-soft);
}

.button.secondary:hover {
    background: var(--panel-strong);
    border-color: #4a515d;
}

.button.pending {
    pointer-events: none;
    opacity: .46;
    transform: none;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: #858c96;
    font-size: 12px;
}

.app-preview {
    width: min(100%, 455px);
    margin-left: auto;
    padding: 18px;
    background: #12151a;
    border: 1px solid #353c46;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
}

.preview-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 13px;
    color: var(--red);
    font-size: 20px;
}

.preview-title span {
    height: 3px;
    background: #343a43;
}

.preview-title span:first-child {
    border-left: 28px solid var(--red);
}

.preview-title span:last-child {
    border-right: 28px solid var(--red);
}

.preview-input,
.preview-current,
.preview-settings b,
.preview-output {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 5px;
}

.preview-input {
    padding: 16px;
    text-align: center;
}

.preview-input strong,
.preview-input small,
.preview-current strong,
.preview-current small,
.preview-settings small,
.preview-output small,
.preview-output b {
    display: block;
}

.preview-input small,
.preview-current small,
.preview-settings small,
.preview-output small,
.preview-progress small {
    color: var(--muted);
    font-size: 9px;
}

.preview-input-actions {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 11px;
}

.preview-input-actions b {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.preview-input-actions b:last-child {
    color: #ff8892;
    border-color: var(--red);
}

.preview-current {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    padding: 10px;
}

.preview-current i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
}

.preview-current strong {
    font-size: 10px;
}

.preview-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.preview-settings small,
.preview-output small {
    margin-bottom: 4px;
}

.preview-settings b {
    display: block;
    padding: 8px 9px;
    font-size: 9px;
    font-weight: 500;
}

.preview-output {
    margin-top: 8px;
    padding: 8px 9px;
}

.preview-output b {
    font-size: 9px;
    font-weight: 500;
}

.preview-progress {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #d5d9df;
    font-size: 9px;
}

.preview-bar {
    height: 4px;
    margin-top: 5px;
    overflow: hidden;
    background: #292e35;
    border-radius: 99px;
}

.preview-bar span {
    display: block;
    width: 13%;
    height: 100%;
    background: var(--red);
}

.preview-main-action {
    margin-top: 10px;
    padding: 9px;
    background: var(--red);
    border-radius: 4px;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
}

.preview-bottom-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
    margin-top: 7px;
}

.preview-bottom-actions span {
    padding: 6px 7px;
    background: #15191e;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    color: #aeb4bd;
    text-align: center;
    font-size: 8px;
}

.section,
.download-section {
    padding: 86px 0;
    border-top: 1px solid var(--line-soft);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading > p:last-child {
    color: var(--muted);
}

.eyebrow {
    margin-bottom: 10px;
    color: #ff7a86;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.feature-grid,
.download-grid {
    display: grid;
    gap: 12px;
}

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

.feature-grid article,
.download-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.feature-grid article {
    min-height: 190px;
    padding: 23px;
}

.feature-grid article > span {
    display: block;
    margin-bottom: 38px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

.feature-grid p,
.local-section > p:last-child,
.download-card p {
    margin-bottom: 0;
    color: #aab0b9;
    font-size: 13px;
}

.local-section {
    max-width: 860px;
    padding: 84px 0;
    border-top: 1px solid var(--line-soft);
}

.local-section h2 {
    max-width: 820px;
}

.local-section > p:last-child {
    max-width: 720px;
    margin-top: 18px;
}

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

.download-card {
    padding: 26px;
}

.download-card.recommended {
    border-color: rgba(255, 70, 85, .72);
}

.download-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.download-head span {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.download-head strong {
    font-size: 20px;
}

.download-card code {
    display: block;
    margin: 18px 0;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    background: #111419;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    color: #cbd0d7;
    font-size: 12px;
}

.download-card .button {
    width: 100%;
}

.release-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    color: #969da7;
    font-size: 12px;
}

footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 32px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line-soft);
    color: #7f8791;
    font-size: 11px;
}

@media (max-width: 860px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 46px;
        padding: 82px 0;
    }

    .hero-copy {
        max-width: 720px;
    }

    .app-preview {
        margin: 0 auto;
    }

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

@media (max-width: 640px) {
    .topbar {
        position: static;
        min-height: 64px;
        gap: 14px;
    }

    nav {
        gap: 14px;
    }

    nav a:first-child {
        display: none;
    }

    h1 {
        letter-spacing: -2px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

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

    .section,
    .download-section,
    .local-section {
        padding: 64px 0;
    }

    footer {
        flex-direction: column;
    }
}
