/* The agent film: player, five scenes and the narrated video dialog. Shared by the product page designs. */
.tagpill { display: inline-flex; align-items: center; gap: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* icons: one stroke set, in a soft glass tile */
.ico { --c1: #5b8cff; --c2: #2f6bff; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; position: relative;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px -10px var(--c2), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -6px 12px -6px rgba(4,10,34,.35); }
.ico::after { content: ""; position: absolute; inset: 1px; border-radius: 12px; background: linear-gradient(160deg, rgba(255,255,255,.28), transparent 45%); pointer-events: none; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.green { --c1: #3be0ad; --c2: #0f9d76; } .ico.violet { --c1: #a08bff; --c2: #6a48f2; } .ico.pink { --c1: #ff9ccb; --c2: #f0509a; }
/* ---------- the agent film ---------- */
.tour { padding: 30px 24px 120px; text-align: center; background: linear-gradient(#fff, #f3f6fc); }
.player { position: relative; max-width: 1040px; margin: 0 auto; border-radius: 26px; background: #050b24; color: #fff; text-align: left; overflow: hidden;
  box-shadow: 0 60px 100px -50px rgba(16,32,96,.7), 0 0 0 1px rgba(47,107,255,.25), 0 0 80px -20px rgba(47,107,255,.45); }
.player.tilt { transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.chrome { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font: 500 12px var(--mono); color: #8b97c2; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #2a3566; } .chrome .url { margin-left: 12px; } .chrome .time { margin-left: auto; }
.screen { position: relative; aspect-ratio: 16 / 8.6; overflow: hidden;
  background: radial-gradient(600px 300px at 82% 8%, rgba(124,92,255,.30), transparent 70%), radial-gradient(600px 320px at 8% 92%, rgba(47,107,255,.32), transparent 70%),
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.3px) 0 0 / 24px 24px, #060d2b; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; background: linear-gradient(rgba(91,140,255,0), rgba(91,140,255,.09), rgba(91,140,255,0)); animation: scan 8s linear infinite; }
@keyframes scan { from { transform: translateY(-120px); } to { transform: translateY(620px); } }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 58px 26px 22px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.scene.on { opacity: 1; visibility: visible; }
.player.paused .screen * { animation-play-state: paused !important; }
.stage { width: min(700px, 100%); display: flex; align-items: center; justify-content: center; gap: 26px; }
.lbl { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #9db8ff; display: block; }
/* the agent: a living orb */
.orb { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-block; isolation: isolate;
  background: conic-gradient(from 0deg, #5b8cff, #7c5cff, #ff6fb5, #2fd39e, #5b8cff); animation: spin 4s linear infinite; box-shadow: 0 0 22px rgba(91,140,255,.75); }
.orb::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #25357e, #060d2b 70%); }
.orb i { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, #fff, #9db8ff 55%, transparent 75%); animation: glow 2s ease-in-out infinite; }
.orb.xl { width: 108px; height: 108px; box-shadow: 0 0 60px rgba(91,140,255,.8), 0 0 120px rgba(124,92,255,.45); } .orb.xl::before { inset: 7px; }
@keyframes spin { to { rotate: 360deg; } } @keyframes glow { 50% { transform: scale(1.5); opacity: .7; } }
.agentpill { position: absolute; left: 20px; top: 16px; display: flex; align-items: center; gap: 11px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.agentpill b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; } .agentpill small { display: block; font-size: 11.5px; color: #9db8ff; }
.agentpill small::after { content: ""; display: inline-block; width: 1.1em; text-align: left; animation: dots 1.6s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.type { display: block; clip-path: inset(0 100% 0 0); }
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes fillw { from { width: 0; } to { width: var(--w); } }
@keyframes drawp { to { stroke-dashoffset: 0; } }
@keyframes okglow { to { border-color: rgba(47,211,158,.6); background: rgba(47,211,158,.1); } }

/* scene 1: connect */
.bigorb { position: relative; display: grid; place-items: center; width: 150px; height: 150px; flex: none; }
.bigorb u { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(157,184,255,.5); opacity: 0; }
.s1.on .bigorb u { animation: ripple 2.4s ease-out infinite; } .bigorb u:nth-of-type(2) { animation-delay: .8s !important; } .bigorb u:nth-of-type(3) { animation-delay: 1.6s !important; }
@keyframes ripple { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.s1.on .orb.xl { animation: spin 4s linear infinite, pop .9s .2s both; }
.beam { width: 130px; height: 20px; flex: 0 1 130px; } .beam path { fill: none; stroke: #7aa2ff; stroke-width: 2; stroke-dasharray: 6 8; filter: drop-shadow(0 0 6px #5b8cff); opacity: 0; }
.s1.on .beam path { animation: fadein .5s 1.2s both, flow 1s 1.2s linear infinite; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } } @keyframes flow { to { stroke-dashoffset: -28; } }
.ledger { width: 300px; padding: 18px; border-radius: 20px; display: grid; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); opacity: 0; }
.s1.on .ledger { animation: pop .7s 1.5s both; }
.lrow { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 11px; background: rgba(255,255,255,.06); font-size: 13.5px; opacity: 0; }
.lrow b { font: 500 13.5px var(--mono); }
.s1.on .lrow { animation: pop .5s both; animation-delay: calc(2.4s + var(--k, 0) * .5s); } .lrow:nth-of-type(2) { --k: 1; } .lrow:nth-of-type(3) { --k: 2; }
.okline { font-size: 12.5px; color: #6be6bd; padding: 4px 2px 0; opacity: 0; } .okline::before { content: "● "; }
.s1.on .okline { animation: pop .5s 4.4s both; }

/* scene 2: read */
.files { display: grid; gap: 10px; }
.files span { padding: 10px 14px; border-radius: 12px; background: #fff; color: #050b24; font: 500 12.5px var(--mono); opacity: 0; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.s2.on .files span { animation: fly 2.2s cubic-bezier(.3,.6,.2,1) both; animation-delay: calc(.3s + var(--k, 0) * .5s); }
.files span:nth-child(2) { --k: 1; } .files span:nth-child(3) { --k: 2; } .files span:nth-child(4) { --k: 3; }
@keyframes fly { 0% { opacity: 0; transform: translateX(-40px); } 18%, 55% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(230px) scale(.4); } }
.reader { display: grid; justify-items: center; gap: 4px; text-align: center; width: 330px; }
.s2.on .reader .orb { animation: spin 1.2s linear infinite; }
.reader b { font-size: 72px; line-height: 1; letter-spacing: -.05em; font-weight: 600; margin-top: 14px; opacity: 0; background: linear-gradient(180deg, #fff, #7aa2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reader small { color: #c7d2f5; opacity: 0; }
.s2.on .reader b { animation: pop .6s 3.6s both; } .s2.on .reader small { animation: pop .5s 3.9s both; }
.kinds, .pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.kinds span, .pills span { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); opacity: 0; }
.s2.on .kinds span { animation: pop .45s both; animation-delay: calc(4.4s + var(--k, 0) * .22s); }
.kinds span:nth-child(2), .pills span:nth-child(2) { --k: 1; } .kinds span:nth-child(3), .pills span:nth-child(3) { --k: 2; } .kinds span:nth-child(4) { --k: 3; }

/* scene 3: match */
.matchgrid { display: grid; grid-template-columns: 1fr 110px 1fr; gap: 0; align-items: start; }
.col { display: grid; gap: 12px; } .col .lbl { height: 14px; }
.line { height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border-radius: 13px; font-size: 13px; white-space: nowrap;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); opacity: 0; }
.line b { font: 500 12.5px var(--mono); } .right .line b { color: #6be6bd; }
.wires { width: 110px; height: 162px; margin-top: 26px; } .wires path { fill: none; stroke: #7aa2ff; stroke-width: 2; stroke-dasharray: 110; stroke-dashoffset: 110; filter: drop-shadow(0 0 6px #5b8cff); }
.s3.on .left .line { animation: pop .5s both; animation-delay: calc(.3s + var(--k, 0) * .25s); }
.s3.on .wires path { animation: drawp .6s both; animation-delay: calc(1.3s + var(--k, 0) * .8s); }
.s3.on .right .line { animation: pop .5s both, okglow .6s both; animation-delay: calc(1.7s + var(--k, 0) * .8s), calc(2.1s + var(--k, 0) * .8s); }
.s3 .line:nth-of-type(2), .wires path:nth-child(2) { --k: 1; } .s3 .line:nth-of-type(3), .wires path:nth-child(3) { --k: 2; }
.says { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 10px 16px 10px 10px; border-radius: 16px; font-size: 14px;
  background: linear-gradient(120deg, rgba(91,140,255,.2), rgba(124,92,255,.14)); border: 1px solid rgba(157,184,255,.4); opacity: 0; }
.says .ico { width: 32px; height: 32px; border-radius: 10px; } .says .ico svg { width: 16px; height: 16px; }
.s3.on .says { animation: pop .6s 4.3s both; } .s3.on .says .type { animation: reveal 1.8s 4.8s steps(40) both; }

/* scene 4: ask */
.chat { flex-direction: column; align-items: stretch; gap: 12px; max-width: 560px; }
.chat .q { align-self: flex-end; margin: 0; padding: 10px 16px; border-radius: 18px 18px 5px 18px; background: #fff; color: #050b24; font-size: 14.5px; font-weight: 500; opacity: 0; }
.chat .a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px 18px 18px 5px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: 15px; line-height: 1.5; opacity: 0; max-width: 92%; }
.chat .src { display: block; font: 500 11px var(--mono); color: #9db8ff; margin-top: 6px; opacity: 0; }
.draft { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255,111,181,.1); border: 1px solid rgba(255,111,181,.4); font-size: 13.5px; opacity: 0; }
.draft b { display: block; } .draft small { color: #c7d2f5; } .draft em { margin-left: auto; font: 600 13px var(--sans); background: #fff; color: #050b24; padding: 7px 14px; border-radius: 999px; }
.s4.on .q { animation: pop .5s .4s both; } .s4.on .a { animation: pop .5s 1.3s both; }
.s4.on .t1 { animation: reveal 1s 1.8s steps(30) both; } .s4.on .t2 { animation: reveal 1.2s 2.8s steps(36) both; } .s4.on .src { animation: fadein .5s 4s both; }
.s4.on .q2 { animation: pop .5s 4.8s both; } .s4.on .draft { animation: pop .6s 5.7s both; }

/* scene 5: close */
.closegrid { gap: 40px; }
.queue { width: 320px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); display: grid; gap: 9px; }
.q5 { position: relative; padding: 9px 12px 9px 38px; border-radius: 11px; background: rgba(255,255,255,.06); font-size: 13px; }
.q5::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); }
.s5.on .q5::before { animation: tick1 .3s both; animation-delay: calc(.5s + var(--k, 0) * .4s); }
@keyframes tick1 { to { border-color: #2fd39e; background: #2fd39e; box-shadow: 0 0 10px #2fd39e; } }
.q5:nth-of-type(2) { --k: 1; } .q5:nth-of-type(3) { --k: 2; }
.fakebtn { justify-self: start; margin-top: 4px; background: #fff; color: #050b24; font-weight: 600; font-size: 13.5px; padding: 9px 18px; border-radius: 999px; }
.s5.on .fakebtn { animation: press .5s 2.2s both; } @keyframes press { 40% { transform: scale(.93); } 100% { background: #2fd39e; } }
.ringbox { display: grid; justify-items: center; gap: 8px; } .ringbox small { color: #c7d2f5; }
.bigring { position: relative; width: 150px; aspect-ratio: 1; }
.bigring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .bigring circle { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 9; }
.bigring .arc { stroke: #2fd39e; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; filter: drop-shadow(0 0 8px #2fd39e); }
.s5.on .bigring .arc { animation: ring5 2.2s 2.8s cubic-bezier(.2,.7,.2,1) both; } @keyframes ring5 { to { stroke-dashoffset: 13; } }
.bigring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-weight: 600; letter-spacing: -.04em; opacity: 0; }
.s5.on .bigring b { animation: pop .6s 3.8s both; }
.s5.on .pills span { animation: pop .45s both; animation-delay: calc(5s + var(--k, 0) * .35s); border-color: rgba(47,211,158,.5); color: #6be6bd; }

/* player controls */
.bigplay { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); cursor: pointer; z-index: 6;
  background: rgba(255,255,255,.12); backdrop-filter: blur(12px); display: grid; place-items: center; transition: transform .25s, opacity .3s; box-shadow: 0 0 60px rgba(91,140,255,.8); }
.bigplay svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; } .bigplay:hover { transform: scale(1.08); }
.player.started .bigplay { opacity: 0; pointer-events: none; }
.controls { display: flex; align-items: center; gap: 14px; padding: 12px 18px 6px; }
.controls button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.controls svg { width: 18px; height: 18px; fill: #050b24; } .player.paused .ic-pause, .player:not(.paused) .ic-play { display: none; }
.controls .bar { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); cursor: pointer; }
.controls .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, #5b8cff, #ff6fb5); box-shadow: 0 0 12px rgba(91,140,255,.9); }
.controls .bar u { position: absolute; top: -2px; width: 2px; height: 10px; background: #050b24; }
.chapters { display: flex; gap: 6px; padding: 6px 18px 4px; flex-wrap: wrap; }
.chapters button { border: 1px solid rgba(255,255,255,.14); background: transparent; color: #aeb9de; border-radius: 999px; padding: 6px 13px; font: 500 13px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.chapters button b { font: 500 11px var(--mono); margin-right: 7px; opacity: .6; } .chapters button.on { background: #fff; color: #050b24; } .chapters button:not(.on):hover { color: #fff; }
.caption { margin: 0; padding: 10px 20px 20px; color: #dbe4ff; font-size: 15.5px; min-height: 3.2em; }
.withsound { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 0; color: var(--ink2); font-size: 14px; }
.soundbtn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 13px 22px; border-radius: 999px; color: #fff; font: 550 15px var(--sans);
  background: linear-gradient(180deg, #2b3a78, #050b24) padding-box, linear-gradient(120deg, #5b8cff, #ff6fb5) border-box; border: 1px solid transparent; box-shadow: 0 16px 40px -14px rgba(47,107,255,.8); }
.soundbtn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
dialog.film { border: 0; padding: 0; background: #050b24; border-radius: 22px; width: min(1100px, 94vw); overflow: visible;
  box-shadow: 0 0 0 1px rgba(91,140,255,.4), 0 60px 120px -30px rgba(0,0,0,.9), 0 0 120px -20px rgba(47,107,255,.6); }
dialog.film::backdrop { background: rgba(3,7,24,.82); backdrop-filter: blur(8px); }
dialog.film[open] { animation: pop .45s cubic-bezier(.2,.7,.2,1); }
dialog.film video { display: block; width: 100%; border-radius: 22px; aspect-ratio: 16 / 9; background: #050b24; }
.filmclose { position: absolute; right: -6px; top: -44px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
@media (max-width: 760px) { .screen { aspect-ratio: 4 / 4.4; } .scene { padding: 64px 12px 12px; } .stage { transform: scale(.78); min-width: 560px; } .chat { min-width: 0; transform: none; } }
@media (max-width: 480px) { .stage { transform: scale(.56); } .chat { transform: scale(.86); } }

/* film mode: the walkthrough alone, full screen (used to record the explainer video) */
body.film { overflow: hidden; background: #050b24; }
body.film > *:not(.tour) { display: none !important; }
body.film .tour { padding: 0; background: none; } body.film .tour > *:not(.player) { display: none; }
body.film .player { position: fixed; inset: 0; max-width: none; border-radius: 0; transform: none !important; box-shadow: none; display: grid; grid-template-rows: 1fr auto; }
body.film .chrome, body.film .controls, body.film .chapters, body.film .bigplay, body.film .glare { display: none !important; }
body.film .screen { aspect-ratio: auto; height: 100%; } body.film .stage { transform: scale(1.4); }
body.film .agentpill { transform: scale(1.3); transform-origin: 0 0; left: 34px; top: 28px; }
body.film .caption { text-align: center; font-size: 25px; padding: 20px 60px 32px; min-height: 0; background: #050b24; letter-spacing: -.01em; }

:root[data-motion="off"] .scene * { opacity: 1 !important; clip-path: none !important; stroke-dashoffset: 0 !important; }
