/* Chattbase — www.chattbase.site
   Design brief: docs/homepage.md. One stylesheet, no build step. */

:root {
  --ink: #0A1A3F;
  --ink-2: #26365A;
  --muted: #5A6784;
  --faint: #8A95AD;
  --line: #E4E9F2;
  --line-2: #EEF2F8;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --blue: #0B5CFF;
  --blue-2: #2F7BFF;
  --cyan: #1CC4FF;
  --blue-50: #EEF4FF;
  --blue-100: #DCE8FF;
  --grad: linear-gradient(135deg, #0B5CFF 0%, #1C8CFF 55%, #1CC4FF 100%);
  --wa: #25D366;
  --ig: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
  --ms: linear-gradient(200deg, #00C6FF 0%, #0068FF 100%);
  --amber: #F59E0B;
  --green: #16A34A;
  --dark: #060E24;
  --dark-2: #0C1733;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-hi: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 63, .06), 0 2px 8px -2px rgba(10, 26, 63, .06);
  --shadow: 0 1px 2px rgba(10, 26, 63, .05), 0 12px 32px -12px rgba(10, 26, 63, .18);
  --shadow-lg: 0 2px 4px rgba(10, 26, 63, .04), 0 40px 80px -24px rgba(10, 26, 63, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --nav-h: 68px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
[lang="ar"] { font-family: var(--font-ar); }
[lang="hi"] { font-family: var(--font-hi); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--blue-100); color: var(--ink); }

.ic { width: 18px; height: 18px; flex-shrink: 0; }
.bi { width: 20px; height: 20px; flex-shrink: 0; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
h1 {
  font-size: clamp(42px, 6.1vw, 82px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 800;
}
h2 {
  font-size: clamp(32px, 4.3vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; }
h1, h2 { text-wrap: balance; }
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.01em;
  line-height: .9;
  padding-right: .06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--muted); max-width: 34em; }
.lead-sm { font-size: 17px; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--blue-50); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .ic { width: 17px; height: 17px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2B74FF 0%, #0B5CFF 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(11, 92, 255, .4), 0 10px 24px -8px rgba(11, 92, 255, .6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(11, 92, 255, .4), 0 16px 32px -10px rgba(11, 92, 255, .7); }
.btn-soft { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.btn-soft:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #D3DBE9, var(--shadow); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: rgba(10, 26, 63, .05); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); }
.btn-white:hover { transform: translateY(-1px); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: box-shadow .2s;
}
.pill:hover { box-shadow: 0 0 0 1px var(--blue-100), var(--shadow); }
.pill .ic { width: 15px; height: 15px; color: var(--blue); }
.pill-tag { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(246, 248, 252, .9);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(10, 26, 63, .07);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; mix-blend-mode: multiply; }
.brand-word { font-size: 21px; font-weight: 800; letter-spacing: -0.035em; }
.brand-word span:last-child { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav-links a:hover { background: rgba(10, 26, 63, .05); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle .ic { width: 22px; height: 22px; }
.mobile-menu {
  position: absolute; top: var(--nav-h); left: 12px; right: 12px;
  padding: 10px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg);
  display: grid; gap: 2px;
}
.mobile-menu a { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.mobile-menu a:hover { background: var(--bg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 240vh; background: #fff; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center; padding-top: var(--nav-h);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 48%, rgba(28, 196, 255, .13), transparent 70%),
    radial-gradient(45% 55% at 68% 58%, rgba(11, 92, 255, .10), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fff 70%, var(--bg) 100%);
}
.hero-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(10, 26, 63, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 26, 63, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 60% at 70% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 60% at 70% 45%, #000 0%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; will-change: transform, opacity; }
.hero-copy h1 { margin-top: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ic { width: 16px; height: 16px; color: var(--blue); }

.hero-visual { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1; justify-self: center; }
.hero-canvas { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; mix-blend-mode: multiply; display: none; }
.has-frames .hero-canvas { display: block; }
.has-frames .hero-scene { display: none; }
.hero-scene { position: absolute; inset: 0; }

/* The tray itself multiplies: a blend mode on the <img> would stay trapped
   inside the transformed wrapper and show the logo's white square. */
.tray { position: absolute; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%); mix-blend-mode: multiply; }
.tray img { width: 100%; height: auto; }
.tray-ring {
  position: absolute; left: 50%; top: 58%; width: 76%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  box-shadow: 0 0 0 2px rgba(11, 92, 255, .35), 0 0 60px 10px rgba(28, 196, 255, .25);
}
.tray.pulse .tray-ring { animation: ring .7s var(--ease); }
@keyframes ring { from { opacity: 1; transform: translate(-50%, -50%) scale(.55); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }
.tray-badge {
  position: absolute; left: 70%; top: 33%; min-width: 34px; height: 34px; padding: 0 9px;
  display: grid; place-items: center; border-radius: 999px;
  background: #FF3B5C; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 4px #fff, 0 8px 20px -6px rgba(255, 59, 92, .7);
  transform: scale(0); transition: transform .35s var(--ease);
}
.tray-badge.on { transform: scale(1); }
.tray-badge.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.25); } }

.fly {
  position: absolute; left: 50%; top: 50%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 18px;
  background: #fff; color: var(--ink); white-space: nowrap;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px rgba(10, 26, 63, .06), 0 14px 34px -12px rgba(10, 26, 63, .28);
  will-change: transform, opacity;
  animation: float 5s ease-in-out infinite;
}
.fly:nth-child(odd) { animation-duration: 6s; animation-delay: -2s; }
.fly:nth-child(3n) { animation-duration: 7s; animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -7px; } }
.fly.product { padding: 6px 14px 6px 6px; border-radius: 16px; }
.fly.product b { display: block; font-size: 13.5px; }
.fly.product small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.fly.product .thumb { width: 42px; height: 42px; border-radius: 12px; }
.fly.out { background: var(--grad); color: #fff; padding: 9px 14px; opacity: 0; box-shadow: 0 16px 34px -12px rgba(11, 92, 255, .6); }
.fly.out .ic { width: 16px; height: 16px; }

.ch { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; flex-shrink: 0; }
.ch svg { width: 58%; height: 58%; }
.ch-wa { background: var(--wa); }
.ch-ig { background: var(--ig); }
.ch-ms { background: var(--ms); }

.thumb { display: inline-grid; place-items: center; border-radius: 10px; flex-shrink: 0; }
.thumb .ic { width: 50%; height: 50%; stroke-width: 1.5; }
.t-blue { background: linear-gradient(145deg, #DCE8FF, #B9D1FF); color: #0B4ED9; }
.t-sand { background: linear-gradient(145deg, #FBEBD6, #F2D3AE); color: #9A5B16; }
.t-mint { background: linear-gradient(145deg, #D9F7EA, #B2EBD2); color: #0F7A4F; }
.t-rose { background: linear-gradient(145deg, #FFE1E8, #FBC2D0); color: #B4234D; }
.t-ink { background: linear-gradient(145deg, #DDE3EE, #BCC7DA); color: #1E2B48; }
.t-lilac { background: linear-gradient(145deg, #EDE4FF, #D6C5FF); color: #5B32C7; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  transition: opacity .4s;
}
.scroll-cue span { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #C9D2E3; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--blue); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.scroll-cue.gone { opacity: 0; }

/* ---------- Strip ---------- */
.strip { background: var(--bg); border-block: 1px solid var(--line-2); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 28px; flex-wrap: wrap; }
.strip p { font-size: 14px; font-weight: 600; color: var(--muted); }
.strip-logos { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.strip-logos li { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: #6B7792; font-size: 15px; letter-spacing: -0.01em; }
.strip-logos .bi { width: 22px; height: 22px; }

/* ---------- Product tour ---------- */
.tour { position: relative; height: 420vh; background: var(--bg); }
.tour-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.tour .container { max-width: 1360px; }
.tour-grid { display: grid; grid-template-columns: minmax(280px, 330px) 1fr; gap: 48px; align-items: center; }
.tour-copy h2 { margin: 14px 0 28px; font-size: clamp(32px, 3.6vw, 48px); }
.tour-steps { display: grid; gap: 6px; }
.tour-steps button {
  width: 100%; text-align: left; display: flex; gap: 16px; padding: 14px 16px; border-radius: 16px;
  transition: background-color .3s, box-shadow .3s;
}
.tour-steps button:hover { background: rgba(255, 255, 255, .6); }
.step-num { font-size: 13px; font-weight: 800; color: var(--faint); padding-top: 3px; letter-spacing: .02em; transition: color .3s; }
.tour-steps strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--faint); transition: color .3s; }
.step-text { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 15px; color: var(--muted); transition: max-height .45s var(--ease), opacity .45s, margin .45s; }
.tour-steps li.active button { background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.tour-steps li.active .step-num { color: var(--blue); }
.tour-steps li.active strong { color: var(--ink); }
.tour-steps li.active .step-text { max-height: 140px; opacity: 1; margin-top: 4px; }
.tour-progress { margin: 22px 16px 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tour-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

.tour-stage { position: relative; min-width: 0; }
.app {
  position: relative; display: flex; flex-direction: column;
  height: min(640px, calc(100svh - var(--nav-h) - 64px));
  border-radius: 20px; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(10, 26, 63, .07), var(--shadow-lg);
  font-size: 13px;
}
.app-top { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line-2); background: #FBFCFE; flex-shrink: 0; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E3E8F1; }
.app-title { display: inline-flex; align-items: center; gap: 7px; margin: 0 auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.app-title img { border-radius: 4px; mix-blend-mode: multiply; }
.app-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--green); }
.app-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); animation: live 2s infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } }

.app-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 52px 250px minmax(0, 1fr) 210px; }
.app-rail { display: grid; align-content: start; justify-items: center; gap: 6px; padding: 12px 0; border-right: 1px solid var(--line-2); background: #FBFCFE; }
.app-rail span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--faint); }
.app-rail span.on { background: var(--blue-50); color: var(--blue); }

.app-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line-2); }
.list-head { padding: 12px; display: grid; gap: 10px; border-bottom: 1px solid var(--line-2); }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--bg); color: var(--faint); font-size: 12.5px; }
.search .ic { width: 15px; height: 15px; }
.chips { display: flex; gap: 6px; }
.chips span { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg); white-space: nowrap; }
.chips span.on { background: var(--ink); color: #fff; }
.chips b { color: var(--blue); }
.rows { flex: 1; overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 12px; border-bottom: 1px solid var(--line-2); }
.row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; }
.row.unread::before { background: var(--blue); }
.row.waiting::before { background: var(--amber); }
.row.done::before { background: #86D6A3; }
.row.sel { background: #F4F8FF; }
.row-main { flex: 1; min-width: 0; display: grid; }
.row-main b { font-size: 13px; font-weight: 700; }
.row-main span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.unread .row-main span { color: var(--ink-2); font-weight: 600; }
.row-meta { display: grid; justify-items: end; gap: 4px; }
.row-meta time { font-size: 11px; color: var(--faint); font-weight: 600; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; font-style: normal; color: #fff; background: var(--blue); }
.row.waiting .badge { background: var(--amber); }
.row.done .badge { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.row.waiting .dot { background: var(--amber); }
.row.done .dot { background: #86D6A3; }

.av {
  position: relative; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800; letter-spacing: .01em;
}
.av .ch { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; box-shadow: 0 0 0 2px #fff; }
.av.lg { width: 56px; height: 56px; font-size: 17px; }
.a1 { background: #DFEAFF; color: #0B4ED9; }
.a2 { background: #FFE8D5; color: #B8480F; }
.a3 { background: #DDF6E7; color: #147A3E; }
.a4 { background: #F0E6FF; color: #7A2BC9; }
.a5 { background: #FFE2EB; color: #B81E57; }
.a6 { background: #D9F5F8; color: #0D6F85; }
.a7 { background: #FEF1C7; color: #A5570B; }

.app-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: linear-gradient(180deg, #FCFDFF, #F7F9FD); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: #fff; }
.chat-who { display: grid; line-height: 1.3; }
.chat-who b { font-size: 13.5px; }
.chat-who small { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.chat-who small svg { width: 12px; height: 12px; color: var(--wa); }
.chat-tags { margin-left: auto; display: flex; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--blue-50); color: var(--blue); }
.chat-scroll { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 16px 8px; }
.msgs { display: flex; flex-direction: column; gap: 8px; }
.day { align-self: center; font-size: 11px; font-weight: 700; color: var(--faint); background: #fff; padding: 3px 10px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-2); }
.msg {
  position: relative; max-width: 78%; padding: 8px 12px; border-radius: 14px;
  font-size: 13px; line-height: 1.45; box-shadow: 0 1px 1px rgba(10, 26, 63, .05);
}
.msg time { display: inline-flex; align-items: center; gap: 3px; float: right; margin: 6px 0 -3px 10px; font-size: 10.5px; color: var(--faint); font-weight: 600; }
.msg time .ic { width: 14px; height: 14px; color: var(--blue); }
.msg.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(10, 26, 63, .04); }
.msg.out { align-self: flex-end; background: #E7F0FF; border-bottom-right-radius: 4px; }
.msg.ai { background: linear-gradient(#F3F0FF, #F3F0FF) padding-box, linear-gradient(135deg, #7C5CFF, #1CC4FF) border-box; border: 1px solid transparent; }
.ai-label { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; font-size: 11px; font-weight: 800; color: #6D4AFF; letter-spacing: .01em; }
.ai-label .ic { width: 13px; height: 13px; }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8B7BFF; animation: typing 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg.catalog { padding: 8px; max-width: 86%; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cat { display: grid; gap: 1px; font-size: 11.5px; }
.cat .thumb { width: 100%; aspect-ratio: 1; margin-bottom: 4px; }
.cat b { font-size: 11.5px; }
.cat small { color: var(--muted); font-size: 11px; }
.cat-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 7px; border-radius: 10px; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 12px; }
.cat-btn .ic { width: 14px; height: 14px; }
.msg.cart { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.msg.cart small { display: block; color: var(--muted); font-size: 11.5px; }
.msg.cart strong { margin-left: auto; font-size: 13px; }
.cart-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #DDF6E7; color: #147A3E; }
.cart-ic .ic { width: 16px; height: 16px; }
.msg.sys { align-self: center; max-width: 92%; display: flex; align-items: center; gap: 10px; background: #fff; box-shadow: 0 0 0 1px #CDEBD8, 0 10px 24px -14px rgba(22, 163, 74, .5); }
.msg.sys b { display: block; font-size: 12.5px; }
.msg.sys small { display: block; color: var(--muted); font-size: 11.5px; }
.order-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #EAF7EE; color: #5E8E3E; }
.order-ic svg { width: 18px; height: 18px; }
.ic.ok { color: var(--green); }

.composer { display: flex; align-items: center; gap: 6px; margin: 0 12px 12px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.cbtn { position: relative; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: background-color .3s, color .3s; }
.cbtn .ic { width: 16px; height: 16px; }
.cbtn.hot { background: var(--blue); color: #fff; }
.cbtn.hot::after { content: ""; position: absolute; inset: -4px; border-radius: 13px; border: 2px solid var(--blue); animation: hot 1.2s var(--ease) infinite; }
@keyframes hot { from { opacity: .8; transform: scale(.9); } to { opacity: 0; transform: scale(1.3); } }
.cinput { flex: 1; color: var(--faint); font-size: 12.5px; padding-left: 4px; }
.csend { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.csend .ic { width: 15px; height: 15px; }

.app-side { border-left: 1px solid var(--line-2); padding: 16px 14px; display: grid; align-content: start; gap: 16px; overflow: hidden; }
.side-card { display: grid; justify-items: center; text-align: center; gap: 2px; }
.side-card .av { margin-bottom: 8px; }
.side-card b { font-size: 14px; }
.side-card small { color: var(--muted); font-size: 11.5px; }
.side-tags { display: flex; gap: 5px; margin-top: 8px; }
.side-kv { margin: 0; display: grid; gap: 8px; padding: 12px 0; border-block: 1px solid var(--line-2); }
.side-kv div { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.side-kv dt { color: var(--muted); }
.side-kv dd { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 1px 6px; border-radius: 6px; transition: background-color .4s, color .4s; }
.side-kv dd.hl { background: #FFF6D6; }
.mini-av { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: #FFE8D5; color: #B8480F; }
.side-orders { display: grid; gap: 6px; }
.side-orders p { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.side-orders p svg { width: 14px; height: 14px; color: #5E8E3E; }
.order { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 12px; }
.order span { color: var(--muted); }
.order em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.order em.ok { background: #E4F6EA; color: #147A3E; }
.order em.ship { background: #FFF1D6; color: #A5570B; }
.order.new { background: #F1FBF4; box-shadow: 0 0 0 1px #C5EAD2; }

.toast {
  position: absolute; left: 50%; top: 52px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 16px 34px -12px rgba(10, 26, 63, .55);
}
.toast .ic { color: #6EE7A0; width: 17px; height: 17px; }

/* scroll-linked visibility inside the app window */
.app [data-at]:not(.on) { display: none; }
.app .msg[data-at].on, .app .row[data-at].on { animation: pop .45s var(--ease) both; }
.app .row[data-at].on { animation-name: rowIn; }
.app .toast.on { animation: toastIn .5s var(--ease) both; }
.app .tag[data-at].on { animation: pop .4s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; height: 0; } to { opacity: 1; height: 62px; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.section-tint { background: linear-gradient(180deg, var(--bg), #EEF3FB 100%); }
.sec-head { display: grid; justify-items: center; text-align: center; gap: 16px; max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); }
.sec-head p:not(.eyebrow) { font-size: 18px; color: var(--muted); max-width: 40em; }
.sec-head a { color: var(--blue); font-weight: 600; }
.sec-head-left { justify-items: start; text-align: left; margin-inline: 0; }

.card { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 0 0 1px rgba(10, 26, 63, .06), var(--shadow-sm); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.card:hover { box-shadow: 0 0 0 1px rgba(10, 26, 63, .08), var(--shadow); }
.card h3 { margin: 16px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-100); flex-shrink: 0; }
.card-ic .ic { width: 20px; height: 20px; }

.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(24px); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.b-live { grid-column: span 4; grid-row: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.b-live .card-copy { align-self: start; }
.b-live .card-copy h3 { font-size: 24px; letter-spacing: -0.02em; }
.b-live .card-copy p { font-size: 16px; }
.b-states, .b-assign, .b-notes, .b-voice, .b-reliable { grid-column: span 2; }
.b-brands, .b-mobile { grid-column: span 3; }
.live-list { position: relative; height: 100%; min-height: 340px; overflow: hidden; border-radius: 18px; background: var(--bg); padding: 10px; box-shadow: inset 0 0 0 1px var(--line-2); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.live-row { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); font-size: 13px; }
.live-row .row-main span { font-size: 12.5px; }
.live-row.enter { animation: liveIn .6s var(--ease) both; }
@keyframes liveIn { from { opacity: 0; transform: translateY(-16px) scale(.98); margin-top: -64px; } to { opacity: 1; transform: none; margin-top: 0; } }
.states { display: grid; gap: 8px; margin-top: 18px; }
.states li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-weight: 600; font-size: 14px; }
.states b { margin-left: auto; font-size: 13px; color: var(--muted); }
.states i { width: 10px; height: 10px; border-radius: 50%; }
.s-blue { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.s-amber { background: var(--amber); box-shadow: 0 0 0 4px #FEF3C7; }
.s-green { background: #4CC77A; box-shadow: 0 0 0 4px #E4F6EA; }
.assign-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.stack { display: flex; margin-right: 6px; }
.stack i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 3px #fff; margin-left: -8px; }
.stack i:first-child { margin-left: 0; }
.note-demo { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: #FFF8DB; box-shadow: inset 0 0 0 1px #F7E6A3; font-size: 14px; color: #6B4E00; }
.note-demo b { color: #9A6B00; }
.wave { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--bg); }
.wave .play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.wave .play .ic { width: 15px; height: 15px; fill: currentColor; }
.wave .bars { flex: 1; height: 28px; background: repeating-linear-gradient(90deg, #A9C2F5 0 3px, transparent 3px 6px); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 12h4v4H0zM6 8h4v12H6zM12 4h4v20h-4zM18 10h4v8h-4zM24 6h4v16h-4zM30 2h4v24h-4zM36 9h4v10h-4zM42 5h4v18h-4zM48 11h4v6h-4zM54 7h4v14h-4zM60 3h4v22h-4zM66 9h4v10h-4zM72 6h4v16h-4zM78 10h4v8h-4zM84 4h4v20h-4zM90 8h4v12h-4zM96 11h4v6h-4zM102 7h4v14h-4zM108 10h4v8h-4zM114 12h4v4h-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 12h4v4H0zM6 8h4v12H6zM12 4h4v20h-4zM18 10h4v8h-4zM24 6h4v16h-4zM30 2h4v24h-4zM36 9h4v10h-4zM42 5h4v18h-4zM48 11h4v6h-4zM54 7h4v14h-4zM60 3h4v22h-4zM66 9h4v10h-4zM72 6h4v16h-4zM78 10h4v8h-4zM84 4h4v20h-4zM90 8h4v12h-4zM96 11h4v6h-4zM102 7h4v14h-4zM108 10h4v8h-4zM114 12h4v4h-4z'/%3E%3C/svg%3E"); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; background: linear-gradient(90deg, var(--blue) 40%, #B9CCF3 40%); }
.wave small { font-size: 12px; font-weight: 700; color: var(--muted); }
.flow { display: flex; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.flow span { padding: 6px 10px; border-radius: 10px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.flow span.ok { background: #E4F6EA; color: #147A3E; box-shadow: inset 0 0 0 1px #C5EAD2; }
.flow i { width: 14px; height: 2px; background: repeating-linear-gradient(90deg, var(--faint) 0 3px, transparent 3px 5px); }
.ws { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ws span { padding: 8px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.ws span.on { background: var(--ink); color: #fff; box-shadow: none; }
.channels-row { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.channels-row .ch { width: 34px; height: 34px; }
.channels-row small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-rev { grid-template-columns: 1.1fr 1fr; }
.split-rev .split-copy { order: 0; }
.split-copy { display: grid; gap: 18px; justify-items: start; }
.checks { display: grid; gap: 12px; margin-top: 6px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); font-weight: 500; }
.checks .ic { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--grad); color: #fff; stroke-width: 3; margin-top: 1px; box-shadow: 0 4px 10px -4px rgba(11, 92, 255, .6); }

/* Catalog demo */
#catalog .split { grid-template-columns: 1fr 1.25fr; }
.catalog-demo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: center; }
.picker { background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: 0 0 0 1px rgba(10, 26, 63, .06), var(--shadow); display: grid; gap: 16px; }
.picker-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.picker-head span { font-size: 13px; font-weight: 600; color: var(--blue); }
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prod { position: relative; display: grid; gap: 2px; padding: 8px; border-radius: 16px; text-align: left; background: var(--bg); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background-color .2s, transform .2s var(--ease); }
.prod:hover { transform: translateY(-2px); }
.prod .thumb { width: 100%; aspect-ratio: 1; border-radius: 12px; margin-bottom: 6px; }
.prod b { font-size: 12.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod small { font-size: 12px; color: var(--muted); font-weight: 600; }
.prod i { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: transparent; box-shadow: inset 0 0 0 1.5px #C9D2E3; transition: background-color .2s, color .2s, box-shadow .2s; }
.prod i .ic { width: 13px; height: 13px; stroke-width: 3; }
.prod.on { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.prod.on i { background: var(--blue); color: #fff; box-shadow: none; }

.phone {
  position: relative; width: 100%; max-width: 300px; height: 540px; justify-self: center;
  display: flex; flex-direction: column; border-radius: 40px; padding: 10px;
  background: #0E1628; box-shadow: 0 0 0 1px rgba(10, 26, 63, .2), 0 40px 80px -30px rgba(10, 26, 63, .5);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #0E1628; z-index: 2; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 40px 14px 12px; background: #F7F7F4; border-radius: 30px 30px 0 0; font-size: 13px; }
.phone-top .av { width: 34px; height: 34px; font-size: 11.5px; }
.phone-top span:last-child { display: grid; line-height: 1.25; }
.phone-top small { color: var(--muted); font-size: 11.5px; }
.phone-chat {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 12px; border-radius: 0 0 30px 30px;
  background-color: #EFEAE2;
  background-image: radial-gradient(rgba(120, 100, 70, .09) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.phone .msg { max-width: 86%; font-size: 13.5px; }
.phone .msg.in { box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.phone .msg.out { background: #D9FDD3; }
.phone .msg.ai { background: linear-gradient(#F2FDF0, #F2FDF0) padding-box, linear-gradient(135deg, #7C5CFF, #1CC4FF) border-box; }
.catmsg { padding: 6px; min-width: 88%; }
.catmsg-title { font-size: 13px; font-weight: 700; padding: 4px 6px 8px; }
.catmsg-list { display: grid; gap: 4px; }
.catmsg-item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .65); font-size: 12.5px; animation: pop .4s var(--ease) both; }
.catmsg-item .thumb { width: 36px; height: 36px; border-radius: 8px; }
.catmsg-item b { display: block; font-size: 12.5px; }
.catmsg-item small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.catmsg-btn { display: block; margin-top: 6px; padding: 8px; text-align: center; border-top: 1px solid rgba(0, 0, 0, .07); color: #0A7CFF; font-weight: 700; font-size: 13px; }
.catmsg time { margin: 2px 4px 0; }
.catmsg.sending time .ic { color: var(--faint); }
.catmsg.bump { animation: pop .45s var(--ease); }
.phone .msg.cart { min-width: 0; }

/* Integrations */
.int-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.int-shopify { padding: 32px; background: radial-gradient(90% 60% at 100% 0%, rgba(149, 191, 71, .14), transparent 60%), #fff; display: grid; gap: 22px; align-content: start; }
.int-head { display: flex; align-items: center; gap: 14px; }
.int-head h3 { margin: 0; font-size: 24px; }
.int-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.int-logo svg { width: 24px; height: 24px; }
.int-logo.shopify { width: 56px; height: 56px; border-radius: 16px; background: #95BF47; color: #fff; }
.int-logo.shopify svg { width: 30px; height: 30px; }
.int-logo.wa { background: #E3F9EC; color: #1DA851; }
.int-logo.ig { background: #FCE7F1; color: #D62976; }
.int-logo.ms { background: #E3F0FF; color: #0A7CFF; }
.int-logo.meta { background: #E8EEFF; color: #0668E1; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status.live { background: #E4F6EA; color: #147A3E; }
.status.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.soon { background: #FFF1D6; color: #A5570B; }
.int-mock { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.int-mock .order { background: #fff; font-size: 13px; padding: 10px 12px; }
.int-mock .order span:nth-of-type(1) { flex: 1; color: var(--ink-2); font-weight: 600; }
.int-side { display: grid; gap: 20px; }
.int-group h3 { margin: 0 0 14px; font-size: 17px; }
.int-list { display: grid; gap: 10px; }
.int-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.int-list .status { margin-left: auto; }
.int-list .int-logo { width: 38px; height: 38px; }
.int-list .int-logo svg { width: 20px; height: 20px; }
.int-soon { display: flex; flex-wrap: wrap; gap: 8px; }
.int-soon li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.int-soon svg { width: 18px; height: 18px; color: #7C88A3; }
.yc { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: #7C88A3; color: #fff; font-size: 11px; font-weight: 800; }
.soon-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; }
.soon-note a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; }
.soon-note .ic { width: 15px; height: 15px; }

/* AI (dark) */
.section-dark { background: var(--dark); color: #E7ECF7; overflow: hidden; }
.section-dark .sec-head p:not(.eyebrow) { color: #9AA8C7; }
.section-dark .eyebrow { color: #7FB0FF; }
.section-dark .eyebrow::before { box-shadow: 0 0 0 4px rgba(127, 176, 255, .15); }
.section-dark h2 { color: #fff; }
.ai-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 30% 30%, rgba(11, 92, 255, .28), transparent 70%), radial-gradient(40% 40% at 80% 70%, rgba(124, 92, 255, .18), transparent 70%); }
.ai-glow::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%); }
.section-dark .container { position: relative; }
.ai-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: start; }
.ai-demo { border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -40px rgba(0, 0, 0, .8); padding: 18px; display: grid; gap: 14px; }
.ai-demo-top { display: flex; align-items: center; gap: 12px; }
.ai-demo-top > span:nth-child(2) { display: grid; line-height: 1.3; }
.ai-demo-top b { color: #fff; font-size: 15px; }
.ai-demo-top small { color: #8EA0C4; font-size: 12.5px; }
.ai-demo-top .btn { margin-left: auto; }
.ai-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #7C5CFF, #1CC4FF); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .8); }
.ai-avatar .ic { width: 20px; height: 20px; }
.ai-chat { height: 400px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(3, 8, 22, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ai-chat .msg { font-size: 14px; animation: pop .45s var(--ease) both; }
.ai-chat .msg.in { background: #16213F; color: #E7ECF7; box-shadow: none; }
.ai-chat .msg.out { background: linear-gradient(135deg, rgba(124, 92, 255, .95), rgba(28, 140, 255, .95)); color: #fff; }
.ai-chat .msg.out .ai-label { color: rgba(255, 255, 255, .85); }
.ai-chat .msg.typing { background: rgba(124, 92, 255, .25); }
.ai-chat .msg.typing i { background: #C9BFFF; }
.ai-chat .msg.sys { background: rgba(22, 163, 74, .12); box-shadow: inset 0 0 0 1px rgba(110, 231, 160, .3); color: #D5F7E2; }
.ai-chat .msg.sys small { color: #8FD9AE; }
.ai-chat .order-ic { background: rgba(149, 191, 71, .2); color: #B7DC7A; }
.ai-chat .cat-cards { gap: 6px; }
.ai-chat .msg.catalog { background: #16213F; color: #E7ECF7; box-shadow: none; }
.ai-chat .cat small { color: #8EA0C4; }
.guardrails { display: flex; flex-wrap: wrap; gap: 8px; }
.guardrails li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #C8D3EC; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.guardrails .ic { width: 15px; height: 15px; color: #7FB0FF; }
.ai-cards { display: grid; gap: 12px; }
.ai-card { display: flex; gap: 16px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background-color .3s, box-shadow .3s; }
.ai-card:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(127, 176, 255, .3); }
.ai-card h3 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.ai-card p { color: #9AA8C7; font-size: 14.5px; }
.section-dark .card-ic { background: rgba(127, 176, 255, .1); color: #8DB8FF; box-shadow: inset 0 0 0 1px rgba(127, 176, 255, .2); }

/* Languages */
.lang-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lang-tabs button { padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: #fff; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); transition: background-color .25s, color .25s, box-shadow .25s; }
.lang-tabs button:hover { box-shadow: 0 0 0 1px #C9D5EA; }
.lang-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(10, 26, 63, .5); }
.lang-demo { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone-lg { max-width: 320px; height: 520px; z-index: 1; }
.lang-demo .phone-chat { justify-content: center; gap: 12px; }
.lang-demo .msg { transition: opacity .3s, transform .3s var(--ease); }
.lang-demo.swap .msg { opacity: 0; transform: translateY(6px); }
.lang-demo .phone-chat[dir="rtl"] .msg.in { align-self: flex-end; border-radius: 14px 14px 14px 14px; border-bottom-right-radius: 4px; }
.lang-demo .phone-chat[dir="rtl"] .msg.out { align-self: flex-start; border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.lang-demo .msg { font-size: 15px; line-height: 1.5; }
.lang-orbit { position: absolute; inset: 0; pointer-events: none; }
.lang-orbit span { position: absolute; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 15px; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line), var(--shadow); animation: float 6s ease-in-out infinite; }
.lang-orbit span:nth-child(1) { left: 2%; top: 14%; }
.lang-orbit span:nth-child(2) { right: 0; top: 8%; animation-delay: -1s; }
.lang-orbit span:nth-child(3) { left: 0; top: 52%; animation-delay: -2s; }
.lang-orbit span:nth-child(4) { right: 2%; top: 44%; animation-delay: -3s; }
.lang-orbit span:nth-child(5) { left: 8%; bottom: 10%; animation-delay: -4s; }
.lang-orbit span:nth-child(6) { right: 6%; bottom: 16%; animation-delay: -5s; }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 26, 63, .06), var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feat:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(11, 92, 255, .18), var(--shadow); }
.feat h3 { font-size: 16.5px; margin: 16px 0 6px; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, #C9D5EA 0 6px, transparent 6px 12px); }
.steps li { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 0 12px; }
.step-badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 0 0 8px var(--bg), 0 14px 30px -10px rgba(11, 92, 255, .6); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; max-width: 28em; }

/* Pricing */
.trial-banner { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto 40px; padding: 14px 14px 14px 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--blue-100), var(--shadow); }
.trial-banner > div { display: grid; line-height: 1.35; margin-right: auto; }
.trial-banner b { font-size: 16px; }
.trial-banner > div > span { color: var(--muted); font-size: 14.5px; }
.trial-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); flex-shrink: 0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px rgba(10, 26, 63, .07), var(--shadow-sm); }
.plan.popular { background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 30px 60px -30px rgba(11, 92, 255, .5); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 18px -6px rgba(11, 92, 255, .6); }
.plan-name { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin: 8px 0 4px; }
.plan-price b { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan-price span { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan-tagline { font-size: 14px; color: var(--muted); min-height: 42px; margin-bottom: 12px; }
.plan-sec { padding: 14px 0; border-top: 1px dashed var(--line); }
.plan-sec h4 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.plan-sec p { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.plan-sec p small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.plan-sec a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.plan-feats { display: grid; gap: 7px; }
.plan-feats li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.plan-feats .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--blue); color: #fff; stroke-width: 3; }
.plan .btn { margin-top: auto; }
.plan-sec:last-of-type { margin-bottom: 18px; }
/* Subgrid lines up each section across the four cards. */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 10; grid-template-rows: subgrid; row-gap: 0; }
}
.plans-hint { display: none; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.plans-hint .ic { width: 15px; height: 15px; }
.fine { max-width: 720px; margin-inline: auto; margin-top: 28px; text-align: center; font-size: 13.5px; color: var(--muted); }
.fine a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-wrap .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 26, 63, .07); transition: box-shadow .3s; }
.faq details[open] { box-shadow: 0 0 0 1px var(--blue-100), var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; cursor: pointer; list-style: none; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 20px; height: 20px; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); font-size: 15.5px; }
.faq details p a { color: var(--blue); text-decoration: underline; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* CTA */
.cta-section { padding-top: 0; }
.cta {
  position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 20px;
  padding: clamp(56px, 8vw, 96px) 24px; border-radius: var(--r-xl);
  background: radial-gradient(60% 80% at 50% 0%, rgba(28, 196, 255, .35), transparent 70%), linear-gradient(160deg, #0B5CFF 0%, #0A2A8A 55%, #071640 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 80%); mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 80%); }
.cta > * { position: relative; z-index: 1; }
.cta-mark { width: 88px; height: 88px; padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); }
.cta h2 { color: #fff; }
.cta h2 em { background: linear-gradient(90deg, #9FE3FF, #fff); -webkit-background-clip: text; background-clip: text; }
.cta p { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 34em; }
.cta .hero-actions { justify-content: center; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--line-2); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 26em; }
.footer nav { display: grid; align-content: start; gap: 10px; }
.footer h4 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer nav a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.footer nav a:hover { color: var(--blue); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--faint); }

/* Dialog */
.dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(6, 14, 36, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialogIn .35s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog-close-form { position: absolute; top: 14px; right: 14px; }
.dialog-x { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.dialog-x:hover { background: var(--bg); }
.trial-form { display: grid; gap: 14px; padding: 32px 28px 28px; }
.trial-form img { width: 48px; height: 48px; border-radius: 14px; mix-blend-mode: multiply; }
.trial-form h2 { font-size: 26px; letter-spacing: -0.03em; }
.trial-form > p { color: var(--muted); font-size: 15px; margin-top: -6px; }
.trial-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.trial-form input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.trial-form input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-50); }
.trial-form .form-error { color: #C0262D; font-size: 14px; font-weight: 600; margin: 0; }
.trial-form .form-note { font-size: 13px; color: var(--faint); text-align: center; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .app-body { grid-template-columns: 52px 250px minmax(0, 1fr); }
  .app-side { display: none; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .tour-grid { grid-template-columns: 300px 1fr; gap: 32px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-live { grid-column: span 2; grid-row: auto; }
  .b-states, .b-assign, .b-notes, .b-voice, .b-reliable, .b-brands, .b-mobile { grid-column: span 1; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .split, .split-rev, #catalog .split { grid-template-columns: 1fr; }
  .catalog-demo { max-width: 720px; }
  .lang-demo { order: 2; }
  .int-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 8px; }
  .faq-wrap .sec-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .hero { height: 200vh; }
  .hero-sticky { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; }
  .hero-copy { gap: 16px; }
  .hero-visual { width: clamp(220px, calc(100svh - 480px), 360px); max-width: none; margin-top: -8px; }
  .hero-meta li:nth-child(n+2) { display: none; }
  .scroll-cue { display: none; }

  .tour { height: 380vh; }
  .tour-sticky { align-items: stretch; }
  .tour-grid { display: flex; flex-direction: column; gap: 14px; padding-block: 16px 20px; }
  .tour-stage { flex: 1; min-height: 0; display: flex; }
  .tour-copy .eyebrow { display: none; }
  .tour-copy h2 { margin: 0 0 12px; font-size: 28px; }
  .tour-steps li:not(.active) { display: none; }
  .tour-steps button { padding: 12px 14px; }
  .tour-progress { margin: 12px 4px 0; }
  .app { flex: 1; width: 100%; height: auto; min-height: 0; max-height: 600px; max-width: 440px; margin-inline: auto; }
  .app-body { grid-template-columns: 1fr; }
  .app-rail { display: none; }
  .app-list, .app-chat { grid-area: 1 / 1; transition: opacity .35s, transform .45s var(--ease); }
  .app-list { border-right: 0; }
  .app[data-stage="0"] .app-chat, .app:not([data-stage="0"]) .app-list { opacity: 0; transform: translateX(16px); pointer-events: none; }
  .app:not([data-stage="0"]) .app-list { transform: translateX(-16px); }
  .chat-tags { display: none; }

  .catalog-demo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  h1 { font-size: clamp(38px, 11vw, 48px); }
  .lead { font-size: 16px; }
  .btn-lg { height: 50px; padding: 0 20px; font-size: 15.5px; }
  .nav-signin { display: none; }
  .nav .btn-primary { height: 40px; padding: 0 14px; font-size: 14px; }
  .brand-word { font-size: 19px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-copy .btn-soft, .hero-copy .pill { display: none; }
  .fly { font-size: 12.5px; padding: 6px 11px 6px 6px; }
  .fly .ch { width: 22px; height: 22px; }
  .fly.product .thumb { width: 34px; height: 34px; }
  .strip-inner { justify-content: center; text-align: center; }
  .strip-logos { justify-content: center; gap: 12px 22px; }
  .bento, .feat-grid { grid-template-columns: 1fr; }
  .plans {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 320px); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 18px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { scroll-snap-align: start; }
  .plans-hint { display: flex; }
  .b-live { grid-column: auto; grid-template-columns: 1fr; }
  .b-states, .b-assign, .b-notes, .b-voice, .b-reliable, .b-brands, .b-mobile { grid-column: auto; }
  .live-list { height: 280px; min-height: 0; }
  .card { padding: 22px; }
  .picker-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .prod b { font-size: 12px; }
  .trial-banner { flex-wrap: wrap; }
  .trial-banner .btn { width: 100%; }
  .lang-demo { min-height: 0; }
  .lang-orbit { display: none; }
  .int-shopify { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec-head p:not(.eyebrow) { font-size: 16.5px; }
}
@media (max-height: 700px) and (max-width: 900px) {
  .hero-copy .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-copy .pill { display: none; }
}

/* ---------- Reduced motion: no pinning, final states ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero, .tour { height: auto; }
  .hero-sticky, .tour-sticky { position: relative; height: auto; min-height: 100svh; padding-block: calc(var(--nav-h) + 40px) 60px; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  .tour-steps li .step-text { max-height: none; opacity: 1; }
  .scroll-cue { display: none; }
}
