/* ═══════════════════════════════════════════════════════════════════
   landing.css — единый лендинг BookAR / ForgeNOX
   Дизайн-язык «Студии»: индиго-акцент #4f46e5, светлый нейтральный фон,
   glassmorphism, aurora-фон, зерно, reveal-анимации, плавный скролл.
   Премиальный маркетинговый слой поверх палитры studio.css.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Палитра (согласована со studio.css) */
    --bg:            #f6f7fb;
    --surface:       #ffffff;
    --surface-2:     #f8fafc;
    --ink:           #0b1220;
    --ink-2:         #475069;
    --ink-3:         #8b93a8;

    --primary:       #4f46e5;
    --primary-2:     #6366f1;
    --primary-deep:  #4338ca;
    --primary-soft:  #eef2ff;
    --violet:        #8b5cf6;
    --fuchsia:       #d946ef;

    --success:       #059669;
    --success-soft:  #ecfdf5;
    --danger:        #dc2626;
    --danger-soft:   #fef2f2;
    --warning:       #d97706;
    --warning-soft:  #fffbeb;

    --border:        #e7eaf1;
    --border-strong: #d7dce7;

    /* Радиусы */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Тени */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08), 0 16px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.14), 0 30px 80px rgba(79, 70, 229, 0.10);
    --shadow-glow: 0 12px 40px rgba(79, 70, 229, 0.28);

    /* Градиенты */
    --grad-brand:   linear-gradient(135deg, #6366f1 0%, #8b5cf6 52%, #d946ef 100%);
    --grad-text:    linear-gradient(100deg, #4f46e5 0%, #8b5cf6 50%, #d946ef 100%);
    --grad-aurora1: radial-gradient(46% 46% at 18% 22%, rgba(99,102,241,.28), transparent 60%);
    --grad-aurora2: radial-gradient(42% 42% at 82% 18%, rgba(217,70,239,.22), transparent 62%);
    --grad-aurora3: radial-gradient(50% 50% at 50% 100%, rgba(139,92,246,.20), transparent 62%);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --maxw: 1180px;
    --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
svg.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
::selection { background: rgba(99,102,241,.22); color: var(--ink); }

/* ════════════════ Типографика ════════════════ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}
.display {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.2vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    color: var(--ink);
}
.display .grad {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    letter-spacing: -0.025em;
}
.h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.lead {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: var(--ink-2);
    line-height: 1.65;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
}

/* ════════════════ Фоновые слои ════════════════ */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        var(--grad-aurora1),
        var(--grad-aurora2),
        var(--grad-aurora3),
        var(--bg);
    background-attachment: fixed;
    animation: aurora-drift 22s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-2%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(2%, -1%, 0) scale(1.03); }
}
.noise {
    position: fixed;
    inset: -50%;
    z-index: -1;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 560px; height: 560px;
    margin: -280px 0 0 -280px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(circle, rgba(99,102,241,.12) 0%, rgba(99,102,241,.04) 42%, transparent 72%);
    transition: opacity .4s;
}
body.glow-active .cursor-glow { opacity: 1; }

/* ════════════════ Кнопки ════════════════ */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.005em;
    white-space: nowrap;
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, border-color .2s, color .2s;
    will-change: transform;
    user-select: none;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 16px 44px rgba(79,70,229,.4); transform: translateY(-2px); }

.btn-ghost {
    background: rgba(255,255,255,.7);
    color: var(--ink);
    border-color: var(--border-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #161c2e; transform: translateY(-2px); }

.btn-lg { min-height: 56px; padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn::after {
    content: "";
    position: absolute;
    top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.42) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left .6s ease;
    pointer-events: none;
}
.btn:hover::after { left: 170%; }

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    transform: scale(0);
    animation: ripple-anim .6s ease-out forwards;
    pointer-events: none;
}
.btn-ghost .ripple { background: rgba(79,70,229,.18); }
@keyframes ripple-anim { to { transform: scale(3); opacity: 0; } }

/* ════════════════ Навигация ════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(79,70,229,.34);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand small { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; }

.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-links a {
    padding: 8px 11px;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(15,23,42,.05); }
.nav-links a.nav-cta { margin-left: 8px; flex-shrink: 0; color: #fff; }
.nav-links a.nav-cta:hover { color: #fff; }

.nav-burger {
    display: none;
    width: 42px; height: 42px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

/* ════════════════ Hero ════════════════ */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 64px) 0 80px;
    overflow: hidden;
}
.hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero .display { max-width: 15ch; }
.hero .lead { max-width: 640px; margin: 22px auto 0; }
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 34px;
}
.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--ink-3);
    font-weight: 500;
}
.hero-note svg { width: 16px; height: 16px; color: var(--success); }

/* Плавающие бейджи поверх hero */
.hero-stage {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin-top: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
}
.hero-frame {
    position: relative;
    width: min(560px, 86vw);
    aspect-ratio: 16 / 10;
    border-radius: var(--r-xl);
    background: linear-gradient(160deg, #10132b 0%, #1a1440 50%, #251445 100%);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
    overflow: hidden;
    transform-style: preserve-3d;
}
.hero-frame::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 30% 20%, rgba(99,102,241,.4), transparent 60%),
        radial-gradient(55% 55% at 75% 80%, rgba(217,70,239,.28), transparent 62%);
}
.hero-frame-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,.35) 50%, transparent 100%);
    height: 40%;
    animation: scan 4.5s ease-in-out infinite;
}
@keyframes scan { 0%,100% { transform: translateY(-120%); } 50% { transform: translateY(340%); } }

.hero-book {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-book-svg { width: 52%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.hero-book-svg .pg { transform-box: fill-box; transform-origin: center; animation: pg-float 6s ease-in-out infinite; }

@keyframes pg-float {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-1.2deg); }
}

.float-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    animation: float-y 6s ease-in-out infinite;
}
.float-badge svg { width: 16px; height: 16px; color: var(--primary); }
.fb-1 { top: 12%; left: 2%; animation-delay: 0s; }
.fb-2 { top: 22%; right: 0%; animation-delay: 1.6s; }
.fb-3 { bottom: 12%; right: 4%; animation-delay: .8s; }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ════════════════ Бегущая лента ════════════════ */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.4);
    backdrop-filter: blur(4px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}
.marquee-item svg { width: 18px; height: 18px; color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ════════════════ Секции ════════════════ */
.section { padding: 96px 0; position: relative; }
.section-alt { background: rgba(255,255,255,.5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 14px; }

/* ════════════════ Reveal-анимация ════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ════════════════ Демо / sticky ════════════════ */
.demo-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.demo-media {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: #0b0f22;
}
.demo-media video, .demo-media img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}
.demo-badge {
    position: absolute;
    left: 16px; bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
}
.demo-badge svg { width: 15px; height: 15px; color: var(--primary); }
.demo-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.demo-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink-2); }
.demo-list li svg { width: 19px; height: 19px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ════════════════ Шаги (как это работает) ════════════════ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.step {
    position: relative;
    padding: 30px 28px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 13px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: var(--grad-brand);
    box-shadow: var(--shadow-glow);
    margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 9px; }
.step p { font-size: 15px; color: var(--ink-2); }
.step-arrow {
    position: absolute;
    top: 44px; right: -18px;
    z-index: 2;
    color: var(--ink-3);
    width: 20px; height: 20px;
}

/* ════════════════ Bento (что можно создавать) ════════════════ */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 16px;
}
.bento-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 20px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.bento-item .bi-ico {
    position: absolute;
    top: 18px; left: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
}
.bento-item .bi-ico svg { width: 20px; height: 20px; }
.bento-item h4 { font-size: 1.02rem; }
.bento-item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.bento-item.span2 { grid-column: span 2; grid-row: span 2; }
.bento-item.span2w { grid-column: span 2; }
.bento-item.tint {
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(99,102,241,.16), transparent 55%),
        var(--surface);
}
.bento-item.dark {
    background: linear-gradient(150deg, #141733 0%, #1c1440 100%);
    color: #fff;
    border-color: transparent;
}
.bento-item.dark h4 { color: #fff; }
.bento-item.dark p { color: rgba(255,255,255,.72); }
.bento-item.dark .bi-ico { background: rgba(255,255,255,.12); color: #fff; }

/* ════════════════ Для кого (большие карточки) ════════════════ */
.audience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.aud-card {
    position: relative;
    overflow: hidden;
    padding: 30px 28px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.aud-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.aud-card .aud-ico {
    position: absolute;
    top: 26px; left: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.aud-card .aud-ico svg { width: 26px; height: 26px; }
.aud-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.aud-card p { font-size: 15px; color: var(--ink-2); }

/* ════════════════ Возможности (чипы/список) ════════════════ */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.feature .f-ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary);
}
.feature .f-ico svg { width: 22px; height: 22px; }
.feature h4 { font-size: 1.02rem; margin-bottom: 4px; }
.feature p { font-size: 14px; color: var(--ink-2); }

/* ════════════════ Галерея (до/после) ════════════════ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gal-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    aspect-ratio: 4 / 5;
    background: #0b0f22;
}
.gal-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .5s ease, transform .7s ease;
}
.gal-card img.after { opacity: 0; }
.gal-card:hover img.after { opacity: 1; }
.gal-card:hover img.before { transform: scale(1.04); }
.gal-label {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.9);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
}
.gal-label.after { left: auto; right: 12px; background: var(--primary); color: #fff; }
.gal-hint {
    position: absolute;
    left: 50%; bottom: 14px;
    transform: translateX(-50%);
    z-index: 2;
    padding: 6px 13px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}
.gal-card:hover .gal-hint { opacity: 1; }

/* ════════════════ Почему ForgeNOX ════════════════ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.why {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.why .w-num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex-shrink: 0;
    min-width: 40px;
}
.why h4 { font-size: 1.05rem; margin-bottom: 5px; }
.why p { font-size: 14.5px; color: var(--ink-2); }

/* ════════════════ Тарифы ════════════════ */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 5px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    margin-bottom: 40px;
}
.billing-toggle button {
    min-height: 38px;
    padding: 7px 18px;
    border-radius: var(--r-pill);
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    transition: background .2s, color .2s, box-shadow .2s;
}
.billing-toggle button.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,.34);
}
.billing-save {
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
    background: var(--success-soft);
    padding: 3px 9px;
    border-radius: var(--r-pill);
}

.plans {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: stretch;
}
.plan {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan.featured {
    border-color: transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad-brand) border-box;
    box-shadow: var(--shadow-lg);
}
.plan.featured::before {
    content: "Популярный";
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: var(--r-pill);
    background: var(--grad-brand);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink-2); }
.plan-price {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 14px 0 2px;
    color: var(--ink);
}
.plan-price small { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan-price.yearly { font-size: 28px; }
.plan-desc { font-size: 13.5px; color: var(--ink-3); min-height: 42px; margin-bottom: 16px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0 0 22px; }
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: var(--ink-2);
}
.plan-features li svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.plan-features li.off { color: var(--ink-3); }
.plan-features li.off svg { color: var(--border-strong); }
.plan .btn { margin-top: auto; }

/* Enterprise — отдельный широкий блок */
.enterprise {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 20px;
    padding: 40px 44px;
    border-radius: var(--r-xl);
    color: #fff;
    background: linear-gradient(150deg, #141733 0%, #1c1440 55%, #2a1450 100%);
    box-shadow: var(--shadow-lg);
}
.enterprise::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(50% 60% at 85% 20%, rgba(217,70,239,.4), transparent 60%),
        radial-gradient(50% 60% at 15% 80%, rgba(99,102,241,.35), transparent 60%);
    pointer-events: none;
}
.enterprise > * { position: relative; z-index: 1; }
.enterprise h3 { font-size: 1.7rem; color: #fff; margin-bottom: 10px; }
.enterprise p { font-size: 15.5px; color: rgba(255,255,255,.75); max-width: 560px; }
.enterprise .btn { flex-shrink: 0; }
.btn-outline-light {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.28);
}
.btn-outline-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* Сравнительная таблица */
.compare-wrap {
    margin-top: 64px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}
.compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    font-size: 14px;
}
.compare th, .compare td {
    padding: 15px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink);
    background: var(--surface-2);
}
.compare thead th.hl { color: var(--primary); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody td { color: var(--ink-2); }
.compare .row-label { font-weight: 600; color: var(--ink); }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: var(--ink-3); }
.compare .pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 2px 9px;
    border-radius: var(--r-pill);
}

/* Доп. пакеты */
.addons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 16px; }
.addon {
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.addon:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.addon .a-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 12px;
}
.addon .a-ico svg { width: 22px; height: 22px; }
.addon h4 { font-size: 1rem; margin-bottom: 4px; }
.addon .a-price { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); }
.addon p { font-size: 13px; color: var(--ink-3); }

/* ════════════════ FAQ ════════════════ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--ink-3);
    font-size: 18px;
    font-weight: 500;
    transition: transform .25s, background .25s, color .25s;
}
.faq details[open] summary .chev { transform: rotate(45deg); background: var(--primary-soft); color: var(--primary); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; }

/* ════════════════ Финальный CTA ════════════════ */
.cta {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(150deg, #141733 0%, #1c1440 55%, #2a1450 100%);
}
.cta::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(55% 65% at 50% 0%, rgba(99,102,241,.4), transparent 62%),
        radial-gradient(45% 55% at 85% 100%, rgba(217,70,239,.3), transparent 60%);
    pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta .lead { color: rgba(255,255,255,.78); max-width: 560px; margin: 18px auto 32px; }

/* ════════════════ Footer ════════════════ */
.footer {
    padding: 64px 0 32px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.footer p { font-size: 14px; color: var(--ink-3); max-width: 340px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links .col { display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.footer-links h5 { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.footer-links a { font-size: 14px; color: var(--ink-2); transition: color .15s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--ink-3);
}

/* ════════════════ Модальное окно запуска (вход в приложение) ════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: overlay-in .25s ease;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.launch {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: launch-in .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes launch-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.launch-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 36px;
    color: #fff;
    background: linear-gradient(160deg, #141733 0%, #1c1440 55%, #2a1450 100%);
    overflow: hidden;
}
.launch-side::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 55% at 80% 10%, rgba(217,70,239,.4), transparent 62%),
        radial-gradient(55% 60% at 15% 90%, rgba(99,102,241,.4), transparent 60%);
    pointer-events: none;
}
.launch-side > * { position: relative; z-index: 1; }
.launch-side .brand { color: #fff; }
.launch-side .brand-mark { background: rgba(255,255,255,.16); box-shadow: none; }
.launch-side h2 { color: #fff; font-size: 1.6rem; line-height: 1.2; }
.launch-side p { color: rgba(255,255,255,.75); font-size: 14.5px; }
.launch-side .ls-points { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.launch-side .ls-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.88); }
.launch-side .ls-points svg { width: 17px; height: 17px; color: #a5b4fc; flex-shrink: 0; }
.launch-side .ls-note { font-size: 12.5px; color: rgba(255,255,255,.5); }

.launch-main { display: flex; flex-direction: column; padding: 36px 40px; overflow-y: auto; }
.launch-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.launch-head h3 { font-size: 1.3rem; }
.launch-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-3);
    transition: background .15s, color .15s;
}
.launch-close:hover { background: var(--surface-2); color: var(--ink); }
.launch-close svg { width: 18px; height: 18px; }

/* Вкладки входа/регистрации */
.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.auth-tab {
    flex: 1;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: calc(var(--r-md) - 4px);
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: background .15s, color .15s, box-shadow .15s;
}
.auth-tab.active { background: var(--surface); color: var(--primary); border-color: var(--border); box-shadow: var(--shadow-xs); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.16); }
.input::placeholder { color: var(--ink-3); }

.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: var(--r-sm);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
}
.auth-error svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.auth-success {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: var(--r-sm);
    background: var(--success-soft);
    color: var(--success);
    font-size: 13.5px;
    line-height: 1.5;
}
.auth-success svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

.auth-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}
.auth-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color .15s;
}
.auth-link:hover { color: var(--primary-deep); }
.auth-link.muted { color: var(--ink-3); }
.auth-link.muted:hover { color: var(--ink); }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.launch-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-3);
    margin-top: 18px;
}

/* ════════════════ Адаптивность ════════════════ */
@media (max-width: 1080px) {
    .plans { grid-template-columns: repeat(3, 1fr); }
    .addons { grid-template-columns: repeat(3, 1fr); }
    .bento { grid-template-columns: repeat(3, 1fr); }
    .demo-grid { grid-template-columns: 1fr; gap: 36px; }
    .audience { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step-arrow { display: none; }
    .launch { grid-template-columns: 1fr; max-width: 480px; }
    .launch-side { display: none; }
}

@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-burger { display: inline-flex; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 20px 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .section { padding: 64px 0; }
    .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .bento-item.span2, .bento-item.span2w { grid-column: span 2; }
    .features, .why-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .audience { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .plans { grid-template-columns: 1fr; }
    .addons { grid-template-columns: repeat(2, 1fr); }
    .enterprise { padding: 32px 26px; }
    .hero { padding-top: calc(var(--nav-h) + 40px); }
    .launch-main { padding: 26px 22px; }
}

@media (max-width: 460px) {
    .bento { grid-template-columns: 1fr; }
    .bento-item.span2, .bento-item.span2w { grid-column: span 1; }
    .addons { grid-template-columns: 1fr; }
}

/* ════════════════ Уважение prefers-reduced-motion ════════════════ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .aurora, .noise, .cursor-glow, .marquee-track { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .aurora, .noise, .cursor-glow, .marquee-track { animation: none !important; }
}

/* ════════════════ Правовые страницы (оферта / контакты / конфиденциальность) ════════════════ */
.legal-hero {
    padding: calc(var(--nav-h) + 64px) 0 36px;
    text-align: center;
}
.legal-hero .eyebrow { justify-content: center; }
.legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 16px;
}
.legal-hero .lead { max-width: 720px; margin: 0 auto; }

.doc {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 88px;
}
.doc h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    margin: 42px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
}
.doc p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.7; }
.doc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0 0 20px;
}
.doc ul li {
    position: relative;
    padding-left: 24px;
    color: var(--ink-2);
    line-height: 1.65;
}
.doc ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-brand);
    flex-shrink: 0;
}
.doc strong { color: var(--ink); }

.req-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 26px;
    font-size: 14.5px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.req-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-2);
}
.req-table tr:last-child td { border-bottom: none; }
.req-table td:first-child { font-weight: 600; color: var(--ink); width: 40%; background: var(--surface-2); }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.site-nav a {
    padding: 9px 17px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: border-color .18s, color .18s, transform .18s;
}
.site-nav a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: color .15s;
}
.back-link:hover { color: var(--primary-deep); }
.back-link svg { width: 17px; height: 17px; }
