/* ============================================================
   CRM-G Platform — Unified Landing CSS (v2)
   Set B: Enterprise Hybrid (dark immersive band + light body)

   Used by:
   - static/landing/index.html       (crmg.ai — umbrella product picker)
   - static/landing/gateway.html     (app.crmg.ai — Gateway marketing)

   Legacy pages (signup, contact, pricing) continue to use landing.css.
   ============================================================ */

/* ---- Brand identity tokens (shared) ---- */
:root {
  --brand-platform: "CRM-G";
  --brand-gateway:  "CRM-G Gateway";
  --brand-sales:    "CRM-G Sales";

  /* Master brand palette — drawn from the original landing's matte feel */
  --brand-indigo:   #667eea;
  --brand-violet:   #9b7fe6;
  --brand-cyan:     #5eead4;
  --brand-blue:     #3b82f6;

  --gateway-accent:       #9b7fe6;
  --gateway-accent-soft:  rgba(155, 127, 230, 0.12);
  --sales-accent:         #0d9488;
  --sales-accent-soft:    rgba(13, 148, 136, 0.12);

  /* Status / utility */
  --status-ok:     #10b981;
  --status-warn:   #f59e0b;
  --status-err:    #ef4444;
  --status-info:   #3b82f6;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* DARK band tokens — match the original navy so the logo halo blends */
  --dark-bg:        #0f0f23;
  --dark-bg-elev:   #16162e;
  --dark-text:      #e8e9f3;
  --dark-text-2:    #a3a6c2;
  --dark-text-3:    #7a7d99;
  --dark-border:    rgba(255, 255, 255, 0.06);
  --dark-border-2:  rgba(255, 255, 255, 0.14);

  /* LIGHT body tokens */
  --bg:           #f8fafc;
  --bg-soft:      #eef2f7;
  --bg-card:      #ffffff;
  --bg-card-2:    #fafbfd;
  --border:       #e2e8f0;
  --border-strong:#cbd5e1;

  --text:         #0f172a;
  --text-2:       #334155;
  --text-3:       #64748b;
  --text-muted:   #94a3b8;

  --navy:         #1e293b;
  --navy-2:       #1e3a5f;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #667eea 0%, #9b7fe6 55%, #5eead4 100%);
  --grad-gateway: linear-gradient(135deg, #667eea 0%, #9b7fe6 100%);
  --grad-sales:   linear-gradient(135deg, var(--navy-2) 0%, var(--sales-accent) 100%);

  --grad-darkband: radial-gradient(ellipse at 18% -10%, rgba(102, 126, 234, 0.22) 0%, transparent 55%),
                   radial-gradient(ellipse at 82% 105%, rgba(118, 75, 162, 0.18) 0%, transparent 55%),
                   linear-gradient(180deg, #0f0f23 0%, #14142b 100%);

  --shadow-sm:   0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md:   0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg:   0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.22);
}

/* ───── reset (scoped to v2 root, doesn't touch chat widget defaults) ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ───── layout ───── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }

/* =======================================================
   DARK BAND  — sticky top nav + hero in dark (logo's habitat)
   ======================================================= */
.darkband {
  position: relative;
  background: var(--grad-darkband);
  color: var(--dark-text);
  overflow: hidden;
}
.darkband::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: 420px; height: 420px; top: -140px; left: -120px;
  border-radius: 50%; filter: blur(90px); opacity: 0.45;
  background: #667eea;
}
.darkband::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: 320px; height: 320px; bottom: -120px; right: -80px;
  border-radius: 50%; filter: blur(90px); opacity: 0.4;
  background: #764ba2;
}
.darkband > * { position: relative; z-index: 1; }
/* Lift the nav container above the hero so the Sign-in dropdown can
   paint over the hero's .frame (which forms its own stacking context
   via `backdrop-filter`). Without this, the menu renders behind it. */
.darkband > .container:first-of-type { z-index: 10; }
.switcher__menu { z-index: 20; }
.darkband-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

/* ───── nav (in dark band) ───── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0;
  border-bottom: 1px solid var(--dark-border);
  position: relative;
}
/* localized halo behind brand area so the logo PNG halo blends */
.topbar::before {
  content: ""; position: absolute; left: -40px; top: -20px;
  width: 320px; height: 130px; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(102, 126, 234, 0.22), transparent 70%);
  filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
/* mix-blend-mode: screen drops the PNG's dark halo so only the teal/blue
   glow remains. Fixes the visible black rectangle around the logo on dark. */
.brand img { height: 50px; width: auto; mix-blend-mode: screen; }
.brand__name { font-size: 0; line-height: 0; }
.brand__name--app::after {
  content: attr(data-app);
  display: inline-block; margin-left: 0;
  font-weight: 600; font-size: 0.74rem; letter-spacing: 0.06em; line-height: 1;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--dark-border-2);
  padding: 4px 10px; border-radius: var(--radius-pill);
  color: var(--dark-text-2);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  color: var(--dark-text-2); font-size: 0.9rem; font-weight: 500;
  transition: color 0.15s;
}
.nav__link:hover { color: var(--dark-text); }
.nav__sep { width: 1px; height: 22px; background: var(--dark-border); }

.switcher { position: relative; }
.switcher__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--dark-border-2);
  font-size: 0.86rem; font-weight: 600; color: var(--dark-text);
}
.switcher__btn:hover { background: rgba(255, 255, 255, 0.1); }
.switcher__btn .dot { width: 6px; height: 6px; border-radius: 50%; }
.switcher__btn .dot--gateway { background: var(--gateway-accent); }
.switcher__btn .dot--sales   { background: var(--sales-accent); }
.switcher__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; padding: 10px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: none;
}
.switcher.is-open .switcher__menu { display: block; }
.switcher__item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: var(--radius-md);
}
.switcher__item:hover { background: var(--bg-soft); }
.switcher__item .ico {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.switcher__item .ico--gateway { background: var(--gateway-accent-soft); color: var(--gateway-accent); }
.switcher__item .ico--sales   { background: var(--sales-accent-soft);   color: var(--sales-accent); }
.switcher__item h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.switcher__item p  { font-size: 0.78rem; color: var(--text-3); line-height: 1.4; }

/* mobile toggle */
.nav-mobile-toggle {
  display: none; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-border-2); color: var(--dark-text);
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
}

/* ───── buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-md);
  font-size: 0.92rem; font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4); }
.btn--gateway { background: var(--grad-gateway); color: #fff; box-shadow: 0 4px 16px rgba(155, 127, 230, 0.3); }
.btn--sales   { background: var(--grad-sales);   color: #fff; box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3); }
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.06); color: var(--dark-text);
  border: 1px solid var(--dark-border-2);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn--ghost {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-soft); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--sm { padding: 8px 14px; font-size: 0.82rem; }

/* ───── badges / chips ───── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600;
}
.badge--dark  { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--dark-border-2); color: var(--dark-text-2); }
.badge--light { background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text-2); box-shadow: var(--shadow-sm); }
.badge--early-dark {
  background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #fbbf24;
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--status-ok);
  animation: v2-pulse 2s ease-in-out infinite;
}
@keyframes v2-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.chip--gateway { background: var(--gateway-accent-soft); color: var(--gateway-accent); }
.chip--sales   { background: var(--sales-accent-soft);   color: var(--sales-accent); }

/* ───── hero ───── */
.hero { padding: 80px 0 96px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.025em;
  margin: 22px 0 20px;
  color: var(--dark-text);
}
.hero__title .grad         { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .grad--gateway{ background: var(--grad-gateway); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .grad--sales  { background: linear-gradient(135deg, #38bdf8 0%, #5eead4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub {
  font-size: 1.12rem; color: var(--dark-text-2); line-height: 1.65;
  max-width: 560px; margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero visual frame on dark band */
.frame {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border-2);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 60px rgba(102, 126, 234, 0.18);
}
.frame__chrome {
  display: flex; gap: 6px; padding: 4px 6px 14px; align-items: center;
  border-bottom: 1px solid var(--dark-border); margin-bottom: 14px;
}
.frame__chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.frame__chrome .dot.r { background: #ff5f57; }
.frame__chrome .dot.y { background: #ffbd2e; }
.frame__chrome .dot.g { background: #27c93f; }
.frame__chrome .label {
  margin-left: auto; font-size: 0.74rem; color: var(--dark-text-3);
  font-family: var(--font-mono);
}
.frame .mini {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--dark-border);
  border-radius: var(--radius-md); padding: 12px;
}

/* trust strip */
.trust {
  border-top: 1px solid var(--dark-border);
  padding: 24px 0;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
  justify-content: center;
  color: var(--dark-text-3); font-size: 0.86rem;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .pill {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 4px 8px; border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--dark-border-2);
  color: var(--dark-text-2);
}

/* =======================================================
   LIGHT BODY — content sections
   ======================================================= */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-indigo);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800; line-height: 1.18; letter-spacing: -0.02em;
  margin-bottom: 14px; color: var(--text);
}
.section-head p { color: var(--text-3); font-size: 1.02rem; }

/* product picker (umbrella) */
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.picker__card {
  position: relative; padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.picker__card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.picker__card--sales::before   { background: var(--grad-sales); }
.picker__card--gateway::before { background: var(--grad-gateway); }
.picker__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.picker__card .ico {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-size: 1.4rem;
  margin-bottom: 20px;
}
.picker__card--gateway .ico { background: var(--gateway-accent-soft); color: var(--gateway-accent); }
.picker__card--sales   .ico { background: var(--sales-accent-soft);   color: var(--sales-accent); }
.picker__card h3 {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em;
}
.picker__card .desc { color: var(--text-2); margin-bottom: 20px; line-height: 1.6; }
.picker__card ul { list-style: none; margin-bottom: 28px; }
.picker__card li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: var(--text-2); padding: 6px 0;
}
.picker__card li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-10'/></svg>") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-10'/></svg>") no-repeat center / contain;
}
.picker__card--gateway li::before { color: var(--gateway-accent); }
.picker__card--sales   li::before { color: var(--sales-accent); }
.picker__card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* feature grid */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature .ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gateway-accent-soft); color: var(--gateway-accent);
  margin-bottom: 18px; font-size: 1.05rem;
}
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature p  { font-size: 0.92rem; color: var(--text-2); line-height: 1.6; }

/* cross-link strip */
.crosslink {
  margin: 0 auto; padding: 28px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap;
}
.crosslink__left { display: flex; align-items: center; gap: 16px; }
.crosslink .ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-size: 1.1rem;
}
.crosslink--toGateway .ico { background: var(--gateway-accent-soft); color: var(--gateway-accent); }
.crosslink--toSales   .ico { background: var(--sales-accent-soft);   color: var(--sales-accent); }
.crosslink h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.crosslink p  { font-size: 0.88rem; color: var(--text-3); }

/* CTA — uses dark band so logo halo carries through */
.cta {
  margin: 0 auto; max-width: 960px;
  padding: 56px;
  background: var(--grad-darkband);
  border-radius: var(--radius-xl);
  text-align: center; position: relative; overflow: hidden;
  color: var(--dark-text);
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 400px 200px at 30% 0%, rgba(102, 126, 234, 0.32), transparent 70%),
    radial-gradient(ellipse 350px 200px at 80% 100%, rgba(155, 127, 230, 0.24), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; color: var(--dark-text); }
.cta p  { color: var(--dark-text-2); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer (dark) */
.footer {
  background: var(--dark-bg);
  color: var(--dark-text-2);
  padding: 56px 0 28px;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer__brand p { color: var(--dark-text-3); font-size: 0.88rem; margin-top: 14px; max-width: 320px; }
.footer__col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--dark-text); }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 0.88rem; color: var(--dark-text-3); transition: color 0.15s; }
.footer__col a:hover { color: var(--dark-text); }
.footer__bot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--dark-border);
  font-size: 0.82rem; color: var(--dark-text-3);
}
.footer__bot .badges { display: flex; gap: 16px; }
.footer__bot .badges span { display: inline-flex; align-items: center; gap: 6px; }

/* mock UI bits */
.mock { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); }
.mock__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mock__bar { height: 8px; border-radius: var(--radius-pill); background: var(--bg-soft); flex: 1; overflow: hidden; position: relative; }
.mock__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 60%); background: var(--grad-primary); }
.mock__pill { font-size: 0.72rem; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--gateway-accent-soft); color: var(--gateway-accent); font-weight: 600; }

/* chat (used inside dark frame) */
.v2-chat { display: flex; flex-direction: column; gap: 12px; padding: 12px 6px; }
.v2-chat-msg { display: flex; gap: 10px; max-width: 86%; }
.v2-chat-msg.me { margin-left: auto; flex-direction: row-reverse; }
.v2-chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700;
}
.v2-chat-msg.me  .v2-chat-avatar { background: rgba(255, 255, 255, 0.1); color: var(--dark-text); }
.v2-chat-msg.bot .v2-chat-avatar { background: var(--grad-primary); color: #fff; }
.v2-chat-bubble { padding: 10px 14px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.06); color: var(--dark-text); font-size: 0.9rem; line-height: 1.45; border: 1px solid var(--dark-border); }
.v2-chat-msg.me .v2-chat-bubble { background: rgba(102, 126, 234, 0.2); border-color: rgba(102, 126, 234, 0.4); }
.v2-chat-tool {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono); font-size: 0.72rem; color: #6ee7b7;
  margin-top: 8px; align-self: flex-start;
}

/* ───── responsive ───── */
@media (max-width: 960px) {
  .hero__inner, .picker, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav-mobile-toggle { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .topbar { height: 64px; }
  .brand img { height: 42px; }
}

/* ============================================================
   CRMG Chat Widget (preserved verbatim from landing.css)
   ============================================================ */
.crmg-chat-bubble {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none; color: white; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 9998;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.crmg-chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(102, 126, 234, 0.55); }
.crmg-chat-bubble::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.4; z-index: -1;
  animation: crmg-chat-pulse 2.5s ease-in-out infinite;
}
@keyframes crmg-chat-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.25); opacity: 0; }
}
.crmg-chat-bubble .crmg-chat-icon-open,
.crmg-chat-bubble .crmg-chat-icon-close { position: absolute; transition: opacity 0.2s ease, transform 0.2s ease; }
.crmg-chat-bubble .crmg-chat-icon-close { opacity: 0; transform: rotate(-90deg); }
.crmg-chat-bubble.active .crmg-chat-icon-open { opacity: 0; transform: rotate(90deg); }
.crmg-chat-bubble.active .crmg-chat-icon-close { opacity: 1; transform: rotate(0deg); }

.crmg-chat-panel {
  position: fixed; bottom: 100px; right: 28px;
  width: 380px; height: 520px;
  background: rgba(15, 15, 35, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; display: flex; flex-direction: column;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(102, 126, 234, 0.15);
  overflow: hidden; visibility: hidden; opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.crmg-chat-panel.open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.crmg-chat-header {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: rgba(0, 0, 0, 0.25); border-bottom: 1px solid rgba(255, 255, 255, 0.07); flex-shrink: 0;
}
.crmg-chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: white; flex-shrink: 0;
}
.crmg-chat-header-info { flex: 1; min-width: 0; }
.crmg-chat-header-title { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.crmg-chat-header-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.crmg-chat-header-status .crmg-chat-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #28c840; }
.crmg-chat-close-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.06); border: none;
  color: rgba(255, 255, 255, 0.5); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.crmg-chat-close-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.crmg-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.crmg-chat-messages::-webkit-scrollbar { width: 5px; }
.crmg-chat-messages::-webkit-scrollbar-track { background: transparent; }
.crmg-chat-messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }

.crmg-chat-msg { display: flex; gap: 8px; max-width: 88%; animation: crmg-chat-fadeIn 0.25s ease-out; }
@keyframes crmg-chat-fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.crmg-chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.crmg-chat-msg-bubble { padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; color: #fff; word-break: break-word; }
.crmg-chat-msg.assistant .crmg-chat-msg-bubble { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.06); border-top-left-radius: 4px; }
.crmg-chat-msg.user .crmg-chat-msg-bubble { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-top-right-radius: 4px; }
.crmg-chat-msg-bubble code { background: rgba(0, 0, 0, 0.3); padding: 1px 5px; border-radius: 4px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; }
.crmg-chat-msg-bubble a { color: #a3bffa; text-decoration: underline; }
.crmg-chat-msg-bubble strong { font-weight: 600; }

.crmg-chat-typing { display: flex; gap: 8px; max-width: 88%; animation: crmg-chat-fadeIn 0.25s ease-out; }
.crmg-chat-typing-dots {
  display: flex; gap: 4px; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px; border-top-left-radius: 4px;
}
.crmg-chat-typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: crmg-chat-typingBounce 1.4s ease-in-out infinite;
}
.crmg-chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.crmg-chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes crmg-chat-typingBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

.crmg-chat-input-area { padding: 12px 16px 10px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.15); flex-shrink: 0; }
.crmg-chat-input-row { display: flex; align-items: flex-end; gap: 8px; }
.crmg-chat-textarea {
  flex: 1; resize: none; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; background: rgba(255, 255, 255, 0.05); color: #fff;
  padding: 10px 14px; font-size: 13.5px; font-family: inherit;
  line-height: 1.45; max-height: 80px; overflow-y: auto;
  transition: border-color 0.15s ease; scrollbar-width: none;
}
.crmg-chat-textarea::-webkit-scrollbar { display: none; }
.crmg-chat-textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.crmg-chat-textarea:focus { border-color: rgba(102, 126, 234, 0.5); }
.crmg-chat-send-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none; color: white; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.crmg-chat-send-btn:hover { transform: scale(1.06); }
.crmg-chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.crmg-chat-footer { text-align: center; padding: 4px 0 8px; font-size: 10px; color: rgba(255, 255, 255, 0.25); }
.crmg-chat-footer a { color: rgba(255, 255, 255, 0.35); text-decoration: none; }
.crmg-chat-footer a:hover { color: rgba(255, 255, 255, 0.55); }

@media (max-width: 768px) { .crmg-chat-panel { width: 340px; height: 480px; } }
@media (max-width: 480px) {
  .crmg-chat-panel {
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; border-radius: 0;
    visibility: hidden; opacity: 0; transform: translateY(100%);
    pointer-events: none;
  }
  .crmg-chat-panel.open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .crmg-chat-bubble { bottom: 20px; right: 20px; position: fixed; -webkit-transform: translateZ(0); transform: translateZ(0); }
}
