:root {
    color-scheme: dark;
    --bg: #101114;
    --panel: #181b20;
    --panel-strong: #20252c;
    --text: #f5f7fb;
    --muted: #aeb7c4;
    --line: rgba(255, 255, 255, 0.12);
    --primary: #f2c14e;
    --primary-strong: #ffd875;
    --danger: #ff7c7c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 20% 0%, rgba(242, 193, 78, 0.14), transparent 30%), var(--bg);
    color: var(--text);
}

button {
    font: inherit;
}

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

.shell:not(.legal-shell) {
    flex: 1;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 36px;
    align-items: stretch;
    min-height: 430px;
}

.intro__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

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

h1,
h2,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.8rem, 8vw, 5.7rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.site-logo {
    display: block;
    width: clamp(76px, 10vw, 112px);
    height: auto;
    margin: 0 0 24px;
}

.lead {
    max-width: 680px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.product-visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.09), transparent 35%),
        linear-gradient(180deg, #232934, #15181e);
    box-shadow: var(--shadow);
}

.product-visual__window {
    display: flex;
    gap: 8px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.product-visual__window span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e95f5f;
}

.product-visual__window span:nth-child(2) {
    background: #f2c14e;
}

.product-visual__window span:nth-child(3) {
    background: #69d27d;
}

.product-visual__cube {
    position: absolute;
    top: 120px;
    left: 50%;
    width: min(260px, 58vw);
    height: 210px;
    transform: translateX(-50%) rotate(-7deg);
}

.cube-face {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cube-face--front {
    inset: 34px 48px 0 0;
    background: linear-gradient(150deg, rgba(54, 197, 240, 0.95), rgba(155, 223, 114, 0.78));
    color: #081116;
    font-size: 2.6rem;
}

.cube-face--side {
    top: 0;
    right: 0;
    width: 52px;
    height: 176px;
    transform: skewY(-43deg);
    transform-origin: left bottom;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
    writing-mode: vertical-rl;
}

.product-visual__lines {
    position: absolute;
    right: 28px;
    bottom: 26px;
    left: 28px;
    display: grid;
    gap: 12px;
}

.product-visual__lines i {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.product-visual__lines i:nth-child(2) {
    width: 74%;
}

.product-visual__lines i:nth-child(3) {
    width: 88%;
}

.product-visual__lines i:nth-child(4) {
    width: 54%;
}

.downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.asset-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 238px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.asset-card__media {
    display: grid;
    place-items: center;
    background:
        linear-gradient(140deg, color-mix(in srgb, var(--asset-accent) 24%, transparent), transparent 70%),
        var(--panel-strong);
}

.asset-card__package {
    display: grid;
    place-items: center;
    width: 86px;
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--asset-accent) 55%, white 10%);
    border-radius: 8px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--asset-accent) 72%, white 10%), color-mix(in srgb, var(--asset-accent) 40%, black 30%));
    color: #081116;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 16px 42px color-mix(in srgb, var(--asset-accent) 28%, transparent);
}

.asset-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.asset-card__meta {
    margin: 0 0 8px;
    color: var(--primary-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.asset-card h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.asset-card p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    width: fit-content;
    max-width: 100%;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #12100a;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.download-button:hover {
    background: var(--primary-strong);
    transform: translateY(-1px);
}

.download-button:focus-visible {
    outline: 3px solid rgba(242, 193, 78, 0.42);
    outline-offset: 3px;
}

.download-button__icon {
    display: grid;
    place-items: center;
    width: 22px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
}

.download-button--disabled,
.download-button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(10, 11, 13, 0.58);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
}

.site-footer a,
.back-link {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover,
.back-link:hover {
    color: var(--primary-strong);
}

.legal-shell {
    width: min(900px, calc(100% - 32px));
    flex: 1;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
}

.legal-card {
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.legal-card h1 {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
}

.legal-card section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.legal-card h2 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.25;
}

.legal-card p {
    color: var(--muted);
    line-height: 1.7;
}

.legal-updated {
    margin: 18px 0 0;
}

.wait-shell {
    width: min(1180px, calc(100% - 32px));
    flex: 1;
}

.ad-layout {
    display: grid;
    grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr) minmax(160px, 0.45fr);
    gap: 18px;
    align-items: stretch;
}

.wait-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.wait-card h1 {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.wait-card .lead {
    margin-top: 20px;
}

.wait-card .lead strong {
    color: var(--primary-strong);
}

.wait-card__logo {
    width: 74px;
    margin-bottom: 22px;
}

.wait-card__status {
    min-height: 28px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.wait-card__action {
    margin-top: 22px;
    text-decoration: none;
}

.display-ad {
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 280px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(140deg, rgba(242, 193, 78, 0.12), transparent 60%),
        #222832;
    color: var(--muted);
    text-align: center;
}

.display-ad__fallback,
.display-ad__setup {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 8px;
    width: 100%;
    min-height: inherit;
    pointer-events: none;
}

.display-ad__fallback {
    opacity: 0.72;
}

.display-ad--filled .display-ad__fallback {
    display: none;
}

.display-ad--empty .display-ad__fallback,
.display-ad--error .display-ad__fallback {
    opacity: 1;
}

.display-ad__setup {
    opacity: 1;
}

.display-ad .adsbygoogle {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    width: 100%;
    min-width: 120px;
    min-height: 240px;
}

.display-ad--banner .adsbygoogle {
    min-height: 90px;
}

.display-ad--empty .adsbygoogle,
.display-ad--error .adsbygoogle {
    opacity: 0;
    pointer-events: none;
}

.display-ad span {
    color: var(--primary-strong);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.display-ad strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
}

.display-ad small {
    max-width: 180px;
    line-height: 1.45;
}

.display-ad--banner {
    min-height: 118px;
    margin: 26px 0 22px;
}

.progress {
    height: 8px;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width 220ms linear;
}

@media (max-width: 860px) {
    .shell {
        width: min(100% - 24px, 680px);
        padding: 32px 0;
    }

    .intro,
    .downloads {
        grid-template-columns: 1fr;
    }

    .intro {
        min-height: auto;
    }

    .product-visual {
        min-height: 330px;
    }

    .ad-layout {
        grid-template-columns: 1fr;
    }

    .display-ad--side {
        min-height: 120px;
    }
}

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

    .site-footer nav {
        justify-content: flex-start;
    }

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

    .asset-card__media {
        min-height: 132px;
    }

    .asset-card__body,
    .wait-card {
        padding: 20px;
    }

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