:root {
  --bg: #07111f;
  --bg-soft: #0d1a2d;
  --card: #ffffff;
  --card-soft: #f7f9fd;
  --text: #0d1726;
  --muted: #64748b;
  --primary: #2364ff;
  --primary-dark: #1649c8;
  --accent: #00d4ff;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --purple: #7c3aed;
  --border: #e5eaf3;
  --shadow: 0 24px 70px rgba(15, 23, 42, .16);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f5f7fb;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.site-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: white; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #7c3aed 70%, #00d4ff);
  box-shadow: 0 14px 30px rgba(35,100,255,.28);
}
.brand strong { display: block; font-size: 18px; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.desktop-nav { display: flex; align-items: center; gap: 26px; color: #334155; font-weight: 700; font-size: 14px; }
.desktop-nav a:hover { color: var(--primary); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.primary-btn, .secondary-btn, .ghost-btn, .link-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-btn { background: linear-gradient(135deg, var(--primary), #6d5cff); color: white; box-shadow: 0 14px 34px rgba(35,100,255,.26); }
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(35,100,255,.34); }
.secondary-btn { background: #eef4ff; color: #1649c8; border: 1px solid #d8e5ff; }
.secondary-btn:hover { background: #e3ecff; transform: translateY(-1px); }
.ghost-btn { background: #fff; border: 1px solid var(--border); color: #1f2937; }
.ghost-btn:hover { background: #f8fafc; transform: translateY(-1px); }
.link-btn { background: transparent; color: #334155; }
.large { padding: 15px 24px; font-size: 15px; }
.compact { padding: 9px 13px; font-size: 13px; }
.full { width: 100%; margin-top: 10px; border-radius: 14px; }

.screen { display: none; }
.active-screen { display: block; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 640px);
  gap: 46px;
  padding: 82px 7vw 96px;
  background:
    radial-gradient(circle at 14% 12%, rgba(0, 212, 255, .24), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(124, 58, 237, .2), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 45%, #f7f4ff 100%);
}
.hero-copy { align-self: center; max-width: 720px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #1554da;
  background: rgba(35,100,255,.08);
  border: 1px solid rgba(35,100,255,.14);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 7px rgba(16,185,129,.14); }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; margin: 22px 0 22px; }
.hero-subtitle { max-width: 650px; color: #475569; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; color: #475569; margin-top: 28px; font-weight: 700; font-size: 14px; }

.hero-card {
  align-self: center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.browser-bar { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--border); background: rgba(248,250,252,.84); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #fb7185; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar strong { margin-left: 10px; color: #64748b; font-size: 12px; }
.mini-app { display: grid; grid-template-columns: 205px 1fr; min-height: 440px; }
.mini-list { background: #f8fafc; padding: 14px; border-right: 1px solid var(--border); }
.mini-search { height: 34px; border-radius: 11px; background: white; border: 1px solid var(--border); margin-bottom: 12px; }
.mini-lead { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; margin-bottom: 8px; }
.mini-lead.active { background: #eaf1ff; }
.mini-lead span, .lead-avatar, .page-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #c7d2fe, #93c5fd); color: #1e3a8a; font-weight: 900; flex: none; }
.mini-lead b { display: block; font-size: 13px; }
.mini-lead small { color: var(--muted); font-size: 11px; }
.mini-chat { padding: 18px; background: white; display: flex; flex-direction: column; gap: 12px; }
.mini-chat-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mini-chat-top span { color: var(--yellow); font-size: 12px; font-weight: 800; }
.bubble { max-width: 72%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.inbound { background: #f1f5f9; align-self: flex-start; }
.outbound { background: linear-gradient(135deg, var(--primary), #5b7cff); color: white; align-self: flex-end; }
.template-box { margin-top: auto; border: 1px solid #dbeafe; background: #f8fbff; padding: 14px; border-radius: 18px; }
.template-box label { display: block; color: var(--primary); font-weight: 900; font-size: 12px; text-transform: uppercase; }
.template-box p { margin: 9px 0 12px; color: #334155; }
.template-box button { width: 100%; border: 0; background: var(--text); color: white; border-radius: 12px; padding: 11px; font-weight: 900; }

.logo-strip {
  margin: -36px auto 60px;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15,23,42,.08);
  overflow: hidden;
}
.logo-strip div { padding: 26px; text-align: center; border-right: 1px solid var(--border); }
.logo-strip div:last-child { border-right: 0; }
.logo-strip strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.logo-strip span { color: var(--muted); font-weight: 700; font-size: 13px; }

.section { max-width: 1180px; margin: 0 auto; padding: 72px 22px; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.section-heading.align-left { text-align: left; margin-left: 0; }
.section-heading h2, .dashboard-teaser h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.045em; margin: 16px 0; }
.section-heading p, .dashboard-teaser p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card, .price-card, .panel-card, .step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
}
.feature-card { padding: 24px; min-height: 230px; }
.feature-card.highlight { border-color: rgba(35,100,255,.36); background: linear-gradient(180deg, #ffffff, #f3f7ff); box-shadow: 0 20px 50px rgba(35,100,255,.12); }
.feature-card span { font-size: 28px; }
.feature-card h3 { margin: 16px 0 10px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.62; font-size: 14px; }
.process-section { max-width: 1220px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 26px; }
.step span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #eef4ff; color: var(--primary); font-weight: 900; }
.step p { color: var(--muted); line-height: 1.6; }
.dashboard-teaser { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 44px; margin-top: 30px; border-radius: 30px; background: linear-gradient(135deg, #0f1c33, #1d3b72 58%, #4f46e5); color: white; box-shadow: var(--shadow); }
.dashboard-teaser p { color: rgba(255,255,255,.78); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { position: relative; padding: 28px; }
.price-card.popular { transform: translateY(-10px); border-color: rgba(35,100,255,.36); box-shadow: 0 24px 64px rgba(35,100,255,.16); }
.badge { position: absolute; right: 20px; top: 18px; background: #dcfce7; color: #047857; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.price-card > span { color: var(--primary); font-weight: 900; }
.price-card h3 { font-size: 44px; margin: 10px 0 8px; letter-spacing: -.05em; }
.price-card h3 span { color: var(--muted); font-size: 16px; letter-spacing: 0; }
.price-card p, .price-card li { color: var(--muted); line-height: 1.7; }
.price-card ul { padding-left: 20px; min-height: 128px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
summary { font-weight: 900; cursor: pointer; }
details p { color: var(--muted); line-height: 1.7; }

.dashboard-screen { min-height: 100vh; background: #eef2f8; }
.app-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 274px;
  background: #07111f;
  color: white;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app-brand { color: white; margin-bottom: 8px; }
.app-brand small { color: #94a3b8; }
.app-nav { display: grid; gap: 8px; }
.app-nav-btn {
  width: 100%;
  border: 0;
  color: #cbd5e1;
  background: transparent;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 800;
}
.app-nav-btn:hover, .app-nav-btn.active { background: rgba(255,255,255,.1); color: white; }
.sidebar-card { margin-top: auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; }
.sidebar-card span, .sidebar-card small { display: block; color: #94a3b8; }
.sidebar-card strong { display: block; margin: 6px 0; }
.app-main { margin-left: 274px; padding: 24px; min-height: 100vh; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 22px;
  background: rgba(238,242,248,.9);
  backdrop-filter: blur(16px);
}
.app-header h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.app-header p { margin: 4px 0 0; color: var(--muted); }
.app-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--border); border-radius: 999px; padding: 10px 13px; font-weight: 900; color: #0f766e; }
.status-pill span { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(16,185,129,.12); }
.app-panel { display: none; }
.active-panel { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stats-grid article { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: 0 12px 30px rgba(15,23,42,.05); }
.stats-grid span, .stats-grid small { color: var(--muted); font-weight: 700; }
.stats-grid strong { display: block; font-size: 34px; letter-spacing: -.05em; margin: 8px 0; }
.overview-grid, .campaign-grid, .settings-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel-card { padding: 20px; }
.panel-card.wide { min-width: 0; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-title h3 { margin: 0; letter-spacing: -.02em; }
.card-title span { color: var(--muted); font-weight: 800; font-size: 13px; }
.eligibility-bars { display: grid; gap: 14px; }
.eligibility-bars div { display: grid; grid-template-columns: 140px 1fr 70px; align-items: center; gap: 12px; color: #475569; font-weight: 800; }
.eligibility-bars b { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); display: block; }
.eligibility-bars em { color: #0f172a; font-style: normal; text-align: right; }
.action-row { width: 100%; display: flex; justify-content: space-between; border: 1px solid var(--border); background: #f8fafc; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; font-weight: 900; }
.action-row:hover { background: #eef4ff; color: var(--primary); }
.activity-feed { display: grid; gap: 10px; }
.activity-feed p { margin: 0; background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; color: #475569; }
.activity-feed b { color: #0f172a; }

.inbox-shell { display: grid; grid-template-columns: 320px minmax(380px, 1fr) 360px; gap: 14px; height: calc(100vh - 124px); min-height: 660px; }
.conversation-list, .chat-pane, .template-panel { background: white; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 14px 34px rgba(15,23,42,.05); overflow: hidden; }
.conversation-list { display: flex; flex-direction: column; }
.list-toolbar { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--border); }
.list-toolbar input { flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: 11px; outline: 0; }
.list-toolbar button { border: 1px solid var(--border); background: #f8fafc; border-radius: 12px; width: 42px; }
.filter-chips { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.filter-chips button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 10px; color: #475569; font-weight: 800; font-size: 12px; white-space: nowrap; }
.filter-chips button.active { color: var(--primary); background: #eef4ff; border-color: #d8e5ff; }
.conversation-items { overflow: auto; padding: 8px; }
.conversation-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 0; background: transparent; width: 100%; text-align: left; border-radius: 16px; }
.conversation-item:hover, .conversation-item.active { background: #eef4ff; }
.conversation-item strong { display: block; font-size: 14px; }
.conversation-item small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 165px; }
.conversation-time { color: var(--muted); font-size: 12px; }
.lead-avatar.purple { background: linear-gradient(135deg, #ddd6fe, #c4b5fd); color: #5b21b6; }
.chat-pane { display: flex; flex-direction: column; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.chat-header h3, .chat-header p { margin: 0; }
.chat-header p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.window-badge { margin-left: auto; padding: 8px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.window-badge.good { background: #dcfce7; color: #047857; }
.window-badge.warning { background: #fef3c7; color: #92400e; }
.window-badge.danger { background: #fee2e2; color: #991b1b; }
.policy-alert { margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; line-height: 1.5; }
.policy-alert.good { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.policy-alert.danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.chat-messages { flex: 1; overflow: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, #ffffff, #f8fafc); }
.message-row { display: flex; flex-direction: column; max-width: 74%; gap: 5px; }
.message-row.agent { align-self: flex-end; align-items: flex-end; }
.message-row.user { align-self: flex-start; align-items: flex-start; }
.message-bubble { padding: 12px 14px; border-radius: 17px; line-height: 1.5; white-space: pre-wrap; }
.message-row.agent .message-bubble { background: linear-gradient(135deg, var(--primary), #5b7cff); color: white; border-bottom-right-radius: 5px; }
.message-row.user .message-bubble { background: #eef2f7; color: #0f172a; border-bottom-left-radius: 5px; }
.message-meta { color: var(--muted); font-size: 11px; }
.chat-composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: white; }
.chat-composer textarea { flex: 1; min-height: 48px; max-height: 120px; resize: vertical; border: 1px solid var(--border); border-radius: 14px; padding: 12px; outline: 0; }
.template-panel { padding: 18px; overflow: auto; }
.template-panel-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 18px; }
.template-panel-header h3 { margin: 0; }
.template-panel-header span { color: var(--primary); background: #eef4ff; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.field-label { display: block; margin: 12px 0 7px; color: #334155; font-weight: 900; font-size: 13px; }
.template-panel select, .template-panel textarea, .text-input { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 12px; outline: 0; background: white; }
.template-panel textarea, .text-input:is(textarea) { resize: vertical; }
.template-panel select:focus, .template-panel textarea:focus, .text-input:focus, .list-toolbar input:focus { border-color: rgba(35,100,255,.55); box-shadow: 0 0 0 4px rgba(35,100,255,.08); }
.token-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.token-row button { border: 1px solid #dbeafe; background: #eff6ff; color: var(--primary); border-radius: 999px; padding: 7px 9px; font-weight: 900; font-size: 12px; }
.send-options { display: grid; gap: 8px; padding: 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; margin: 12px 0; }
.send-options label { color: #475569; font-weight: 800; font-size: 13px; }
.template-help { margin-top: 14px; padding: 14px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 16px; }
.template-help p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; font-size: 13px; }

.table-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.table-toolbar input { flex: 1; border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.data-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 16px; }
.data-table th, .data-table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--border); }
.data-table th { color: #475569; background: #f8fafc; font-size: 13px; }
.data-table td { color: #334155; }
.tag { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.tag.green { background: #dcfce7; color: #047857; }
.tag.yellow { background: #fef3c7; color: #92400e; }
.tag.red { background: #fee2e2; color: #991b1b; }
.templates-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.template-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.template-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.template-card h4 { margin: 0 0 8px; }
.template-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; white-space: pre-wrap; }
.template-card .template-actions { display: flex; gap: 8px; margin-top: 12px; }
.template-card button { border: 0; border-radius: 10px; padding: 8px 10px; font-weight: 900; }
.template-card .use { background: #eef4ff; color: var(--primary); }
.template-card .delete { background: #fee2e2; color: #991b1b; }
.muted-note { color: var(--muted); font-size: 13px; }
.mini-policy-box { margin: 14px 0; background: #f8fafc; border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.mini-policy-box p { margin: 6px 0 0; color: var(--muted); }
.page-list { display: grid; gap: 12px; }
.page-row { display: flex; align-items: center; gap: 14px; padding: 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 16px; }
.page-row div { flex: 1; }
.page-row small { display: block; color: var(--muted); margin-top: 3px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-card { display: grid; gap: 8px; justify-items: start; background: #f8fafc; border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.team-card small { color: var(--muted); }
.add-team { place-items: center; min-height: 132px; color: var(--primary); font-weight: 900; border-style: dashed; }
.bar-chart { height: 260px; display: flex; align-items: end; gap: 18px; padding: 18px; border-radius: 16px; background: #f8fafc; border: 1px solid var(--border); }
.bar-chart div { flex: 1; min-height: 24px; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, #5b7cff, var(--primary)); display: flex; justify-content: center; align-items: end; padding-bottom: 10px; color: white; font-size: 12px; font-weight: 900; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; font-weight: 800; color: #334155; }
.toggle-row input { width: 20px; height: 20px; accent-color: var(--primary); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; min-width: 280px; max-width: 420px; background: #07111f; color: white; border-radius: 18px; padding: 15px 18px; box-shadow: 0 18px 44px rgba(15,23,42,.24); transform: translateY(140%); opacity: 0; transition: .25s ease; font-weight: 800; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-card { max-width: 680px; width: 100%; }
  .inbox-shell { grid-template-columns: 280px minmax(360px,1fr); height: auto; }
  .template-panel { grid-column: 1 / -1; }
  .stats-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topbar { padding: 0 16px; }
  .desktop-nav, .topbar-actions { display: none; }
  .hero { padding: 56px 18px 72px; min-height: auto; }
  .mini-app, .pricing-grid, .logo-strip, .overview-grid, .campaign-grid, .settings-grid, .templates-layout { grid-template-columns: 1fr; }
  .logo-strip { margin-left: 18px; margin-right: 18px; }
  .logo-strip div { border-right: 0; border-bottom: 1px solid var(--border); }
  .feature-grid, .stats-grid, .steps, .template-cards, .team-grid { grid-template-columns: 1fr; }
  .dashboard-teaser { flex-direction: column; align-items: flex-start; }
  .app-sidebar { position: static; width: auto; }
  .app-main { margin-left: 0; padding: 14px; }
  .app-header { position: static; flex-direction: column; align-items: flex-start; }
  .inbox-shell { grid-template-columns: 1fr; }
  .conversation-list, .chat-pane, .template-panel { min-height: 420px; }
  .table-toolbar { flex-direction: column; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px; }
}
.site-footer {
  max-width: 1180px;
  margin: 30px auto 60px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
}
.site-footer p { color: var(--muted); margin: 8px 0 0; max-width: 520px; line-height: 1.6; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }
.site-footer a { color: var(--primary); font-weight: 900; background: #eef4ff; padding: 9px 12px; border-radius: 999px; }
@media (max-width: 860px) { .site-footer { flex-direction: column; margin-left: 18px; margin-right: 18px; } .site-footer nav { justify-content: flex-start; } }
.connect-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  margin-bottom: 16px;
  color: white;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f1c33, #2364ff 58%, #7c3aed);
  box-shadow: 0 20px 52px rgba(35,100,255,.18);
}
.connect-hero-card h3 { margin: 14px 0 8px; font-size: 28px; letter-spacing: -.04em; }
.connect-hero-card p { margin: 0; color: rgba(255,255,255,.78); max-width: 620px; line-height: 1.6; }
.connect-hero-card .eyebrow { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); color: white; }
.connect-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(7,17,31,.66);
  backdrop-filter: blur(10px);
}
.modal-backdrop.show { display: grid; }
.connect-modal {
  width: min(820px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  padding: 26px;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 24px;
  line-height: 1;
}
.modal-header h2 { font-size: 34px; letter-spacing: -.05em; margin: 16px 42px 8px 0; }
.modal-header p { color: var(--muted); line-height: 1.6; }
.connect-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.connect-steps-grid article { border: 1px solid var(--border); background: #f8fafc; border-radius: 18px; padding: 16px; }
.connect-steps-grid span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #eef4ff; color: var(--primary); font-weight: 900; }
.connect-steps-grid h3 { margin: 12px 0 6px; }
.connect-steps-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.connect-url-list { display: grid; gap: 8px; margin: 18px 0; }
.connect-url-list label { font-weight: 900; color: #334155; font-size: 13px; }
.connect-url-list div { display: flex; gap: 8px; }
.connect-url-list input { flex: 1; border: 1px solid var(--border); border-radius: 14px; padding: 12px; color: #475569; background: #f8fafc; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 860px) { .connect-hero-card { flex-direction: column; align-items: flex-start; } .connect-actions { justify-content: flex-start; } .connect-steps-grid { grid-template-columns: 1fr; } .connect-url-list div { flex-direction: column; } }
