/* Sellyx — Premium Light SaaS Theme */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --fg: #0f172a;
  --fg-soft: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --indigo: #4f46e5;
  --indigo-light: #eef2ff;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --blue: #2563eb;
  --green: #059669;
  --green-light: #ecfdf5;
  --amber: #d97706;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 10px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(79, 70, 229, 0.18), 0 8px 16px -8px rgba(15, 23, 42, 0.1);
  --shadow-float: 0 24px 48px -12px rgba(79, 70, 229, 0.2);
  --max: 1200px;
  --font: "Inter", system-ui, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  cursor: default;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
ul, ol { list-style: none; }
button,
.btn,
.nav-toggle,
.demo-tab,
.flow-dot,
.faq-card summary,
[role="button"],
summary {
  cursor: pointer;
}
input,
textarea,
[contenteditable="true"] {
  cursor: text;
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.icon-accent { color: var(--indigo); }
.icon-purple { color: var(--purple); }
.icon-green { color: var(--green); }
.icon-check { color: var(--green); width: 18px; height: 18px; }

.skip-link { position: absolute; top: -100%; left: 1rem; padding: 0.5rem 1rem; background: var(--indigo); color: #fff; border-radius: 8px; z-index: 9999; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; min-width: 0; }
.container-narrow { max-width: 760px; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
h1 { font-size: clamp(2.5rem, 5.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.125rem; }

.eyebrow { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--indigo); margin-bottom: 0.75rem; }
.section-header { margin-bottom: 2rem; }
.section-header.centered { text-align: center; }
.section-lead { color: var(--muted); font-size: 1.125rem; max-width: 600px; line-height: 1.7; }
.section-lead.centered { margin: 0.75rem auto 0; }
.gradient-text { background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 50%, var(--blue) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-center { text-align: center; }
.muted { color: var(--muted); font-size: 0.875rem; margin-top: 2rem; }

.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--indigo-light); color: var(--indigo); border: 1px solid #c7d2fe; margin-bottom: 1.25rem; }
.pill { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; }
.pill-green { background: var(--green-light); color: var(--green); }
.pill-primary { background: var(--indigo); color: #fff; }
.pill-outline { background: #fff; border: 1px solid var(--border); color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 12px; font-size: 0.9375rem; font-weight: 600; border: none; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--purple)); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4); }
.btn-outline { background: #fff; color: var(--fg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: #c7d2fe; background: var(--bg-soft); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; border-bottom: 1px solid transparent; transition: border-color var(--transition), box-shadow var(--transition); }
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; font-weight: 700; font-size: 1.125rem; flex-shrink: 0; }
.logo-img { display: block; height: 3.5rem; width: auto; max-width: min(240px, 48vw); object-fit: contain; object-position: left center; }
.logo-footer { display: inline-flex; }
.logo-img-footer { height: 4.5rem; max-width: 300px; background: #fff; border-radius: 12px; padding: 0.4rem 0.65rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color var(--transition); }
.site-nav a:not(.btn):hover { color: var(--indigo); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; }

/* Hero */
.hero { position: relative; padding: 6rem 0 3rem; overflow: hidden; min-height: auto; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 8s ease-in-out infinite; }
.hero-orb-1 { width: 500px; height: 500px; background: rgba(99, 102, 241, 0.15); top: -20%; left: -10%; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(124, 58, 237, 0.12); bottom: -10%; right: -5%; animation-delay: -4s; }
.hero-grid-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, #e2e8f0 1px, transparent 0); background-size: 32px 32px; opacity: 0.5; mask-image: linear-gradient(to bottom, black 40%, transparent); }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "intro visual"
    "copy visual";
  column-gap: 3rem;
  row-gap: 0;
  align-items: center;
  position: relative;
}
.hero-intro { grid-area: intro; align-self: end; }
.hero-intro .badge { margin-bottom: 1.25rem; }
.hero-intro h1 { margin-bottom: 0; }
.hero-copy { grid-area: copy; align-self: start; }
.hero-visual { grid-area: visual; position: relative; min-height: 420px; align-self: center; }
.hero-subtitle { font-size: 1.125rem; color: var(--muted); margin: 1.25rem 0 1.25rem; line-height: 1.7; max-width: 520px; }
.hero-channels { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; list-style: none; padding: 0; }
.hero-channels li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: var(--fg-soft); background: #fff; border: 1px solid var(--border); padding: 0.35rem 0.75rem; border-radius: 999px; }
.channel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.channel-dot.email { background: #dc2626; }
.channel-dot.whatsapp { background: #059669; }
.channel-dot.facebook { background: #2563eb; }
.channel-dot.marketplace { background: #d97706; }
.channel-dot.web { background: var(--indigo); }
.hero-tagline { font-size: 0.9375rem; color: var(--fg-soft); font-weight: 500; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero conversation flow animation */
.hero-flow { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.flow-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: 0.75rem; color: #334155; }
.flow-status { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #065f46; }
.flow-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #065f46;
  animation: pulse 2s ease-in-out infinite;
  will-change: transform, opacity;
}
.flow-time { color: #334155; font-weight: 500; }
.flow-body {
  position: relative;
  min-height: 180px; /* fallback before JS measures the tallest slide */
  padding: 1.25rem;
  overflow: hidden;
}
.flow-step {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.flow-step.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.flow-channel { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.channel-badge { font-size: 0.6875rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.channel-badge.whatsapp { background: #d1fae5; color: #064e3b; }
.channel-badge.facebook { background: #dbeafe; color: #1e3a8a; }
.flow-time-small { font-size: 0.6875rem; color: #334155; }
.flow-message { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.65rem; }
.flow-message.outgoing { flex-direction: row-reverse; }
.flow-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.625rem; font-weight: 700; flex-shrink: 0; }
.flow-avatar.customer { background: #e2e8f0; color: #0f172a; }
.flow-avatar.ai { background: linear-gradient(135deg, var(--purple), var(--indigo)); color: #fff; }
.flow-bubble { padding: 0.65rem 0.85rem; border-radius: 12px; font-size: 0.8125rem; line-height: 1.45; max-width: 85%; }
.flow-message.incoming .flow-bubble { background: var(--bg-soft); border: 1px solid var(--border); color: var(--fg-soft); border-top-left-radius: 4px; }
.flow-message.outgoing .flow-bubble.ai { background: var(--indigo-light); border: 1px solid #c7d2fe; color: var(--indigo); border-top-right-radius: 4px; }
.flow-caption { font-size: 0.75rem; font-weight: 600; color: var(--indigo); text-align: center; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px dashed var(--border); }
.flow-alert { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: #fef3c7; border: 1px solid #fde68a; border-radius: 8px; font-size: 0.75rem; color: #92400e; margin-bottom: 0.75rem; }
.flow-qualify { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.qualify-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; padding: 0.35rem 0; border-bottom: 1px solid var(--border-light); }
.qualify-row:last-of-type { border-bottom: none; margin-bottom: 0.75rem; }
.qualify-row span { color: var(--muted); }
.qualify-high { color: var(--green); }
.qualify-bar { height: 6px; background: var(--bg-muted); border-radius: 999px; overflow: hidden; margin-bottom: 0.35rem; }
.qualify-fill { height: 100%; background: linear-gradient(90deg, var(--indigo), var(--green)); border-radius: 999px; transition: width 0.6s ease; }
.flow-qualify small { font-size: 0.6875rem; color: var(--muted); }
.flow-signal { display: flex; flex-direction: column; gap: 0.65rem; }
.signal-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; }
.signal-item strong { display: block; font-size: 0.8125rem; }
.signal-item span { font-size: 0.6875rem; color: var(--muted); }
.flow-handoff { display: flex; flex-direction: column; gap: 0.75rem; }
.handoff-card { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.75rem; background: var(--green-light); border: 1px solid #a7f3d0; border-radius: 10px; min-width: 0; }
.handoff-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; color: var(--green); flex-shrink: 0; }
.handoff-card > div { min-width: 0; flex: 1; }
.handoff-card strong { display: block; font-size: 0.875rem; color: #065f46; overflow-wrap: anywhere; }
.handoff-card > div span { font-size: 0.6875rem; color: #047857; }
.handoff-card .pill { margin-left: auto; flex-shrink: 0; }
.handoff-summary { padding: 0.75rem; background: var(--bg-soft); border-radius: 10px; border: 1px solid var(--border); }
.handoff-summary p { font-size: 0.8125rem; color: var(--fg-soft); font-style: italic; margin-bottom: 0.75rem; }
.flow-progress { display: flex; justify-content: center; align-items: center; gap: 0; padding: 0.35rem 0.75rem; background: var(--bg-soft); border-top: 1px solid var(--border); }
.flow-dot {
  width: 28px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.flow-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
  transition: background 0.3s, transform 0.3s;
}
.flow-dot:hover::after { background: #475569; transform: scale(1.15); }
.flow-dot:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.flow-dot.active::after { background: var(--indigo); transform: scale(1.35); }
.flow-dot.active:hover::after { background: var(--indigo); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Trust strip */
.trust-strip { padding: 2rem 0; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust-inner { text-align: center; }
.trust-inner > p { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; }
.trust-logos span { font-size: 0.9375rem; font-weight: 600; color: #94a3b8; }

/* Demo tabs — See Sellyx In Action */
#capabilities, #showcase, #request-demo { scroll-margin-top: 5.5rem; }
.demo-tabs { margin-top: 0; }
.demo-tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.demo-tab { padding: 0.625rem 1.25rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 0.875rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all var(--transition); font-family: inherit; }
.demo-tab:hover { border-color: #c7d2fe; color: var(--indigo); }
.demo-tab.active { background: linear-gradient(135deg, var(--indigo), var(--purple)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3); }
.demo-panel { display: none; animation: fadeIn 0.4s ease; }
.demo-panel.active { display: block; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; }
.demo-copy h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.demo-copy p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; }
.check-list.compact { gap: 0.625rem; margin-top: 0; }
.check-list.compact li { font-size: 0.875rem; }
.demo-mock { overflow: hidden; }
.demo-mock.card-elevated {
  padding: 0;
  transform: none;
  box-shadow: var(--shadow);
}
.demo-mock.card-elevated:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.demo-inbox .mock-inbox-item { flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 0.55rem 0.7rem; margin-bottom: 0.35rem; }
.demo-inbox .mock-inbox-item strong { font-size: 0.875rem; }
.demo-inbox .mock-inbox-item span { font-size: 0.75rem; }
#demo-inbound .mockup-head { padding: 0.7rem 1rem; font-size: 0.8125rem; }
#demo-inbound .mockup-body { padding: 0.85rem 1rem; min-height: 0; }
#demo-inbound .mock-chat-preview { margin-top: 0.65rem; padding-top: 0.65rem; }
.mock-chat-preview {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}
.mock-chat-preview .chat-bubble {
  display: block;
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  border-top: none;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}
.mock-chat-preview .chat-bubble.user {
  align-self: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--fg-soft);
  border-radius: 14px 14px 14px 4px;
  margin: 0;
  padding: 0.6rem 0.85rem;
}
.mock-chat-preview .chat-bubble.ai {
  align-self: flex-end;
  background: var(--indigo-light);
  border: 1px solid #c7d2fe;
  color: var(--indigo);
  border-radius: 14px 14px 4px 14px;
  margin: 0;
  padding: 0.6rem 0.85rem;
}
.outreach-preview { margin-top: 0.75rem; padding: 0.75rem; background: var(--green-light); border: 1px solid #a7f3d0; border-radius: 10px; font-size: 0.8125rem; color: #065f46; }
.outreach-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; opacity: 0.8; }
.outreach-preview .pill { margin-top: 0.5rem; }
.mock-market { padding: 0.75rem; }
.market-feed { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.market-item { padding: 0.5rem 0.65rem; background: var(--bg-soft); border-radius: 8px; font-size: 0.75rem; border-left: 3px solid var(--border); }
.market-item.trending { border-left-color: var(--indigo); }
.market-item.competitor { border-left-color: var(--amber); }
.market-item.intent { border-left-color: var(--green); }
.market-item.sentiment { border-left-color: var(--purple); }
.market-tag { display: inline-block; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; padding: 0.1rem 0.4rem; border-radius: 4px; background: var(--bg-muted); margin-right: 0.35rem; }
.market-sources { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.market-sources span { font-size: 0.6875rem; font-weight: 600; padding: 0.2rem 0.5rem; background: var(--indigo-light); color: var(--indigo); border-radius: 999px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Capability sections */
.capability-block { margin-bottom: 2.5rem; }
.capability-block:last-child { margin-bottom: 0; }
.capability-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.capability-layout.reverse { direction: rtl; }
.capability-layout.reverse > * { direction: ltr; }
.capability-copy h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75rem; }
.capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.capability-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--fg-soft); min-width: 0; }
.capability-visual { padding: 1.5rem; min-height: 280px; display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; }

/* Inbound flow visualization */
.inbound-flow-viz { width: 100%; text-align: center; min-width: 0; }
.inbound-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.75rem; }
.source-node { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; font-size: 0.75rem; font-weight: 600; min-width: 0; }
.source-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.source-icon img { width: 14px; height: 14px; display: block; object-fit: contain; }
.source-icon.whatsapp { background: #ecfdf5; }
.source-icon.email { background: #fef2f2; }
.source-icon.facebook { background: #eff6ff; }
.source-icon.web { background: var(--indigo-light); }
.inbound-arrows { color: #c7d2fe; font-size: 1rem; letter-spacing: 0.5rem; margin-bottom: 0.75rem; }
.inbound-hub { display: inline-flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 1rem 1.25rem; max-width: 100%; background: linear-gradient(135deg, var(--indigo-light), var(--purple-light)); border: 2px solid #c7d2fe; border-radius: 16px; margin-bottom: 0.75rem; }
.inbound-hub .icon { width: 28px; height: 28px; color: var(--indigo); }
.inbound-hub strong { font-size: 1rem; color: var(--indigo); }
.inbound-hub span { font-size: 0.6875rem; color: var(--muted); }
.inbound-output { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.output-chip { font-size: 0.6875rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px; }
.output-chip.answered { background: var(--indigo-light); color: var(--indigo); }
.output-chip.qualified { background: var(--purple-light); color: var(--purple); }
.output-chip.handoff { background: var(--green-light); color: var(--green); }

/* Outbound flow visualization */
.outbound-flow-viz { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.signal-cloud { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }
.signal-bubble { font-size: 0.75rem; padding: 0.5rem 0.75rem; background: #fff; border: 1px dashed #c7d2fe; border-radius: 999px; color: var(--fg-soft); animation: float 5s ease-in-out infinite; max-width: 100%; box-sizing: border-box; }
.signal-bubble:nth-child(2) { animation-delay: -1.5s; margin-left: min(1rem, 4%); }
.signal-bubble:nth-child(3) { animation-delay: -3s; margin-left: min(0.5rem, 2%); }
.opportunity-stack { width: 100%; display: flex; flex-direction: column; gap: 0.5rem; }
.opp-card { padding: 0.65rem 0.85rem; border-radius: 10px; border: 1px solid var(--border); font-size: 0.8125rem; }
.opp-card strong { display: block; font-size: 0.75rem; margin-bottom: 0.15rem; }
.opp-card span { font-size: 0.6875rem; color: var(--muted); }
.opp-card.hot { background: #fef2f2; border-color: #fecaca; }
.opp-card.hot strong { color: #dc2626; }
.opp-card.warm { background: #fffbeb; border-color: #fde68a; }
.opp-card.warm strong { color: #d97706; }
.opp-card.nurture { background: var(--green-light); border-color: #a7f3d0; }
.opp-card.nurture strong { color: #059669; }

/* Market flow visualization */
.market-flow-viz { width: 100%; min-width: 0; }
.market-channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-bottom: 1rem; }
.market-channels span { font-size: 0.6875rem; font-weight: 600; padding: 0.25rem 0.6rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.market-collect { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; background: var(--indigo-light); border-radius: 10px; margin-bottom: 1rem; font-size: 0.8125rem; font-weight: 600; color: var(--indigo); }
.market-dashboard-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.dash-mini-row { display: flex; justify-content: space-between; align-items: center; gap: 0.35rem; padding: 0.65rem 0.75rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; font-size: 0.75rem; min-width: 0; }
.dash-mini-row span { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.dash-mini-row strong { flex-shrink: 0; white-space: nowrap; }
.dash-mini-row strong.up { color: var(--green); }
.dash-mini-row strong.highlight { color: var(--indigo); }
.dash-mini-row strong.positive { color: var(--green); }

/* Autonomous section */
.autonomous-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.autonomous-col h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--fg); }
.autonomous-col.human h3 { color: var(--indigo); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-soft); }
.section-gradient { background: linear-gradient(180deg, var(--bg-soft) 0%, #eef2ff 50%, var(--bg-soft) 100%); }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, #c7d2fe, #ddd6fe, transparent); margin: 0 auto; max-width: 600px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card-elevated { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.card-elevated:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--indigo-light); border-radius: 12px; color: var(--indigo); margin-bottom: 1rem; }
.card-icon.purple { background: var(--purple-light); color: var(--purple); }
.card-elevated h3 { margin-bottom: 0.5rem; }
.card-elevated p { color: var(--muted); font-size: 0.9375rem; }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit-card { padding: 1.75rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: all var(--transition); }
.benefit-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow); transform: translateY(-3px); }
.benefit-icon { width: 52px; height: 52px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--indigo-light), var(--purple-light)); border-radius: 14px; color: var(--indigo); }
.benefit-card h3 { margin-bottom: 0.35rem; font-size: 1rem; }
.benefit-card p { font-size: 0.875rem; color: var(--muted); }

/* AI section */
.ai-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.check-list { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 1.5rem; }
.check-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; color: var(--fg-soft); }

.ai-chat {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: var(--font);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.ai-chat.card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ai-chat-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: -2rem -2rem 0;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.ai-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
}
.ai-chat-header > div {
  min-width: 0;
  flex: 1 1 auto;
}
.ai-chat-header strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.ai-chat-header small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ai-chat-header .pill {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
}
.chat-bubble {
  padding: 1.125rem 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fg-soft);
  overflow-wrap: anywhere;
}
.chat-bubble.user {
  margin: 0 -2rem;
  padding: 1.125rem 2rem;
  background: var(--bg-soft);
}
.chat-bubble.ai {
  background: #fff;
  border-top: 1px solid var(--border-light);
}
.chat-bubble.draft {
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--green-light);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  color: #065f46;
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: text;
}
.chat-bubble.draft p {
  margin: 0;
}
.chat-bubble.draft strong {
  color: #064e3b;
}
.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  cursor: default;
}
.draft-actions .pill {
  cursor: text;
  user-select: text;
  padding: 0.45rem 1.1rem;
  font-size: 0.75rem;
}
.draft-actions .pill-primary {
  background: #94a3b8;
  color: #fff;
}
.draft-actions .pill-outline {
  background: transparent;
}
.draft-hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #047857;
  font-style: normal;
  line-height: 1.45;
  pointer-events: none;
  cursor: default;
  user-select: none;
}
.handoff-summary .draft-hint {
  color: var(--muted);
}

/* Bento product showcase */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 1.25rem; }
.mockup { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.mockup:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mockup-lg { grid-column: span 2; grid-row: span 2; }
.mockup-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; font-size: 0.8125rem; font-weight: 600; background: var(--bg-soft); border-bottom: 1px solid var(--border); color: var(--fg-soft); }
.mockup-body { padding: 1rem; min-height: 120px; }
.mockup-lg .mockup-body { min-height: 200px; padding: 1.25rem; }
.mock-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.75rem; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot.purple { background: var(--purple); }
.mock-dot.green { background: var(--green); }
.mock-progress { height: 6px; background: var(--bg-muted); border-radius: 999px; margin: 1rem 0 0.5rem; overflow: hidden; }
.mock-progress div { height: 100%; background: linear-gradient(90deg, var(--indigo), var(--purple)); border-radius: 999px; }
.mock-inbox-item { display: flex; justify-content: space-between; padding: 0.5rem 0.65rem; border-radius: 8px; font-size: 0.75rem; margin-bottom: 0.35rem; }
.mock-inbox-item.active { background: var(--indigo-light); border: 1px solid #c7d2fe; }
.mock-inbox-item span { color: var(--muted); font-size: 0.6875rem; }
.mock-signal { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.75rem; }
.mock-signal em { font-style: normal; font-weight: 700; color: var(--green); font-family: ui-monospace, monospace; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 100px; padding-top: 0.5rem; }
.mock-bars .bar { flex: 1; height: var(--h); background: linear-gradient(to top, var(--indigo), #a5b4fc); border-radius: 4px 4px 0 0; opacity: 0.85; }
.mock-team { display: flex; gap: 0.35rem; margin-bottom: 0.75rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--indigo-light); color: var(--indigo); font-size: 0.625rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.avatar.more { background: var(--bg-muted); color: var(--muted); }
.mock-caption { font-size: 0.6875rem; color: var(--muted); }

/* Infographic */
.infographic { display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; padding: 2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.info-step { text-align: center; padding: 1rem 1.5rem; }
.info-icon { width: 56px; height: 56px; margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--indigo-light), var(--purple-light)); border-radius: 16px; color: var(--indigo); }
.info-step h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.info-step p { font-size: 0.8125rem; color: var(--muted); }
.info-arrow { color: #c7d2fe; font-size: 1.5rem; font-weight: 300; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { padding: 1.75rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--indigo), var(--purple)); opacity: 0; transition: opacity var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 1rem; }
.feature-icon.indigo { background: var(--indigo-light); color: var(--indigo); }
.feature-icon.purple { background: var(--purple-light); color: var(--purple); }
.feature-icon.green { background: var(--green-light); color: var(--green); }
.feature-icon.blue { background: #dbeafe; color: var(--blue); }
.feature-icon.amber { background: #fef3c7; color: var(--amber); }
.feature-icon.violet { background: #ede9fe; color: #7c3aed; }
.feature-card h3 { margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--purple)); opacity: 0.2; }
.timeline-item { text-align: center; position: relative; }
.timeline-num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: #fff; border: 2px solid #c7d2fe; border-radius: 50%; font-size: 1rem; font-weight: 700; color: var(--indigo); margin-bottom: 1rem; position: relative; z-index: 1; box-shadow: var(--shadow); }
.timeline-item h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.timeline-item p { font-size: 0.8125rem; color: var(--muted); }

/* Integrations */
.integrations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.int-card { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.int-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.int-logo { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.int-logo img { width: 24px; height: 24px; display: block; object-fit: contain; }
.int-logo.gmail { background: #fef2f2; }
.int-logo.whatsapp { background: #ecfdf5; }
.int-logo.telegram { background: #eff6ff; }
.int-logo.reddit { background: #fff7ed; }
.int-logo.quora { background: #fef2f2; }
.int-logo.linkedin { background: #eff6ff; }
.int-logo.aws { background: #fffbeb; }
.int-logo.facebook { background: #eff6ff; }

/* Security */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.security-card { padding: 2rem 1.5rem; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.security-card:hover { border-color: #a7f3d0; box-shadow: var(--shadow); transform: translateY(-3px); }
.security-card .icon { color: var(--green); margin: 0 auto 1rem; }
.security-card h3 { margin-bottom: 0.35rem; font-size: 1rem; }
.security-card p { font-size: 0.8125rem; color: var(--muted); }

/* FAQ */
.faq-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.25rem; box-shadow: var(--shadow-sm); transition: border-color var(--transition); }
.faq-card[open] { border-color: #c7d2fe; box-shadow: var(--shadow); }
.faq-card summary { display: flex; align-items: center; gap: 0.75rem; padding: 1.125rem 0; font-weight: 600; cursor: pointer; list-style: none; font-size: 0.9375rem; }
.faq-card summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.25rem; }
.faq-card[open] summary::after { content: "−"; color: var(--indigo); }
.faq-card summary .icon { color: var(--indigo); }
.faq-card p { padding-bottom: 1.125rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

/* Request a Demo */
.demo-request-section {
  background: linear-gradient(135deg, var(--indigo-light) 0%, #fff 45%, var(--purple-light) 100%);
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}
.demo-request-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #e2e8f0 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}
.demo-request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: start;
  position: relative;
}
.demo-request-copy .section-lead { margin-top: 0.75rem; max-width: 520px; }
.demo-highlights {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.demo-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--fg-soft);
  line-height: 1.5;
}
.demo-highlights .icon-check { margin-top: 0.15rem; color: var(--green); }

.demo-request-panel.card-elevated {
  padding: 1.5rem 1.6rem 1.6rem;
  overflow: visible;
}
.demo-request-panel:hover { transform: translateY(-2px); }
.demo-request-panel .eyebrow {
  margin-bottom: 0.4rem;
  font-size: 0.6875rem;
}
.demo-request-panel h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-wrap: balance;
}
.demo-panel-lead {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  text-wrap: pretty;
}
.demo-value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.demo-value-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}
.demo-value-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--indigo-light);
  color: var(--indigo);
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.demo-value-icon .icon {
  width: 16px;
  height: 16px;
}
.demo-value-list li > div {
  min-width: 0;
  flex: 1;
}
.demo-value-list strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--fg);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}
.demo-value-list li > div > span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.demo-cta-block {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.demo-cta-copy {
  font-size: 0.8125rem;
  color: var(--fg-soft);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.demo-email-btn {
  width: 100%;
  flex-shrink: 0;
}
.site-nav .btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--fg); color: #94a3b8; padding: 3.5rem 0 1.5rem; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 0.75rem; max-width: 260px; }
.footer-grid h4 { color: #fff; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.75rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a { font-size: 0.875rem; transition: color var(--transition); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid #334155; text-align: center; font-size: 0.8125rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.15s; }

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
    max-width: 100%;
  }
  .container-narrow {
    max-width: 100%;
  }
  .section-lead,
  .section-lead.centered,
  .hero-subtitle,
  .hero-tagline,
  .demo-request-copy .section-lead,
  .footer-brand p {
    max-width: none;
  }
  .section-header {
    margin-bottom: 1.75rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  /* Flex + explicit order so Live box always sits after badge/headline on mobile */
  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-intro,
  .hero-visual,
  .hero-copy {
    grid-area: auto;
    width: 100%;
    align-self: stretch;
  }
  .hero-intro { order: 1; }
  .hero-visual { order: 2; min-height: 0; }
  .hero-copy { order: 3; }
  .hero-copy .hero-subtitle { margin-top: 0; }
  .ai-layout, .demo-layout, .capability-layout, .demo-request-layout { grid-template-columns: 1fr; }
  .capability-layout.reverse { direction: ltr; }
  .benefits-grid, .security-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
  }
  .benefits-grid {
    gap: 0.875rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
  }
  .benefit-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.125rem 1rem;
    box-sizing: border-box;
  }
  .benefit-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.65rem;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .benefit-card h3 {
    font-size: 0.9375rem;
  }
  .benefit-card p {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin: 0;
  }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .timeline-item { text-align: left; }
  .timeline-num { margin-left: 0; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .capability-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; top: 4.25rem; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; transform: translateY(-120%); opacity: 0; pointer-events: none; transition: all 0.25s; box-shadow: var(--shadow-lg); }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); }
  .site-nav a.btn { margin-top: 0.5rem; justify-content: center; }
  .hero { min-height: auto; padding-top: 6rem; }
  .logo-img { height: 2.75rem; max-width: 180px; }
  .logo-img-footer { height: 3.5rem; max-width: 240px; }
  .grid-2, .autonomous-grid { grid-template-columns: 1fr; }
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem 1rem;
    align-items: start;
    text-align: left;
    padding: 0 0 1.5rem;
    position: relative;
  }
  .timeline-item:last-child {
    padding-bottom: 0;
  }
  .timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--indigo), var(--purple));
    opacity: 0.2;
  }
  .timeline-num {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    font-size: 0.875rem;
    flex-shrink: 0;
  }
  .timeline-item h3 {
    font-size: 0.9375rem;
  }
  .timeline-item p {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .integrations-grid { gap: 0.75rem; }
  .int-card { padding: 1rem 0.75rem; gap: 0.5rem; }
  .int-logo { width: 40px; height: 40px; }
  .demo-request-panel.card-elevated { padding: 1.35rem 1.35rem 1.5rem; }
  .demo-tab-list { flex-direction: column; align-items: stretch; }
  .demo-tab { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 1.5rem; }
  .card-elevated { padding: 1.25rem; }
  .ai-chat.card-elevated { padding: 2rem; }
  .capability-visual { padding: 1rem; }
  .flow-header { flex-wrap: wrap; gap: 0.35rem; }
  .security-grid {
    gap: 0.75rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
  }
  .security-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0.85rem;
    box-sizing: border-box;
  }
  .security-card .icon {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
  }
  .security-card .icon-lg {
    width: 24px;
    height: 24px;
  }
  .security-card h3 {
    font-size: 0.9375rem;
  }
  .security-card p {
    font-size: 0.75rem;
    line-height: 1.45;
    margin: 0;
  }
  .market-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    justify-content: stretch;
  }
  .market-channels span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .market-channels span:last-child {
    grid-column: 1 / -1;
  }
  .market-dashboard-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .dash-mini-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
    padding: 0.65rem 0.5rem;
    min-height: 3.5rem;
  }
  .dash-mini-row span,
  .dash-mini-row strong {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
  }
  .dash-mini-row strong {
    flex-shrink: 1;
    font-size: 0.8125rem;
  }
  .market-collect {
    flex-wrap: wrap;
    text-align: center;
    padding: 0.65rem 0.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .inbound-sources { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .dash-mini-row { padding: 0.55rem 0.4rem; min-height: 3.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .ai-chat.card-elevated {
    padding: 1.25rem;
  }
  .ai-chat-header {
    margin: -1.25rem -1.25rem 0;
    padding: 1rem 1.25rem;
  }
  .ai-chat-header strong { font-size: 0.875rem; }
  .ai-chat-header .pill { margin-left: 0; }
  .chat-bubble { padding: 1rem 0; font-size: 0.8125rem; }
  .chat-bubble.user {
    margin: 0 -1.25rem;
    padding: 1rem 1.25rem;
  }
  .chat-bubble.draft {
    margin: 1rem 0 0;
    padding: 1.125rem;
  }
  .draft-actions {
    gap: 0.65rem;
    margin-top: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
