/* "Chat with your data" section: copy on the left, a looping terminal + dashboard scene on the right. CSS only. */
.dchat { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.dchat-copy .eyebrow { border: 1px solid #c5a7ff30; background: #b677ff0d; border-radius: 30px; padding: 9px 13px; width: fit-content; font-size: 9px; letter-spacing: 1.4px; }
.dchat-copy h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin-bottom: 18px; }
.dchat-lead { color: #a59db8; font-size: 15px; max-width: 480px; }
.dchat-points { list-style: none; margin: 28px 0 8px; padding: 0; display: grid; gap: 18px; max-width: 500px; }
.dchat-points li { display: flex; gap: 14px; align-items: flex-start; }
.dchat-points li > span {
  flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  color: #d6baff; background: linear-gradient(140deg, #b692ff30, #b692ff08); border: 1px solid #c496ff40;
}
.dchat-points strong { display: block; font-size: 14px; margin-bottom: 3px; }
.dchat-points small { display: block; color: #a59db8; font-size: 12.5px; line-height: 1.55; }

/* ----- Scene ----- */
.dchat-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 16px; align-items: stretch; isolation: isolate; }
.dchat-stage::before {
  content: ""; position: absolute; inset: 10% 0; z-index: -1; filter: blur(36px);
  background: radial-gradient(ellipse at 30% 50%, #7c3aed38, transparent 65%), radial-gradient(ellipse at 80% 60%, #ec489926, transparent 65%);
}
.dchat-term, .dchat-dash { border-radius: 16px; border: 1px solid #c396ff26; box-shadow: 0 24px 56px #0006; overflow: hidden; min-width: 0; }
.dchat-term { background: #0b0911; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dchat-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1a1526; border-bottom: 1px solid #ffffff10; }
.dchat-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3150; }
.dchat-bar span { margin-left: 8px; font-size: 11px; color: #8d869c; }
.dchat-body { padding: 16px; min-height: 300px; font-size: 12px; line-height: 1.65; color: #cfc8de; }
.dl { opacity: 0; animation: var(--k) 13s infinite both; }
.dl b { color: #a78bfa; margin-right: 8px; }
.dl em { font-style: normal; color: #4ade80; margin-right: 8px; }
.dl.d0 { --k: dcL0 } .dl.d1 { --k: dcL1; margin: 6px 0 10px; color: #fff }
.dl.d2 { --k: dcL2 } .dl.d3 { --k: dcL3 } .dl.d4 { --k: dcL4 }
.dl.d5 { --k: dcL5 } .dl.d6 { --k: dcL6 }
.dchat-answer { margin-top: 12px; color: #ddd6fe; font-weight: 700; }
.dchat-muted { margin-top: 4px; color: #8d869c; }
@keyframes dcL0 { 0%, 2% { opacity: 0 } 4%, 94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes dcL1 { 0%, 6% { opacity: 0 } 9%, 94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes dcL2 { 0%, 22% { opacity: 0; transform: translateX(-6px) } 25%, 94% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes dcL3 { 0%, 30% { opacity: 0; transform: translateX(-6px) } 33%, 94% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes dcL4 { 0%, 38% { opacity: 0; transform: translateX(-6px) } 41%, 94% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes dcL5 { 0%, 48% { opacity: 0; transform: translateY(4px) } 52%, 94% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes dcL6 { 0%, 58% { opacity: 0 } 62%, 94% { opacity: 1 } 100% { opacity: 0 } }

.dchat-dash { background: linear-gradient(160deg, #1d1530, #110d20); padding: 16px; opacity: 0; transform: translateY(12px); animation: dcDash 13s infinite both; }
.dchat-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.dchat-dash-head strong { font-size: 12.5px; }
.dchat-dash-head span { font-size: 9px; padding: 3px 8px; border-radius: 99px; background: #8b5cf626; border: 1px solid #a78bfa55; color: #ddd6fe; white-space: nowrap; }
.dchat-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.dchat-kpis > div { padding: 10px 12px; border-radius: 12px; background: #ffffff08; border: 1px solid #ffffff10; }
.dchat-kpis small { display: block; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: #8d869c; }
.dchat-kpis b { display: block; font-size: 19px; margin: 2px 0 4px; }
.dchat-kpis em { font-style: normal; font-size: 9.5px; font-weight: 700; color: #86efac; background: #16a34a26; padding: 2px 6px; border-radius: 5px; }
.dchat-chart { display: block; width: 100%; height: 96px; margin-bottom: 12px; }
.dchat-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dcDraw 13s infinite both; }
.dchat-line.b { animation-delay: .25s; }
.dchat-fill { opacity: 0; animation: dcFill 13s infinite both; }
.dchat-rows { display: grid; gap: 9px; }
.dchat-rows > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: 10.5px; color: #e4dff1; }
.dchat-rows span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dchat-rows b { font-variant-numeric: tabular-nums; }
.dchat-rows i { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: #a78bfa1f; position: relative; overflow: hidden; }
.dchat-rows i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #ec4899); transform-origin: left; transform: scaleX(0); animation: dcBar 13s infinite both; }
@keyframes dcDash { 0%, 44% { opacity: 0; transform: translateY(12px) } 52%, 94% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes dcDraw { 0%, 52% { stroke-dashoffset: 1 } 70%, 94% { stroke-dashoffset: 0 } 100% { stroke-dashoffset: 1 } }
@keyframes dcFill { 0%, 62% { opacity: 0 } 74%, 94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes dcBar { 0%, 54% { transform: scaleX(0) } 68%, 94% { transform: scaleX(1) } 100% { transform: scaleX(0) } }

@media (max-width: 1050px) {
  .dchat { grid-template-columns: 1fr; gap: 40px; }
  .dchat-lead, .dchat-points { max-width: 620px; }
}
@media (max-width: 640px) {
  .dchat-stage { grid-template-columns: 1fr; }
  .dchat-body { min-height: 250px; font-size: 11px; }
  .dchat-copy h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl, .dchat-dash, .dchat-fill { animation: none !important; opacity: 1 !important; transform: none !important; }
  .dchat-line { animation: none !important; stroke-dashoffset: 0; }
  .dchat-rows i::after { animation: none !important; transform: none; }
}
