:root {
    --bg: #0c0c10;
    --surface: rgba(255, 255, 255, .045);
    --surface-hover: rgba(255, 255, 255, .075);
    --border: rgba(255, 255, 255, .1);
    --text: #f3f3f6;
    --muted: #9b9ba8;
    --accent: #76f959;
    --accent-ink: #0d1a08;
    --accent-2: #72d9ff;
    --deep-green: #1c443b;
    --radius: 22px;
    --header-h: 68px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(800px 500px at 15% -5%, rgba(28, 68, 59, .75), transparent 70%),
        radial-gradient(700px 500px at 100% 30%, rgba(114, 217, 255, .08), transparent 70%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
    margin: 0;
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Header: floating pill */
.header {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 40;
    pointer-events: none;
}

.header .container {
    max-width: 960px;
    pointer-events: auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 12px 0 20px;
    background: rgba(18, 18, 24, .72);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

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

.brand img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.brand small {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav a {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: color .15s, background .15s;
}

.nav a:hover {
    color: var(--text);
}

.nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, .09);
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
}

.menu-btn .icon-close {
    display: none;
}

.menu-btn[aria-expanded="true"] .icon-open {
    display: none;
}

.menu-btn[aria-expanded="true"] .icon-close {
    display: block;
}

.scrim {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    transition: background .2s, border-color .2s, transform .2s;
}

.btn:hover {
    background: var(--surface-hover);
    border-color: rgba(118, 249, 89, .5);
    transform: translateY(-2px);
}

.btn .icon {
    color: var(--accent);
}

.btn span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn small {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    justify-content: center;
    box-shadow: 0 8px 30px rgba(118, 249, 89, .25);
}

.btn-primary:hover {
    background: #8dff72;
    border-color: #8dff72;
}

.btn-primary .icon {
    color: var(--accent-ink);
}

/* Hero: centered */
.hero {
    padding: calc(var(--header-h) + 88px) 0 96px;
    text-align: center;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.hero h1 {
    font-size: clamp(36px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -.04em;
    font-weight: 800;
    background: linear-gradient(180deg, #fff 30%, #9b9ba8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    margin: 24px auto 0;
    max-width: 560px;
    font-size: 18px;
    color: var(--muted);
}

.downloads {
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    max-width: 720px;
    text-align: left;
}

.hero-media {
    position: relative;
    display: block;
    width: min(100%, 360px);
    isolation: isolate;
}

/* Радиальный градиент вместо drop-shadow: фильтр с большим blur даёт артефакты при перерисовке на hover */
.hero-media::before {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(118, 249, 89, .18), transparent);
    pointer-events: none;
}

.hero-media img {
    display100% width: min(100%, 360px);
    height: auto;
    margin: 0 auto;
}

/* Value strip */
.strip {
    padding: 0 0 24px;
}

.strip ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.strip li {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

/* Sections */
.section {
    padding: 96px 0;
}

.section-head {
    margin-bottom: 48px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: var(--accent);
}

/* Bento features */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    counter-reset: f;
}

.feature {
    position: relative;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    counter-increment: f;
    transition: background .25s, border-color .25s;
}

.feature:hover {
    background: var(--surface-hover);
    border-color: rgba(118, 249, 89, .35);
}

.feature::after {
    content: "0" counter(f);
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, .18);
    letter-spacing: .08em;
}

.feature .badge {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 40px;
    border-radius: 14px;
    background: rgba(118, 249, 89, .1);
    border: 1px solid rgba(118, 249, 89, .25);
    color: var(--accent);
}

.feature .badge .icon {
    width: 22px;
    height: 22px;
}

.feature h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 10px;
}

.feature p {
    color: var(--muted);
    font-size: 15px;
    max-width: 440px;
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.review {
    position: relative;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.review::before {
    content: "\201C";
    position: absolute;
    top: 4px;
    right: 24px;
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    color: rgba(114, 217, 255, .18);
}

.stars {
    display: flex;
    gap: 3px;
    color: var(--accent);
}

.stars .icon {
    fill: currentColor;
    stroke: none;
    width: 16px;
    height: 16px;
}

.review p {
    flex: 1;
    font-size: 17px;
    font-weight: 500;
}

.review footer {
    display: flex;
    flex-direction: column;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.review footer strong {
    font-weight: 700;
}

.review footer span {
    color: var(--muted);
}

/* CTA panel */
.cta {
    padding-top: 40px;
}

.cta .container {
    padding: 72px 24px;
    text-align: center;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--deep-green), #0f2420 70%);
    border: 1px solid rgba(118, 249, 89, .25);
    box-shadow: 0 0 120px rgba(118, 249, 89, .12) inset;
}

.cta h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.cta p {
    max-width: 540px;
    margin: 18px auto 36px;
    color: #b7cbc5;
}

.cta .btn-primary {
    padding: 16px 32px;
}

/* Footer */
.footer {
    padding: 40px 0 48px;
    font-size: 14px;
    color: var(--muted);
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer a:hover {
    color: var(--accent);
}

/* Back to top */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    width: 46px;
    height: 46px;
    display: none;
    place-items: center;
    background: rgba(18, 18, 24, .8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
}

.to-top.visible {
    display: grid;
}

.to-top:hover {
    color: var(--accent);
    border-color: rgba(118, 249, 89, .5);
}

/* Dialog */
.dialog {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, .7);
    backdrop-filter: blur(6px);
}

.dialog-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 32px;
    background: #17171d;
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.dialog-box h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
    padding-right: 32px;
}

.dialog-box p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 12px;
}

.dialog-box p strong {
    color: var(--text);
}

.dialog-box ol {
    padding-left: 20px;
    display: grid;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.dialog-box a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

.dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 0;
    border-radius: 50%;
    color: var(--muted);
}

.dialog-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Breakpoints */
@media (min-width: 640px) {
    .brand small {
        display: inline;
        padding-left: 10px;
        border-left: 1px solid var(--border);
    }

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

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

@media (min-width: 960px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature:nth-child(1),
    .feature:nth-child(4),
    .feature:nth-child(6) {
        grid-column: span 2;
    }

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

@media (max-width: 959px) {
    .menu-btn {
        display: inline-flex;
    }

    .header .container {
        backdrop-filter: none;
        background: rgba(18, 18, 24, .96);
    }

    .nav {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        z-index: 50;
        padding: calc(var(--header-h) + 32px) 16px 16px;
        flex-direction: column;
        align-items: stretch;
        background: #121218;
        border-right: 1px solid var(--border);
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .nav.open {
        transform: none;
    }

    .nav a {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 14px;
    }

    .scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(5, 5, 8, .65);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s;
    }

    .scrim.open {
        opacity: 1;
        pointer-events: auto;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding-top: calc(var(--header-h) + 56px);
    }
}