:root {
  --bg: #03030a !important;
  --bg2: #05050d !important;
  --panel: rgba(255, 255, 255, .022) !important;
  --panel2: rgba(255, 255, 255, .035) !important;
  --card: rgba(255, 255, 255, .022) !important;
  --line: rgba(255, 255, 255, .065) !important;
  --line-hi: rgba(191, 128, 255, .20) !important;
  --accent: #bf80ff !important;
  --coral: #bf80ff !important;
  --amber: #d8b4fe !important;
  --violet: #a855f7 !important;
  --teal: #c084fc !important;
  --blue: #8b5cf6 !important;
}

html,
body {
  background: #03030a !important;
  color: #e8e8ec !important;
}

html {
  scrollbar-color: rgba(191, 128, 255, .28) #03030a;
}

::selection {
  background: rgba(191, 128, 255, .25) !important;
  color: #fff !important;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #03030a; }
::-webkit-scrollbar-thumb { background: rgba(191, 128, 255, .25); border-radius: 999px; }

.aether-flow-hero {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  height: 100svh !important;
  min-height: 680px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 76px 0 30px !important;
  background: #03030a !important;
  text-align: center !important;
  isolation: isolate;
}

.aether-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.aether-flow-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 0, rgba(0, 0, 0, .08) 42%, rgba(0, 0, 0, .55) 100%);
}

/* Remove the previous decorative hero backgrounds while preserving content. */
.aether-flow-hero > div:first-of-type,
.aether-flow-hero > .orbs,
.aether-flow-hero > .grid-bg {
  display: none !important;
}

.hero.aether-flow-hero > .grid-bg,
.hero.aether-flow-hero > .orbs {
  display: none !important;
}

.aether-flow-hero > .hero-in,
.aether-flow-hero > div:nth-of-type(2) {
  position: relative !important;
  z-index: 2 !important;
  width: min(100% - 32px, 980px) !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  text-align: center !important;
}

.aether-flow-hero .hero-mark,
.aether-flow-hero [style*="width:84px"][style*="height:84px"],
.aether-flow-hero [style*="width:88px"][style*="height:88px"],
.aether-flow-hero .aether-brief,
.aether-flow-hero .scroll-cue,
.aether-flow-hero .aether-scroll-cue {
  display: none !important;
}

.aether-flow-hero > div:nth-of-type(2) > :first-child:not(.aether-badge) {
  display: none !important;
}

.aether-flow-hero .eyebrow,
.aether-flow-hero .aether-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  margin: 0 0 24px !important;
  padding: 7px 16px !important;
  border: 1px solid rgba(168, 85, 247, .24) !important;
  border-radius: 999px !important;
  background: rgba(168, 85, 247, .10) !important;
  color: #e5e7eb !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  backdrop-filter: blur(8px);
  box-shadow: none !important;
}

.aether-flow-hero .eyebrow::before,
.aether-flow-hero .aether-badge::before {
  content: "ϟ";
  color: #c084fc;
  font-size: 16px;
  line-height: 1;
}

.aether-flow-hero .eyebrow .dot {
  display: none !important;
}

.aether-flow-hero h1,
.aether-flow-hero .aether-title {
  max-width: 1050px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  background: linear-gradient(to bottom, #fff 15%, #9ca3af 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-size: clamp(2.65rem, 6.4vw, 5.9rem) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
  filter: none !important;
  text-shadow: none !important;
}

html[dir="rtl"] .aether-flow-hero h1,
html[dir="rtl"] .aether-flow-hero .aether-title {
  letter-spacing: -.035em !important;
}

.aether-flow-hero h1 .grad {
  background: linear-gradient(to bottom, #fff 15%, #9ca3af 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Service headlines are longer than the homepage headline. */
.aether-flow-hero .aether-title {
  max-width: 920px !important;
  font-size: clamp(2.4rem, 4.2vw, 3.75rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -.035em !important;
}

.aether-flow-hero .lead,
.aether-flow-hero .aether-copy {
  max-width: 720px !important;
  margin: 0 auto 36px !important;
  color: #9ca3af !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  text-align: center !important;
}

.aether-flow-hero .hero-cta,
.aether-flow-hero .aether-actions {
  display: flex !important;
  justify-content: center !important;
  margin: 0 !important;
  gap: 0 !important;
}

.aether-flow-hero .hero-cta > :not(:first-child),
.aether-flow-hero .aether-actions > :not(:first-child) {
  display: none !important;
}

.aether-flow-hero .hero-cta > :first-child,
.aether-flow-hero .aether-actions > :first-child,
.aether-flow-hero .aether-primary {
  display: inline-flex !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 auto !important;
  padding: 16px 30px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(255, 255, 255, .08) !important;
  color: #000 !important;
  font: 700 15px/1.2 inherit !important;
  transform: none !important;
  transition: background .3s ease, transform .3s ease !important;
}

.aether-flow-hero .hero-cta > :first-child:hover,
.aether-flow-hero .aether-actions > :first-child:hover,
.aether-flow-hero .aether-primary:hover {
  background: #e5e7eb !important;
  transform: translateY(-2px) !important;
}

.aether-flow-hero .hero-cta > :first-child::after,
.aether-flow-hero .aether-actions > :first-child::after {
  content: "→";
  font-size: 20px;
  line-height: 1;
}

html[dir="rtl"] .aether-flow-hero .hero-cta > :first-child::after,
html[dir="rtl"] .aether-flow-hero .aether-actions > :first-child::after {
  content: "←";
}

.aether-flow-hero .aether-primary > span[style],
.aether-flow-hero .hero-cta > :first-child > span:not([data-i18n]) {
  display: none !important;
}

/* Carry the Aether palette into the rest of the service pages. */
#dc-root,
#dc-root > .sc-host {
  background: #000 !important;
}

#dc-root nav {
  background: rgba(0, 0, 0, .78) !important;
  border-color: rgba(192, 132, 252, .16) !important;
  backdrop-filter: blur(18px) !important;
}

#dc-root nav button {
  border-color: rgba(192, 132, 252, .28) !important;
  background: rgba(168, 85, 247, .08) !important;
  box-shadow: none !important;
  color: #e5e7eb !important;
}

#dc-root nav button:last-child {
  border-color: #fff !important;
  background: #fff !important;
  color: #000 !important;
}

.nav .btn-primary {
  border-color: #fff !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #000 !important;
}

.nav .mark {
  border-color: rgba(192, 132, 252, .42) !important;
}

.nav .mark svg path {
  stroke: #c084fc !important;
}

#dc-root section:not(.aether-flow-hero) {
  border-color: rgba(192, 132, 252, .12) !important;
}

#dc-root footer {
  background: #030303 !important;
  border-color: rgba(192, 132, 252, .14) !important;
}

body > [data-falaq-home] {
  border-color: rgba(192, 132, 252, .4) !important;
  background: rgba(3, 3, 10, .84) !important;
}

/* Full Aether design language for the main website. */
.nav {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 50 !important;
  border-color: rgba(255, 255, 255, .055) !important;
  background: rgba(3, 3, 10, .72) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
}

.nav-links {
  color: #9c9ca8 !important;
  font-size: .86rem !important;
}

.nav-links a:hover { color: #fff !important; }

.markets {
  border-color: rgba(255, 255, 255, .055) !important;
  background: rgba(255, 255, 255, .012) !important;
}

section.blk {
  padding-block: 112px !important;
  background: transparent !important;
}

section.blk + section.blk::before,
#dc-root section:not(.aether-flow-hero)::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
  pointer-events: none;
}

.sec-head {
  max-width: 720px !important;
  margin: 0 0 64px !important;
  text-align: start !important;
}

.kick {
  margin-bottom: 16px !important;
  color: #a855f7 !important;
  font-size: .72rem !important;
  letter-spacing: .18em !important;
}

.sec-head h2,
section.blk > .wrap > h2 {
  color: #fff !important;
  font-size: clamp(2rem, 4.2vw, 3.25rem) !important;
  line-height: 1.16 !important;
  letter-spacing: -.04em !important;
}

.sec-head p {
  max-width: 600px;
  color: #8a8a96 !important;
  font-size: 1rem !important;
  line-height: 1.85 !important;
}

.agents,
.inds,
.models {
  gap: 14px !important;
}

.agent,
.ind,
.model {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .065) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .022) !important;
  box-shadow: none !important;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), border-color .5s ease, background .5s ease, box-shadow .5s ease !important;
}

.agent:hover,
.ind:hover,
.model:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(191, 128, 255, .22) !important;
  background: rgba(255, 255, 255, .042) !important;
  box-shadow: 0 24px 64px -16px rgba(191, 128, 255, .10) !important;
}

.agent .ic,
.ind .ii {
  border-color: rgba(191, 128, 255, .16) !important;
  background: rgba(168, 85, 247, .09) !important;
  color: #c896ff !important;
}

.agent h3,
.ind h4,
.model h3 { color: #fff !important; }

.agent p,
.ind p,
.model p { color: #8a8a96 !important; }

.agent .go,
.agent .num,
.model .tag { color: #c896ff !important; }

.why-box,
.cta {
  border-color: rgba(255, 255, 255, .07) !important;
  background: radial-gradient(circle at 80% 0%, rgba(168, 85, 247, .10), transparent 38%), rgba(255, 255, 255, .018) !important;
  box-shadow: none !important;
}

.why-item {
  border-color: rgba(255, 255, 255, .06) !important;
}

.why-item .ck {
  border-color: rgba(191, 128, 255, .18) !important;
  background: rgba(168, 85, 247, .10) !important;
  color: #c896ff !important;
}

.rv {
  transform: translateY(32px) !important;
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1) !important;
}

.rv.in {
  transform: translateY(0) !important;
}

/* Landing-page surfaces keep their layouts but share one glass system. */
#dc-root,
#dc-root > .sc-host {
  color: #e8e8ec !important;
  background: #03030a !important;
}

#dc-root section:not(.aether-flow-hero) {
  position: relative !important;
  background: #03030a !important;
}

#dc-root [data-reveal] {
  transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important;
}

#dc-root [style*="border: 1px solid rgba(255,255,255"] {
  box-shadow: none !important;
}

#dc-root input,
#dc-root textarea,
#dc-root select {
  border-color: rgba(255, 255, 255, .09) !important;
  background: rgba(255, 255, 255, .025) !important;
  color: #e8e8ec !important;
}

#dc-root input:focus,
#dc-root textarea:focus,
#dc-root select:focus {
  border-color: rgba(191, 128, 255, .45) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .10) !important;
}

/* Real Falaq identity — generated dawn-spark mark */
.brand .mark,
.falaq-service-mark {
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(192, 132, 252, .38) !important;
  border-radius: 12px !important;
  background: radial-gradient(circle at 32% 26%, rgba(168, 85, 247, .22), transparent 60%), #0a0616 !important;
  box-shadow: 0 0 22px rgba(168, 85, 247, .18), inset 0 1px rgba(255, 255, 255, .07) !important;
  animation: none !important;
}

.falaq-brand-logo {
  width: 68% !important;
  height: 68% !important;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, .5));
  animation: falaqLogoBreathe 5s ease-in-out infinite;
}

.chat-avatar .falaq-logo-svg { width: 62%; height: 62%; filter: drop-shadow(0 0 5px rgba(192, 132, 252, .5)); }

@keyframes falaqLogoBreathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(192, 132, 252, .35)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(232, 121, 249, .65)); }
}

/* Agent constellation */
.agent-constellation {
  position: relative !important;
  display: block !important;
  height: 620px !important;
  overflow: visible !important;
  isolation: isolate;
  transition: height .9s cubic-bezier(.22, 1, .36, 1);
}

.agent-constellation.is-open {
  height: 760px !important;
}

/* Dotted grid floor directly under the robot */
.agent-orchestrator::before {
  content: "";
  position: absolute;
  left: -190px;
  right: -190px;
  top: 46%;
  bottom: -90px;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 50% 55% at 50% 42%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 50% 55% at 50% 42%, #000 35%, transparent 80%);
  opacity: .55;
  transition: opacity .9s ease;
}

.agent-constellation.is-open .agent-orchestrator::before {
  opacity: 1;
}

.agent-threads {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Faint translucent static threads — simply fade in on open */
.agent-thread {
  fill: none;
  stroke: rgba(216, 140, 255, .2);
  stroke-width: 1.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, .25));
  opacity: 0;
  transition: opacity .7s ease;
  transition-delay: var(--thread-delay, 0s);
}

.agent-constellation.is-open .agent-thread {
  opacity: 1;
}

.agent-node {
  --node-size: 122px;
  position: absolute !important;
  z-index: 3 !important;
  display: flex !important;
  width: var(--node-size) !important;
  min-height: 132px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  opacity: 0 !important;
  transform: translateY(20px) scale(.9) !important;
  pointer-events: none !important;
  transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1) !important;
  transition-delay: var(--node-delay, 0s) !important;
}

.agent-constellation.is-open .agent-node {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

.agent-constellation.is-open .agent-node:hover {
  transform: translateY(-5px) !important;
}

.agent-node:nth-of-type(1) { top: 30px; left: 9%; }
.agent-node:nth-of-type(2) { top: 0; left: calc(50% - 61px); }
.agent-node:nth-of-type(3) { top: 40px; right: 8%; }
.agent-node:nth-of-type(4) { top: 300px; right: 1%; }
.agent-node:nth-of-type(5) { bottom: 0; right: 22%; }
.agent-node:nth-of-type(6) { bottom: 0; left: 22%; }
.agent-node:nth-of-type(7) { top: 300px; left: 1%; }


.agent-node .glow,
.agent-node .num,
.agent-node .go,
.agent-node > .agent-node-description { display: none !important; }

.agent-node .ic {
  display: grid !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 !important;
  place-items: center !important;
  border: 1px solid rgba(191, 128, 255, .26) !important;
  border-radius: 22px !important;
  background: radial-gradient(circle at 35% 25%, rgba(191, 128, 255, .18), rgba(255, 255, 255, .025)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 14px 35px rgba(0, 0, 0, .35), 0 0 26px rgba(168, 85, 247, .09) !important;
  color: #c896ff !important;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), border-color .4s ease, box-shadow .4s ease !important;
}

.agent-node .ic svg { width: 33px !important; height: 33px !important; }
.agent-node:hover .ic,
.agent-node:focus-visible .ic { transform: scale(1.12) rotate(-4deg) !important; border-color: rgba(56, 189, 248, .5) !important; box-shadow: 0 0 34px rgba(56, 189, 248, .2) !important; }

.agent-node > h3 {
  max-width: 150px;
  margin: 0 !important;
  color: #d8d8df !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

.agent-hover-card {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 20;
  display: grid;
  width: 390px;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border: 1px solid rgba(191, 128, 255, .22);
  border-radius: 18px;
  background: rgba(8, 7, 17, .94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 0 45px rgba(168, 85, 247, .08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(.96);
  backdrop-filter: blur(20px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}

.agent-node:hover .agent-hover-card,
.agent-node:focus-visible .agent-hover-card { opacity: 1; transform: translate(-50%, 0) scale(1); }
.agent-node:nth-of-type(5) .agent-hover-card,
.agent-node:nth-of-type(6) .agent-hover-card { top: auto; bottom: calc(100% + 14px); }

.agent-preview-robot { display: grid; height: 92px; place-items: center; border-radius: 14px; background: rgba(168, 85, 247, .07); }
.agent-preview-robot .falaq-robot-svg { width: 70px; height: 88px; }
.agent-preview-copy { display: block; text-align: start; }
.agent-preview-copy b { display: block; margin-bottom: 7px; color: #fff; font-size: .9rem; }
.agent-preview-copy > span { display: block; color: #9898a5; font-size: .76rem; line-height: 1.7; }

.agent-orchestrator {
  position: absolute;
  top: 190px;
  left: calc(50% - 120px);
  z-index: 2;
  display: flex;
  width: 240px;
  height: 350px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.agent-orchestrator .falaq-robot-svg { position: relative; z-index: 2; width: 205px; filter: drop-shadow(0 0 22px rgba(168, 85, 247, .25)); pointer-events: auto; cursor: pointer; transition: filter .4s ease; }
.agent-orchestrator .falaq-robot-svg:hover { filter: drop-shadow(0 0 34px rgba(232, 121, 249, .45)); }
.agent-orchestrator .robot-quip { top: -30px; pointer-events: none; }
.orchestrator-orbit { position: absolute; inset: 58px 5px 48px; border: 1px solid rgba(191, 128, 255, .18); border-radius: 50%; animation: orbitSpin 12s linear infinite; }
.orchestrator-orbit::before,
.orchestrator-orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 15px #38bdf8; }
.orchestrator-orbit::before { top: 18%; left: 5%; }
.orchestrator-orbit::after { right: 8%; bottom: 15%; background: #c896ff; box-shadow: 0 0 15px #c896ff; }
.orchestrator-label { position: absolute; bottom: 3px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid rgba(191,128,255,.18); border-radius: 999px; background: rgba(168,85,247,.07); color: #777786; font: 600 9px/1.2 monospace; letter-spacing: .16em; }
.orchestrator-label i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 9px #34d399; animation: statusPulse 1.5s infinite; }

html[lang="ar"] .orchestrator-label,
html[lang="ar"] .wake-signal { font-family: inherit; letter-spacing: .03em; font-size: 10px; }

.orchestrator-hint {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #9c9cab;
  font-size: .8rem;
  font-weight: 600;
  pointer-events: none;
}

.orchestrator-hint .arr {
  display: inline-block;
  color: #c896ff;
  animation: hintBounce 1.8s ease-in-out infinite;
}

@keyframes hintBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@keyframes orchestratorHover { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes statusPulse { 50% { opacity: .35; transform: scale(.75); } }

.falaq-robot-svg { overflow: visible; }
.robot-rig { animation: robotFloat 5.4s ease-in-out infinite; }
.robot-shadow { transform-box: fill-box; transform-origin: center; animation: shadowBreathe 5.4s ease-in-out infinite; }
.robot-eyes { transform: translate(var(--eyeX, 0px), var(--eyeY, 0px)); transition: transform .18s ease-out; }
.robot-eye { transform-box: fill-box; transform-origin: center; animation: robotBlink 4.4s ease-in-out infinite; }
.robot-eye.eye-two { animation-delay: .18s; }
.robot-core { transform-box: fill-box; transform-origin: center; animation: corePulse 2.2s ease-in-out infinite; }
.antenna-dot { animation: antennaBlink 1.6s ease-in-out infinite; }
.robot-antenna { transform-box: fill-box; transform-origin: 50% 100%; animation: antennaListen 3s ease-in-out infinite; }
.robot-arm { transform-box: fill-box; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.robot-arm-left { transform-origin: 50% 10%; animation: armSwayL 4.6s ease-in-out infinite; }
.robot-arm-right { transform-origin: 50% 10%; animation: armSwayR 4.6s ease-in-out infinite; }
.robot-mouth { transform-box: fill-box; transform-origin: center; transition: opacity .3s ease, transform .3s ease; }

@keyframes robotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes shadowBreathe { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .55; } }
@keyframes robotBlink { 0%, 42%, 48%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.08); } }
@keyframes corePulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.14); opacity: 1; } }
@keyframes antennaBlink { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes antennaListen { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(3deg); } }
@keyframes armSwayL { 0%, 100% { transform: rotate(2.5deg); } 50% { transform: rotate(-6deg); } }
@keyframes armSwayR { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(6deg); } }

/* Click reaction: jump + arms up */
.robot-cheer .robot-rig { animation: robotJump .95s cubic-bezier(.34, 1.56, .64, 1); }
.robot-cheer .robot-arm-left { animation: none; transform: rotate(-38deg); }
.robot-cheer .robot-arm-right { animation: none; transform: rotate(38deg); }
.robot-cheer .robot-mouth { opacity: 1; transform: scale(1.3); }
.robot-cheer .antenna-dot { animation-duration: .4s; }
@keyframes robotJump { 0% { transform: translateY(0); } 32% { transform: translateY(-26px); } 58% { transform: translateY(0); } 74% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

/* Talking state while a quip bubble is visible */
.robot-talking .robot-mouth { opacity: 1; animation: mouthTalk .5s ease-in-out infinite; }
@keyframes mouthTalk { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.7); } }

/* Speech bubble */
.robot-quip {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: -18px;
  width: max-content;
  max-width: 250px;
  padding: 10px 16px;
  border: 1px solid rgba(232, 121, 249, .32);
  border-radius: 16px;
  background: rgba(13, 8, 22, .93);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5), 0 0 26px rgba(168, 85, 247, .16);
  backdrop-filter: blur(12px);
  color: #f1e7ff;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(.92);
  transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.robot-quip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(232, 121, 249, .32);
}
.robot-quip.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.robot-quip .q-dots { display: inline-flex; gap: 4px; padding: 4px 2px; vertical-align: middle; }
.robot-quip .q-dots i { width: 5px; height: 5px; border-radius: 50%; background: #e879f9; animation: typingDot 1.1s infinite; }
.robot-quip .q-dots i:nth-child(2) { animation-delay: .15s; }
.robot-quip .q-dots i:nth-child(3) { animation-delay: .3s; }

/* Scroll-awakened Falaq Bot */
.falaq-bot-section { overflow: hidden; }
.falaq-bot-heading { max-width: 700px !important; }
.custom-bot-shell { position: relative; display: grid; min-height: 650px; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 36px; }
.bot-awakening-stage { position: relative; display: grid; min-height: 560px; place-items: center; perspective: 1000px; }
.bot-floor-ring { position: absolute; bottom: 60px; width: 310px; height: 80px; border: 1px solid rgba(191,128,255,.2); border-radius: 50%; background: radial-gradient(ellipse, rgba(168,85,247,.13), transparent 67%); transform: rotateX(68deg); animation: floorSignal 3s ease-in-out infinite; }
.seated-falaq-robot { position: relative; z-index: 2; width: 250px; transform: translateY(60px) scale(.86); transform-origin: center bottom; transition: transform 1.2s cubic-bezier(.22,1,.36,1), filter 1.2s ease; filter: saturate(.5) brightness(.6); cursor: pointer; }
.seated-falaq-robot .falaq-robot-svg { width: 100%; }
.wake-signal { position: absolute; top: 38px; display: inline-flex; align-items: center; gap: 8px; color: #555564; font: 600 9px/1 monospace; letter-spacing: .17em; opacity: .65; transition: opacity .5s ease; }
.wake-signal i { width: 7px; height: 7px; border-radius: 50%; background: #5a5a68; }
.is-awake .seated-falaq-robot { transform: translateY(0) scale(1); filter: saturate(1) brightness(1); }
.is-awake .wake-signal { opacity: 1; color: #c896ff; }
.is-awake .wake-signal i { background: #34d399; box-shadow: 0 0 10px #34d399; animation: statusPulse 1.4s infinite; }
.bot-awakening-stage .robot-quip { top: 72px; }
@keyframes floorSignal { 50% { transform: rotateX(68deg) scale(1.08); opacity: .45; } }

.falaq-chat-panel { position: relative; overflow: hidden; min-height: 620px; border: 1px solid rgba(255,255,255,.075); border-radius: 24px; background: radial-gradient(circle at 80% -10%, rgba(168,85,247,.13), transparent 38%), rgba(255,255,255,.02); box-shadow: 0 35px 90px rgba(0,0,0,.35); opacity: .2; transform: translateX(-60px) scale(.96); transition: opacity 1s ease .55s, transform 1.2s cubic-bezier(.22,1,.36,1) .45s; }
html[dir="ltr"] .falaq-chat-panel { transform: translateX(60px) scale(.96); }
.is-awake .falaq-chat-panel { opacity: 1; transform: translateX(0) scale(1) !important; }
.bot-preview-badge { padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(168,85,247,.05); color: #8a8a96; font-size: .7rem; text-align: center; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.chat-avatar { display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden; border: 1px solid rgba(192,132,252,.35); border-radius: 14px; background: #0a0616; }
.chat-top b { display: block; color: #fff; font-size: .94rem; }
.chat-top small { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: #777786; font-size: .7rem; }
.chat-top small i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.falaq-chat-messages { display: flex; height: 335px; flex-direction: column; gap: 12px; overflow-y: auto; padding: 22px; }
.bot-message,
.user-message { display: flex; max-width: 86%; align-items: flex-start; gap: 10px; animation: messageArrive .45s cubic-bezier(.22,1,.36,1) both; }
.user-message { align-self: flex-end; }
.bot-message p,
.user-message p { margin: 0; padding: 11px 14px; border: 1px solid rgba(255,255,255,.06); border-radius: 16px; background: rgba(255,255,255,.035); color: #c6c6ce; font-size: .78rem; line-height: 1.75; }
.user-message p { border-color: rgba(191,128,255,.18); background: rgba(168,85,247,.10); color: #ececf1; }
.mini-bot { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; overflow: hidden; border-radius: 12px; background: rgba(168,85,247,.09); }
.mini-bot .falaq-robot-svg { width: 30px; height: 38px; transform: translateY(3px); }
.mini-bot .robot-rig { animation: none; }
.mini-bot .robot-shadow { display: none; }
.bot-typing > span:last-child { display: flex; gap: 4px; padding: 14px; }
.bot-typing > span:last-child i { width: 5px; height: 5px; border-radius: 50%; background: #c896ff; animation: typingDot 1.2s infinite; }
.bot-typing > span:last-child i:nth-child(2) { animation-delay: .15s; }
.bot-typing > span:last-child i:nth-child(3) { animation-delay: .3s; }
.bot-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 20px 14px; }
.bot-suggestions button { padding: 7px 10px; border: 1px solid rgba(191,128,255,.14); border-radius: 999px; background: rgba(168,85,247,.055); color: #9898a5; font: 500 .68rem/1.2 inherit; cursor: pointer; transition: .25s ease; }
.bot-suggestions button:hover { border-color: rgba(191,128,255,.38); color: #fff; transform: translateY(-2px); }
.bot-suggestions button:disabled { cursor: wait; opacity: .5; }
.bot-input-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 0 20px 20px; }
.bot-input-row[hidden] { display: none; }
.bot-input-row input { min-width: 0; padding: 13px 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); color: #fff; font: 500 .77rem/1.2 inherit; outline: none; }
.bot-input-row input:focus { border-color: rgba(191,128,255,.4); box-shadow: 0 0 0 3px rgba(168,85,247,.08); }
.bot-input-row button { padding: 0 20px; border: 0; border-radius: 12px; background: #fff; color: #05050d; font: 700 .76rem/1 inherit; cursor: pointer; transition: transform .25s ease, background .25s ease; }
.bot-input-row button:hover { transform: translateY(-2px); background: #e8e8ec; }
.bot-input-row button:disabled { cursor: wait; opacity: .55; transform: none; }
.bot-contact-gate { margin: 0 20px 20px; padding: 16px; border: 1px solid rgba(191,128,255,.16); border-radius: 16px; background: rgba(168,85,247,.055); }
.bot-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.bot-contact-grid input { min-width: 0; padding: 11px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; outline: none; background: rgba(3,3,10,.62); color: #fff; font: 500 .72rem/1.3 inherit; }
.bot-contact-grid input:focus { border-color: rgba(191,128,255,.45); box-shadow: 0 0 0 3px rgba(168,85,247,.08); }
.bot-contact-gate > button { width: 100%; min-height: 42px; margin-top: 10px; border: 0; border-radius: 10px; background: linear-gradient(180deg,#c896ff,#a855f7); color: #14081f; font: 800 .76rem/1 inherit; cursor: pointer; }
.bot-contact-gate > button:disabled { cursor: wait; opacity: .6; }
.bot-contact-error { min-height: 17px; margin: 7px 0 0; color: #fca5a5; font-size: .68rem; }
.bot-download-card { align-self: stretch; margin: 2px 2px 6px 46px; padding: 15px; border: 1px solid rgba(191,128,255,.22); border-radius: 15px; background: linear-gradient(135deg,rgba(168,85,247,.12),rgba(255,255,255,.025)); }
html[dir="rtl"] .bot-download-card { margin: 2px 46px 6px 2px; }
.bot-download-card strong,.bot-download-card span { display: block; }
.bot-download-card strong { color: #f3e8ff; font-size: .79rem; line-height: 1.6; }
.bot-download-card span { margin: 3px 0 11px; color: #777786; font: 500 .62rem/1.3 monospace; }
.bot-download-card a { display: flex; min-height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: #fff; color: #13081d; font-size: .73rem; font-weight: 800; text-decoration: none; }

/* Reusable service-page bot */
body.bot-modal-open { overflow: hidden !important; }
.falaq-floating-launcher { position: fixed; z-index: 950; inset-inline-end: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 7px 14px 7px 7px; border: 1px solid rgba(192,132,252,.42); border-radius: 999px; background: rgba(10,6,22,.94); box-shadow: 0 18px 55px rgba(0,0,0,.48),0 0 28px rgba(168,85,247,.18); color: #f3e8ff; font: 700 .76rem/1.35 inherit; cursor: pointer; backdrop-filter: blur(16px); transition: transform .25s ease,border-color .25s ease; }
html[dir="rtl"] .falaq-floating-launcher { padding: 7px 7px 7px 14px; }
.falaq-floating-launcher:hover { transform: translateY(-4px); border-color: rgba(232,121,249,.72); }
.floating-bot-robot { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; overflow: hidden; border-radius: 50%; background: radial-gradient(circle,#241238,#090611 70%); }
.floating-bot-robot .falaq-robot-svg { width: 48px; height: 58px; transform: translateY(5px); }
.floating-bot-robot .robot-shadow { display: none; }
.floating-bot-label { max-width: 145px; text-align: start; }
.falaq-floating-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3,3,10,.78); backdrop-filter: blur(10px); }
.falaq-floating-overlay[hidden] { display: none; }
.falaq-floating-dialog { position: relative; width: min(540px,100%); max-height: calc(100dvh - 40px); }
.floating-bot-close { position: absolute; z-index: 5; top: 13px; inset-inline-end: 13px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; background: rgba(3,3,10,.75); color: #d6cedd; font: 400 22px/1 Arial,sans-serif; cursor: pointer; }
.floating-bot-close:hover { border-color: rgba(192,132,252,.5); color: #fff; }
.falaq-floating-bot .falaq-chat-panel { width: 100%; min-height: 620px; max-height: calc(100dvh - 40px); opacity: 1; transform: none !important; background: radial-gradient(circle at 80% -10%,rgba(168,85,247,.18),transparent 38%),#090711; box-shadow: 0 35px 100px rgba(0,0,0,.65); }
.falaq-floating-bot .bot-preview-badge { padding-inline: 55px; }
.falaq-floating-bot .chat-top { padding-inline-end: 58px; }
.falaq-floating-bot .falaq-chat-messages { height: 350px; }
@keyframes messageArrive { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes typingDot { 0%,80%,100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Every landing-page surface keeps breathing without overriding its bespoke demos. */
.aether-live-surface { animation: liveSurfaceFloat 7s ease-in-out infinite var(--live-delay) !important; }
.aether-live-surface:hover { animation-play-state: paused !important; filter: brightness(1.08); }
.aether-live-icon { transform-box: fill-box; transform-origin: center; animation: liveIconPulse 4.8s ease-in-out infinite var(--icon-delay) !important; }
.aether-flip-card:hover,
.aether-flip-card:focus-visible,
.aether-flip-card.is-flipped { transform: rotateY(180deg) !important; }
@keyframes liveSurfaceFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes liveIconPulse { 0%,100% { transform: translateY(0) rotate(0); filter: drop-shadow(0 0 0 rgba(168,85,247,0)); } 50% { transform: translateY(-3px) rotate(2deg); filter: drop-shadow(0 0 6px rgba(168,85,247,.35)); } }

@media (max-width: 700px) {
  .aether-flow-hero {
    min-height: auto !important;
    padding-top: 72px !important;
  }

  .aether-flow-hero > .hero-in,
  .aether-flow-hero > div:nth-of-type(2) {
    width: min(100% - 16px, 980px) !important;
    padding: 18px !important;
  }

  .aether-flow-hero h1,
  .aether-flow-hero .aether-title {
    font-size: clamp(2.25rem, 12vw, 3.8rem) !important;
    line-height: 1.12 !important;
  }

  .aether-flow-hero .aether-title {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 1.15 !important;
  }

  .aether-flow-hero .lead,
  .aether-flow-hero .aether-copy {
    margin-bottom: 28px !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  section.blk { padding-block: 80px !important; }
  .sec-head { margin-bottom: 42px !important; }

  .agent-constellation,
  .agent-constellation.is-open { display: grid !important; height: auto !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 26px 12px !important; }
  .agent-constellation:not(.is-open) .agent-node { display: none !important; }
  .agent-threads { display: none; }
  .agent-orchestrator { position: relative; top: auto; left: auto; grid-column: 1 / -1; grid-row: 1; justify-self: center; order: -1; }
  .agent-node { position: relative !important; inset: auto !important; width: 100% !important; min-height: 128px !important; }
  .agent-node:nth-of-type(n) { top: auto; right: auto; bottom: auto; left: auto; }
  .agent-hover-card { position: fixed; top: auto !important; right: 14px; bottom: 14px !important; left: 14px; width: auto; transform: translateY(20px) scale(.97); }
  .agent-node:hover .agent-hover-card,
  .agent-node:focus-visible .agent-hover-card { transform: translateY(0) scale(1); }
  .custom-bot-shell { grid-template-columns: 1fr; gap: 0; }
  .bot-awakening-stage { min-height: 430px; }
  .seated-falaq-robot { width: 220px; }
  .falaq-chat-panel { min-height: 600px; }
  .falaq-chat-messages { height: 300px; }
  .bot-contact-grid { grid-template-columns: 1fr; }
  .falaq-floating-launcher { inset-inline-end: 14px; bottom: 14px; min-height: 58px; padding: 5px; }
  .floating-bot-robot { width: 48px; height: 48px; flex-basis: 48px; }
  .floating-bot-label { display: none; }
  .falaq-floating-overlay { align-items: end; padding: 0; }
  .falaq-floating-dialog { width: 100%; max-height: 96dvh; }
  .falaq-floating-bot .falaq-chat-panel { min-height: 0; height: 96dvh; max-height: 96dvh; border-radius: 22px 22px 0 0; }
  .falaq-floating-bot .falaq-chat-messages { height: auto; min-height: 240px; flex: 1; }
}

@media (max-width: 420px) {
  .agent-constellation,
  .agent-constellation.is-open { grid-template-columns: 1fr !important; }
  .agent-orchestrator { grid-column: 1; }
}

:is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #c084fc !important;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .aether-flow-hero *,
  .aether-flow-hero *::before,
  .aether-flow-hero *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .agent-node,
  .agent-thread,
  .agent-orchestrator .falaq-robot-svg,
  .falaq-brand-image,
  .aether-live-surface,
  .aether-live-icon,
  .falaq-robot-svg * {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
