* { box-sizing: border-box; }
:root { --primary: #4f46e5; --violet: #7c3aed; --teal: #0ea5a4; --ink: #0f172a; --body: #475569; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --tint: #eef2ff; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header — blurred sticky bar, better than a plain border header */
.topbar { background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--primary); }
.topbar nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar nav a { color: #334155; font-weight: 600; }
.btn { display: inline-block; background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; padding: 13px 28px; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer; box-shadow: 0 10px 24px rgba(79,70,229,.28); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(79,70,229,.32); }
.btn-small { padding: 9px 19px; box-shadow: none; }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.btn-dark { background: var(--ink); box-shadow: 0 10px 24px rgba(15,23,42,.28); }
.link-btn { background: none; border: 0; color: #334155; cursor: pointer; font-size: 1rem; padding: 0; font-weight: 600; }
.inline-form { display: inline; margin: 0; }

/* Hero — split layout with a live product mock, not a stock photo */
.hero { padding: 68px 0 64px; background: radial-gradient(700px 340px at 85% 0%, #ddd6fe 0%, transparent 60%), radial-gradient(600px 300px at 0% 20%, #cffafe 0%, transparent 55%), linear-gradient(180deg, #eef2ff 0%, #ffffff 78%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill { display: inline-block; background: #fff; border: 1px solid #ddd6fe; color: #4338ca; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; box-shadow: 0 2px 8px rgba(79,70,229,.08); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--primary), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--body); max-width: 560px; margin: 0; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: .88rem; font-weight: 600; color: #334155; }
.chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.stat-row { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .9rem; }
/* Chat mock — pure HTML/CSS, original demo conversation */
.chat-mock { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(15,23,42,.14); overflow: hidden; position: relative; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.chat-head b { display: block; line-height: 1.2; }
.chat-head small { color: var(--muted); }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, #fff, #f8fafc); }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: .95rem; line-height: 1.5; }
.bubble-in { background: #f1f5f9; border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble-out { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.agent-tag { align-self: flex-end; font-size: .78rem; font-weight: 700; color: var(--primary); background: #eef2ff; border-radius: 999px; padding: 3px 10px; margin-top: -6px; }
.product-mini { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; align-self: flex-end; width: 82%; }
.product-mini .thumb { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, #ddd6fe, #a5f3fc); flex-shrink: 0; }
.product-mini b { display: block; font-size: .92rem; line-height: 1.3; }
.product-mini small { color: var(--teal); font-weight: 700; }
.float-row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.float-card { position: static; flex: 1 1 180px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(15,23,42,.12); padding: 11px 15px; font-size: .88rem; font-weight: 700; }
.float-card small { display: block; color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section.tint { background: #f5f3ff; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--primary); }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; margin: 10px 0 12px; letter-spacing: -.02em; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section .sub { color: var(--body); max-width: 720px; margin: 0 0 32px; font-size: 1.06rem; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid.two { grid-template-columns: 1fr; } .section { padding: 52px 0; } }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,23,42,.10); border-color: #c7d2fe; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.01em; }
.card p { color: var(--body); margin: 0; }
.agent-card { border-top: 4px solid var(--primary); }
.agent-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; margin-bottom: 14px; font-size: 1rem; letter-spacing: .02em; }
.agent-icon svg { width: 26px; height: 26px; }
.channel-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 14px; }
.channel-icon svg { width: 26px; height: 26px; }
.mini-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 12px; background: linear-gradient(135deg, var(--primary), var(--violet)); }
.mini-icon svg { width: 22px; height: 22px; }
.g1 { background: linear-gradient(135deg, #4f46e5, #7c3aed); } .g2 { background: linear-gradient(135deg, #0891b2, #0ea5a4); } .g3 { background: linear-gradient(135deg, #059669, #10b981); } .g4 { background: linear-gradient(135deg, #ea580c, #f59e0b); } .g5 { background: linear-gradient(135deg, #db2777, #f43f5e); } .g6 { background: linear-gradient(135deg, #334155, #0f172a); }
.result-card .metric { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.channel-card .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-bottom: 12px; }
.demo-box { border: 1px solid #ddd6fe; border-radius: 20px; padding: 52px 24px; text-align: center; background: linear-gradient(180deg, #eef2ff, #fff); }
.demo-box .play { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 14px 30px rgba(79,70,229,.35); }

/* Before / After — colour-coded, scannable at a glance */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.panel-before { border: 1px solid #fecaca; background: #fef2f2; }
.panel-after { border: 1px solid #bbf7d0; background: #f0fdf4; }
.compare ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--body); display: flex; flex-direction: column; gap: 10px; }
.compare li { padding-left: 28px; position: relative; }
.panel-before li::before { content: "×"; position: absolute; left: 0; color: #dc2626; font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.panel-after li::before { content: "✓"; position: absolute; left: 0; color: #059669; font-weight: 800; }

/* Templates — interactive tabs instead of a static grid */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 700; cursor: pointer; font-size: .95rem; color: #334155; }
.tab-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel { display: none; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; }
.tab-panel.active { display: block; }
.tab-panel h3 { margin-top: 0; font-size: 1.35rem; }
.tab-panel p { color: var(--body); max-width: 640px; }

/* Capabilities — a flow, not six identical cards */
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .flow-steps { grid-template-columns: 1fr; } }
.flow-step { position: relative; }
.flow-num { font-size: 2.2rem; font-weight: 800; color: #ddd6fe; line-height: 1; margin-bottom: 6px; }

/* Inbox mock */
.mock-inbox { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 18px 44px rgba(15,23,42,.10); }
@media (max-width: 760px) { .mock-inbox { grid-template-columns: 1fr; } }
.inbox-list { background: #f8fafc; border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.inbox-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.inbox-item.active { border-color: var(--primary); box-shadow: 0 0 0 3px #eef2ff; }
.inbox-item b { display: block; }
.inbox-item small { color: var(--muted); }
.inbox-chat { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

/* Steps, CTA, footer */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.cta-panel { background: linear-gradient(135deg, #1e1b4b, #4f46e5 60%, #7c3aed); color: #fff; border-radius: 24px; padding: 52px 32px; text-align: center; }
.cta-panel h2 { color: #fff; }
.cta-panel .sub { color: #e0e7ff; margin-left: auto; margin-right: auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--body); }
.form-card { max-width: 520px; margin: 48px auto; border: 1px solid var(--line); border-radius: 18px; padding: 32px; background: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.08); }
.form-card h1 { margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 1rem; }
.field textarea { min-height: 110px; }
.checkbox { display: flex; gap: 8px; align-items: center; }
.checkbox input { width: auto; }
.flash { border-radius: 12px; padding: 14px 18px; margin: 20px 0; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #f8fafc; }
.price { font-size: 2rem; font-weight: 800; margin: 12px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 24px; }
.admin-nav { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 28px; }
.admin-nav a { color: #334155; font-weight: 600; }
.footer { border-top: 1px solid var(--line); padding: 44px 0 32px; margin-top: 0; background: #0f172a; color: #cbd5e1; }
.footer a { color: #e2e8f0; }
.footer strong { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 28px; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-inner .muted { color: #94a3b8; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 16px 20px; }
.strip { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.strip span { border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; background: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
