.ai-demo {
  padding: 108px 0 118px;
  background: #f7f8fc;
}

.ai-demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 38px;
}

.ai-demo-heading h2 {
  color: #101427;
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.16;
  letter-spacing: -2.8px;
  margin: 16px 0;
}

.ai-demo-heading h2 em { font-style: normal; color: #5366dd; }
.ai-demo-heading p:last-child { color: #636a7b; font-size: 15px; line-height: 1.7; }

.ai-demo-switch {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #e6ebf7;
  border: 1px solid #d5def3;
  flex: none;
}

.ai-demo-switch button {
  border: 0;
  padding: 12px 15px;
  background: transparent;
  color: #495a85;
  font: 800 12px Manrope, sans-serif;
  white-space: nowrap;
}

.ai-demo-switch button[aria-pressed="true"] {
  background: #111a40;
  color: #fff;
  box-shadow: 0 5px 15px #18285425;
}

.ai-demo-switch button:focus-visible { outline: 2px solid #1f83ef; outline-offset: 2px; }

.ai-demo-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 430px;
  overflow: hidden;
  background: #0d1432;
  border: 1px solid #46558b;
  box-shadow: 0 26px 65px #1a255326;
}

.ai-demo-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #243d86 0, #142451 32%, #0c1737 72%);
}

.ai-demo-stage[data-audience="business"] .ai-demo-orbit {
  background: radial-gradient(circle at 50% 50%, #55318c 0, #2f235e 34%, #151334 74%);
}

.ai-demo-rive {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease, filter .5s ease;
}

.ai-demo-orbit.rive-ready .ai-demo-rive { opacity: 1; }
.ai-demo-orbit.rive-ready .ai-demo-ring { opacity: 0; }
.ai-demo-stage[data-audience="business"] .ai-demo-rive { filter: hue-rotate(35deg); }

.ai-demo-ring { position: absolute; border: 1px solid #7fa8ff42; border-radius: 50%; pointer-events: none; }
.ai-demo-ring-outer { width: 400px; height: 400px; }
.ai-demo-ring-inner { width: 275px; height: 275px; }

.ai-demo-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 9px;
  width: 160px;
  height: 160px;
  border: 1px solid #849aff;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #2b407e, #121b45);
  box-shadow: 0 0 0 15px #749cff10, 0 0 70px #5698ff50;
  color: #e8edff;
  font: 800 10px Manrope, sans-serif;
  letter-spacing: 1.5px;
}

.ai-demo-core img { width: 93px; height: 72px; object-fit: contain; }

.ai-demo-node {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid #6788cf;
  border-radius: 999px;
  background: #17295b;
  color: #e7efff;
  font: 800 11px Manrope, sans-serif;
  box-shadow: 0 10px 25px #0004;
}

.ai-demo-node-one { top: 16%; left: 10%; }
.ai-demo-node-two { top: 23%; right: 8%; }
.ai-demo-node-three { bottom: 15%; left: 18%; }

.ai-demo-conversation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 45px 43px;
  color: #fff;
}

.ai-demo-label { color: #9fb7fa; font: 800 10px Manrope, sans-serif; letter-spacing: 1.5px; }

.ai-demo-question {
  align-self: flex-end;
  max-width: 92%;
  padding: 17px 19px;
  background: #2a3474;
  border-radius: 15px 15px 3px 15px;
  font-size: 15px;
  line-height: 1.6;
}

.ai-demo-answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 95%;
  padding: 18px 19px;
  background: #f4f6ff;
  border-radius: 3px 15px 15px 15px;
  color: #27345d;
  font-size: 14px;
  line-height: 1.65;
}

.ai-demo-answer p { margin: 0; }

.ai-demo-spark {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: linear-gradient(135deg, #099bf0, #8139ed);
  color: #fff;
}

.ai-demo-footnote { margin: 0; color: #aebce2; font-size: 11px; line-height: 1.55; }

@media (max-width: 800px) {
  .ai-demo { padding: 76px 0 86px; }
  .ai-demo-heading { display: block; }
  .ai-demo-switch { width: max-content; margin-top: 25px; }
  .ai-demo-stage { grid-template-columns: 1fr; }
  .ai-demo-orbit { min-height: 340px; }
  .ai-demo-ring-outer { width: 340px; height: 340px; }
  .ai-demo-ring-inner { width: 245px; height: 245px; }
  .ai-demo-conversation { min-height: 300px; padding: 32px; }
}

@media (max-width: 500px) {
  .ai-demo-heading h2 { font-size: 38px; letter-spacing: -2px; }
  .ai-demo-switch { width: 100%; }
  .ai-demo-switch button { flex: 1; padding: 11px 7px; font-size: 11px; }
  .ai-demo-orbit { min-height: 300px; }
  .ai-demo-core { width: 138px; height: 138px; }
  .ai-demo-core img { width: 80px; height: 62px; }
  .ai-demo-node { font-size: 9px; padding: 8px 10px; }
  .ai-demo-node-one { left: 5%; top: 12%; }
  .ai-demo-node-two { right: 4%; top: 17%; }
  .ai-demo-node-three { left: 9%; bottom: 12%; }
  .ai-demo-conversation { padding: 26px 20px; }
  .ai-demo-question, .ai-demo-answer { font-size: 12px; }
}
