:root {
    --ink: #1b1340;
    --violet: #5b3df5;
    --violet-dark: #4529d6;
    --pink: #ff4d8d;
    --orange: #ff9a3d;
    --bg: #f6f5fb;
    --card: #ffffff;
    --text: #2a2550;
    --muted: #6c688a;
    --line: #e4e1f2;
    --ok: #0f9d6b;
    --err: #d63c4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* header */
.nav {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    display: grid;
    place-items: center;
}

.logo-mark svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.nav a.link {
    color: #d9d4ff;
    text-decoration: none;
    font-size: 14px;
    margin-left: 22px;
}

.nav a.link:hover {
    color: #fff;
}

/* hero */
.hero {
    background:
        radial-gradient(600px 300px at 85% 0%, rgba(255, 77, 141, .35), transparent 70%),
        radial-gradient(500px 300px at 10% 100%, rgba(91, 61, 245, .55), transparent 70%),
        var(--ink);
    padding-bottom: 150px;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 0;
    text-align: center;
}

h1 {
    color: #fff;
    font-size: clamp(30px, 6vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.sub {
    color: #cfc9f7;
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto;
}

/* downloader card */
.box {
    background: var(--card);
    max-width: 720px;
    margin: -100px auto 0;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(27, 19, 64, .22);
    width: calc(100% - 32px);
}

.field {
    display: flex;
    border: 2px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .15s;
}

.field:focus-within {
    border-color: var(--violet);
}

input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    font: inherit;
    font-size: 16px;
    border: none;
    outline: none;
    color: var(--text);
    background: transparent;
}

input[type="text"]::placeholder {
    color: #a5a2bf;
}

.paste {
    border: none;
    background: #efecff;
    color: var(--violet);
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 0 20px;
    cursor: pointer;
    width: auto;
}

.paste:hover {
    background: #e2ddff;
}

button#submitBtn {
    width: 100%;
    margin-top: 14px;
    padding: 16px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--violet), var(--violet-dark));
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .1s, box-shadow .15s;
    box-shadow: 0 8px 20px rgba(91, 61, 245, .35);
}

button#submitBtn:hover {
    box-shadow: 0 10px 26px rgba(91, 61, 245, .5);
}

button#submitBtn:active {
    transform: translateY(1px);
}

button#submitBtn:disabled {
    background: #9b98b8;
    box-shadow: none;
    cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

.spinner.show {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#status {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    min-height: 22px;
}

#status.ok {
    color: var(--ok);
    font-weight: 700;
}

#status.error {
    color: var(--err);
    font-weight: 700;
}

/* steps */
.section {
    max-width: 900px;
    margin: 0 auto;
    padding: 72px 24px 24px;
}

h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 36px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    counter-reset: s;
}

.steps li {
    counter-increment: s;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    font-size: 15px;
    color: var(--muted);
}

.steps li::before {
    content: counter(s);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
}

.steps strong {
    display: block;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 4px;
}

/* faq */
.faq {
    max-width: 720px;
    margin: 0 auto;
}

.faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 500;
    color: var(--violet);
    transition: transform .2s;
}

.faq details[open] {
    border-color: var(--violet);
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq p {
    padding: 0 22px 18px;
    color: var(--muted);
    font-size: 15px;
}

/* footer */
footer {
    background: var(--ink);
    color: #b9b3e6;
    margin-top: 72px;
}

.foot-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 44px 24px 28px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

footer .logo {
    margin-bottom: 12px;
}

footer p {
    font-size: 14px;
    max-width: 340px;
}

footer h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 8px;
}

footer li a {
    color: #b9b3e6;
    text-decoration: none;
    font-size: 14px;
}

footer li a:hover {
    color: #fff;
}

.copy {
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    font-size: 13px;
    padding: 18px 24px;
}

@media (max-width: 640px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .foot-inner {
        grid-template-columns: 1fr;
    }

    .box {
        padding: 20px;
    }

    .field {
        flex-direction: column;
    }

    .paste {
        padding: 12px;
    }

    .nav a.link {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation-duration: 2s;
    }
}