/* Aistra brand tokens (from the Aistra deck style). */
:root {
  --navy: #0D0B1F;
  --purple: #6E5BFF;
  --purple-deep: #4B3DC9;
  --purple-light: #8B7EFF;
  --purple-soft: #C8B6FF;
  --cyan: #00D4E0;
  --card-a: #EEECFF;
  --lavender: #E5DCFF;
  --ink: #111111;
  --muted: #666666;
  --line: #E4E1F5;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--purple); color: #fff;
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
p { margin: 0; }
strong { font-weight: 700; color: #fff; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(var(--wrap), 100% - 64px); } }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 16px; }

/* Intro targets: hidden only while the motion layer gets ready. */
.motion:not(.motion-done) [data-intro],
.motion:not(.motion-done) [data-split],
.motion:not(.motion-done) [data-card] { opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(13, 11, 31, .06), 0 14px 34px -26px rgba(13, 11, 31, .55);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.nav__brand img { height: 38px; width: auto; }
.nav__meta { display: flex; align-items: center; gap: 18px; }
.nav__conf { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .nav__conf { display: none; } .nav__brand img { height: 32px; } }

.live-pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 15px 0 13px; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  transition: background .35s var(--ease-out);
}
.live-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: ping 2s var(--ease-out) infinite; }
.live-pill.is-oncall { background: var(--purple); }
.live-pill.is-oncall .live-pill__dot { background: #fff; animation-duration: 1.1s; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 224, .6); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(0, 212, 224, 0); }
}

/* ---------- Assistants: the whole page, styled like the Aistra closing slide ---------- */
.assistants {
  position: relative; isolation: isolate; overflow: hidden; flex: 1;
  display: flex; align-items: center;
  padding: clamp(32px, 6vh, 72px) 0 clamp(40px, 7vh, 88px);
}
.assistants__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob--a { width: min(760px, 90vw); aspect-ratio: 1; left: -18%; top: -38%; background: var(--purple-deep); animation: drift 22s ease-in-out infinite alternate; }
.blob--b { width: min(620px, 80vw); aspect-ratio: 1; right: -14%; bottom: -40%; background: var(--purple-light); animation: drift 26s ease-in-out infinite alternate-reverse; }
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); border-radius: 50%; }
  50% { border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; }
  100% { transform: translate(5%, 4%) scale(1.06); border-radius: 53% 47% 45% 55% / 47% 55% 45% 53%; }
}

.label { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.assistants__head h1 {
  margin-top: 14px; max-width: 20ch;
  font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1.04;
}
.assistants__head h1 .word { display: inline-block; will-change: transform, filter; }
.hl { color: var(--cyan); }
.assistants__sub { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--card-a); }

/* Cards: rows line up across both cards (head, greeting, call) via subgrid. */
.agents { margin-top: clamp(28px, 4.5vh, 48px); display: grid; gap: 24px; }
@media (min-width: 1000px) {
  .agents { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; column-gap: 28px; row-gap: 0; }
  /* .agents prefix: must outrank the base .agent rule that follows this block */
  .agents > .agent { grid-row: span 3; display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .agents .agent__greeting { align-self: start; }
  .agents .agent__call { align-self: end; }
}

.agent {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 20px;
  padding: 30px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 40%), var(--purple-deep);
  box-shadow: 0 40px 80px -40px rgba(13, 11, 31, .75), inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: box-shadow .45s var(--ease-out), opacity .45s, translate .45s var(--ease-out);
}
@media (max-width: 560px) { .agent { padding: 20px; border-radius: 22px; } }
@media (hover: hover) { .agent:hover { translate: 0 -4px; } }

.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%), rgba(0, 212, 224, .16), transparent 62%);
  opacity: 0; transition: opacity .45s;
}
.spotlight:hover::before, .agent.is-live::before { opacity: 1; }
.agent.is-live {
  box-shadow: 0 0 0 2px var(--cyan), 0 40px 90px -30px rgba(0, 212, 224, .5), inset 0 1px 0 rgba(255, 255, 255, .14);
  animation: live-glow 2.4s ease-in-out infinite;
}
.agent.is-waiting { opacity: .58; }
.agent.is-waiting:hover { translate: none; }
@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--cyan), 0 40px 90px -30px rgba(0, 212, 224, .45), inset 0 1px 0 rgba(255, 255, 255, .14); }
  50% { box-shadow: 0 0 0 2px var(--cyan), 0 40px 110px -24px rgba(0, 212, 224, .7), inset 0 1px 0 rgba(255, 255, 255, .14); }
}

.num {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cyan); color: var(--navy); font-weight: 700; font-size: 18px;
  box-shadow: 0 8px 20px -8px rgba(0, 212, 224, .8);
}
.agent__head { display: flex; gap: 16px; align-items: flex-start; }
.agent__head h2 { color: #fff; font-size: clamp(25px, 2.5vw, 32px); letter-spacing: -.025em; }
.agent__head p { margin-top: 8px; font-size: 16px; color: var(--card-a); }

.agent__greeting {
  margin: 0; padding: 14px 18px;
  border-left: 3px solid var(--cyan); border-radius: 0 14px 14px 0;
  background: rgba(13, 11, 31, .24); color: var(--lavender);
  font-size: 16px; font-style: italic;
}
.agent__call {
  border-radius: 20px;
  background: rgba(13, 11, 31, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.agent__call iframe { display: block; width: 100%; height: 184px; border: 0; background: transparent; color-scheme: light; transition: height .3s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
