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

:root {
    --bg: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: #e0e0e0;
    --accent: #9333ea;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(147, 51, 234, 0.15);
    --warn: #f59e0b;
    --warn-bg: rgba(245, 158, 11, 0.08);
    --success: #16a34a;
    --error: #ef4444;
    --btn-text: #fff;
}

html, body {
    min-height: 100vh;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

/* Hero */
.hero-section {
    background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 100px;
    text-align: center;
}

.hero-center {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge-sep {
    color: var(--border);
    font-weight: 300;
    user-select: none;
}

.hero-badge--bitrix {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-glow);
}

h1 {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 28px;
}

h1 span {
    color: var(--accent);
}

.hero-sub {
    font-size: 19px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 48px;
}

/* CTA */
.cta-btn {
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    padding: 16px 36px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.cta-btn:hover {
    background: var(--accent-hover);
}

/* Hero illustration */
.hero-illustration {
    flex-shrink: 0;
}

.mock-ui {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 360px;
    overflow: hidden;
    font-size: 12px;
}

.mock-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mock-dot.red { background: #ff5f56; }
.mock-dot.yellow { background: #ffbd2e; }
.mock-dot.green { background: #27ca40; }

.mock-title {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 8px;
}

.mock-body {
    padding: 16px;
}

/* Funnel */
.mock-funnel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.funnel-row {
    display: grid;
    grid-template-columns: 140px 1fr 36px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid transparent;
}

.funnel-row--warn {
    background: var(--warn-bg);
    border-color: rgba(255, 189, 46, 0.25);
}

.funnel-stage {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.funnel-name {
    color: var(--text);
    font-size: 11px;
}

.funnel-count {
    color: var(--text-muted);
    font-size: 11px;
}

.funnel-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.funnel-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.funnel-fill.warn {
    background: var(--warn);
}

.funnel-fill.success {
    background: var(--success);
}

.funnel-conv {
    color: var(--text-muted);
    font-size: 10px;
    text-align: right;
}

.funnel-conv.warn {
    color: var(--warn);
}

.funnel-conv.success {
    color: var(--success);
}

/* Bubble */
.mock-message {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.mock-bubble {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 18px 18px 4px 18px;
    padding: 12px 16px;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mock-bubble-text {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text);
}

.mock-bubble-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.mock-bubble-time {
    font-size: 10px;
    color: var(--text-muted);
}

.mock-bubble-check {
    font-size: 10px;
    color: var(--accent);
}

.mock-bubble {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.mock-bubble .mock-bubble-text { color: #fff; }
.mock-bubble .mock-bubble-time { color: rgba(255, 255, 255, 0.7); }
.mock-bubble .mock-bubble-check { color: rgba(255, 255, 255, 0.9); }

/* Demo section */
.demo-section {
    padding: 80px 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.demo-heading {
    max-width: 920px;
    margin: 0 auto 40px;
}

.demo-heading h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
}

.demo-heading-sub {
    font-size: 15px;
    color: var(--text-muted);
}

.demo-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.demo-interface {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.demo-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.demo-logo {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.demo-sb-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 12px;
    margin-bottom: 6px;
}

.demo-sb-project {
    font-size: 12px;
    color: var(--text);
    padding: 6px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.demo-sb-chat {
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

.demo-sb-chat--active {
    background: var(--bg-tertiary);
    color: var(--text);
}

.demo-main {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.demo-msg--user {
    align-self: flex-end;
    background: var(--accent);
    border-radius: 16px 16px 4px 16px;
    padding: 10px 16px;
    font-size: 13px;
    color: #fff;
    max-width: 70%;
    line-height: 1.5;
}

.demo-msg--ai {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px 16px 16px 16px;
    padding: 16px 20px;
    font-size: 12px;
}

.demo-msg-name {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.demo-msg-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.demo-msg-text strong { color: var(--text); }

.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-bottom: 12px;
}

.demo-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    padding: 5px 8px;
    border-bottom: 1px solid var(--border);
}

.demo-table td {
    padding: 7px 8px;
    color: var(--text);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.demo-table-warn td { color: var(--warn); }

.demo-finding {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.demo-finding:last-child { margin-bottom: 0; }

.demo-finding--yellow {
    background: rgba(245,158,11,0.05);
    border-color: rgba(245,158,11,0.2);
}

.demo-finding--green {
    background: rgba(22,163,74,0.05);
    border-color: rgba(22,163,74,0.2);
}

.demo-finding-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.demo-finding-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-finding-dot--yellow { background: var(--warn); }
.demo-finding-dot--green { background: var(--success); }

.demo-finding-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.demo-finding-rec {
    font-size: 11px;
    line-height: 1.6;
    padding: 8px 12px;
    border-radius: 4px;
}

.demo-rec--yellow { background: rgba(245,158,11,0.08); color: #92400e; border-left: 2px solid var(--warn); }
.demo-rec--green { background: rgba(22,163,74,0.08); color: #14532d; border-left: 2px solid var(--success); }

/* Compare section */
.compare-section {
    padding: 80px 40px;
    border-top: 1px solid var(--border);
}

.compare-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.compare-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

.compare-title-accent {
    color: var(--accent);
}

.compare-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.compare-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.compare-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 24px 24px 28px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.compare-card--super {
    background: rgba(22,163,74,0.03);
    border-color: rgba(22,163,74,0.4);
}

.compare-card-label {
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.compare-card-label--accent {
    color: var(--accent);
}

.compare-card-lead {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 16px;
}

.compare-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    color: var(--text);
}

.compare-list-wrap {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.compare-list li {
    background: var(--bg-tertiary);
    border-radius: 999px;
    padding: 10px 14px;
}

.compare-card--super .compare-list li {
    background: var(--accent);
    color: #fff;
}

.compare-vs {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.compare-card-note {
    margin-top: 18px;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.compare-card-footer {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Content sections */
.content-section {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    border-top: 1px solid var(--border);
}

.content-section--alt {
    background: var(--bg-secondary);
}

.section-inner {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

.section-label {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-intro {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.section-intro--em {
    color: var(--text);
    font-size: 18px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.check-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 16px;
    color: var(--text);
    line-height: 1.4;
}

.check-icon {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    width: 16px;
}

.check-icon.accent {
    color: var(--accent);
}

.section-note {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* Trust block */
.trust-lines {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-lines p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA section */
.cta-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.cta-inner {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.cta-inner h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.modal h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.waitlist-form-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waitlist-form-modal input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border-radius: 4px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

.waitlist-form-modal input:focus {
    border-color: var(--accent);
}

.waitlist-form-modal input::placeholder {
    color: var(--text-muted);
}

.waitlist-form-modal button {
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.waitlist-form-modal button:hover { background: var(--accent-hover); }

.waitlist-form-modal button { background: #000; }
.waitlist-form-modal button:hover { background: #222; }

.waitlist-form-modal button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.success-message {
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.success-message.visible { display: block; }

.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.error-message.visible { display: block; }

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
footer {
    padding: 20px 40px 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-right a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-right a:hover { color: var(--accent); }

.footer-sep {
    color: var(--text-muted);
    margin: 0 8px;
}

/* Tablet */
@media (max-width: 960px) {
    .hero-inner { gap: 40px; }
    .mock-ui { width: 300px; }
    .funnel-row { grid-template-columns: 120px 1fr 32px; }
}

/* Mobile */
@media (max-width: 720px) {
    .hero-inner {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .hero-text { max-width: 100%; }
    .hero-illustration { width: 100%; }
    .mock-ui { width: 100%; }
}

@media (max-width: 600px) {
    .hero-section { padding: 80px 20px 60px; }
    h1 { font-size: 38px; }
    .hero-sub { font-size: 16px; }
    .demo-section { padding: 48px 20px; }
    .demo-heading h2 { font-size: 26px; }
    .demo-heading-sub { font-size: 14px; }
    .demo-wrap { max-width: 100%; }

    .demo-interface {
        flex-direction: column;
    }

    .demo-sidebar {
        display: none;
    }

    .demo-main {
        width: 100%;
        padding: 16px 14px 18px;
        gap: 14px;
    }

    .demo-msg--user {
        max-width: 100%;
        font-size: 12px;
        padding: 9px 14px;
    }

    .demo-msg--ai {
        padding: 14px 14px 16px;
        font-size: 11px;
    }

    .demo-msg-text {
        font-size: 11px;
    }

    .demo-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .demo-table {
        min-width: 360px;
        font-size: 10px;
    }

    .demo-table th {
        padding: 4px 6px;
    }

    .demo-table td {
        padding: 5px 6px;
    }

    .demo-finding {
        padding: 10px 10px;
    }

    .demo-finding-title {
        font-size: 11px;
    }

    .demo-finding-rec {
        font-size: 10px;
        padding: 6px 10px;
    }

    .compare-section { padding: 48px 20px; }
    .compare-title { font-size: 26px; }
    .compare-subtitle { font-size: 14px; }
    .compare-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }
    .compare-card {
        padding: 20px 18px 22px;
    }
    .compare-list { font-size: 15px; }

    .content-section { padding: 48px 20px; }
    .cta-section { padding: 48px 20px; }
    footer { padding: 16px 20px 64px; flex-direction: column; text-align: center; }
}

/* =============================================
   DEMO ANIMATION
   ============================================= */

.demo-wrap {
    position: relative;
}

/* --- Mini chat widget --- */
.demo-mini-chat {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    z-index: 20;
    width: 480px;
    max-width: calc(100% - 32px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 22px 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
}

.demo-mini-chat.dm-ready  { display: block; }
.demo-mini-chat.dm-in     { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.demo-mini-chat.dm-out    { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }

.demo-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.demo-mini-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-mini-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-family: inherit;
    flex-shrink: 0;
}

.demo-mini-name > span {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
}

.demo-mini-integrations {
    display: flex;
    gap: 6px;
}

.demo-mini-int {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.demo-mini-int-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(34,197,94,0.6);
}

.demo-mini-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 12px 13px 16px;
}

.demo-mini-input-field {
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
    min-height: 21px;
}

.demo-mini-cursor {
    display: inline-block;
    animation: dmCursorBlink 1s step-end infinite;
    color: var(--accent);
    margin-left: 1px;
}

@keyframes dmCursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.demo-mini-send-btn {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    width: 34px;
    height: 34px;
    font-size: 16px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
    line-height: 1;
    opacity: 0.6;
}

.demo-mini-send-btn.dm-active {
    opacity: 1;
    background: var(--accent-hover);
    transform: scale(0.86);
}

/* --- Full interface: transition always on --- */
.demo-interface {
    transition: opacity 0.55s ease;
}

/* --- Typing dots --- */
.demo-typing-dots {
    display: none;
    gap: 5px;
    align-items: center;
    padding: 2px 0 12px;
    transition: opacity 0.3s ease;
}

.demo-typing-dots.dm-visible {
    display: flex;
    opacity: 1;
}

.demo-typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: dmDotsBounce 1.2s ease-in-out infinite;
}

.demo-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dmDotsBounce {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.45; }
    30%           { transform: translateY(-5px); opacity: 1;    }
}

/* --- Floating pills overlay --- */
.demo-pills {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.demo-pills.dm-ready {
    display: block;
}

.demo-pill {
    position: absolute;
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.07);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(14px) scale(0.9);
    transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1);
}

#demoPill1 { top: 15%; left: 3%;  }
#demoPill2 { top: 48%; right: 2%; }
#demoPill3 { bottom: 16%; left: 6%; }

.demo-pill.dm-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.demo-pill--warn  { background: #fffbeb; color: #78350f; }
.demo-pill--green { background: #f0fdf4; color: #14532d; }

/* Dim main content when pills are floating over */
.demo-interface.dm-dimmed .demo-main {
    opacity: 0.55;
    filter: blur(1.5px);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

@media (max-width: 600px) {
    .demo-mini-chat { width: calc(100% - 32px); }

    .demo-pill { font-size: 11px; padding: 7px 13px; }
    #demoPill1 { top: auto; bottom: 26%; left: 3%; right: auto; }
    #demoPill2 { top: 6%;   right: 2%; left: auto; }
    #demoPill3 { bottom: 10%; left: auto; right: 3%; }
}
