/* ChatWave — public marketing site. */

:root {
    --cw-primary: #2f6bff;
    --cw-primary-dark: #1d4fd8;
    --cw-primary-soft: #eef3ff;
    --cw-ink: #0b1220;
    --cw-ink-soft: #3d4a63;
    --cw-muted: #6b7690;
    --cw-line: #e6e9f0;
    --cw-radius: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--cw-ink);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -.025em; font-weight: 750; }

/* ================================================================== nav */

.cw-topnav {
    border-bottom: 1px solid var(--cw-line);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.cw-logo {
    font-weight: 800;
    font-size: 1.12rem;
    text-decoration: none;
    color: var(--cw-ink);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.02em;
}

.cw-logo-mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--cw-primary), #6b46ff);
    color: #fff;
    display: grid; place-items: center;
    font-size: 1rem;
}

/* ================================================================= hero */

.cw-hero {
    padding: 78px 0 70px;
    background:
        radial-gradient(900px 420px at 15% -5%, #e3ecff 0%, rgba(255,255,255,0) 62%),
        radial-gradient(760px 420px at 88% 0%, #f0e7ff 0%, rgba(255,255,255,0) 58%);
    overflow: hidden;
}

.cw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--cw-line);
    border-radius: 30px;
    padding: 6px 15px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--cw-ink-soft);
    box-shadow: 0 1px 3px rgba(11, 18, 32, .05);
}

.cw-eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #0f9d58;
    box-shadow: 0 0 0 3px #dcf5e7;
}

.cw-hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    line-height: 1.08;
    margin: 20px 0 16px;
}

.cw-hero h1 .accent {
    background: linear-gradient(100deg, var(--cw-primary), #7b4dff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cw-hero .lead {
    color: var(--cw-ink-soft);
    font-size: 1.1rem;
    max-width: 520px;
}

.cw-trust {
    color: var(--cw-muted);
    font-size: .86rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 18px;
}

.cw-trust span { display: inline-flex; align-items: center; gap: 7px; }
.cw-trust span::before { content: "✓"; color: #0f9d58; font-weight: 700; }

/* --- hero mock: a tiny fake website with the widget open --- */

.cw-mock {
    background: #fff;
    border: 1px solid var(--cw-line);
    border-radius: var(--cw-radius);
    box-shadow: 0 24px 60px rgba(11, 18, 32, .14);
    overflow: hidden;
}

.cw-mock-bar {
    background: #f6f7fa;
    border-bottom: 1px solid var(--cw-line);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cw-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #d7dbe4; }

.cw-mock-url {
    margin-left: 8px;
    background: #fff;
    border: 1px solid var(--cw-line);
    border-radius: 20px;
    font-size: .72rem;
    color: var(--cw-muted);
    padding: 3px 12px;
    flex: 1;
}

.cw-mock-body { position: relative; padding: 22px; min-height: 300px; background: #fcfcfe; }

.cw-skeleton { background: #eef0f5; border-radius: 6px; height: 11px; margin-bottom: 10px; }
.cw-skeleton.title { height: 20px; width: 55%; margin-bottom: 18px; }
.cw-skeleton.w80 { width: 80%; }
.cw-skeleton.w60 { width: 60%; }
.cw-skeleton.w70 { width: 70%; }

.cw-mock-widget {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 232px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(11, 18, 32, .2);
    overflow: hidden;
    font-size: .76rem;
}

.cw-mock-widget-head {
    background: var(--cw-primary);
    color: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cw-mock-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    display: grid; place-items: center;
    font-size: .8rem;
}

.cw-mock-msgs { padding: 12px; background: #f8fafc; display: flex; flex-direction: column; gap: 6px; }

.cw-mock-msg { max-width: 85%; padding: 7px 10px; border-radius: 12px; line-height: 1.4; }
.cw-mock-msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--cw-line); border-bottom-left-radius: 3px; }
.cw-mock-msg.me { align-self: flex-end; background: var(--cw-primary); color: #fff; border-bottom-right-radius: 3px; }

.cw-mock-typing { color: var(--cw-muted); font-size: .7rem; padding: 0 12px 10px; background: #f8fafc; font-style: italic; }

@media (max-width: 991.98px) {
    .cw-hero { padding: 54px 0 46px; }
    .cw-hero .lead { max-width: none; }
}

/* ============================================================== sections */

.cw-section { padding: 78px 0; }
.cw-section.tint { background: #f8f9fc; }

.cw-section-head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.cw-section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 12px; }
.cw-section-head p { color: var(--cw-muted); margin: 0; font-size: 1.03rem; }

.cw-kicker {
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .73rem;
    font-weight: 750;
    color: var(--cw-primary);
    margin-bottom: 10px;
}

/* ============================================================= features */

.cw-feature {
    border: 1px solid var(--cw-line);
    border-radius: var(--cw-radius);
    padding: 26px;
    height: 100%;
    background: #fff;
    transition: transform .16s, box-shadow .16s;
}

.cw-feature:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11, 18, 32, .08); }
.cw-feature h3 { font-size: 1.03rem; margin: 15px 0 7px; font-weight: 700; }
.cw-feature p { color: var(--cw-muted); font-size: .93rem; margin: 0; }

.cw-feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--cw-primary-soft);
    color: var(--cw-primary);
    display: grid; place-items: center;
    font-size: 1.25rem;
}

/* ================================================================ steps */

.cw-step { text-align: center; padding: 0 12px; }

.cw-step-num {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--cw-ink);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 750;
    margin: 0 auto 16px;
}

.cw-step h3 { font-size: 1.02rem; margin-bottom: 7px; }
.cw-step p { color: var(--cw-muted); font-size: .93rem; margin: 0; }

.cw-snippet {
    background: #0b1220;
    color: #d9e2f5;
    border-radius: var(--cw-radius);
    padding: 20px 22px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .78rem;
    line-height: 1.7;
    overflow-x: auto;
    text-align: left;
}

.cw-snippet .tok { color: #7dd3fc; }

/* ============================================================== pricing */

.cw-price {
    border: 1px solid var(--cw-line);
    border-radius: var(--cw-radius);
    padding: 30px 26px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.cw-price.featured {
    border-color: var(--cw-primary);
    box-shadow: 0 16px 40px rgba(47, 107, 255, .14);
    position: relative;
}

.cw-price-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--cw-primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 13px;
    border-radius: 20px;
}

.cw-price h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cw-price .amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.cw-price .cycle { color: var(--cw-muted); font-size: .88rem; margin-bottom: 20px; }

.cw-price ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.cw-price li { padding: 6px 0 6px 25px; position: relative; color: var(--cw-ink-soft); font-size: .93rem; }
.cw-price li::before { content: "✓"; position: absolute; left: 0; color: #0f9d58; font-weight: 700; }

/* ================================================================== faq */

.cw-faq { border-top: 1px solid var(--cw-line); }
.cw-faq details { border-bottom: 1px solid var(--cw-line); padding: 18px 0; }
.cw-faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.cw-faq summary::-webkit-details-marker { display: none; }
.cw-faq summary::after { content: "+"; color: var(--cw-muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.cw-faq details[open] summary::after { content: "−"; }
.cw-faq p { color: var(--cw-muted); margin: 12px 0 0; font-size: .95rem; max-width: 68ch; }

/* =================================================================== cta */

.cw-cta {
    background: linear-gradient(135deg, #0b1220, #1c2a4a 55%, #2f6bff 160%);
    color: #fff;
    border-radius: 24px;
    padding: 56px 32px;
    text-align: center;
}

.cw-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.cw-cta p { color: #b9c4da; max-width: 520px; margin: 0 auto 26px; }

/* ================================================================ footer */

.cw-foot {
    border-top: 1px solid var(--cw-line);
    padding: 30px 0;
    color: var(--cw-muted);
    font-size: .88rem;
}

.cw-foot a { color: var(--cw-ink-soft); }

/* ================================================================ button */

.btn {
    --bs-btn-border-radius: 11px;
    --bs-btn-font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: var(--cw-primary);
    --bs-btn-border-color: var(--cw-primary);
    --bs-btn-hover-bg: var(--cw-primary-dark);
    --bs-btn-hover-border-color: var(--cw-primary-dark);
}

.form-control, .form-select { border-radius: 11px; border-color: var(--cw-line); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--cw-primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, .14); }
.form-label { font-weight: 600; font-size: .87rem; }
