
:root {
    --bg: #020408;
    --surface: rgba(255,255,255,0.04);
    --surface2: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --border2: rgba(255,255,255,0.14);
    --text: #f0f4ff;
    --text-sub: rgba(200,210,240,0.55);
    --text-muted: rgba(200,210,240,0.32);
    --accent: #3b82f6;
    --accent2: #6366f1;
    --accent3: #06d6a0;
    --glow: rgba(59,130,246,0.18);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
}

/* ── AMBIENT LIGHT ── */
.ambient {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.ambient-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%);
    top: -200px; left: -200px;
    /* убираем animation и filter: blur — заменяем на статику */
}
.ambient-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    top: 40%; right: -100px;
}
.ambient-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6,214,160,0.06) 0%, transparent 70%);
    bottom: 10%; left: 30%;
}
/* Удали или закомментируй все @keyframes drift1/2/3 */

/* 
@keyframes drift1 { to { transform: translate(80px, 60px); } } 
@keyframes drift2 { to { transform: translate(-60px, 80px); } }
@keyframes drift3 { to { transform: translate(40px, -60px); } } 
*/

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    background: rgba(2,4,8,0.7);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo-mark {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 18px; height: 18px; }
.nav-logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

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

.btn-ghost {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid var(--border2);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-ghost:hover {
    background: var(--surface2);
    border-color: rgba(255,255,255,0.22);
}

.btn-primary {
    padding: 9px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 24px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 36px rgba(59,130,246,0.45);
}
.btn-primary:active { transform: translateY(0); }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

/* Grid background */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
    pointer-events: none;
    will-change: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 100px;
    border: 1px solid rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.08);
    font-size: 13px;
    font-weight: 500;
    color: #93c5fd;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease both;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent3);
    box-shadow: 0 0 8px var(--accent3);
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    animation: fadeUp 0.8s 0.1s ease both;
}

.hero-title .line2 {
    display: block;
    background: linear-gradient(135deg, #93c5fd 0%, #a5b4fc 40%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: var(--text-sub);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.65;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.3s ease both;
}

.btn-hero {
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border: none;
    box-shadow: 0 8px 32px rgba(59,130,246,0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(59,130,246,0.5), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.btn-hero-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border2);
}
.btn-hero-secondary:hover {
    background: var(--surface2);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* ── HERO WIDGET PREVIEW ── */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 72px auto 0;
    animation: fadeUp 0.9s 0.4s ease both;
}

.hero-screen {
    background: rgba(10,14,24,0.9);
    border: 1px solid var(--border2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 40px 120px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 80px 160px -40px rgba(59,130,246,0.15);
}

.screen-bar {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.screen-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.screen-dot-r { background: #ff5f57; }
.screen-dot-y { background: #febc2e; }
.screen-dot-g { background: #28c840; }
.screen-url {
    flex: 1;
    margin: 0 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
    text-align: center;
}

.screen-body {
    padding: 32px;
    min-height: 380px;
    display: flex;
    position: relative;
    background: linear-gradient(160deg, rgba(15,22,40,0.9), rgba(5,8,18,0.95));
}

/* Fake dashboard */
.fake-dialogs {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}
.fake-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.fake-dialog-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.fake-dialog-item:hover { background: var(--surface); }
.fake-dialog-item.active { background: rgba(59,130,246,0.12); }
.fake-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
}
.fake-dialog-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.fake-dialog-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fake-dialog-msg { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fake-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

.fake-chat {
    flex: 1;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fake-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.fake-chat-name { font-size: 15px; font-weight: 600; color: var(--text); }
.fake-chat-status { font-size: 12px; color: var(--accent3); }

.fake-msg {
    display: flex;
    max-width: 75%;
}
.fake-msg.right { align-self: flex-end; }
.fake-msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}
.fake-msg.left .fake-msg-bubble {
    background: rgba(255,255,255,0.07);
    color: var(--text);
    border-radius: 4px 14px 14px 14px;
}
.fake-msg.right .fake-msg-bubble {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border-radius: 14px 4px 14px 14px;
}

/* Floating widget button */
.fake-widget-btn {
    position: absolute;
    bottom: 24px; right: 24px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(59,130,246,0.5);
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
}
.fake-widget-btn svg { width: 24px; height: 24px; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Typing indicator */
.fake-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    width: fit-content;
}
.fake-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s ease infinite;
    display: block;
}
.fake-typing span:nth-child(2) { animation-delay: 0.2s; }
.fake-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* ── STATS ROW ── */
.stats {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0 48px;
    margin: 80px auto;
    max-width: 900px;
}
.stat-item {
    flex: 1;
    text-align: center;
    padding: 32px 24px;
    border: 1px solid var(--border);
    position: relative;
    background: var(--surface);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-item:first-child { border-radius: 16px 0 0 16px; }
.stat-item:last-child { border-radius: 0 16px 16px 0; }
.stat-item + .stat-item { border-left: none; }
.stat-num {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ── FEATURES ── */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 17px;
    color: var(--text-sub);
    max-width: 500px;
    line-height: 1.65;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 56px;
}

.feat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}
.feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.02));
    pointer-events: none;
}
.feat-card.visible { opacity: 1; transform: translateY(0); }
.feat-card:hover {
    background: var(--surface2);
    border-color: var(--border2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.feat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    font-size: 20px;
}
.feat-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.feat-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Highlight card */
.feat-card.highlight {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.08));
    border-color: rgba(59,130,246,0.3);
    grid-column: span 2;
}
.feat-card.highlight:hover {
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 20px 60px rgba(59,130,246,0.15);
}

/* ── HOW IT WORKS ── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 56px;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
    z-index: 0;
}

.step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 28px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.step.visible { opacity: 1; transform: translateX(0); }
.step + .step { border-top: 1px solid var(--border); }

.step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.step-content { flex: 1; padding-top: 12px; }
.step-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 480px; }

/* ── CTA ── */
.cta-section {
    position: relative;
    z-index: 1;
    margin: 40px 48px 80px;
    border-radius: 28px;
    overflow: hidden;
    padding: 80px 64px;
    text-align: center;
    background: linear-gradient(135deg,
        rgba(59,130,246,0.12) 0%,
        rgba(99,102,241,0.1) 50%,
        rgba(6,214,160,0.06) 100%);
    border: 1px solid rgba(59,130,246,0.2);
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(59,130,246,0.12), transparent);
    pointer-events: none;
}
.cta-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.cta-sub {
    font-size: 17px;
    color: var(--text-sub);
    margin-bottom: 36px;
}
.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── MOBILE ── */
@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .btn-ghost { display: none; }
    .section { padding: 60px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .feat-card.highlight { grid-column: span 1; }
    .stats { padding: 0 20px; flex-direction: column; gap: 1px; }
    .stat-item:first-child { border-radius: 16px 16px 0 0; }
    .stat-item:last-child { border-radius: 0 0 16px 16px; }
    .stat-item + .stat-item { border-left: 1px solid var(--border); border-top: none; }
    .cta-section { margin: 20px; padding: 48px 24px; }
    footer { flex-direction: column; gap: 20px; text-align: center; }
    .hero-screen { border-radius: 14px; }
    .screen-body { padding: 16px; flex-direction: column; }
    .fake-dialogs { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 16px; margin-bottom: 16px; }
}

/* Stagger delays for feat cards */
.feat-card:nth-child(1) { transition-delay: 0s; }
.feat-card:nth-child(2) { transition-delay: 0.1s; }
.feat-card:nth-child(3) { transition-delay: 0.2s; }
.feat-card:nth-child(4) { transition-delay: 0.1s; }
.feat-card:nth-child(5) { transition-delay: 0.2s; }

/* Stat stagger */
.stat-item:nth-child(1) { transition-delay: 0s; }
.stat-item:nth-child(2) { transition-delay: 0.1s; }
.stat-item:nth-child(3) { transition-delay: 0.2s; }
.stat-item:nth-child(4) { transition-delay: 0.3s; }

/* Step stagger */
.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(2) { transition-delay: 0.15s; }
.step:nth-child(3) { transition-delay: 0.3s; }

/* Video placeholder */
.video-section {
    position: relative;
    z-index: 1;
    padding: 0 48px 80px;
    max-width: 1100px;
    margin: 0 auto;
}
.video-wrap {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border2);
    background: rgba(10,14,24,0.9);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 80px rgba(59,130,246,0.08);
    position: relative;
    overflow: hidden;
}
.video-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(59,130,246,0.08), transparent),
        linear-gradient(135deg, rgba(255,255,255,0.01), transparent);
}
.video-play {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(12px);
    position: relative; z-index: 1;
}
.video-play:hover {
    background: rgba(255,255,255,0.14);
    transform: scale(1.08);
}
.video-play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-caption {
    font-size: 15px;
    color: var(--text-muted);
    position: relative; z-index: 1;
    text-align: center;
}
.video-caption strong { color: var(--text); }

