/* ============================================================
   OZI — Shared floating guide-bot "Ozi"
   Used on the homepage and Careers page. Requires tokens.css.
   ============================================================ */

/* ============================================================
   FLOATING GUIDE-BOT — "Ozi" drifts across the page
   ============================================================ */
.guidebot {
  position: fixed;
  right: 26px;
  top: 50%;
  z-index: 95;
  cursor: pointer;
  transform: translateY(-50%);
  transition: top 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}
.guidebot:focus-visible { outline: none; }
.guidebot:focus-visible .guidebot__body {
  border-color: var(--ozi-cyan-glow);
  box-shadow: 0 10px 34px rgba(0,0,0,.5), 0 0 0 3px rgba(79,224,255,0.35), 0 0 34px rgba(79,224,255,.6);
}
.guidebot__bob {
  position: relative;
  animation: bot-bob 3.4s ease-in-out infinite;
}
@keyframes bot-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
/* Body — a glassy cyan orb-bot */
.guidebot__body {
  position: relative;
  width: 58px; height: 54px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 28%, rgba(79,224,255,0.32), rgba(8,34,52,0.94));
  border: 1px solid rgba(79,224,255,0.5);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 24px rgba(79,224,255,0.30), inset 0 1px 0 rgba(255,255,255,0.14);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.guidebot:hover .guidebot__body {
  border-color: var(--ozi-cyan-glow);
  box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 38px rgba(79,224,255,.6), inset 0 1px 0 rgba(255,255,255,0.18);
  transform: scale(1.06);
}
.guidebot__antenna {
  position: absolute;
  top: -13px; left: 50%;
  width: 2px; height: 13px;
  transform: translateX(-50%);
  background: rgba(79,224,255,0.55);
}
.guidebot__antenna::after {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ozi-cyan-glow);
  box-shadow: 0 0 12px var(--ozi-cyan-glow);
  animation: live-pulse 1.6s ease-out infinite;
}
.guidebot__face { display: flex; gap: 9px; align-items: center; }
.guidebot__eye {
  width: 9px; height: 13px;
  border-radius: 6px;
  background: var(--ozi-cyan-glow);
  box-shadow: 0 0 10px var(--ozi-cyan-glow);
  transform-origin: center;
  animation: bot-blink 4.6s infinite;
}
@keyframes bot-blink {
  0%, 91%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.12); }
}
/* Speech bubble — opens to the LEFT of the bot so it stays on-screen */
.guidebot__bubble {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: 250px;
  text-align: right;
  padding: 10px 15px;
  border-radius: 14px;
  background: rgba(4, 17, 27, 0.94);
  border: 1px solid rgba(79,224,255,0.32);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  text-wrap: balance;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.guidebot__bubble::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: rgba(4, 17, 27, 0.94);
}
@media (max-width: 620px) {
  .guidebot { right: 14px; }
  .guidebot__body { width: 50px; height: 47px; }
  .guidebot__bubble { font-size: 11.5px; max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .guidebot__bob,
  .guidebot__eye,
  .guidebot__antenna::after { animation: none; }
}
