/* ================= Busy API Integration ================= */
.bai-hero { padding-bottom: 90px; }
.bai-hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.muted { color: var(--muted); font-size: 1.05rem; }

/* Hub visual */
.hub-visual { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin-left: auto; }
.hub-spokes { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-spokes circle { fill: none; stroke: rgba(110, 155, 255, 0.25); stroke-width: 1.5; stroke-dasharray: 5 8; animation: dash 3s linear infinite; }
.hub-spokes circle + circle { animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -52; } }
.hub-center {
  position: absolute; left: 50%; top: 50%;
  width: 120px; height: 120px; margin: -60px;
  border-radius: 32px;
  display: grid; place-items: center; align-content: center; gap: 4px;
  background: var(--grad);
  color: #fff; font-size: 2.2rem;
  box-shadow: 0 0 0 10px rgba(47, 107, 255, 0.12), 0 0 80px rgba(47, 107, 255, 0.7);
  z-index: 2;
  animation: centerPulse 3s ease-in-out infinite;
}
.hub-center span { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; }
@keyframes centerPulse { 50% { box-shadow: 0 0 0 22px rgba(47, 107, 255, 0), 0 0 100px rgba(47, 107, 255, 0.9); } }
.hub-orbit { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.hub-tile {
  position: absolute; left: 50%; top: 50%;
  width: 58px; height: 58px; margin: -29px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 1.4rem;
  transform: rotate(var(--a)) translateX(calc(var(--r, 165px))) rotate(calc(-1 * var(--a)));
}
.hub-tile i { animation: spin 40s linear infinite reverse; }
.hub-tile:nth-child(odd) { animation: tileGlow 4s ease-in-out infinite; }
.hub-tile:nth-child(3) i { color: #25d366; }
@keyframes tileGlow { 50% { background: rgba(47, 107, 255, 0.5); box-shadow: 0 0 30px rgba(47, 107, 255, 0.6); } }

/* Compare */
.compare-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.toggle {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-top: 26px; padding: 6px;
  border-radius: 100px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.tg-btn {
  position: relative; z-index: 1;
  padding: 12px 22px; border: 0; background: none; cursor: pointer; border-radius: 100px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--muted);
  transition: color 0.3s; white-space: nowrap;
}
.tg-btn.active { color: #fff; }
.tg-ink { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 100px; background: var(--grad); box-shadow: var(--shadow-glow); transform: translateX(100%); transition: transform 0.5s var(--ease-back), background 0.4s; }
.toggle.before .tg-ink { transform: translateX(0); background: linear-gradient(135deg, #3a4256, #070b1a); box-shadow: none; }

.compare-panel {
  position: relative;
  min-height: 360px;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.compare-panel::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: var(--grad); opacity: 0.1;
  transition: background 0.5s;
}
.compare-panel[data-mode="before"]::before { background: #e5484d; }
.cmp-list { position: absolute; inset: 36px; display: grid; gap: 14px; align-content: center; }
.cmp-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px;
  font-weight: 500; color: var(--ink);
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.cmp-list li i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; flex-shrink: 0; }
.cmp-list.before li { background: #fff4f4; }
.cmp-list.before li i { background: #ffe0e0; color: #e5484d; }
.cmp-list.after li { background: var(--bg-soft); }
.cmp-list.after li i { background: var(--primary); color: #fff; }
.compare-panel[data-mode="before"] .cmp-list.before li,
.compare-panel[data-mode="after"] .cmp-list.after li { opacity: 1; transform: none; }
.cmp-list li:nth-child(2) { transition-delay: 0.06s; } .cmp-list li:nth-child(3) { transition-delay: 0.12s; }
.cmp-list li:nth-child(4) { transition-delay: 0.18s; } .cmp-list li:nth-child(5) { transition-delay: 0.24s; }
.compare-panel[data-mode="before"] .cmp-list.after li,
.compare-panel[data-mode="after"] .cmp-list.before li { transition-delay: 0s; transform: translateX(-30px); }

/* Modules */
.module ul { display: grid; gap: 8px; }
.module li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.module li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-300); }

/* Platforms */
.plat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.plat {
  display: grid; justify-items: center; gap: 10px;
  padding: 26px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.plat i { font-size: 1.8rem; color: var(--primary); transition: transform 0.5s var(--ease-back); }
.plat .fa-whatsapp { color: #25d366; }
.plat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.plat:hover i { transform: scale(1.2) rotate(-8deg); }

/* Process */
.process-int { overflow: hidden; isolation: isolate; }
.process-int .bg-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(110, 155, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 155, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.pi-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; position: relative; }
.pi-steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 28px; height: 2px; background: linear-gradient(90deg, transparent, rgba(110, 155, 255, 0.5), transparent); }
.pi-steps li { text-align: center; position: relative; }
.pi-dot {
  position: relative;
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-2); border: 2px solid rgba(110, 155, 255, 0.4);
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  transition: background 0.4s, transform 0.4s var(--ease-back), box-shadow 0.4s;
}
.pi-steps li:hover .pi-dot, .pi-steps li.lit .pi-dot { background: var(--grad); border-color: transparent; transform: scale(1.1); box-shadow: 0 0 30px rgba(47, 107, 255, 0.6); }
.pi-steps h3 { font-size: 1.1rem; }
.pi-steps p { color: #a9b6dc; font-size: 0.9rem; margin: 0; }

/* Dev CTA */
.dev-cta { display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; padding: 48px; background: var(--bg-soft); }
.dev-cta:hover { transform: none; }
.dev-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.dev-cta p { color: var(--muted); margin: 0; }
.dev-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1024px) {
  .bai-hero-inner, .compare-grid { grid-template-columns: 1fr; }
  .hub-visual { margin: 20px auto 0; max-width: 380px; }
  .plat-grid { grid-template-columns: repeat(4, 1fr); }
  .pi-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .pi-steps::before { display: none; }
  .dev-cta { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hub-visual { max-width: 320px; }
  .hub-tile { width: 46px; height: 46px; margin: -23px; font-size: 1.1rem; --r: 125px; }
  .hub-center { width: 96px; height: 96px; margin: -48px; font-size: 1.7rem; }
  .plat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .plat { padding: 18px 8px; font-size: 0.78rem; }
  .pi-steps { grid-template-columns: 1fr 1fr; }
  .compare-panel { padding: 24px; min-height: 380px; }
  .cmp-list { inset: 20px; }
  .cmp-list li { font-size: 0.9rem; padding: 12px 14px; }
  .tg-btn { padding: 10px 14px; font-size: 0.82rem; }
  .dev-cta { padding: 32px 24px; }
}
@media (max-width: 400px) {
  .hub-tile { --r: 110px; }
}
