.demo-window {
    margin: 0 auto;
}

.demo-window {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .16);
}

.demo-window-bar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: #ececec;
}

.demo-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
}

.demo-app {
    overflow-x: auto;
    display: flex;
    min-height: 326px;
    background: #efeae2;
}

.demo-sidebar {
    width: 46%;
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #e9edef;
    overflow: hidden;
}

.demo-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e9edef;
}

.demo-sidebar-title {
    font-size: 0.92rem;
    font-weight: 700;
}

.demo-header-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #54656f;
}

.demo-icon-btn svg {
    width: 15px;
    height: 15px;
}

.demo-icon-btn--active {
    color: #25D366;
}

.demo-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 10px;
    padding: 6px 10px;
    background: #f0f2f5;
    border-radius: 999px;
}

.demo-search svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    color: #54656f;
}

.demo-search-placeholder {
    font-size: 0.68rem;
    color: #54656f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-filters {
    display: flex;
    gap: 5px;
    padding: 0 10px 8px;
    overflow: hidden;
}

.demo-filter {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #54656f;
    font-size: 0.66rem;
    font-weight: 500;
    white-space: nowrap;
}

.demo-filter--active {
    background: #d9fdd3;
    color: #0a7d3c;
}

.demo-conv-list {
    flex: 1 0 auto;
    overflow: hidden;
}

.demo-conv {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #f2f2f2;
}

.demo-conv--active {
    background: #f0f2f5;
}

.demo-avatar {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
}

.demo-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d9dbde;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
}

.demo-status-dot {
    position: absolute;
    left: -1px;
    top: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9862a;
    border: 2px solid #fff;
}

.demo-channel-badge {
    position: absolute;
    left: -2px;
    bottom: -2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.demo-channel-badge svg {
    display: block;
    width: 15px;
    height: 15px;
}

.demo-conv-info {
    flex: 1;
    min-width: 0;
}

.demo-conv-top {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.demo-conv-name {
    font-weight: 600;
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-conv-time {
    flex-shrink: 0;
    font-size: 0.6rem;
    color: #8696a0;
}

.demo-conv-bottom {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

.demo-conv-preview {
    flex: 1;
    min-width: 0;
    font-size: 0.7rem;
    color: #667781;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-conv-pin {
    flex-shrink: 0;
    display: flex;
    color: #7e7e7e;
}

.demo-conv-pin svg {
    width: 11px;
    height: 11px;
}

.demo-conv-unread {
    flex-shrink: 0;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-chat {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.demo-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #e9edef;
}

.demo-mobile-back {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    font-size: 1.1rem;
    color: inherit;
    cursor: pointer;
}

.demo-chat-header .demo-avatar-circle {
    width: 32px;
    height: 32px;
}

.demo-chat-name {
    font-weight: 600;
    font-size: 0.82rem;
}

.demo-chat-status {
    font-size: 0.68rem;
    color: #667781;
}

.demo-chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    overflow: hidden;
}

.demo-bubble {
    max-width: 75%;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.35;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}

.demo-bubble--in {
    align-self: flex-start;
    background: #fff;
    border-top-left-radius: 2px;
}

.demo-bubble--out {
    align-self: flex-end;
    background: #d9fdd3;
    border-top-right-radius: 2px;
}

:root {
    color-scheme: light;
    --ink: #16202b;
    --muted: #5a6a7f;
    --line: #e4e4e6;
    --paper: #f0f0f0;
    --surface: #ffffff;
    --surface-tint: #fbfbfb;
    --accent: #0078d7;
    --accent-deep: #0060ad;
    --dark: #15181d;
    --dark-deep: #0a0c0f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: background .18s, color .18s, box-shadow .18s;
}

svg {
    display: block;
    width: 22px;
    height: 22px;
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    background: white;
    padding: 12px;
    z-index: 100;
}

.skip-link:focus {
    top: 12px;
}

.site-header, main, .site-footer {
    width: calc(100% - 96px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    height: 96px;
    display: flex;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -1px;
}

.brand-mark {
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    font-size: 25px;
    line-height: 1;
    padding-bottom: 4px;
}

body .cbw-root {
    --cbw-ink: #0b4a6b;
    --cbw-ink-soft: #4a6477;
    --cbw-accent: var(--accent);
    --cbw-accent-dark: var(--accent-deep);
    --cbw-bg: #f4f8fb;
    --cbw-surface: #ffffff;
    --cbw-border: #dde6ee;
    --cbw-user-bubble: #0b4a6b;
    --cbw-user-text: #ffffff;
    --cbw-bot-bubble: #e6f2fc;
    --cbw-bot-text: var(--ink);
}

.cbw-root .cbw-launcher {
    background: linear-gradient(160deg, #e6f2fc, #b8d8f4);
    border: 2px solid var(--surface);
    box-shadow: 0 6px 20px rgba(0, 96, 173, .3);
}

.cbw-root .cbw-launcher:hover {
    background: linear-gradient(160deg, #d4e8fa, #9cc9f0);
    box-shadow: 0 10px 26px rgba(0, 96, 173, .38);
}

.site-nav {
    display: flex;
    gap: 32px;
    margin: auto;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.site-nav a:hover {
    color: var(--ink);
}

.nav-login {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 23px;
    font-size: 14px;
    font-weight: 600;
}

.nav-login:hover {
    background: var(--surface-tint);
    border-color: var(--line);
    color: var(--accent-deep);
}

.demo-preview {
    padding: 56px 0 0;
}

.hero {
    text-align: center;
    max-width: 740px;
    margin: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 1.7px;
    color: var(--muted);
}

.hero .eyebrow {
    letter-spacing: .5px;
    font-size: 12px;
}

.status-dot, .preview-caption i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.hero h1 {
    font-size: clamp(40px, 5.3vw, 68px);
    line-height: 1.06;
    letter-spacing: -3px;
    font-weight: 600;
    margin-top: 22px;
}

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

.tagline {
    max-width: 570px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.cta-button, .cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 8px;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 600;
}

.cta-button {
    color: white;
    background: var(--accent-deep);
    border: 1px solid var(--accent-deep);
}

.cta-button:hover {
    background: #00518f;
    border-color: #00518f;
    box-shadow: 0 4px 10px rgba(0, 96, 173, .18);
}

.cta-secondary {
    border: 1px solid var(--line);
    background: transparent;
}

.cta-secondary:hover {
    background: var(--surface-tint);
    border-color: #cbd5e1;
}

.preview-stage {
    margin-top: 40px;
    padding: 32px 40px 28px;
    border-radius: 18px;
    background: var(--surface-tint);
    border: 1px solid var(--line);
}

.preview-caption, .preview-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 11px;
}

.preview-caption {
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 1.4px;
}

.preview-caption > span:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0;
}

.demo-window {
    max-width: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(22, 32, 43, .08);
}

.demo-window-bar {
    align-items: center;
    background: #f9fafb;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.demo-window-bar > span {
    width: 7px;
    height: 7px;
    background: #d1d5db;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .5px;
}

.window-label {
    font-size: 10px;
    color: var(--muted);
}

.demo-app {
    overflow-x: auto;
    height: auto;
    background: #efeae2;
}

.demo-sidebar {
    width: 37%;
    max-width: 360px;
}

.demo-sidebar-header {
    padding: 15px 18px;
}

.demo-sidebar-title {
    font-size: 16px;
}

.demo-search {
    margin: 13px 16px 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f0f2f5;
}

.demo-filters {
    padding: 0 16px 12px;
}

.demo-filter {
    font-size: 10px;
    padding: 4px 8px;
    background: #f0f2f5;
}

.demo-filter--active {
    background: #d9fdd3;
    color: #0a7d3c;
}

.demo-conv {
    padding: 14px 16px;
    gap: 12px;
}

.demo-conv--active {
    background: #f0f2f5;
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.demo-avatar-circle {
    background: #e4ddcf;
    color: #796954;
    font-size: 10px;
}

.demo-conv:nth-child(2) .demo-avatar-circle {
    background: #dbe8df;
    color: #426b51;
}

.demo-conv:nth-child(3) .demo-avatar-circle {
    background: #e7dfef;
    color: #77518d;
}

.demo-conv-name {
    font-size: 12px;
}

.demo-conv-preview {
    font-size: 11px;
    margin: 3px 0 0;
}

.demo-conv-time {
    color: #667781;
    font-size: 10px;
}

.demo-conv-unread {
    background: #25d366;
}

.demo-chat-header {
    padding: 13px 22px;
    gap: 11px;
}

.demo-chat-name {
    font-size: 13px;
}

.demo-chat-status {
    color: var(--accent-deep);
    font-size: 10px;
}

.demo-chat-messages {
    padding: 12px 24px;
    gap: 12px;
}

.chat-date {
    text-align: center;
    font-size: 10px;
    color: #667781;
}

.demo-bubble {
    font-size: 12px;
    line-height: 1.6;
    padding: 10px 14px;
    max-width: 78%;
    box-shadow: none;
    border: 1px solid #e9edef;
}

.demo-bubble--out {
    background: #d9fdd3;
    border-color: #d9fdd3;
}

.demo-compose {
    display: flex;
    justify-content: space-between;
    margin: 0 22px 16px;
    padding: 9px 14px;
    border: 1px solid #e9edef;
    background: white;
    border-radius: 7px;
    font-size: 11px;
    color: #667781;
}

.preview-bottom {
    margin-top: 20px;
}

.channel-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    font-size: 11px;
    font-weight: 600;
}

.channel-list span:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    margin-right: 7px;
}

.channel-list span:nth-child(2):before {
    background: #c13584;
}

.channel-list span:nth-child(3):before {
    background: #0866ff;
}

.channel-list span:nth-child(4):before {
    background: #229ed9;
}

.channel-list span:nth-child(5):before {
    background: #e0763f;
}

.features {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 72px 56px;
    margin: 56px 0;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: clamp(30px, 3.3vw, 42px);
    font-weight: 550;
    letter-spacing: -1.6px;
    line-height: 1.2;
    margin-top: 16px;
}

.section-heading p {
    color: var(--muted);
    margin-top: 18px;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--surface-tint);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--accent-deep);
}

.feature h3, .steps h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.35px;
    margin-bottom: 12px;
}

.feature p, .steps p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 34ch;
}

.how-it-works {
    background: var(--surface-tint);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 72px 56px;
    margin: 0 0 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

.how-it-works .section-heading {
    margin: 0;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 32px;
}

.steps li {
    position: relative;
    padding-left: 62px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.steps li:last-child {
    border: 0;
    padding-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 12px;
    color: var(--accent-deep);
}

.steps p {
    max-width: 44ch;
}

.final-cta {
    text-align: center;
    padding: 72px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf3fc 0%, var(--surface-tint) 100%);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
    margin-bottom: 96px;
}

.final-cta .eyebrow {
    color: var(--accent-deep);
}

.final-cta h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    font-weight: 500;
    margin-top: 20px;
}

.final-cta p {
    color: var(--muted);
    max-width: 440px;
    margin: 24px auto 32px;
    font-size: 15px;
}

.cta-button--inverted {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.cta-button--inverted:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-footer > .brand {
    font-size: 21px;
}

.site-footer > span {
    font-size: 12px;
    color: var(--muted);
}

.site-footer nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}

.site-footer nav a:hover {
    text-decoration: underline;
}

@media (min-width: 1500px) {
    .demo-preview {
        padding-top: 64px;
    }

    .site-header, main, .site-footer {
        max-width: 70%;
    }
}

@media (max-width: 900px) {
    .site-header, main, .site-footer {
        width: calc(100% - 48px);
    }

    .site-nav {
        gap: 20px;
    }

    .preview-stage {
        padding: 20px;
    }

    .feature-grid {
        gap: 24px;
    }

    .how-it-works {
        padding: 56px 36px;
        margin: 0 0 40px;
        gap: 40px;
    }

    .demo-sidebar {
        width: 42%;
    }

    .features {
        padding: 56px 36px;
        margin: 40px 0;
    }

    .site-footer {
        flex-wrap: wrap;
    }

    .site-footer nav {
        margin-left: auto;
    }
}

@media (max-width: 830px) {
    .demo-app {
        overflow-x: hidden;
    }

    .demo-sidebar {
        width: 100%;
        min-width: 0;
    }

    .demo-chat {
        display: none;
        min-width: 0;
    }

    .demo-app.chat-open .demo-sidebar {
        display: none;
    }

    .demo-app.chat-open .demo-chat {
        display: flex;
    }

    .demo-mobile-back {
        display: flex;
    }
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 24px;
    }

    .site-header, main, .site-footer {
        width: calc(100% - 40px);
    }

    .site-header {
        height: 78px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 22px;
    }

    .site-nav {
        display: none;
    }

    .nav-login {
        margin-left: auto;
        padding: 8px 18px;
    }

    .demo-preview {
        padding-top: 36px;
    }

    .hero h1 {
        letter-spacing: -1.8px;
        font-size: 43px;
        margin-top: 20px;
    }

    .tagline {
        font-size: 14px;
        margin-top: 20px;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 24px;
    }

    .cta-button, .cta-secondary {
        padding: 12px 17px;
        gap: 10px;
        font-size: 13px;
    }

    .preview-stage {
        margin-top: 32px;
        padding: 14px 10px;
        border-radius: 12px;
    }

    .preview-caption {
        font-size: 8px;
        letter-spacing: .7px;
        gap: 8px;
        margin-bottom: 12px;
    }

    .preview-caption > span:last-child {
        font-size: 9px;
    }

    .demo-chat-header {
        padding: 12px 16px;
    }

    .demo-chat-messages {
        padding: 12px 14px 20px;
        gap: 12px;
    }

    .demo-bubble {
        max-width: 85%;
        font-size: 11px;
    }

    .demo-compose {
        margin: 0 14px 14px;
    }

    .window-label {
        font-size: 9px;
    }

    .window-title {
        font-size: 10px;
    }

    .preview-bottom {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        font-size: 10px;
    }

    .channel-list {
        gap: 6px 16px;
        font-size: 10px;
    }

    .features {
        padding: 40px 22px;
        margin: 28px 0;
        border-radius: 14px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature {
        position: relative;
        padding-left: 64px;
    }

    .feature-icon {
        position: absolute;
        left: 0;
        top: 0;
    }

    .feature h3, .steps h3 {
        font-size: 17px;
    }

    .feature p {
        max-width: none;
    }

    .how-it-works {
        padding: 40px 22px;
        margin: 0 0 28px;
        border-radius: 14px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps {
        gap: 24px;
    }

    .steps li {
        padding-left: 54px;
        padding-bottom: 24px;
    }

    .final-cta {
        padding: 48px 22px;
        margin-bottom: 56px;
    }

    .final-cta p {
        font-size: 14px;
    }

    .site-footer {
        gap: 10px 20px;
        padding-top: 24px;
    }

    .site-footer nav {
        width: 100%;
        margin: 10px 0 0;
        gap: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    a {
        transition: none;
    }
}

@media (min-width: 901px) {
    .hero {
        max-width: 740px;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(46px, 4.4vw, 61px);
        margin: 0;
        letter-spacing: -2.5px;
    }

    .tagline {
        margin: 22px auto 0;
        max-width: 570px;
    }

    .hero-actions {
        justify-content: center;
        margin-top: 32px;
    }

    .preview-stage {
        margin-top: 40px;
    }
}
