/* ==========================================================================
   MSP Process — Automation Bots page
   Cyan-lead accent (matches AVV/Teams family). Reuses tokens/base/
   components/home primitives. Page-local classes are .bots-* namespaced.
   ========================================================================== */

/* ---------- Hero -------------------------------------------------------- */
.bots-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5rem); }
.bots-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bots-hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 28%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 75% at 50% 28%, #000 25%, transparent 78%);
}
.bots-hero__glow {
  position: absolute; left: 50%; bottom: -8%;
  width: min(85%, 1200px); aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: rgba(0, 186, 251, 0.22);
  filter: blur(160px); border-radius: 700px; opacity: 0.9;
}
.bots-hero__content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1200px; width: 100%;
  margin-inline: auto;
}
.bots-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.25rem, 2vw, 1.5rem); }
.bots-hero__pulse-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-brand); font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-cyan);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(0, 186, 251, 0.10); border: 1px solid rgba(0, 186, 251, 0.30);
}
.bots-hero__pulse-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-cyan); box-shadow: 0 0 10px var(--brand-cyan);
  animation: botsPulse 1.8s ease-in-out infinite;
}
@keyframes botsPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.bots-hero__title {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 2.875rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.5px;
  text-wrap: balance;
}
.bots-hero__title-grad {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, #00bfff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bots-hero__sub { font-weight: 300; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); line-height: 1.55; color: var(--text); max-width: 580px; }
.bots-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.bots-hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin-top: 10px; width: 100%;
}
.bots-hero__stat {
  padding: 14px 12px;
  background: var(--card-grad); border: 1px solid var(--card-border);
  border-radius: 12px;
}
.bots-hero__stat-num {
  font-family: var(--font-brand); font-weight: 700;
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.25rem);
  background: linear-gradient(135deg, var(--brand-cyan), #00bfff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1.05; margin-bottom: 4px;
}
.bots-hero__stat-lbl { font-size: 11px; color: var(--text); font-weight: 500; line-height: 1.3; }

@media (max-width: 1024px) {
  .bots-hero__content { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .bots-hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Hero event card (static fan-out visual) --------------------- */
.bots-card {
  position: relative;
  background: var(--card-grad);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--card-shadow), 0 24px 60px -22px rgba(0, 186, 251, 0.35);
  overflow: hidden; isolation: isolate;
  padding: 18px;
}
.bots-card::before {
  content: ""; position: absolute; top: -30%; right: -10%;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 186, 251, 0.16), transparent 70%);
  filter: blur(50px); pointer-events: none; z-index: 0;
}
.bots-card__inner { position: relative; z-index: 1; }
.bots-card__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.bots-card__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px; letter-spacing: 0.10em; font-weight: 800;
  color: var(--brand-cyan);
}
.bots-card__status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-cyan); box-shadow: 0 0 10px var(--brand-cyan);
  animation: botsPulse 1.4s infinite;
}
.bots-card__time {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10.5px; color: var(--text); letter-spacing: 0.06em;
}
.bots-card__asset {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 10px; margin-bottom: 10px;
}
.bots-card__asset-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-cyan), #00bfff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; flex-shrink: 0;
}
.bots-card__asset-meta { flex: 1; min-width: 0; }
.bots-card__asset-name { color: var(--heading); font-size: 13px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bots-card__asset-tag {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10.5px; color: var(--text); letter-spacing: 0.04em; font-weight: 600;
}
.bots-card__asset-pill {
  flex-shrink: 0;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.10em; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  color: #00b557;
  background: rgba(0, 230, 118, 0.12); border: 1px solid rgba(0, 230, 118, 0.36);
}
.bots-card__steps { display: flex; flex-direction: column; gap: 6px; }
.bots-card__step {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 11px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 10px;
}
.bots-card__step--done { border-color: rgba(0, 230, 118, 0.30); background: rgba(0, 230, 118, 0.04); }
.bots-card__step--active { border-color: rgba(0, 186, 251, 0.36); background: rgba(0, 186, 251, 0.05); }
.bots-card__step-icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  background: rgba(0, 186, 251, 0.12); border: 1px solid rgba(0, 186, 251, 0.36);
  color: var(--brand-cyan);
}
.bots-card__step--done .bots-card__step-icon { background: rgba(0, 230, 118, 0.14); border-color: rgba(0, 230, 118, 0.4); color: #00b557; }
.bots-card__step-body { flex: 1; min-width: 0; }
.bots-card__step-line { color: var(--heading); font-size: 12px; font-weight: 600; line-height: 1.35; }
.bots-card__step-line .who {
  display: inline-block; margin-right: 6px;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.08em; color: var(--text); font-weight: 700; text-transform: uppercase;
}
.bots-card__step-meta { color: var(--text); font-size: 10.5px; line-height: 1.35; margin-top: 1px; }
.bots-card__step-tag {
  flex-shrink: 0;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 9px; letter-spacing: 0.10em; font-weight: 800; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px;
  color: var(--brand-cyan);
  background: rgba(0, 186, 251, 0.08); border: 1px solid rgba(0, 186, 251, 0.30);
}
.bots-card__step--done .bots-card__step-tag { color: #00b557; background: rgba(0, 230, 118, 0.12); border-color: rgba(0, 230, 118, 0.36); }
.bots-card__foot {
  display: flex; gap: 8px; padding-top: 12px; margin-top: 12px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.bots-card__foot-chip {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.10em; font-weight: 800; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: var(--card-grad); border: 1px solid var(--card-border); color: var(--text);
}
.bots-card__foot-chip--ok { color: #00b557; background: rgba(0, 230, 118, 0.10); border-color: rgba(0, 230, 118, 0.36); }

/* ---------- Section header --------------------------------------------- */
.bots-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.bots-section--alt { background: var(--bg-alt); border-block: 1px solid var(--hairline); }
.bots-head { max-width: 800px; margin: 0 auto clamp(2.25rem, 4vw, 3rem); text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.bots-head__title { font-size: clamp(1.85rem, 1.1rem + 2.4vw, 2.75rem); font-weight: 500; line-height: 1.16; letter-spacing: -0.4px; }
.bots-head__title .grad {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, #00bfff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bots-head__sub { font-weight: 300; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); line-height: 1.55; color: var(--text); max-width: 720px; }

/* ---------- Events grid (6 feature items, less-boxy) -------------------- *
 * Light card chrome (no shadows), thin border, hover lift only.            */
.bots-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; }
.bots-feat {
  position: relative;
  padding: 22px 4px 22px 22px;
  display: flex; flex-direction: column; gap: 11px;
  border-left: 2px solid rgba(0, 186, 251, 0.18);
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.bots-feat:hover {
  border-left-color: var(--brand-cyan);
  transform: translateX(2px);
}
.bots-feat__icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--brand-cyan);
  background: linear-gradient(135deg, rgba(0, 186, 251, 0.12), rgba(0, 186, 251, 0.03));
  border: 1px solid rgba(0, 186, 251, 0.24);
}
.bots-feat__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bots-feat__title { font-family: var(--font-brand); font-weight: 600; font-size: 16.5px; line-height: 1.25; letter-spacing: -0.2px; color: var(--heading); margin: 0; }
.bots-feat__desc { font-weight: 300; font-size: 13.5px; line-height: 1.55; color: var(--text); margin: 0; }
.bots-feat__tag {
  align-self: flex-start;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10px; letter-spacing: 0.12em; font-weight: 800; text-transform: uppercase;
  color: var(--brand-cyan);
}
@media (max-width: 960px) { .bots-events { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bots-events { grid-template-columns: 1fr; } }

/* ---------- Flow pipeline (6 steps, connected spine) -------------------- */
.bots-flow {
  --node: 50px; --line: 3px;
  position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  padding-top: calc(var(--node) + 28px);
}
.bots-flow::before {
  content: ""; position: absolute; top: calc(var(--node) / 2);
  left: 8.333%; right: 8.333%;
  height: var(--line); transform: translateY(-50%);
  background: linear-gradient(90deg, var(--brand-cyan), rgba(0, 186, 251, 0.4));
  border-radius: 999px;
}
.bots-flow__step { position: relative; text-align: center; }
.bots-flow__node {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, 0);
  width: var(--node); height: var(--node); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(150deg, var(--brand-cyan), #00bfff);
  box-shadow: 0 10px 22px -8px rgba(0, 186, 251, 0.55), 0 0 0 5px var(--bg);
  z-index: 2;
}
.bots-flow__step::before {
  content: ""; position: absolute;
  top: var(--node); left: 50%; transform: translateX(-50%);
  width: var(--line); height: 22px;
  background: rgba(0, 186, 251, 0.45);
}
.bots-flow__name { font-family: var(--font-brand); font-weight: 600; font-size: 15px; line-height: 1.25; letter-spacing: -0.2px; color: var(--heading); margin: 0 0 6px; }
.bots-flow__body { font-weight: 300; font-size: 12.5px; line-height: 1.5; color: var(--text); margin: 0; }
@media (max-width: 1100px) {
  .bots-flow { grid-template-columns: repeat(3, 1fr); padding-top: 0; gap: 32px 18px; }
  .bots-flow::before { display: none; }
  .bots-flow__step { padding-top: calc(var(--node) + 16px); }
  .bots-flow__step::before { display: none; }
}
@media (max-width: 640px) { .bots-flow { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Channels (5 cards, soft) ------------------------------------ */
.bots-channels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.bots-channel {
  padding: 24px 18px; text-align: center;
  background: var(--card-grad); border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), border-color 0.3s;
}
.bots-channel:hover { transform: translateY(-3px); border-color: rgba(0, 186, 251, 0.4); }
.bots-channel__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  margin: 0 auto 14px; font-size: 22px;
}
.bots-channel--teams .bots-channel__icon { background: rgba(91, 95, 199, 0.16); border: 1px solid rgba(91, 95, 199, 0.36); color: #7b83eb; }
.bots-channel--sms   .bots-channel__icon { background: rgba(10, 154, 86, 0.14); border: 1px solid rgba(10, 154, 86, 0.36); color: var(--brand-green); }
.bots-channel--slack .bots-channel__icon { background: rgba(160, 100, 255, 0.14); border: 1px solid rgba(160, 100, 255, 0.36); color: #a064ff; }
.bots-channel--email .bots-channel__icon { background: rgba(0, 186, 251, 0.14); border: 1px solid rgba(0, 186, 251, 0.36); color: var(--brand-cyan); }
.bots-channel--voice .bots-channel__icon { background: rgba(255, 160, 40, 0.14); border: 1px solid rgba(255, 160, 40, 0.36); color: #ffa028; }
.bots-channel__name { font-family: var(--font-brand); font-weight: 600; font-size: 15px; color: var(--heading); margin: 0 0 6px; }
.bots-channel__body { font-weight: 300; font-size: 12.5px; line-height: 1.5; color: var(--text); margin: 0; }
@media (max-width: 920px) { .bots-channels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bots-channels { grid-template-columns: 1fr; } }

/* ---------- PSA strip (logos) ------------------------------------------- */
.bots-psa {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  padding: 22px;
  background: var(--card-grad); border: 1px solid var(--card-border);
  border-radius: 16px; box-shadow: var(--card-shadow);
}
.bots-psa__tile {
  aspect-ratio: 5/2;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(11, 18, 48, 0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.bots-psa__tile:hover { border-color: var(--brand-cyan); transform: translateY(-2px); }
.bots-psa__tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bots-psa .theme-light-only { display: inline; }
.bots-psa .theme-dark-only  { display: none; }
@media (max-width: 900px) { .bots-psa { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .bots-psa { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Final CTA --------------------------------------------------- */
.bots-final {
  position: relative; overflow: hidden;
  max-width: 1080px; margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 22px; text-align: center;
  background: linear-gradient(135deg, rgba(0, 186, 251, 0.14), rgba(0, 186, 251, 0.04));
  border: 1px solid rgba(0, 186, 251, 0.28);
}
.bots-final::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 900px; max-width: 130%; height: 280px;
  background: rgba(0, 186, 251, 0.16); filter: blur(110px); border-radius: 700px;
  pointer-events: none;
}
.bots-final__inner { position: relative; z-index: 1; }
.bots-final__title {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.4px;
  margin: 0 0 14px;
}
.bots-final__title .grad {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, #00bfff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bots-final__sub { font-weight: 300; font-size: 15.5px; line-height: 1.55; color: var(--text); max-width: 640px; margin: 0 auto 24px; }
.bots-final__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
