:root {
    --bg: rgb(18, 7, 36);
    --bg-soft: #1a0e30;
    --panel: #201138;
    --line: #372a52;
    --line-bright: #4c3d6e;
    --text: #f1edf7;
    --text-muted: #a99bc0;
    --moss: #6fbf73;
    --moss-bright: #8ad692;
    --amber: #e0a94f;

    --font-display: "Rajdhani", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100dvh;
    background-color: var(--bg);
    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: 42px 42px;
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--moss);
    color: var(--bg);
}

/* Topbar */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand__mark {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--moss) 50%, var(--amber) 50%);
    clip-path: polygon(0 0, 60% 0, 60% 20%, 80% 20%, 80% 40%, 100% 40%, 100% 100%, 40% 100%, 40% 80%, 20% 80%, 20% 60%, 0 60%);
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.02em;
}

.topbar__version {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 4px 10px;
}

/* Hero */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 96px 24px 56px;
}

.hero__intro {
    max-width: 600px;
    text-align: center;
}

.hero__intro>* {
    animation: fadeUp 0.6s ease both;
}

.hero__intro>*:nth-child(2) {
    animation-delay: 0.05s;
}

.hero__intro>*:nth-child(3) {
    animation-delay: 0.1s;
}

.hero__intro>*:nth-child(4) {
    animation-delay: 0.15s;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss-bright);
    margin: 0 0 18px;
}

h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.08;
    margin: 0 0 20px;
}

.lede {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 32px;
}

/* Download button */

.downloadbutton {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--bg);
    background: var(--moss);
    border: none;
    border-radius: 6px;
    padding: 13px 26px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 1px 0 rgba(0, 0, 0, 0.4);
    transition: background-color 0.12s ease, transform 0.12s ease;
}

.downloadbutton:hover {
    background: var(--moss-bright);
}

.downloadbutton:active {
    transform: translateY(1px);
}

.downloadbutton:disabled {
    opacity: 0.6;
    cursor: progress;
}

.downloadbutton:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.downloadbutton__meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(18, 7, 36, 0.65);
}

.download-status {
    min-height: 20px;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.platform-picker,
.format-picker {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 0 10px;
}

.format-picker {
    margin: -4px 0 26px;
}

.format-picker.is-hidden {
    display: none;
}

.platform-picker__option,
.format-picker__option {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 6px 14px;
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.format-picker__option {
    font-size: 11px;
    padding: 3px 10px;
}

.platform-picker__option.is-active,
.format-picker__option.is-active {
    color: var(--moss-bright);
    border-bottom-color: var(--moss);
}

.platform-picker__option:hover,
.format-picker__option:hover {
    color: var(--text);
}

/* Window / preview */

.window {
    margin: 56px 0 0;
    width: 100%;
    max-width: 880px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    animation: fadeUp 0.7s ease 0.2s both;
}

.window__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.window__dots {
    display: flex;
    gap: 6px;
}

.window__dots i {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--line-bright);
}

.window__dots i:nth-child(1) {
    background: var(--amber);
}

.window__dots i:nth-child(2) {
    background: var(--moss);
}

.window__title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 2px;
}

.window__frame {
    padding: 14px;
}

.window__shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow:
        inset 2px 2px 0 rgba(255, 255, 255, 0.06),
        inset -2px -2px 0 rgba(0, 0, 0, 0.35);
}

/* Footer */

.footer {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 32px 24px 60px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 16px 18px;
    }

    .hero {
        padding: 64px 18px 40px;
    }
}