/* ============================================================
   Aegis VPN — landing styles
   Mobile-first. Системные шрифты (на iOS/macOS это SF Pro).
   ============================================================ */

:root {
    --black: #000;
    --bg-dark: #060607;
    --ink: #1d1d1f;
    --ink-2: #515154;
    --ink-3: #86868b;
    --surface: #ffffff;
    --surface-soft: #f5f5f7;
    --on-dark: #f5f5f7;
    --on-dark-2: #a1a1a6;
    --on-dark-3: #86868b;
    --line: rgba(0, 0, 0, .10);
    --line-dark: rgba(255, 255, 255, .12);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-bright: #2997ff;
    --radius: 18px;
    --radius-lg: 28px;
    --ease: cubic-bezier(.28, .11, .32, 1);
    --container: 1080px;
    --nav-h: 52px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -.01em;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

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

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 22px;
}

@media (min-width: 734px) {
    .container { padding-inline: 40px; }
}

section { position: relative; overflow: hidden; }
section[id] { scroll-margin-top: 70px; }

.section--dark { background: var(--bg-dark); color: var(--on-dark); }
.section--light { background: var(--surface); color: var(--ink); }
.section--soft { background: var(--surface-soft); color: var(--ink); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #fff;
    color: #1d1d1f;
    padding: 10px 16px;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Типографика общая ---------- */
.eyebrow {
    display: inline-block;
    margin: 0;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.eyebrow--bright { color: var(--accent-bright); }

.section-title {
    margin: .3em 0 0;
    font-size: clamp(2rem, 6vw, 3.3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.022em;
}

.section-sub {
    margin: .9em auto 0;
    max-width: 600px;
    font-size: clamp(1.05rem, 3vw, 1.3rem);
    line-height: 1.5;
    color: var(--ink-2);
}

.text-gradient {
    background: linear-gradient(120deg, #2997ff, #7d5cff 55%, #19c2c2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1;
    padding: .85em 1.5em;
    border-radius: 980px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ease), background-color .25s var(--ease),
        border-color .25s var(--ease), opacity .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); }
.btn--lg { font-size: 1.12rem; padding: .95em 1.8em; }
.btn--sm { font-size: .9rem; padding: .62em 1.15em; }
.btn--soft { background: var(--surface-soft); color: var(--ink); }
.btn--soft:hover { background: #e8e8ed; }

/* ---------- Навигация ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(22, 22, 23, .72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line-dark);
    transition: background-color .3s var(--ease);
}
.nav.is-scrolled { background: rgba(22, 22, 23, .86); }

.nav__inner {
    position: relative;
    max-width: var(--container);
    margin-inline: auto;
    height: var(--nav-h);
    padding-inline: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-right: auto;
    color: #f5f5f7;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: -.01em;
}

.nav__checkbox { position: absolute; opacity: 0; pointer-events: none; }

.nav__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    margin-right: -8px;
    cursor: pointer;
}
.nav__burger span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: #f5f5f7;
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 14px 22px 26px;
    background: rgba(18, 18, 19, .98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: calc(100dvh - var(--nav-h));
    overflow: auto;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
}
.nav__checkbox:checked ~ .nav__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}
.nav__checkbox:checked ~ .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__checkbox:checked ~ .nav__burger span:nth-child(2) { opacity: 0; }
.nav__checkbox:checked ~ .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav__links a {
    display: block;
    padding: 13px 4px;
    color: #f5f5f7;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -.01em;
    border-bottom: 1px solid var(--line-dark);
}
.nav__actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.nav__actions .btn { width: 100%; }

@media (min-width: 734px) {
    .nav__inner { padding-inline: 40px; }
}

@media (min-width: 1000px) {
    .nav__burger { display: none; }
    .nav__menu {
        position: static;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0;
        background: none;
        border: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: none;
        overflow: visible;
    }
    .nav__links { display: flex; align-items: center; gap: 2px; }
    .nav__links a {
        padding: 8px 13px;
        font-size: .9rem;
        font-weight: 400;
        color: #d2d2d7;
        border: 0;
        border-radius: 8px;
    }
    .nav__links a:hover { color: #fff; }
    .nav__actions { margin: 0 0 0 10px; flex-direction: row; gap: 8px; }
    .nav__actions .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: 80px;
    text-align: center;
}

.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    will-change: transform;
}
.hero .orb--1 {
    width: 70vw; max-width: 560px; aspect-ratio: 1; left: -12%; top: 4%;
    background: radial-gradient(circle, rgba(41, 151, 255, .9), transparent 68%);
    opacity: .5; animation: drift1 20s ease-in-out infinite;
}
.hero .orb--2 {
    width: 64vw; max-width: 520px; aspect-ratio: 1; right: -14%; top: -2%;
    background: radial-gradient(circle, rgba(125, 92, 255, .85), transparent 68%);
    opacity: .45; animation: drift2 24s ease-in-out infinite;
}
.hero .orb--3 {
    width: 58vw; max-width: 480px; aspect-ratio: 1; left: 28%; bottom: -22%;
    background: radial-gradient(circle, rgba(25, 194, 194, .8), transparent 70%);
    opacity: .32; animation: drift3 28s ease-in-out infinite;
}
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 28%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 28%, #000, transparent 72%);
    opacity: .5;
}

.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__title {
    margin: .12em 0 .34em;
    font-size: clamp(2.7rem, 9vw, 5.6rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.03em;
}
.hero__lead {
    margin: 0 auto;
    max-width: 600px;
    font-size: clamp(1.1rem, 3.4vw, 1.45rem);
    line-height: 1.45;
    color: var(--on-dark-2);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 34px;
}
.hero__trust {
    margin-top: 30px;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--on-dark-3);
}
.hero__trust svg {
    display: inline-block;
    color: var(--accent-bright);
    vertical-align: -3px;
    margin-right: 7px;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2;
    width: 24px;
    height: 38px;
    border: 1.5px solid rgba(255, 255, 255, .35);
    border-radius: 14px;
    display: none;
}
.hero__scroll span {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .75);
    transform: translateX(-50%);
    animation: scrollDot 1.8s ease-in-out infinite;
}
@media (min-width: 734px) { .hero__scroll { display: block; } }

/* ---------- Показатели ---------- */
.stats {
    padding-block: clamp(52px, 8vw, 84px);
    border-top: 1px solid var(--line-dark);
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 18px;
    text-align: center;
}
.stat__num {
    font-size: clamp(2.3rem, 7vw, 3.4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    background: linear-gradient(180deg, #fff, #b6b6bd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat__unit { color: var(--accent-bright); -webkit-text-fill-color: var(--accent-bright); }
.stat__label { margin-top: 11px; font-size: .92rem; line-height: 1.35; color: var(--on-dark-2); }

@media (min-width: 734px) {
    .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* ---------- Столпы ---------- */
.features { padding-block: clamp(76px, 11vw, 132px); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section-head .section-title { margin-top: .25em; }

.features__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 734px) { .features__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.feature-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--accent);
}
.feature-card h3 { margin: 0 0 .5em; font-size: 1.38rem; font-weight: 600; letter-spacing: -.01em; }
.feature-card p { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); }

/* ---------- Showcase (split) ---------- */
.showcase { padding-block: clamp(76px, 11vw, 132px); }
.showcase__inner {
    display: grid;
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}
.showcase__media { display: flex; align-items: center; justify-content: center; min-height: 280px; }
.showcase__body .section-title { margin-top: .22em; }
.showcase__text {
    margin: 1.1em 0 0;
    font-size: clamp(1.05rem, 3vw, 1.3rem);
    line-height: 1.5;
    color: var(--on-dark-2);
}
.section--soft .showcase__text { color: var(--ink-2); }

@media (min-width: 834px) {
    .showcase__inner { grid-template-columns: 1fr 1fr; }
    .showcase--reverse .showcase__media { order: 2; }
}

/* чек-лист */
.checklist { list-style: none; margin: 1.7em 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
    position: relative;
    padding-left: 34px;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--on-dark);
}
.section--soft .checklist li { color: var(--ink); }
.checklist li::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    width: 22px; height: 22px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--accent);
}
.checklist li::after {
    content: "";
    position: absolute; left: 7px; top: 50%;
    width: 8px; height: 4.5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-72%) rotate(-45deg);
}

/* secure-core (визуал безопасности) */
.secure-core {
    position: relative;
    width: min(320px, 74vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.secure-core__ring { position: absolute; border-radius: 50%; }
.secure-core__ring--1 {
    inset: 0;
    background: conic-gradient(from 0deg, transparent 0 68%, rgba(41, 151, 255, .75) 86%, transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    animation: spin 9s linear infinite;
}
.secure-core__ring--2 { inset: 15%; border: 1px solid var(--line-dark); animation: pulse 4s ease-in-out infinite; }
.secure-core__ring--3 { inset: 30%; border: 1px solid var(--line-dark); animation: pulse 4s ease-in-out infinite .8s; }
.secure-core__chip {
    position: relative;
    width: 36%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(160deg, #1d1d20, #0a0a0c);
    border: 1px solid var(--line-dark);
    color: var(--accent-bright);
    box-shadow: 0 0 60px rgba(41, 151, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* globe (визуал надёжности) */
.globe { width: min(360px, 80vw); height: auto; }
.globe__sphere { fill: none; stroke: rgba(10, 132, 255, .4); stroke-width: 1; }
.globe__line { fill: none; stroke: rgba(0, 0, 0, .12); stroke-width: 1; }
.globe__arc { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 6; opacity: .55; }
.globe__node {
    fill: var(--accent);
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 4px rgba(10, 132, 255, .8));
}
.globe__node--1 { animation: nodePulse 2.4s ease-in-out infinite; }
.globe__node--2 { animation: nodePulse 2.4s ease-in-out infinite .8s; }
.globe__node--3 { animation: nodePulse 2.4s ease-in-out infinite 1.6s; }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(84px, 12vw, 150px); text-align: center; }
.cta__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cta .orb--1 {
    width: 80vw; max-width: 640px; aspect-ratio: 1; left: 50%; top: 46%;
    background: radial-gradient(circle, rgba(41, 151, 255, .8), transparent 62%);
    opacity: .4; transform: translate(-50%, -50%);
}
.cta .orb--2 {
    width: 60vw; max-width: 460px; aspect-ratio: 1; left: 18%; bottom: -20%;
    background: radial-gradient(circle, rgba(125, 92, 255, .7), transparent 65%);
    opacity: .3;
}
.cta__inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.cta__title {
    margin: 0;
    font-size: clamp(2rem, 6.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.022em;
}
.cta__sub { margin: 1em auto 2em; font-size: clamp(1.05rem, 3vw, 1.3rem); color: var(--on-dark-2); }

/* ---------- Footer ---------- */
.footer {
    background: var(--surface-soft);
    color: var(--ink-2);
    padding-block: clamp(48px, 7vw, 72px);
    border-top: 1px solid var(--line);
    font-size: .92rem;
}
.footer__top { display: grid; gap: 36px; }
.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.12rem;
}
.footer__tagline { margin: .9em 0 0; max-width: 260px; color: var(--ink-3); }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
.footer__col h3 {
    margin: 0 0 1em;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-3);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85em; }
.footer__col a { color: var(--ink-2); text-decoration: none; }
.footer__col a:hover { color: var(--ink); }
.footer__fine {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--ink-3);
}
.footer__copy { margin: 0; }

@media (min-width: 734px) {
    .footer__top { grid-template-columns: 1.3fr 2fr; gap: 48px; }
    .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Legal ---------- */
.legal { padding-block: clamp(104px, 13vw, 150px); background: var(--surface); }
.legal__inner { max-width: 720px; }
.legal__header { margin-bottom: 40px; }
.legal h1 { margin: .25em 0 0; font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.legal__updated { margin: .8em 0 0; font-size: .9rem; color: var(--ink-3); }
.legal section { margin-top: 32px; }
.legal h2 { margin: 0 0 .5em; font-size: 1.3rem; font-weight: 600; }
.legal p { margin: 0 0 1.1em; color: var(--ink-2); line-height: 1.6; }
.legal a { color: var(--accent); }
.legal .legal__lead { font-size: 1.15rem; color: var(--ink); }
.legal ul { margin: 0 0 1.1em; padding-left: 1.3em; color: var(--ink-2); line-height: 1.6; }
.legal li { margin-top: .45em; }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 4px; }
.legal__nav a {
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-2);
    padding: 8px 16px;
    border-radius: 980px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.legal__nav a:hover { color: var(--ink); }
.legal__nav a.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Error ---------- */
.error-page {
    min-height: 78vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-block: 120px;
}
.error-page__inner { max-width: 560px; margin-inline: auto; }
.error-page__code {
    margin: 0;
    font-size: clamp(4rem, 16vw, 7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    background: linear-gradient(120deg, #2997ff, #7d5cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-page__title { margin: .3em 0 .4em; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 600; }
.error-page__text { margin: 0 auto 2em; max-width: 420px; color: var(--on-dark-2); }

/* ---------- Заглушка «в разработке» ---------- */
.stub {
    min-height: 86vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-block: 150px 110px;
}
.stub__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.stub .orb--1 {
    width: 80vw; max-width: 560px; aspect-ratio: 1; left: 50%; top: 32%;
    background: radial-gradient(circle, rgba(41, 151, 255, .55), transparent 65%);
    opacity: .32; transform: translate(-50%, -50%);
}
.stub__inner { position: relative; z-index: 2; max-width: 560px; margin-inline: auto; }
.stub__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 76px; height: 76px; margin-bottom: 26px;
    border-radius: 22px;
    background: rgba(41, 151, 255, .12);
    border: 1px solid var(--line-dark);
    color: var(--accent-bright);
}
.stub__title {
    margin: .35em 0 .5em;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.stub__text { margin: 0 auto 2em; max-width: 440px; font-size: 1.1rem; line-height: 1.55; color: var(--on-dark-2); }
.stub__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Модальное окно «Подключиться» ---------- */
body.modal-open { overflow: hidden; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 40px 28px 30px;
    background: #fff;
    color: var(--ink);
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
    transform: translateY(14px) scale(.97);
    transition: transform .35s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--ink-2);
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: #e8e8ed; color: var(--ink); }
.modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: linear-gradient(160deg, #2aabee, #229ed9);
    color: #fff;
    box-shadow: 0 12px 30px rgba(34, 158, 217, .35);
}
.modal__title { margin: 0 0 .5em; font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.modal__text { margin: 0 0 26px; color: var(--ink-2); line-height: 1.5; }
.modal__actions { display: grid; gap: 10px; }
.modal__actions .btn { width: 100%; }

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.features__grid .feature-card:nth-child(2) { transition-delay: .07s; }
.features__grid .feature-card:nth-child(3) { transition-delay: .14s; }
.features__grid .feature-card:nth-child(4) { transition-delay: .21s; }
.stats__grid .stat:nth-child(2) { transition-delay: .07s; }
.stats__grid .stat:nth-child(3) { transition-delay: .14s; }
.stats__grid .stat:nth-child(4) { transition-delay: .21s; }
.showcase__body .reveal:nth-child(2) { transition-delay: .06s; }
.showcase__body .reveal:nth-child(3) { transition-delay: .12s; }
.showcase__body .reveal:nth-child(4) { transition-delay: .18s; }

/* ---------- Keyframes ---------- */
@keyframes drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(42px, 30px); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-50px, 22px); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(24px, -40px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.025); } }
@keyframes nodePulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, -2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Доступность: меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
