/* ===== WP Ru-max — GitHub Pages =====
   Тёмная тема, glassmorphism, градиентные блобы, плавные переходы.
   Чистый CSS, без зависимостей. */

:root {
    --bg-0:         #0a0608;
    --bg-1:         #1a0d12;
    --text:         #fff5f2;
    --text-soft:    #f1e6e3;
    --text-muted:   #a89894;
    --accent:       #d63347;
    --accent-2:     #ffb27a;
    --accent-3:     #ff5b3d;
    --success:      #2ed573;
    --warning:      #ffba08;
    --danger:       #ff5b5b;

    --glass-bg:     rgba(255, 255, 255, 0.05);
    --glass-bg-h:   rgba(255, 255, 255, 0.09);
    --glass-brd:    rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);

    --radius:       20px;
    --radius-sm:    12px;
    --max-w:        1200px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Display",
            "Inter", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body::selection, ::selection { background: var(--accent); color: #fff; }

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--accent-3); }

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

/* ===== Анимированный фон ===== */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 700px at 8% -10%, rgba(214,51,71,0.38), transparent 60%),
        radial-gradient(1000px 700px at 110% 5%, rgba(255,91,61,0.28),  transparent 60%),
        radial-gradient(900px  600px at 50% 110%, rgba(255,178,122,0.18), transparent 60%),
        linear-gradient(180deg, var(--bg-1), var(--bg-0));
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.6;
    animation: floaty 22s ease-in-out infinite;
}
.blob.b1 { width: 560px; height: 560px; left: -140px; top: -140px;
           background: radial-gradient(circle at 30% 30%, #d63347, transparent 70%); }
.blob.b2 { width: 460px; height: 460px; right: -120px; top: 16%;
           background: radial-gradient(circle at 60% 40%, #ff8a5b, transparent 70%);
           animation-delay: -7s; }
.blob.b3 { width: 520px; height: 520px; left: 30%; bottom: -180px;
           background: radial-gradient(circle at 50% 50%, #b8253a, transparent 70%);
           animation-delay: -14s; }

@keyframes floaty {
    0%,100% { transform: translate3d(0,0,0)   scale(1); }
    50%     { transform: translate3d(50px,-40px,0) scale(1.1); }
}

/* Лёгкая «зернистость» поверх фона — приглушает банды */
.bg-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.4;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ===== Контейнер ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Навигация ===== */
.nav {
    position: sticky;
    top: 14px;
    z-index: 50;
    margin: 14px auto 0;
    padding: 10px 16px;
    max-width: var(--max-w);
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 999px;
    background: rgba(15,17,32,0.55);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: var(--glass-shadow);
}
.nav .brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; letter-spacing: .2px;
    color: var(--text);
}
.nav .brand .logo {
    width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 15px;
    box-shadow: 0 6px 18px rgba(124,92,255,0.55);
    position: relative;
}
.nav .brand .logo::after {
    content: ""; position: absolute; inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    filter: blur(10px); opacity: 0.5; z-index: -1;
}
.nav .brand .logo-img {
    width: 36px; height: 36px; border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(124,92,255,0.45);
}

/* ===== Gallery ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}
.g-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--glass-brd);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    display: block;
    transition: transform .35s ease, border-color .25s ease;
}
.g-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease, filter .35s ease;
    filter: saturate(1.05);
}
.g-tile:hover { transform: translateY(-4px); border-color: rgba(255,71,87,0.45); }
.g-tile:hover img { transform: scale(1.05); filter: saturate(1.15) brightness(1.05); }
.g-tile::after {
    content: "🔍 Открыть";
    position: absolute; left: 12px; bottom: 12px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(0,0,0,0.55);
    color: #fff; font-size: 12px; font-weight: 600;
    backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.g-tile:hover::after { opacity: 1; transform: none; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
@media (max-width: 760px) {
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
}

/* Link cards (clickable) */
.link-card { text-decoration: none; color: var(--text); display: block; }
.link-card:hover { color: var(--text); }
.link-card h3 { color: var(--text); }
.link-card::after {
    content: "→";
    position: absolute; top: 26px; right: 26px;
    color: var(--accent-2); font-size: 22px;
    opacity: 0; transform: translateX(-6px);
    transition: opacity .25s ease, transform .25s ease;
}
.link-card:hover::after { opacity: 1; transform: none; }
.nav .links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav .links a {
    color: var(--text-soft);
    padding: 8px 14px; border-radius: 999px;
    font-weight: 500; font-size: 14px;
    transition: all .2s ease;
}
.nav .links a:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.nav .cta { margin-left: 4px; }
@media (max-width: 820px) {
    .nav { border-radius: 18px; padding: 10px 14px; }
    .nav .links { display: none; }
}

/* Theme control and compact responsive navigation */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.theme-toggle, .menu-toggle {
    appearance: none; border: 0; cursor: pointer; color: var(--text);
}
.theme-toggle {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
    padding: 6px 8px; border-radius: 999px; background: var(--glass-bg);
    border: 1px solid var(--glass-brd); transition: background .25s ease, border-color .25s ease;
}
.theme-toggle:hover { background: var(--glass-bg-h); }
.theme-stars { width: 25px; height: 20px; position: relative; display: inline-block; }
.theme-stars i { position: absolute; color: var(--accent-2); font-style: normal; line-height: 1; }
.theme-stars i::before { content: "✦"; }
.theme-stars i:nth-child(1) { left: 0; top: 7px; font-size: 9px; }
.theme-stars i:nth-child(2) { left: 9px; top: 1px; font-size: 15px; }
.theme-stars i:nth-child(3) { right: 0; top: 9px; font-size: 7px; }
.theme-track {
    width: 33px; height: 18px; display: inline-flex; align-items: center;
    padding: 2px; border-radius: 999px; background: rgba(255,255,255,.15);
    transition: background .25s ease;
}
.theme-knob {
    width: 14px; height: 14px; border-radius: 50%; display: block;
    background: var(--accent-2); box-shadow: 0 1px 7px rgba(0,0,0,.35);
    transition: transform .25s ease, background .25s ease;
}
[data-theme="light"] .theme-knob { transform: translateX(15px); background: var(--accent); }
.menu-toggle {
    display: none; width: 40px; height: 38px; padding: 9px;
    border-radius: 12px; background: var(--glass-bg); border: 1px solid var(--glass-brd);
}
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Explicit three-line headline: it scales instead of overflowing on phones. */
.hero-title .grad { display: block; }
.hero-title .grad > span { display: block; white-space: nowrap; }
.docs-title { line-height: 1.05; }

@media (max-width: 1100px) {
    .nav { gap: 10px; }
    .nav .links a { padding-left: 8px; padding-right: 8px; font-size: 13px; }
    .nav .cta { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 820px) {
    .nav { margin-left: 12px; margin-right: 12px; flex-wrap: wrap; }
    .menu-toggle { display: block; margin-left: auto; }
    .nav .theme-toggle { order: 3; }
    .nav .cta { order: 4; margin-left: 0; }
    .nav .links {
        order: 5; width: 100%; margin: 4px 0 0; padding-top: 8px;
        border-top: 1px solid var(--glass-brd); flex-direction: column; gap: 2px;
    }
    .nav.menu-open .links { display: flex; }
    .nav .links a { padding: 9px 10px; }
}
@media (max-width: 520px) {
    .nav { top: 8px; margin-top: 8px; padding: 8px 10px; }
    .nav .brand span { font-size: 14px; }
    .nav .brand .logo-img { width: 31px; height: 31px; }
    .theme-toggle { padding: 5px 6px; }
    .theme-stars { transform: scale(.9); transform-origin: right center; margin-right: -2px; }
    .nav .cta { font-size: 12px; padding: 8px 10px; }
    .hero-title { font-size: clamp(21px, 6.3vw, 48px); letter-spacing: -.035em; }
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff;
    box-shadow: 0 12px 32px rgba(124,92,255,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(124,92,255,0.6); color: #fff; }
.btn-primary::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    filter: blur(16px); opacity: .5; z-index: -1; transition: opacity .25s ease;
}
.btn-primary:hover::after { opacity: .85; }
.btn-ghost {
    background: var(--glass-bg);
    color: var(--text);
    border-color: var(--glass-brd);
    backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: var(--glass-bg-h); color: var(--text); border-color: rgba(255,255,255,0.25); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ===== Hero ===== */
.hero { padding: 90px 0 60px; position: relative; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(14px);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 22px;
}
.hero .eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { transform: scale(1);   opacity: 1; }
    50%     { transform: scale(1.4); opacity: .6; }
}
.hero h1 {
    font-size: clamp(36px, 5.6vw, 64px);
    line-height: 1.05;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero h1 .grad {
    background: linear-gradient(120deg, #ffffff 0%, #b8c4ff 30%, var(--accent-2) 60%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead {
    margin: 0 0 28px;
    color: var(--text-soft);
    font-size: clamp(16px, 1.6vw, 18.5px);
    max-width: 580px;
}
.hero .actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 28px;
}
.hero .badges {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.hero .badges img { height: 22px; }

@media (max-width: 960px) {
    .hero { padding-top: 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero p.lead { max-width: none; }
    .hero .badges, .hero .actions { justify-content: flex-start; }
}

/* ===== Hero mockup admin panel ===== */
.mockup {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
    transition: transform .5s ease;
}
.mockup:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.mockup-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-bar .dot {
    width: 11px; height: 11px; border-radius: 50%;
}
.mockup-bar .d1 { background: #ff5f57; }
.mockup-bar .d2 { background: #ffbd2e; }
.mockup-bar .d3 { background: #28c840; }
.mockup-bar .url {
    margin-left: 12px; font-family: var(--font-mono); font-size: 12px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 12px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
}
.mockup-body { padding: 22px; }
.mockup-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.mockup-tab {
    padding: 6px 12px; font-size: 12.5px;
    border-radius: 8px;
    color: var(--text-soft);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
}
.mockup-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(124,92,255,0.45);
}
.mockup-card {
    padding: 18px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    margin-bottom: 12px;
}
.mockup-card .check {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 10px;
    background: rgba(46,213,115,0.18);
    color: var(--success); font-weight: 800;
    margin-bottom: 10px;
}
.mockup-card h5 { margin: 0 0 4px; font-size: 14.5px; color: var(--text); }
.mockup-card .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--text-muted); }
.mockup-card .meta b { color: var(--text); font-weight: 600; }
.mockup-row {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.mockup-pill {
    font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
    background: rgba(0,212,255,0.12); color: var(--accent-2);
    border: 1px solid rgba(0,212,255,0.25);
}
.mockup-pill.ok { background: rgba(46,213,115,0.12); color: var(--success); border-color: rgba(46,213,115,0.25); }

/* ===== Stats ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
}
.stat {
    padding: 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    text-align: center;
    transition: transform .25s ease, background .25s ease;
}
.stat:hover { transform: translateY(-3px); background: var(--glass-bg-h); }
.stat .num {
    font-size: 32px; font-weight: 800;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--text-soft); font-size: 13.5px; margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Секции ===== */
section { padding: 90px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head .kicker {
    display: inline-block;
    color: var(--accent-2);
    font-weight: 600; font-size: 12.5px; letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 12px;
    font-weight: 800; letter-spacing: -0.01em;
}
.section-head p { color: #ffffff; font-size: 17px; margin: 0; opacity: .92; }

/* ===== Карточки возможностей ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card {
    position: relative;
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--glass-shadow);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(124,92,255,0.15), transparent 50%);
    opacity: 0; transition: opacity .25s ease;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-h);
    border-color: rgba(255,255,255,0.22);
}
.card:hover::before { opacity: 1; }
.card .icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff;
    margin-bottom: 16px;
    font-size: 24px;
    box-shadow: 0 10px 26px rgba(124,92,255,0.5);
}
.card .icon.alt   { background: linear-gradient(135deg, var(--accent-2), #4f8bff); box-shadow: 0 10px 26px rgba(0,212,255,0.45); }
.card .icon.alt2  { background: linear-gradient(135deg, var(--success), #16a085); box-shadow: 0 10px 26px rgba(46,213,115,0.45); }
.card .icon.alt3  { background: linear-gradient(135deg, var(--warning), #ff7a00); box-shadow: 0 10px 26px rgba(255,186,8,0.4); }
.card .icon.alt4  { background: linear-gradient(135deg, #ff4757, #dc2626); box-shadow: 0 10px 26px rgb(216, 32, 19,0.45); }
.card .icon.alt5  { background: linear-gradient(135deg, #4f8bff, #7c5cff); box-shadow: 0 10px 26px rgba(79,139,255,0.45); }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card p  { margin: 0; color: var(--text-soft); font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ===== Compatibility table ===== */
.compat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}
.compat .row {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: center;
    transition: background .15s ease;
}
.compat .row:hover { background: rgba(255,255,255,0.04); }
.compat .row:last-child { border-bottom: 0; }
.compat .row .name { color: var(--text); font-weight: 500; }
.compat .row .val  { color: var(--success); font-weight: 600; font-size: 14.5px; }
.compat .row .val.muted { color: var(--text-muted); }

/* ===== Demo / Preview cards ===== */
.demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.demo-card {
    padding: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: transform .25s ease, border-color .25s ease;
}
.demo-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); }
.demo-card .head {
    padding: 18px 20px;
    background: rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: 12px;
}
.demo-card .head .icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff;
    box-shadow: 0 6px 18px rgba(124,92,255,0.4);
}
.demo-card .head h4 { margin: 0; font-size: 15.5px; }
.demo-card .body { padding: 20px; }

/* Стилизация «сообщения в MAX» */
.msg {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    font-size: 13.5px;
    color: var(--text-soft);
    position: relative;
}
.msg .from {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
    color: var(--text); font-weight: 600; font-size: 13px;
}
.msg .from .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 0 8px var(--accent);
}
.msg .from .time { margin-left: auto; color: var(--text-muted); font-weight: 400; font-size: 11.5px; }
.msg b { color: var(--text); font-weight: 600; }

/* «Чат-виджет» превью */
.bubble {
    position: relative;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff;
    border-radius: 18px 18px 18px 6px;
    padding: 12px 16px;
    font-size: 13.5px;
    max-width: 85%;
    box-shadow: 0 10px 26px rgba(124,92,255,0.4);
    margin-bottom: 14px;
}
.fab {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    display: grid; place-items: center;
    color: #fff; font-size: 22px; font-weight: 800;
    box-shadow: 0 14px 34px rgba(124,92,255,0.55);
    margin-left: auto;
    position: relative;
}
.fab::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(124,92,255,0.5);
    animation: ripple 2.2s ease-out infinite;
}
@keyframes ripple {
    0%   { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

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

/* ===== Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}
.step {
    padding: 26px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    counter-increment: step;
    transition: transform .25s ease;
}
.step:hover { transform: translateY(-4px); }
.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; top: 18px; right: 22px;
    font-size: 32px; font-weight: 800; opacity: 0.22;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 { margin: 0 0 8px; font-size: 16.5px; }
.step p  { margin: 0; color: var(--text-soft); font-size: 14.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ===== Pricing ===== */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}
.price {
    padding: 32px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--glass-shadow);
    position: relative;
    display: flex; flex-direction: column;
    transition: transform .25s ease;
}
.price:hover { transform: translateY(-5px); }
.price.featured {
    border-color: rgba(124,92,255,0.6);
    background: linear-gradient(180deg, rgba(124,92,255,0.22), rgba(255,255,255,0.05));
    box-shadow: 0 22px 64px rgba(124,92,255,0.4);
}
.price.featured::before {
    content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.price .tag {
    position: absolute; top: -12px; right: 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px;
    letter-spacing: .04em;
    box-shadow: 0 8px 22px rgba(124,92,255,0.5);
}
.price h3 { margin: 0 0 4px; font-size: 18px; color: var(--text-soft); font-weight: 600; }
.price .amount {
    font-size: 44px; font-weight: 800; margin: 6px 0;
    background: linear-gradient(135deg, #fff, var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price .per { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price ul li {
    padding: 8px 0; color: var(--text-soft); font-size: 14.5px;
    display: flex; align-items: flex-start; gap: 10px;
}
.price ul li::before {
    content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0;
}
.price .save {
    display: inline-block; margin-top: -10px; margin-bottom: 12px;
    color: var(--success); font-weight: 600; font-size: 13px;
}
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0 22px;
    transition: background .2s ease, border-color .2s ease;
}
.faq details:hover { border-color: rgba(255,255,255,0.2); }
.faq details[open] { background: var(--glass-bg-h); border-color: rgba(124,92,255,0.4); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    font-size: 16px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
    color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; font-size: 24px; color: var(--accent-2);
    transition: transform .2s ease;
    line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent-3); }
.faq details p {
    margin: 0 0 18px; color: var(--text-soft); font-size: 15px;
}

/* ===== Author / Contacts ===== */
.author {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.author .panel {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--glass-shadow);
}
.author .panel h3 { margin-top: 0; font-size: 22px; }
.author .panel p  { color: var(--text-soft); }
.author .who {
    display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.author .who .ava {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff; display: grid; place-items: center;
    font-weight: 800; font-size: 22px;
    box-shadow: 0 12px 30px rgba(124,92,255,0.5);
    flex-shrink: 0;
}
.author .who .meta strong { display: block; font-size: 18px; }
.author .who .meta span   { color: var(--text-muted); font-size: 13.5px; }

.contacts { display: grid; gap: 12px; }
.contact-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
    color: var(--text);
    text-decoration: none;
}
.contact-row:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
    border-color: rgba(124,92,255,0.4);
    color: var(--text);
}
.contact-row .ic {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,212,255,0.3);
}
.contact-row .info {
    display: flex; flex-direction: column; line-height: 1.25;
}
.contact-row .info .lbl { color: var(--text-muted); font-size: 12px; }
.contact-row .info .val { font-weight: 600; font-size: 14.5px; color: var(--text); margin-top: 2px; }

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

/* ===== License request form ===== */
.form-panel {
    background: linear-gradient(180deg, rgba(255,71,87,0.08), rgba(124,92,255,0.06));
    border-color: rgba(255,71,87,0.25);
    position: relative;
    overflow: hidden;
}
.form-panel::before {
    content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px;
    background: linear-gradient(135deg, var(--accent-3), var(--accent), var(--accent-2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none; opacity: .55;
}
.form-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.form-icon {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 24px;
    background: linear-gradient(135deg, var(--accent-3), var(--accent));
    box-shadow: 0 12px 28px rgba(255,71,87,0.45);
}
.form-head h3 { margin: 0 0 4px; font-size: 22px; color: var(--text); }
.form-head p  { margin: 0; color: var(--text-soft); font-size: 14.5px; }

.lic-form .form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.lic-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lic-form .field label {
    font-size: 13px; font-weight: 600; color: var(--text-soft);
    letter-spacing: .02em;
}
.lic-form .field .req { color: var(--accent-3); }
.lic-form .field input {
    padding: 12px 14px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.lic-form .field input::placeholder { color: var(--text-muted); }
.lic-form .field input:hover { border-color: rgba(255,255,255,0.22); }
.lic-form .field input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.55);
    box-shadow: 0 0 0 3px rgba(124,92,255,0.25);
}
.lic-form .field small { color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }

.lic-form .field-checkbox { margin: 8px 0 6px; }
.lic-form .field-checkbox label {
    display: flex; gap: 12px; align-items: flex-start;
    cursor: pointer;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}
.lic-form .field-checkbox input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px; flex-shrink: 0;
    margin-top: 1px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    cursor: pointer;
    position: relative;
    transition: all .15s ease;
}
.lic-form .field-checkbox input[type="checkbox"]:hover { border-color: var(--accent); }
.lic-form .field-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    border-color: transparent;
}
.lic-form .field-checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #fff; font-size: 13px; font-weight: 800;
    line-height: 1;
}

.lic-form .form-actions {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.lic-form .form-note { color: var(--text-muted); font-size: 13px; }

@media (max-width: 660px) {
    .lic-form .form-grid { grid-template-columns: 1fr; }
    .form-head { flex-direction: column; gap: 12px; }
}

/* «Спасибо» баннер после отправки формы */
.thanks-banner {
    margin-bottom: 20px;
    padding: 16px 22px;
    background: linear-gradient(135deg, rgba(46,213,115,0.18), rgba(0,212,255,0.12));
    border: 1px solid rgba(46,213,115,0.4);
    border-radius: 14px;
    color: var(--text);
    font-size: 15px;
    display: flex; align-items: center; gap: 12px;
}
.thanks-banner .ok {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; flex-shrink: 0;
    background: var(--success); color: #fff; font-weight: 800;
    box-shadow: 0 6px 18px rgba(46,213,115,0.5);
}

/* ===== Code block ===== */
code {
    font-family: var(--font-mono);
    font-size: 13.5px;
    background: rgba(255,255,255,0.08);
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--accent-2);
    border: 1px solid rgba(255,255,255,0.06);
}
pre {
    background: rgba(0,0,0,0.55);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.6;
    color: #e6edf3;
}
pre code { background: transparent; padding: 0; border: 0; color: inherit; }

/* ===== CTA banner ===== */
.cta-banner {
    margin: 0 auto;
    max-width: var(--max-w);
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(124,92,255,0.22), rgba(0,212,255,0.18));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}
.cta-banner h3 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 28px); }
.cta-banner p  { margin: 0; color: var(--text-soft); }
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; text-align: center; } }

/* ===== Footer ===== */
footer {
    padding: 50px 0 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 60px;
}
footer a { color: var(--text-soft); }
footer .made { font-size: 13px; margin-top: 8px; opacity: 0.7; }

/* ===== Docs page ===== */
.doc-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    margin-top: 24px;
}
.doc-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.doc-toc h4 {
    margin: 0 0 12px; font-size: 12px; letter-spacing: .15em;
    text-transform: uppercase; color: var(--text-muted);
}
.doc-toc a {
    display: block; padding: 7px 10px; border-radius: 8px;
    color: var(--text-soft); font-size: 14px;
    transition: all .15s ease;
}
.doc-toc a:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.doc-body {
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    padding: 36px 40px;
    box-shadow: var(--glass-shadow);
}
.doc-body h2 {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 24px;
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { margin-top: 22px; font-size: 18px; color: var(--text); }
.doc-body p, .doc-body li { color: var(--text-soft); }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.doc-body th, .doc-body td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.doc-body th { color: var(--text-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 900px) {
    .doc-layout { grid-template-columns: 1fr; }
    .doc-toc { position: static; }
    .doc-body { padding: 24px 20px; }
}

/* ===== Reveal on scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.on { opacity: 1; transform: none; }

/* ===== Mouse-tracked frosted-glass wave =====
   Безопасная реализация: позиционирование задано без overflow:hidden,
   псевдоэлемент сам себя обрезает через border-radius: inherit, поэтому
   «выпирающие» элементы (.tag «Популярно», градиентные бордеры с inset:-1px,
   стрелка .link-card::after) остаются на месте. */
.card:not(.link-card), .step, .stat, .activation-card {
    position: relative;
}
.card:not(.link-card)::after,
.step::after,
.stat::after,
.activation-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        260px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 178, 122, 0.22),
        rgba(214, 51, 71, 0.10) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 1;
}
.card:not(.link-card):hover::after,
.step:hover::after,
.stat:hover::after,
.activation-card:hover::after { opacity: 1; }

/* Поднимаем содержимое над псевдоволной, но НЕ трогаем .link-card,
   чтобы стрелка (.link-card::after) и иконка работали как раньше. */
.card:not(.link-card) > *,
.step > *,
.stat > *,
.activation-card > * { position: relative; z-index: 2; }

/* ===== Activation flow (как это работает у клиента) ===== */
.activation-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: actstep;
}
.activation-card {
    padding: 28px 24px;
    background: linear-gradient(180deg, rgba(214,51,71,0.12), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,91,61,0.30);
    border-radius: var(--radius);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow: 0 18px 48px rgba(0,0,0,0.45);
    counter-increment: actstep;
    transition: transform .25s ease, border-color .25s ease;
}
.activation-card:hover { transform: translateY(-5px); border-color: rgba(255,91,61,0.55); }
.activation-card .num {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff; font-weight: 800; font-size: 18px;
    box-shadow: 0 10px 24px rgba(214,51,71,0.5);
    margin-bottom: 14px;
}
.activation-card h4 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.activation-card p  { margin: 0; color: #ffffff; opacity: .9; font-size: 14.5px; line-height: 1.55; }
.activation-card .icon-emoji { font-size: 24px; margin-bottom: 8px; display: block; }
@media (max-width: 960px) { .activation-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .activation-flow { grid-template-columns: 1fr; } }

.activation-highlight {
    margin-top: 28px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(214,51,71,0.18), rgba(255,91,61,0.12));
    border: 1px solid rgba(255,91,61,0.35);
    border-radius: var(--radius);
    color: #fff;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    backdrop-filter: blur(20px);
}
.activation-highlight .big-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    display: grid; place-items: center; flex-shrink: 0;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(214,51,71,0.5);
}
.activation-highlight strong { color: #fff; font-size: 17px; }
.activation-highlight p { margin: 4px 0 0; color: #ffffff; opacity: .92; font-size: 14.5px; }

/* ===== Pretty footer ===== */
.site-footer {
    margin-top: 80px;
    padding: 56px 0 32px;
    background: linear-gradient(180deg, transparent, rgba(214,51,71,0.10) 40%, rgba(10,6,8,0.85));
    border-top: 1px solid rgba(255,91,61,0.25);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute; left: 50%; top: 0;
    width: 60%; height: 2px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent-3), var(--accent), transparent);
    filter: blur(.5px);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer-brand {
    display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.footer-brand img {
    width: 48px; height: 48px; border-radius: 12px;
    box-shadow: 0 8px 22px rgba(214,51,71,0.5);
}
.footer-brand .ttl { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.footer-brand .sub { font-size: 13px; color: var(--text-muted); }
.footer-about p {
    margin: 0 0 8px; color: #f1e6e3; font-size: 14px; line-height: 1.6;
}
.footer-col h5 {
    margin: 0 0 14px; font-size: 12px; color: var(--accent-2);
    text-transform: uppercase; letter-spacing: .15em; font-weight: 700;
}
.footer-col a {
    display: block; padding: 6px 0; color: #f1e6e3; font-size: 14px;
    transition: color .2s ease, transform .2s ease;
}
.footer-col a:hover { color: var(--accent-3); transform: translateX(3px); }
.footer-legal {
    border-top: 1px solid rgba(255,91,61,0.2);
    padding-top: 24px;
    text-align: center;
    color: #f1e6e3;
    font-size: 13.5px;
    line-height: 1.85;
}
.footer-legal .copy {
    font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 6px;
    letter-spacing: .3px;
}
.footer-legal .copy .brand-name {
    background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-weight: 800; letter-spacing: 1px;
}
.footer-legal .heart {
    display: inline-block; color: var(--accent-3);
    animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25%      { transform: scale(1.18); }
    50%      { transform: scale(1); }
}
.footer-legal .inn { color: var(--text-muted); font-size: 13px; }
.footer-legal .rights { color: var(--text-muted); font-size: 12.5px; margin-top: 4px; }
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Footer alignment: brand block stays a clean left-aligned column. */
.site-footer .footer-grid {
    align-items: start;
}

.site-footer .footer-about {
    min-width: 0;
    text-align: left;
}

.site-footer .footer-brand {
    justify-content: flex-start;
    align-items: center;
    text-align: left;
}

.site-footer .footer-about p {
    max-width: 480px;
}

.site-footer .footer-col {
    text-align: left;
}

.site-footer .footer-col h5 {
    text-align: left;
}

@media (max-width: 800px) {
    .site-footer .footer-about,
    .site-footer .footer-col,
    .site-footer .footer-col h5 {
        text-align: center;
    }

    .site-footer .footer-brand {
        justify-content: center;
    }

    .site-footer .footer-about p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Black neon polish =====
   Финальный слой визуальных эффектов: глубокий чёрный фон,
   тонкая сетка, мягкий crimson glow и живые hover-состояния. */
:root {
    --bg-0: #030405;
    --bg-1: #09090b;
    --glass-bg: rgba(16, 17, 20, .62);
    --glass-bg-h: rgba(28, 29, 34, .78);
    --glass-brd: rgba(255, 255, 255, .13);
    --glass-shadow: 0 18px 60px rgba(0, 0, 0, .72);
    --accent: #e21d3f;
    --accent-2: #ffbd8c;
    --accent-3: #ff3f53;
}

html, body {
    background: #030405;
}

.bg-canvas {
    background:
        radial-gradient(700px 480px at 5% 0%, rgba(226, 29, 63, .18), transparent 68%),
        radial-gradient(680px 520px at 96% 12%, rgba(255, 63, 83, .12), transparent 70%),
        radial-gradient(800px 480px at 50% 100%, rgba(140, 47, 28, .10), transparent 72%),
        linear-gradient(180deg, #08090b 0%, #030405 58%, #010202 100%);
}

.bg-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .26;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
}

.bg-canvas::after {
    opacity: .16;
    mix-blend-mode: screen;
}

.blob {
    filter: blur(130px);
    opacity: .42;
}

.blob.b1 {
    background: radial-gradient(circle at 30% 30%, #b81235, transparent 68%);
}

.blob.b2 {
    background: radial-gradient(circle at 60% 40%, #8e241e, transparent 68%);
}

.blob.b3 {
    background: radial-gradient(circle at 50% 50%, #6d1428, transparent 68%);
}

.nav {
    background: rgba(5, 6, 8, .72);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 14px 42px rgba(0, 0, 0, .7), 0 0 0 1px rgba(226, 29, 63, .04);
}

.nav::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(226, 29, 63, .6), rgba(255, 189, 140, .32), transparent 92%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .7;
}

.nav .brand .logo-img {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 28px rgba(226, 29, 63, .5);
}

.hero {
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    width: min(70vw, 760px);
    height: 420px;
    left: 50%;
    top: 12%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(226, 29, 63, .11), transparent 68%);
    filter: blur(22px);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    text-shadow: 0 0 42px rgba(226, 29, 63, .16);
}

.hero h1 .grad {
    /* Solid fallback keeps the headline readable in proxied previews and
       older WebKit builds where background-clip:text can paint a rectangle. */
    background: none;
    color: #ff8f86;
    -webkit-text-fill-color: #ff8f86;
    text-shadow: 0 0 26px rgba(226, 29, 63, .28);
}

@keyframes title-shimmer {
    from { background-position: 0% center; }
    to { background-position: 100% center; }
}

.mockup,
.card,
.stat,
.step,
.price,
.demo-card,
.compat,
.author .panel,
.doc-toc,
.doc-body,
.activation-card {
    background-color: rgba(7, 8, 10, .72);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .055);
}

.card,
.stat,
.step,
.price,
.demo-card,
.activation-card {
    transition: transform .35s cubic-bezier(.2, .8, .2, 1),
                border-color .35s ease,
                box-shadow .35s ease,
                background .35s ease;
}

.card:hover,
.stat:hover,
.step:hover,
.price:hover,
.demo-card:hover,
.activation-card:hover {
    border-color: rgba(255, 91, 61, .46);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .78), 0 0 34px rgba(226, 29, 63, .11);
}

.card::before {
    background: linear-gradient(125deg, rgba(226, 29, 63, .18), transparent 42%, rgba(255, 189, 140, .07));
}

.btn-primary {
    overflow: hidden;
    background: linear-gradient(120deg, #b81235, #e21d3f 55%, #ff614b);
    box-shadow: 0 12px 34px rgba(226, 29, 63, .34), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    transform: skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
    transition: left .6s ease;
}

.btn-primary:hover::before {
    left: 135%;
}

.btn-primary::after {
    background: #e21d3f;
    filter: blur(22px);
}

.btn-ghost:hover {
    border-color: rgba(255, 91, 61, .46);
    box-shadow: 0 0 24px rgba(226, 29, 63, .12);
}

.section-head .kicker {
    text-shadow: 0 0 18px rgba(255, 189, 140, .34);
}

.section-head h2 {
    text-shadow: 0 8px 34px rgba(0, 0, 0, .72);
}

.g-tile:hover,
.link-card:hover {
    box-shadow: 0 24px 68px rgba(0, 0, 0, .78), 0 0 26px rgba(226, 29, 63, .14);
}

.price.featured {
    background: linear-gradient(180deg, rgba(113, 12, 35, .32), rgba(7, 8, 10, .76));
    box-shadow: 0 26px 82px rgba(0, 0, 0, .76), 0 0 38px rgba(226, 29, 63, .2);
}

.cta-banner {
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 189, 140, .18), transparent 34%),
        linear-gradient(120deg, rgba(120, 12, 39, .42), rgba(18, 20, 25, .86));
    box-shadow: 0 26px 86px rgba(0, 0, 0, .78), 0 0 42px rgba(226, 29, 63, .14);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ===== Vivid background pass =====
   Чёрная база остаётся, но световые акценты возвращают странице объём. */
.bg-canvas {
    z-index: -1;
    background:
        radial-gradient(900px 620px at -4% 4%, rgba(255, 36, 82, .42), transparent 66%),
        radial-gradient(760px 600px at 104% 16%, rgba(255, 105, 42, .30), transparent 64%),
        radial-gradient(850px 560px at 50% 84%, rgba(163, 24, 71, .28), transparent 68%),
        linear-gradient(135deg, #08070a 0%, #12070d 40%, #050507 100%);
}

.bg-canvas::before {
    opacity: .34;
    background:
        radial-gradient(420px 260px at 22% 28%, rgba(255, 82, 96, .20), transparent 72%),
        radial-gradient(500px 300px at 80% 58%, rgba(255, 155, 93, .14), transparent 72%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: auto, auto, 58px 58px, 58px 58px;
}

.bg-canvas::after {
    opacity: .42;
    mix-blend-mode: screen;
    background:
        linear-gradient(115deg, transparent 20%, rgba(255, 63, 83, .09) 48%, transparent 72%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 189, 140, .10), transparent 52%);
}

.blob {
    filter: blur(92px);
    opacity: .72;
}

.blob.b1 {
    width: 680px;
    height: 680px;
    left: -220px;
    top: -180px;
    background: radial-gradient(circle at 42% 42%, #ef1747 0%, #a40e38 38%, transparent 72%);
    animation-duration: 18s;
}

.blob.b2 {
    width: 600px;
    height: 600px;
    right: -170px;
    top: 8%;
    background: radial-gradient(circle at 52% 42%, #ff713f 0%, #a72a32 34%, transparent 72%);
    animation-duration: 23s;
}

.blob.b3 {
    width: 720px;
    height: 720px;
    left: 24%;
    bottom: -300px;
    background: radial-gradient(circle at 50% 40%, #a51655 0%, #55132f 38%, transparent 72%);
    animation-duration: 26s;
}

section:nth-of-type(even)::before {
    content: "";
    position: absolute;
    width: min(70vw, 820px);
    height: 260px;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(226, 29, 63, .10), transparent 70%);
    filter: blur(28px);
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    background:
        radial-gradient(ellipse at 20% 40%, rgba(255, 41, 81, .20), transparent 62%),
        radial-gradient(ellipse at 84% 34%, rgba(255, 126, 73, .15), transparent 60%);
    filter: blur(20px);
}

.mockup {
    border-color: rgba(255, 113, 96, .28);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .74),
        0 0 58px rgba(226, 29, 63, .18),
        inset 0 1px 0 rgba(255, 255, 255, .10);
}

.card,
.stat,
.step,
.price,
.demo-card,
.compat,
.author .panel,
.doc-toc,
.doc-body,
.activation-card {
    background-color: rgba(13, 11, 15, .64);
    border-color: rgba(255, 255, 255, .16);
}

.card:hover,
.stat:hover,
.step:hover,
.price:hover,
.demo-card:hover,
.activation-card:hover {
    background-color: rgba(31, 14, 22, .72);
    box-shadow:
        0 26px 80px rgba(0, 0, 0, .72),
        0 0 42px rgba(226, 29, 63, .22);
}

/* Более выразительная сцена первого экрана */
.bg-canvas {
    background:
        radial-gradient(780px 560px at 18% 28%, rgba(241, 19, 66, .48), transparent 68%),
        radial-gradient(650px 500px at 82% 30%, rgba(255, 111, 49, .34), transparent 66%),
        radial-gradient(720px 440px at 54% 72%, rgba(173, 19, 73, .32), transparent 70%),
        linear-gradient(125deg, #050507 0%, #1a070f 46%, #070608 100%);
}

.hero-grid {
    position: relative;
}

.hero-grid::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 440px;
    left: -160px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 31, 78, .24), rgba(166, 13, 51, .10) 42%, transparent 72%);
    filter: blur(24px);
    animation: hero-glow 9s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

.hero-grid::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 360px;
    right: -100px;
    top: 20px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 121, 64, .22), transparent 68%);
    filter: blur(34px);
    animation: hero-glow 12s ease-in-out -4s infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes hero-glow {
    from { transform: translate3d(-12px, 8px, 0) scale(.94); opacity: .65; }
    to { transform: translate3d(18px, -10px, 0) scale(1.08); opacity: 1; }
}

.mockup::after {
    content: "";
    position: absolute;
    inset: -35%;
    background: conic-gradient(from 210deg, transparent 0 62%, rgba(255, 80, 70, .16) 70%, transparent 80%);
    animation: mockup-sweep 10s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes mockup-sweep {
    to { transform: rotate(360deg); }
}

.mockup > * {
    position: relative;
    z-index: 1;
}

.hero .eyebrow,
.hero .actions,
.hero .lead {
    position: relative;
    z-index: 1;
}

/* ===== Product video ===== */
.product-video {
    padding-top: 18px;
    padding-bottom: 74px;
}

.video-shell {
    position: relative;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 91, 61, .30);
    border-radius: 28px;
    background:
        radial-gradient(600px 260px at 8% 0%, rgba(226, 29, 63, .18), transparent 70%),
        linear-gradient(145deg, rgba(24, 10, 17, .90), rgba(7, 8, 10, .82));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .72),
        0 0 55px rgba(226, 29, 63, .12),
        inset 0 1px 0 rgba(255, 255, 255, .09);
}

.video-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .05) 45%, transparent 65%);
    transform: translateX(-80%);
    animation: video-glint 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes video-glint {
    0%, 35% { transform: translateX(-80%); }
    65%, 100% { transform: translateX(80%); }
}

.video-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.video-heading h2 {
    margin: 3px 0 7px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.12;
}

.video-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
}

.video-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 13px;
    border: 1px solid rgba(46, 213, 115, .25);
    border-radius: 999px;
    color: #c4f7d5;
    background: rgba(46, 213, 115, .08);
    font-size: 12.5px;
    white-space: nowrap;
}

.video-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.video-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: #010102;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
}

.video-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 91, 61, .18);
    border-radius: inherit;
    pointer-events: none;
}

.video-frame video {
    display: block;
    width: 100%;
    max-height: 680px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #010102;
}

@media (max-width: 650px) {
    .product-video { padding-top: 0; padding-bottom: 48px; }
    .video-shell { padding: 20px 14px 14px; border-radius: 20px; }
    .video-heading { display: block; margin-bottom: 16px; }
    .video-heading p { font-size: 14px; }
    .video-status { margin-top: 14px; }
    .video-frame { border-radius: 13px; }
}

/* ===== Светлая тема =====
   Переключается атрибутом на html и намеренно находится в конце файла,
   чтобы перекрыть все декоративные слои тёмной темы выше. */
[data-theme="light"] {
    --bg-0: #f7f8fc;
    --bg-1: #eef0ff;
    --text: #171827;
    --text-soft: #41445a;
    --text-muted: #70748a;
    --accent: #6757e8;
    --accent-2: #4b3ed0;
    --accent-3: #e05268;
    --success: #159957;
    --glass-bg: rgba(255,255,255,.72);
    --glass-bg-h: rgba(255,255,255,.94);
    --glass-brd: rgba(70,67,125,.16);
    --glass-shadow: 0 18px 50px rgba(54,50,110,.12);
}
html[data-theme="light"],
html[data-theme="light"] body { background: var(--bg-0); color: var(--text); }
[data-theme="light"] .bg-canvas {
    background:
        radial-gradient(760px 540px at 5% 0%, rgba(117,99,255,.24), transparent 68%),
        radial-gradient(700px 520px at 100% 10%, rgba(255,137,157,.22), transparent 68%),
        radial-gradient(820px 520px at 50% 100%, rgba(110,190,255,.15), transparent 70%),
        linear-gradient(180deg, #eef0ff 0%, #f8f9fd 58%, #f2f3fb 100%);
}
[data-theme="light"] .bg-canvas::before {
    opacity: .16;
    background-image:
        linear-gradient(rgba(78,72,150,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78,72,150,.08) 1px, transparent 1px);
}
[data-theme="light"] .bg-canvas::after { opacity: .08; mix-blend-mode: multiply; }
[data-theme="light"] .blob { opacity: .34; filter: blur(110px); }
[data-theme="light"] .blob.b1 { background: radial-gradient(circle, #a99eff, transparent 70%); }
[data-theme="light"] .blob.b2 { background: radial-gradient(circle, #ffb5aa, transparent 70%); }
[data-theme="light"] .blob.b3 { background: radial-gradient(circle, #a7d9ff, transparent 70%); }
[data-theme="light"] .nav {
    background: rgba(255,255,255,.78);
    border-color: rgba(74,67,151,.18);
    box-shadow: 0 14px 42px rgba(54,50,110,.14);
}
[data-theme="light"] .nav::before {
    background: linear-gradient(90deg, transparent 8%, rgba(103,87,232,.5), rgba(224,82,104,.28), transparent 92%);
}
[data-theme="light"] .nav .links a:hover { background: rgba(103,87,232,.09); }
[data-theme="light"] .hero::before,
[data-theme="light"] .hero-grid::before,
[data-theme="light"] .hero-grid::after { opacity: .38; }
[data-theme="light"] .hero h1 .grad {
    background: linear-gradient(120deg, #31258c, #6757e8 52%, #d44861);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    text-shadow: none;
}
[data-theme="light"] .mockup,
[data-theme="light"] .card,
[data-theme="light"] .stat,
[data-theme="light"] .step,
[data-theme="light"] .price,
[data-theme="light"] .demo-card,
[data-theme="light"] .compat,
[data-theme="light"] .author .panel,
[data-theme="light"] .doc-toc,
[data-theme="light"] .doc-body,
[data-theme="light"] .activation-card {
    background-color: rgba(255,255,255,.74);
    border-color: rgba(70,67,125,.16);
    box-shadow: 0 18px 50px rgba(54,50,110,.12), inset 0 1px 0 rgba(255,255,255,.8);
}
[data-theme="light"] .mockup-bar { background: rgba(41,39,73,.08); border-color: rgba(70,67,125,.12); }
[data-theme="light"] .mockup-card,
[data-theme="light"] .mockup-tab { border-color: rgba(70,67,125,.12); }
[data-theme="light"] .mockup-tab,
[data-theme="light"] .mockup-bar .url { color: var(--text-soft); background: rgba(103,87,232,.06); }
[data-theme="light"] .btn-ghost { background: rgba(255,255,255,.62); color: var(--text); border-color: rgba(70,67,125,.18); }
[data-theme="light"] .btn-ghost:hover { background: #fff; color: var(--text); border-color: rgba(103,87,232,.42); }
[data-theme="light"] .link-card h3,
[data-theme="light"] .link-card { color: var(--text); }
[data-theme="light"] code { background: rgba(103,87,232,.09); border-color: rgba(103,87,232,.14); color: #4b3ed0; }
[data-theme="light"] pre { background: #24233a; border-color: rgba(70,67,125,.22); color: #f4f1ff; }
[data-theme="light"] .doc-body h2 { border-color: rgba(70,67,125,.13); }
[data-theme="light"] .doc-body th,
[data-theme="light"] .doc-body td { border-color: rgba(70,67,125,.13); }
[data-theme="light"] .site-footer { background: linear-gradient(180deg, transparent, rgba(103,87,232,.08), rgba(238,240,255,.9)); border-color: rgba(103,87,232,.2); }
[data-theme="light"] .footer-brand .ttl,
[data-theme="light"] .footer-about p,
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-legal .copy { color: var(--text); }
[data-theme="light"] .activation-card h4,
[data-theme="light"] .activation-card p,
[data-theme="light"] .activation-highlight,
[data-theme="light"] .activation-highlight strong,
[data-theme="light"] .activation-highlight p { color: var(--text); }
[data-theme="light"] .activation-card p,
[data-theme="light"] .activation-highlight p { opacity: 1; }

/* Docs: long technical values may scroll inside themselves, never the page. */
.doc-body { min-width: 0; overflow-wrap: anywhere; }
.doc-body pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.doc-body table { display: block; overflow-x: auto; max-width: 100%; }
.doc-body th, .doc-body td { white-space: nowrap; }
.doc-body p, .doc-body li { overflow-wrap: anywhere; }

@media (max-width: 600px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .hero { padding: 52px 0 40px; }
    .hero .eyebrow { max-width: 100%; border-radius: 14px; line-height: 1.35; }
    .hero-title { margin-bottom: 16px; }
    .hero p.lead { font-size: 15px; line-height: 1.6; }
    .doc-layout { gap: 16px; margin-top: 12px; }
    .doc-toc { padding: 14px; border-radius: 16px; }
    .doc-toc a { font-size: 13px; padding: 6px 8px; }
    .doc-body { padding: 22px 16px; border-radius: 16px; }
    .doc-body h2 { font-size: 21px; line-height: 1.2; margin-top: 30px; padding-top: 22px; }
    .doc-body h3 { font-size: 17px; line-height: 1.3; }
    .doc-body p, .doc-body li { font-size: 15px; line-height: 1.58; }
    .doc-body table { font-size: 13px; }
    .doc-body th, .doc-body td { padding: 8px 9px; }
    .docs-title { font-size: clamp(30px, 9vw, 48px); }
}

/* ===== Cookie consent ===== */
.cookie-consent {
    position: fixed;
    z-index: 100;
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 28px;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(8,9,12,.9);
    box-shadow: 0 20px 70px rgba(0,0,0,.58), 0 0 0 1px rgba(226,29,63,.08);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .26s ease, transform .26s ease;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent.is-visible { opacity: 1; transform: translateY(0); }
.cookie-copy { min-width: 0; }
.cookie-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    width: 72px;
    height: 72px;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,189,140,.18), rgba(226,29,63,.16));
    border: 1px solid rgba(255,189,140,.25);
    box-shadow: 0 10px 30px rgba(226,29,63,.16), inset 0 1px 0 rgba(255,255,255,.12);
}
.cookie-icon img { width: 100%; height: 100%; object-fit: contain; }
.cookie-copy h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
}
.cookie-copy p {
    max-width: 790px;
    margin: 0;
    color: #d8d3d5;
    font-size: 13.5px;
    line-height: 1.55;
}
.cookie-copy a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-copy a:hover { color: var(--accent-3); }
.cookie-actions { grid-column: 1; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { min-width: 122px; justify-content: center; }

[data-theme="light"] .cookie-consent {
    background: rgba(255,255,255,.94);
    border-color: rgba(70,67,125,.18);
    box-shadow: 0 20px 70px rgba(54,50,110,.2);
}
[data-theme="light"] .cookie-copy h2 { color: var(--text); }
[data-theme="light"] .cookie-copy p { color: var(--text-soft); }
[data-theme="light"] .cookie-icon {
    background: linear-gradient(145deg, rgba(255,189,140,.22), rgba(103,87,232,.12));
    border-color: rgba(103,87,232,.18);
    box-shadow: 0 10px 30px rgba(54,50,110,.14), inset 0 1px 0 rgba(255,255,255,.9);
}

@media (max-width: 700px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        grid-template-columns: minmax(0, 1fr) 58px;
        grid-template-rows: auto auto;
        gap: 16px;
        padding: 18px;
        border-radius: 16px;
    }
    .cookie-icon {
        width: 54px;
        height: 54px;
        padding: 7px;
        border-radius: 17px;
    }
    .cookie-copy h2 { font-size: 16px; }
    .cookie-copy p { font-size: 13px; line-height: 1.5; }
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1; min-width: 0; }
}

/* ===== Final contrast and hero refinement ===== */
:root {
    --surface: rgba(13, 11, 15, .64);
    --border: rgba(255, 255, 255, .16);
}
.hero-title {
    font-size: clamp(30px, 4.35vw, 52px);
    line-height: 1.08;
    letter-spacing: -.025em;
}
.hero-title .grad {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    text-shadow: 0 8px 30px rgba(0,0,0,.28);
}
.hero-title .grad > span { margin-bottom: 2px; }

[data-theme="light"] {
    --surface: rgba(255,255,255,.76);
    --border: rgba(70,67,125,.16);
}
[data-theme="light"] .hero-title .grad {
    color: #242136;
    -webkit-text-fill-color: #242136;
    text-shadow: none;
}
[data-theme="light"] .section-head p,
[data-theme="light"] .demo-card,
[data-theme="light"] .demo-card .body,
[data-theme="light"] .demo-card .msg,
[data-theme="light"] .compat .row,
[data-theme="light"] .price h3,
[data-theme="light"] .price ul li,
[data-theme="light"] .author .panel p,
[data-theme="light"] .cta-banner p {
    color: var(--text-soft);
}
[data-theme="light"] .section-head p { opacity: 1; }
[data-theme="light"] .demo-card .head {
    background: rgba(103,87,232,.08);
    border-bottom-color: rgba(70,67,125,.13);
}
[data-theme="light"] .demo-card .msg {
    background: rgba(103,87,232,.07);
    border-color: rgba(70,67,125,.13);
}
[data-theme="light"] .compat .row { border-bottom-color: rgba(70,67,125,.13); }
[data-theme="light"] .compat .row:hover,
[data-theme="light"] .contact-row:hover { background: rgba(103,87,232,.08); }
[data-theme="light"] .price .amount {
    background: linear-gradient(135deg, #302587, #6757e8 68%, #c63f5a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="light"] .price.featured {
    background: linear-gradient(180deg, rgba(103,87,232,.14), rgba(255,255,255,.84));
    border-color: rgba(103,87,232,.36);
    box-shadow: 0 22px 58px rgba(103,87,232,.16);
}
[data-theme="light"] .price:not(.featured) {
    background: rgba(255,255,255,.76);
}
[data-theme="light"] .cta-banner {
    background:
        radial-gradient(circle at 90% 20%, rgba(255,189,140,.2), transparent 34%),
        linear-gradient(120deg, rgba(103,87,232,.14), rgba(255,255,255,.84));
    border-color: rgba(103,87,232,.2);
    box-shadow: 0 24px 64px rgba(54,50,110,.14);
}
[data-theme="light"] .cta-banner h3,
[data-theme="light"] .author .panel h3,
[data-theme="light"] .author .who .meta strong,
[data-theme="light"] .contact-row .info .val {
    color: var(--text);
}
[data-theme="light"] .author .panel {
    background: rgba(255,255,255,.78);
    border-color: rgba(70,67,125,.16);
}
[data-theme="light"] .contact-row {
    background: rgba(103,87,232,.055);
    border-color: rgba(70,67,125,.13);
}
[data-theme="light"] .activation-card {
    background: linear-gradient(180deg, rgba(103,87,232,.12), rgba(255,255,255,.78));
}
[data-theme="light"] .activation-card h4,
[data-theme="light"] .activation-card p,
[data-theme="light"] .activation-highlight strong,
[data-theme="light"] .activation-highlight p {
    color: var(--text);
}
[data-theme="light"] .footer-legal .copy,
[data-theme="light"] .footer-legal > div:not(.rights):not(.inn) { color: var(--text-soft); }

@media (max-width: 600px) {
    .hero-title { font-size: clamp(22px, 6.3vw, 38px); line-height: 1.06; }
    .hero-title .grad > span { margin-bottom: 1px; }
    .hero-grid { gap: 28px; }
    .mockup { transform: none; }
    .mockup:hover { transform: none; }
}

/* Keep the hero as two balanced panels on desktop/tablet, like the original layout. */
.hero h1.hero-title {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.08;
}
@media (min-width: 761px) and (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 24px;
    }
    .hero { padding-top: 52px; }
    .hero h1.hero-title { font-size: clamp(28px, 3.8vw, 38px); }
    .hero p.lead { font-size: 15px; }
}
@media (max-width: 760px) {
    .hero-grid { grid-template-columns: 1fr; }
}

[data-theme="light"] .video-shell {
    background:
        radial-gradient(600px 260px at 8% 0%, rgba(103,87,232,.13), transparent 70%),
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(242,240,250,.92));
    border-color: rgba(103,87,232,.22);
    box-shadow: 0 22px 70px rgba(54,50,110,.14), inset 0 1px 0 rgba(255,255,255,.95);
}
[data-theme="light"] .video-heading h2 { color: var(--text); }
[data-theme="light"] .video-heading p { color: var(--text-soft); opacity: 1; }
[data-theme="light"] .video-status {
    color: #176b3b;
    background: rgba(46,213,115,.12);
    border-color: rgba(25,126,67,.25);
}
[data-theme="light"] .video-frame {
    border-color: rgba(70,67,125,.18);
    box-shadow: 0 18px 50px rgba(54,50,110,.18);
}

@media (min-width: 801px) {
    .site-footer .footer-grid { grid-template-columns: 1.45fr 1fr 1fr 1.25fr; }
}
