/* ---------- Hero ---------- */
.bot-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1;
    max-width: 550px;
    min-width: 280px;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--hero-left-h1);
}
.hero-title .accent-text {
    background: linear-gradient(135deg, #D63384, #E91E63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--hero-left-p);
    margin-bottom: 32px;
    line-height: 1.6;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #D63384, #E91E63);
    color: white;
    padding: 16px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(214, 51, 132, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 28px;
}
.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(214, 51, 132, 0.6);
}
.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--glass-bg);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}
.feature i { color: var(--accent); }

/* ---------- Телефончик ---------- */
.bot-demo {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}
.desktop-only { display: flex; }
.mobile-pager { display: none; }

.demo-phone {
    width: 280px;
    height: 560px;
    background: var(--card-bg);
    border-radius: 36px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 0 2px rgba(214,51,132,0.1);
    position: relative;
}
.demo-phone::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 3px;
    opacity: 0.3;
}
.demo-screen {
    background: var(--bg-sidebar);
    border-radius: 24px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Верхняя панель телефона */
.demo-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 8px;
    border-bottom: 1px solid var(--border-light);
}
.demo-logo {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.demo-logo span { color: var(--accent); }
.demo-menu {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Информация о персонаже */
.demo-character {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    background: var(--user-card-bg);
}
.demo-char-avatar {
    width: 38px; height: 38px;
    background: var(--avatar-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.4rem;
    border: 1.5px solid var(--avatar-border);
}
.demo-char-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.demo-char-status {
    font-size: 0.7rem;
    color: #4CAF50;
}

/* Чат */
.demo-chat {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
}
.demo-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    word-wrap: break-word;
    animation: msgAppear 0.5s ease forwards;
    opacity: 0;
}
.demo-msg.bot {
    background: var(--chat-bg-left);
    color: var(--text-primary);
    align-self: flex-start;
}
.demo-msg.user {
    background: linear-gradient(135deg, #D63384, #E91E63);
    color: white;
    align-self: flex-end;
}
.demo-msg.typing span {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.5s infinite;
    margin-right: 3px;
}
.demo-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-msg.typing span:nth-child(3) { animation-delay: 0.4s; }
.demo-msg.story {
    background: var(--chat-bg-left);
    border: 1px solid var(--accent);
    font-style: italic;
}

@keyframes msgAppear {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* ---------- Возможности ---------- */
.capabilities { margin-top: 40px; }
.capabilities h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--hero-left-h1);
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.cap-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}
.cap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(214, 51, 132, 0.15);
}
.cap-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 16px;
}
.cap-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.cap-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- Планшеты и мобильные (общие стили) ---------- */
@media (max-width: 1148px) {
    .bot-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-features {
        justify-content: center;
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-pager {
        display: flex;
        flex-direction: column;
        background: var(--card-bg);
        border-radius: 24px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        margin-bottom: 24px;
        overflow: hidden;
        height: 280px;
        width: 100%;
    }
    .pager-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-light);
        background: var(--user-card-bg);
        flex-shrink: 0;
    }
    .pager-avatar {
        width: 36px; height: 36px;
        background: var(--avatar-bg);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent);
        font-size: 1.3rem;
        border: 1.5px solid var(--avatar-border);
    }
    .pager-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
    .pager-status { font-size: 0.7rem; color: #4CAF50; }
    .pager-logo {
        margin-left: auto;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-primary);
    }
    .pager-logo span { color: var(--accent); }
    .pager-chat {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }
}