/* Crisp-inspired marketing landing */
.landing {
    --lp-primary: #5b4ffd;
    --lp-primary-dark: #4a3de8;
    --lp-primary-soft: #ede9fe;
    --lp-text: #0f172a;
    --lp-muted: #64748b;
    --lp-border: #e8eaef;
    --lp-bg: #ffffff;
    --lp-bg-alt: #f6f7fb;
    --lp-radius: 14px;
    --lp-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --lp-shadow-lg: 0 20px 50px rgba(91, 79, 253, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--lp-text);
    background: var(--lp-bg);
    line-height: 1.5;
}

.landing * { box-sizing: border-box; }
.landing { scroll-behavior: smooth; }
html { scroll-behavior: smooth; }

.lp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}
.lp-nav.scrolled { border-bottom-color: var(--lp-border); }

.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--lp-text);
    text-decoration: none;
}
.lp-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lp-primary), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.lp-nav-links a {
    color: var(--lp-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.lp-nav-links a:hover { color: var(--lp-text); }

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

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary {
    background: var(--lp-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(91, 79, 253, 0.35);
}
.lp-btn-primary:hover { background: var(--lp-primary-dark); }
.lp-btn-ghost {
    background: transparent;
    color: var(--lp-text);
    border: 1px solid var(--lp-border);
}
.lp-btn-ghost:hover { background: var(--lp-bg-alt); }
.lp-btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }

.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 24px 80px;
    text-align: center;
}
.lp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(91, 79, 253, 0.15), transparent),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(129, 140, 248, 0.1), transparent),
        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(167, 139, 250, 0.08), transparent);
}
.lp-hero-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--lp-primary-soft);
    color: var(--lp-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.lp-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.lp-hero h1 .highlight {
    background: linear-gradient(90deg, var(--lp-primary), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-hero-lead {
    margin: 0 auto 32px;
    max-width: 600px;
    font-size: 18px;
    color: var(--lp-muted);
    line-height: 1.6;
}
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 16px; }
.lp-hero-note { font-size: 13px; color: var(--lp-muted); }

.lp-trust {
    padding: 40px 24px;
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
    background: var(--lp-bg-alt);
    text-align: center;
}
.lp-trust p { margin: 0 0 20px; font-size: 13px; color: var(--lp-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.lp-trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px 48px;
    max-width: 900px;
    margin: 0 auto;
}
.lp-trust-logos span {
    font-size: 15px;
    font-weight: 600;
    color: #94a3b8;
    opacity: 0.85;
}

.lp-section {
    padding: 72px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.lp-section.alt { background: var(--lp-bg-alt); max-width: none; }
.lp-section.alt > .lp-section-inner { max-width: 1100px; margin: 0 auto; }
.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.lp-section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.lp-section-head p { margin: 0; color: var(--lp-muted); font-size: 17px; line-height: 1.6; }

.lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.lp-feature-card {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.lp-feature-card:hover {
    box-shadow: var(--lp-shadow);
    border-color: #d4d8e0;
}
.lp-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    background: var(--lp-primary-soft);
}
.lp-feature-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.lp-feature-card p { margin: 0; font-size: 14px; color: var(--lp-muted); line-height: 1.55; }

.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.lp-step {
    position: relative;
    padding: 24px;
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
}
.lp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--lp-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}
.lp-step h3 { margin: 0 0 8px; font-size: 16px; }
.lp-step p { margin: 0; font-size: 14px; color: var(--lp-muted); line-height: 1.55; }

.lp-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}
.lp-showcase:last-child { margin-bottom: 0; }
.lp-showcase.reverse .lp-showcase-visual { order: 2; }
.lp-showcase.reverse .lp-showcase-text { order: 1; }
.lp-showcase-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lp-primary);
    margin-bottom: 12px;
}
.lp-showcase-text h3 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.lp-showcase-text p { margin: 0 0 20px; color: var(--lp-muted); font-size: 16px; line-height: 1.6; }
.lp-showcase-text a {
    color: var(--lp-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.lp-showcase-text a:hover { text-decoration: underline; }

.lp-mock {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    box-shadow: var(--lp-shadow-lg);
    overflow: hidden;
}
.lp-mock-bar {
    display: flex;
    gap: 6px;
    padding: 12px 14px;
    background: var(--lp-bg-alt);
    border-bottom: 1px solid var(--lp-border);
}
.lp-mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}
.lp-mock-bar span:first-child { background: #fca5a5; }
.lp-mock-bar span:nth-child(2) { background: #fcd34d; }
.lp-mock-bar span:nth-child(3) { background: #86efac; }
.lp-mock-body { padding: 20px; min-height: 220px; }

.lp-mock-inbox { display: flex; gap: 0; min-height: 240px; }
.lp-mock-sidebar {
    width: 38%;
    border-right: 1px solid var(--lp-border);
    padding: 12px;
    background: #fafbfc;
}
.lp-mock-chat { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.lp-mock-row {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    align-items: center;
}
.lp-mock-row.active { background: var(--lp-primary-soft); }
.lp-mock-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    flex-shrink: 0;
}
.lp-mock-bubble {
    max-width: 75%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
}
.lp-mock-bubble.visitor {
    align-self: flex-end;
    background: var(--lp-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.lp-mock-bubble.agent {
    align-self: flex-start;
    background: #f1f5f9;
    color: var(--lp-text);
    border-bottom-left-radius: 4px;
}

.lp-mock-widget {
    position: relative;
    min-height: 260px;
    background: linear-gradient(160deg, #f8fafc 0%, #ede9fe 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
}
.lp-mock-widget-card {
    width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
}
.lp-mock-widget-head {
    padding: 14px;
    background: var(--lp-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.lp-mock-widget-msgs { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.lp-mock-fab {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--lp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(91, 79, 253, 0.45);
}

.lp-usecases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.lp-usecase {
    padding: 28px;
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
}
.lp-usecase h3 { margin: 0 0 10px; font-size: 18px; }
.lp-usecase p { margin: 0; font-size: 14px; color: var(--lp-muted); line-height: 1.55; }

.lp-embed {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 28px;
    max-width: 720px;
    margin: 0 auto;
}
.lp-embed h3 { margin: 0 0 8px; font-size: 18px; }
.lp-embed p { margin: 0 0 16px; font-size: 14px; color: var(--lp-muted); }
.lp-embed pre {
    margin: 0;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.5;
}
.lp-embed-note { margin-top: 14px; font-size: 13px; color: var(--lp-muted); }

.lp-cta {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
    color: #fff;
}
.lp-cta h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.lp-cta p { margin: 0 0 28px; color: #94a3b8; font-size: 17px; }
.lp-cta .lp-btn-primary { background: #fff; color: var(--lp-primary); box-shadow: none; }
.lp-cta .lp-btn-primary:hover { background: #f1f5f9; }

.lp-footer {
    padding: 40px 24px;
    border-top: 1px solid var(--lp-border);
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    font-size: 14px;
    color: var(--lp-muted);
}
.lp-footer a { color: var(--lp-muted); text-decoration: none; }
.lp-footer a:hover { color: var(--lp-text); }
.lp-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

.lp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 900px) {
    .lp-showcase { grid-template-columns: 1fr; gap: 32px; }
    .lp-showcase.reverse .lp-showcase-visual,
    .lp-showcase.reverse .lp-showcase-text { order: unset; }
    .lp-usecases { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .lp-nav-links { display: none; }
    .lp-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--lp-border);
        gap: 16px;
    }
    .lp-mobile-toggle { display: block; }
    .lp-nav { position: relative; flex-wrap: wrap; }
    .lp-hero { padding: 32px 20px 56px; }
    .lp-section { padding: 48px 20px; }
}
