/* ── AI Chat page — light theme, Xyqo layout ── */

.nav-main {
  border-bottom: none;
  box-shadow: none;
}

.ai-banner {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem 4.5rem;
  background:
    radial-gradient(ellipse 55% 50% at 78% 32%, rgba(99,102,241,.12), transparent 55%),
    radial-gradient(ellipse 45% 40% at 15% 55%, rgba(14,165,233,.1), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 35%, #f0fdfa 62%, #fafcfe 82%, #ffffff 100%);
  border-bottom: none;
}
.ai-banner-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ai-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 20%, transparent 75%);
  animation: gridDrift 32s linear infinite;
}
.ai-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.ai-shape.s1 {
  width: 360px; height: 360px;
  top: -100px; right: 5%;
  background: radial-gradient(circle, rgba(129,140,248,.28), transparent 68%);
  animation: aiOrb 11s ease-in-out infinite;
}
.ai-shape.s2 {
  width: 260px; height: 260px;
  bottom: 8%; left: 2%;
  background: radial-gradient(circle, rgba(56,189,248,.22), transparent 68%);
  animation: aiOrb 13s ease-in-out infinite reverse;
}
.ai-shape.s3 {
  width: 180px; height: 180px;
  top: 40%; left: 45%;
  background: radial-gradient(circle, rgba(45,212,191,.18), transparent 70%);
  animation: aiOrb 9s ease-in-out infinite;
}
.ai-glow {
  position: absolute;
  width: 420px; height: 420px;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99,102,241,.18), transparent 70%);
  filter: blur(30px);
  animation: aiOrb 8s ease-in-out infinite;
}

.ai-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
.ai-banner-copy {
  width: 100%;
  max-width: 740px;
  margin: 0 auto 0.5rem;
  text-align: center !important;
}
.ai-eyebrow {
  display: inline-block;
  margin: 0 auto 1rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6366f1;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
}
.ai-banner-copy h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.15;
  color: #0a0a0a !important;
  margin: 0 auto 1rem;
  letter-spacing: -.02em;
  text-align: center !important;
  font-weight: 500;
}
.ai-banner-copy h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(105deg, #7c3aed 0%, #2563eb 55%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ai-banner-copy > p {
  font-size: 1.02rem;
  color: #4b5563 !important;
  max-width: 600px;
  margin: 0 auto 1.4rem;
  line-height: 1.65;
  text-align: center !important;
}
.ai-banner-copy .hero-actions {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: .75rem;
}
.ai-banner .btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: #0a0a0a;
}
.ai-banner .btn-secondary:hover {
  background: #f8fafc;
  color: #0a0a0a;
}

/* Center page section titles (except Under the Hood graph) */
section .section-label,
section .section-title,
.ai-soft-band .section-label,
.ai-soft-band .section-title,
.ai-cta-band h2,
.ai-cta-band p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.ai-graph-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.ai-graph-section .section-label,
.ai-graph-section .section-title {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* Bottom bands — same page color, no section backgrounds */
.ai-soft-band,
.ai-cta-band {
  position: relative;
  overflow: visible;
  background: none;
}
.ai-soft-band {
  padding: 4rem 2rem;
  border-top: none;
}
.ai-soft-band > .container {
  position: relative;
  z-index: 1;
}
.ai-cta-band {
  margin-top: -1rem;
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  border-top: none;
  overflow: visible;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    #ffffff 14%,
    #fafbff 42%,
    #f6f8ff 62%,
    #fafbfd 82%,
    #ffffff 100%
  );
}
/* Soft floating orbs — no hard section clip */
.ai-cta-band::before,
.ai-cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(48px);
}
.ai-cta-band::before {
  width: 480px;
  height: 480px;
  top: 18%;
  right: -10%;
  background: radial-gradient(circle, rgba(99,102,241,.12) 0%, transparent 70%);
}
.ai-cta-band::after {
  width: 400px;
  height: 400px;
  bottom: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(14,165,233,.09) 0%, transparent 72%);
}
.ai-cta-band .ai-banner-shapes {
  opacity: .55;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.ai-cta-band .ai-shape {
  filter: blur(8px);
}
.ai-cta-band .ai-shape.s1 {
  background: radial-gradient(circle, rgba(99,102,241,.14) 0%, transparent 72%);
}
.ai-cta-band .ai-shape.s2 {
  background: radial-gradient(circle, rgba(14,165,233,.1) 0%, transparent 72%);
}
.ai-cta-band .ai-shape.s3 {
  background: radial-gradient(circle, rgba(167,139,250,.08) 0%, transparent 72%);
}
.ai-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.ai-cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
  color: #0a0a0a;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.ai-cta-band p {
  color: #4b5563;
  font-size: 1.05rem;
  margin: 0 auto 1.75rem;
  max-width: 520px;
  line-height: 1.6;
}
.ai-cta-band p code {
  background: rgba(255,255,255,.75);
  border: 1px solid #e5e7eb;
  padding: .15rem .4rem;
  border-radius: 5px;
  font-size: .9em;
  color: #0f172a;
}
.ai-cta-band .hero-actions {
  justify-content: center;
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}
.ai-cta-band .btn-secondary {
  background: #fff;
  border: 1px solid #0a0a0a;
  color: #0a0a0a;
}
.ai-cta-band .btn-secondary:hover {
  background: #f8fafc;
  color: #0a0a0a;
}

/* ── Xyqo-style robot stage ── */
.xyqo-stage {
  position: relative;
  width: min(920px, 100%);
  min-height: 480px;
  margin: 1.5rem auto 0;
  display: grid;
  place-items: center;
}
.xyqo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .85;
}
.xyqo-line {
  fill: none;
  stroke: rgba(99,102,241,.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  animation: dashFlow 10s linear infinite;
}
.xyqo-node {
  fill: #818cf8;
  filter: drop-shadow(0 0 4px rgba(129,140,248,.5));
  animation: nodePulse 2.2s ease-in-out infinite;
}

.xyqo-bubble {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .55rem;
  max-width: 280px;
  padding: .7rem 1rem .7rem .7rem;
  background: #fff;
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 999px;
  color: #0f172a;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  animation: speechPop 3.4s ease-in-out infinite;
}
.xyqo-bubble.left {
  top: 8%;
  left: 2%;
}
.xyqo-bubble.right {
  top: 14%;
  right: 2%;
  animation-delay: .6s;
}
.xyqo-avatar {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #7c3aed, #2563eb);
  border: 1px solid rgba(255,255,255,.35);
}

/* Cute headphone robot */
.xyqo-robot {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 340px;
  margin-top: 1.1rem;
  animation: robotFloat 4s ease-in-out infinite;
}
.xr-glow {
  position: absolute;
  inset: 20% -10% -5%;
  background: radial-gradient(circle, rgba(99,102,241,.28), transparent 70%);
  filter: blur(24px);
  z-index: 0;
}
.xr-band {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 150px;
  height: 18px;
  margin-left: -75px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.xr-headphone {
  position: absolute;
  top: 48px;
  width: 52px;
  height: 78px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff 0%, #e2e8f0 40%, #94a3b8 100%);
  box-shadow:
    inset -4px -6px 10px rgba(15,23,42,.2),
    inset 4px 4px 8px rgba(255,255,255,.7),
    6px 10px 18px rgba(0,0,0,.25);
  z-index: 3;
}
.xr-headphone::after {
  content: "";
  position: absolute;
  inset: 14px 10px;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: inset 0 0 0 2px #334155;
}
.xr-headphone.left { left: 8px; transform: rotate(-8deg); }
.xr-headphone.right { right: 8px; transform: rotate(8deg); }

.xr-head {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 168px;
  height: 150px;
  margin-left: -84px;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 45%, #cbd5e1 100%);
  box-shadow:
    inset -12px -14px 24px rgba(15,23,42,.18),
    inset 10px 10px 18px rgba(255,255,255,.85),
    0 18px 40px rgba(0,0,0,.28);
  z-index: 2;
}
.xr-eye {
  position: absolute;
  top: 52px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: inset 0 0 0 3px #1e293b, 0 0 12px rgba(15,23,42,.35);
  display: grid;
  place-items: center;
}
.xr-eye.left { left: 28px; }
.xr-eye.right { right: 28px; }
.xr-eye i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  animation: eyeBlink 3.6s ease-in-out infinite;
}
.xr-eye.right i { animation-delay: .15s; }
.xr-mouth {
  position: absolute;
  bottom: 32px;
  left: 50%;
  width: 28px;
  height: 10px;
  margin-left: -14px;
  border-radius: 0 0 14px 14px;
  background: #334155;
}
.xr-neck {
  position: absolute;
  top: 180px;
  left: 50%;
  width: 46px;
  height: 28px;
  margin-left: -23px;
  border-radius: 10px;
  background: linear-gradient(#e2e8f0, #94a3b8);
  z-index: 1;
}
.xr-body {
  position: absolute;
  top: 200px;
  left: 50%;
  width: 150px;
  height: 110px;
  margin-left: -75px;
  border-radius: 28px 28px 36px 36px;
  background: linear-gradient(160deg, #fff, #cbd5e1 55%, #94a3b8);
  box-shadow:
    inset -10px -12px 20px rgba(15,23,42,.2),
    0 16px 30px rgba(0,0,0,.25);
  z-index: 1;
  display: grid;
  place-items: center;
}
.xr-chest {
  width: 64px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1e1b4b, #312e81);
  border: 1px solid rgba(167,139,250,.5);
  color: #c4b5fd;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(124,58,237,.35) inset;
}
.xr-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 70%;
  height: 18px;
  margin-left: -35%;
  background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%);
  filter: blur(4px);
  animation: shadowPulse 4s ease-in-out infinite;
}

/* ── Chat stage ── */
.chat-stage {
  position: relative;
  width: min(860px, 100%);
  margin: .35rem auto 0 !important;
  padding: 1.5rem 1.35rem 2rem;
  isolation: isolate;
}
.chat-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(14,165,233,.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 82% 78%, rgba(99,102,241,.14), transparent 50%),
    linear-gradient(160deg, #e8f4fc 0%, #eef0fb 45%, #e6f7f4 100%);
  border: 1px solid rgba(14,165,233,.2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.65) inset,
    0 24px 60px rgba(15,23,42,.08);
}
.chat-stage-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 15%, transparent 75%);
  animation: gridDrift 28s linear infinite;
  pointer-events: none;
}
.chat-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.chat-orb.o1 {
  width: 160px; height: 160px;
  top: -30px; left: -20px;
  background: radial-gradient(circle, rgba(56,189,248,.4), transparent 70%);
  animation: aiOrb 9s ease-in-out infinite;
}
.chat-orb.o2 {
  width: 180px; height: 180px;
  bottom: -40px; right: -10px;
  background: radial-gradient(circle, rgba(129,140,248,.35), transparent 70%);
  animation: aiOrb 11s ease-in-out infinite reverse;
}
.chat-orb.o3 {
  width: 110px; height: 110px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.3), transparent 70%);
  animation: orbPulse 6.5s ease-in-out infinite;
}
.chat-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(14,165,233,.25);
  pointer-events: none;
}
.chat-ring.r1 {
  width: 120px; height: 120px;
  top: 6%; right: 4%;
  border-color: rgba(99,102,241,.28);
  animation: ringSpin 18s linear infinite;
}
.chat-ring.r2 {
  width: 90px; height: 90px;
  bottom: 10%; left: 6%;
  border-color: rgba(45,212,191,.3);
  animation: ringSpin 22s linear infinite reverse;
}

.chat-mockup {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, #0b1220 0%, #111827 42%, #020617 100%);
  border: 1px solid rgba(56,189,248,.32);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.35rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 36px rgba(56,189,248,.12),
    0 22px 40px rgba(2,6,23,.28);
  overflow: hidden;
  text-align: left;
  color: #f8fafc;
}
.chat-mockup::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a78bfa, #38bdf8, #c084fc, transparent);
  background-size: 200% 100%;
  animation: shimmerBar 4.5s linear infinite;
}
.chat-bar {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.chat-bar-dots { display: flex; gap: .35rem; }
.chat-bar-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #334155;
}
.chat-bar-dots span:nth-child(1) { background: #f87171; }
.chat-bar-dots span:nth-child(2) { background: #fbbf24; }
.chat-bar-dots span:nth-child(3) { background: #34d399; }
.chat-bar-title {
  margin-left: .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #94a3b8;
  text-transform: uppercase;
}
.chat-bar-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  color: #34d399;
}
.chat-bar-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: livePulse 1.6s ease-in-out infinite;
  font-style: normal;
}

.msg {
  display: flex;
  gap: .65rem;
  margin-bottom: 1rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12px);
  animation: msgIn .55s ease forwards;
}
.chat-mockup .msg:nth-child(2) { animation-delay: .2s; }
.chat-mockup .msg:nth-child(3) { animation-delay: .65s; }
.chat-mockup .msg:nth-child(4) { animation-delay: 1.15s; }
.chat-mockup .msg:nth-child(5) { animation-delay: 1.65s; }
.msg.user { flex-direction: row-reverse; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.avatar.ai {
  background: #fff;
  border: 1px solid rgba(14,165,233,.35);
  color: #38bdf8;
  box-shadow: none;
  animation: none;
}
.avatar.user {
  background: rgba(14,165,233,.1);
  border: 1px solid rgba(56,189,248,.4);
  color: #38bdf8;
}
.avatar svg { width: 17px; height: 17px; stroke: currentColor; }
.avatar.ai img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}
.bubble {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 12px;
  padding: .7rem .9rem;
  max-width: 88%;
  font-size: .84rem;
  line-height: 1.55;
  color: #f1f5f9;
}
.bubble.ai { color: #f8fafc; }
.bubble.ai strong { color: #67e8f9; }
.bubble.user {
  background: linear-gradient(135deg, rgba(14,165,233,.5) 0%, rgba(99,102,241,.45) 55%, rgba(45,212,191,.35) 100%);
  border: 1px solid rgba(56,189,248,.5);
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(2,6,23,.3);
}
.bubble .sql-hint {
  font-family: var(--mono);
  font-size: .74rem;
  color: #a5b4fc;
  margin-top: .45rem;
  padding: .4rem .65rem;
  background: rgba(2,6,23,.65);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 7px;
  overflow-x: auto;
}
.bubble .result-tag {
  display: inline-block;
  background: rgba(0,232,135,.12);
  border: 1px solid rgba(0,232,135,.25);
  color: #34d399;
  padding: .12rem .45rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  margin-top: .4rem;
}

/* ── Animated graph pipeline ── */
.ai-graph-section {
  position: relative;
  z-index: 1;
  background: none;
  border-top: none;
  padding: 1.75rem 0 2.5rem;
}
.ai-graph {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: .55rem;
  margin-top: 1.75rem;
}
.ai-graph-node {
  flex: 1 1 140px;
  max-width: 180px;
  min-width: 132px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  animation: graphNodeIn .55s ease forwards;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.ai-graph-node:hover {
  transform: translateY(-4px) scale(1);
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
}
.ai-graph-node.n1 { animation-delay: .05s; border-color: rgba(168,85,247,.35); }
.ai-graph-node.n2 { animation-delay: .2s; }
.ai-graph-node.n3 { animation-delay: .35s; border-color: rgba(168,85,247,.35); }
.ai-graph-node.n4 { animation-delay: .5s; }
.ai-graph-node.n5 { animation-delay: .65s; border-color: rgba(0,232,135,.4); }
.ai-graph-node .icon-wrap {
  color: #0284c7;
  display: grid;
  place-items: center;
  margin: 0 auto .75rem;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}
.ai-graph-node .icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
.ai-graph-node.n1 .icon-wrap { color: #0284c7; background: #f0f9ff; border-color: #bae6fd; }
.ai-graph-node.n2 .icon-wrap { color: #0369a1; background: #e0f2fe; border-color: #7dd3fc; }
.ai-graph-node.n3 .icon-wrap { color: #6366f1; background: #eef2ff; border-color: #c7d2fe; }
.ai-graph-node.n4 .icon-wrap { color: #0d9488; background: #f0fdfa; border-color: #99f6e4; }
.ai-graph-node.n5 .icon-wrap { color: #059669; background: #ecfdf5; border-color: #a7f3d0; }
.ai-graph-node .label {
  font-size: .86rem;
  font-weight: 700;
  color: var(--heading);
}
.ai-graph-node .sub {
  font-size: .74rem;
  color: var(--muted);
  margin-top: .2rem;
}
.ai-graph-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(120deg, transparent, rgba(56,189,248,.55), transparent);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shimmerBar 3.5s linear infinite;
  opacity: .55;
  pointer-events: none;
}
.ai-graph-edge {
  width: 36px;
  align-self: center;
  position: relative;
  height: 3px;
  background: rgba(14,165,233,.18);
  border-radius: 3px;
  overflow: hidden;
  flex: 0 0 36px;
}
.ai-graph-edge span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #38bdf8, #818cf8);
  border-radius: 3px;
  animation: edgePulse 1.6s ease-in-out infinite;
}
.ai-graph-edge:nth-of-type(2) span { animation-delay: .2s; }
.ai-graph-edge:nth-of-type(4) span { animation-delay: .4s; }
.ai-graph-edge:nth-of-type(6) span { animation-delay: .6s; }
.ai-graph-edge:nth-of-type(8) span { animation-delay: .8s; }

.ai-cap-section {
  position: relative;
  overflow: visible;
  margin-top: -3.5rem;
  padding: 5.5rem 0 5rem;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    #ffffff 12%,
    #fafbff 38%,
    #f5f7ff 58%,
    #f8fafc 80%,
    #ffffff 100%
  );
}
/* Soft orbs — no hard clip at section edge */
.ai-cap-section::before,
.ai-cap-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.ai-cap-section::before {
  width: 520px;
  height: 520px;
  top: 8%;
  right: -8%;
  background: radial-gradient(circle, rgba(99,102,241,.14) 0%, transparent 68%);
}
.ai-cap-section::after {
  width: 420px;
  height: 420px;
  bottom: 6%;
  left: -6%;
  background: radial-gradient(circle, rgba(14,165,233,.1) 0%, transparent 70%);
}
.ai-cap-section > .container {
  position: relative;
  z-index: 1;
}
.ai-cap-section > .ai-banner-shapes {
  opacity: .55;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.ai-soft-band {
  margin-top: -1.5rem;
  padding-top: 5rem;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fafbfd 40%,
    #ffffff 100%
  );
}
.ai-cap-section .cap-item {
  border: none;
  background:
    radial-gradient(ellipse 80% 70% at 12% 0%, rgba(99,102,241,.1), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(14,165,233,.08), transparent 50%),
    rgba(255,255,255,.55);
  box-shadow: none;
}
.cap-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@keyframes aiOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -20px) scale(1.08); }
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}
@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .65; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes shimmerBar {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,.45); }
  50% { opacity: .55; box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(129,140,248,.2); }
  50% { box-shadow: 0 0 18px rgba(56,189,248,.4); }
}
@keyframes speechPop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes eyeBlink {
  0%, 42%, 48%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(.12); }
}
@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: .85; }
  50% { transform: scaleX(.88); opacity: .5; }
}
@keyframes dashFlow { to { stroke-dashoffset: -80; } }
@keyframes nodePulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
@keyframes graphNodeIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes edgePulse {
  0% { left: -40%; opacity: 0; }
  30% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 800px) {
  .xyqo-bubble.left,
  .xyqo-bubble.right {
    position: relative;
    top: auto; left: auto; right: auto;
    max-width: 100%;
    margin: .4rem auto;
  }
  .xyqo-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
  }
  .xyqo-lines { display: none; }
  .xyqo-robot { margin-top: 1rem; }
}
@media (max-width: 900px) {
  .cap-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ai-graph-edge { display: none; }
  .ai-graph-node { max-width: none; flex: 1 1 calc(50% - .55rem); }
}
@media (max-width: 560px) {
  .cap-grid-3 { grid-template-columns: 1fr; }
  .xyqo-robot { width: 220px; height: 280px; transform: scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-shape, .ai-grid-lines, .ai-glow, .chat-orb, .chat-ring, .chat-stage-bg::before,
  .chat-mockup::before, .msg, .avatar.ai, .chat-bar-live i, .xyqo-bubble,
  .xyqo-robot, .xyqo-line, .xyqo-node, .xr-eye i, .xr-shadow,
  .ai-graph-node, .ai-graph-edge span, .ai-graph-node::before {
    animation: none !important;
  }
  .msg, .ai-graph-node { opacity: 1; transform: none; }
}
