/* =====================================================================
   /ai-agents/ : How a Davision agent works
   Page-only pieces, namespaced pg-platform-* (and .pgx for the scene
   inside the browser frame). Everything else comes from the case kit.
   ===================================================================== */

/* ---------- shared bits ---------- */
.pg-platform-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 24px 64px; align-items: end; }
.pg-platform-split .cx-head { max-width: none; }
.pg-platform-split .cs-h2 { margin-bottom: 0; }
.pg-platform-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-decoration: none; }
.pg-platform-link svg { width: 16px; height: 16px; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.pg-platform-link:hover svg { transform: translateX(4px); }
.cs-light .pg-platform-link { color: #111; }

/* =====================================================================
   One conversation: the rail of five steps + the live browser scene
   ===================================================================== */
.pg-platform-flow { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 56px; }
.pg-platform-rail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pg-platform-step { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 13px 16px 15px; border-radius: 18px; border: 1px solid transparent; overflow: hidden; opacity: 0.42; transition: opacity 0.4s ease; }
.pg-platform-step .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); color: #9fa0ff; }
.pg-platform-step .ic svg { width: 20px; height: 20px; }
.pg-platform-step small { display: block; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: #8c8c94; }
.pg-platform-step b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #f2f2f5; line-height: 1.2; margin: 2px 0 4px; }
.pg-platform-step .txt > span { display: block; font-size: 13px; line-height: 1.5; color: #9d9da6; }
.pg-platform-step .bar { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
.pg-platform-step .bar i { display: block; height: 100%; background: linear-gradient(90deg, #6a6cff, #a9abff); transform: scaleX(0); transform-origin: left center; }
.pg-platform-flow.is-run .pg-platform-step { animation: pgStepOn 0.5s ease var(--d, 0s) forwards; }
.pg-platform-flow.is-run .pg-platform-step .ic { animation: pgStepIc 0.5s ease var(--d, 0s) forwards; }
.pg-platform-flow.is-run .pg-platform-step .bar i { animation: pgStepBar var(--t, 3s) linear var(--d, 0s) forwards; }
@keyframes pgStepOn { to { opacity: 1; background: linear-gradient(150deg, rgba(40,40,60,0.5), rgba(14,14,20,0.55)); border-color: rgba(255,255,255,0.09); } }
@keyframes pgStepIc { to { background: linear-gradient(140deg, #6a6cff, #3d40c8); color: #fff; border-color: transparent; box-shadow: 0 10px 26px rgba(76,79,215,0.45); } }
@keyframes pgStepBar { to { transform: scaleX(1); } }

/* the scene (owner, 18 Oct 2026): flat and quiet, the two columns exactly as tall as each other. The frame holds
   the real pages on the left and Leo in the real dock on the right (.ld, case-ui.css). */
.pg-platform-flow { align-items: stretch; }
.pg-platform-rail { justify-content: space-between; }
.pg-platform-screen { position: relative; display: flex; min-height: 600px; }
.pg-platform-desk { width: 100%; display: flex; }
.pg-platform-desk > .dv-in { flex: 1; display: flex; flex-direction: column; }
.pg-platform-desk .dv-screen { flex: 1; aspect-ratio: auto; min-height: 0; }
.pgx-tl { opacity: 0; }
[data-run].is-run .pgx-tl { animation: inUp 0.6s cubic-bezier(0.16,1,0.3,1) var(--d, 0s) both, pgOut 0.4s ease var(--o, 99s) forwards; }
@keyframes pgOut { to { opacity: 0; transform: translateY(-6px) scale(0.98); visibility: hidden; } }
.pgx2 { position: absolute; inset: 0; display: flex; gap: 10px; padding: 10px; background: #07080e; }
.pgx2-page { position: relative; flex: 1; min-width: 0; border-radius: 14px; overflow: hidden; background: #0b0c12; box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }
.pgx2-frame { position: absolute; inset: 0; overflow: hidden; background: #0b0c12; }
.pgx2-frame iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 100%; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.pgx2-frame.is-ready iframe { opacity: 1; }
.pgx2-leo { flex: none; width: 37%; min-width: 260px; display: flex; }
.pgx2-leo .ld { flex: 1; border-radius: 14px; }
.ld--compact .ld-pic { aspect-ratio: 16 / 8; }
/* the site's own demo dialog, filled in from the chat */
.pgx2-form { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(78%, 420px); transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px;
  color: #111; background: #fff; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55); font-size: 13px; }
[data-run].is-run .pgx2-form { animation: pgFormIn 0.5s cubic-bezier(0.16,1,0.3,1) var(--d, 0s) both, pgOut 0.4s ease var(--o, 99s) forwards; }
@keyframes pgFormIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
.pgx2-fh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.pgx2-fh b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.pgx2-fh span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #4c4fd7; }
.pgx2-fh span svg { width: 12px; height: 12px; }
.pgx2-form .lx-row { gap: 8px; }
.pgx2-form .lx-field { padding: 8px 11px 9px; border-radius: 11px; background: #f4f4f7; border: 0; }
.pgx2-form .lx-field small { font-size: 9.5px; color: #8a8a93; }
.pgx2-form .lx-val { font-size: 13px; color: #111; margin-top: 2px; }
.pgx2-form .lx-consent { font-size: 11px; color: #55555d; gap: 8px; align-items: center; }
.pgx2-form .lx-box { width: 16px; height: 16px; border-radius: 5px; }
.pgx2-send .lx-send { height: 40px; font-size: 13px; border-radius: 999px; background: #0d0d0d; color: #fff; }
/* the record that lands in the CRM */
.pgx2-crm { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(80%, 440px); transform: translate(-50%, -50%); padding: 18px 20px; border-radius: 18px; color: #111; background: #fff;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55); font-size: 13px; }
[data-run].is-run .pgx2-crm { animation: pgFormIn 0.5s cubic-bezier(0.16,1,0.3,1) var(--d, 0s) both; }
.pgx2-ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pgx2-ch span { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.pgx2-ch span svg { width: 15px; height: 15px; color: #4c4fd7; }
.pgx2-ch em { font-style: normal; font-size: 11.5px; color: #8a8a93; }
.pgx2-crm dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border-radius: 12px; overflow: hidden; background: #ececf1; }
.pgx2-crm dl > div { padding: 9px 12px; background: #f8f8fa; }
.pgx2-crm dt { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a93; }
.pgx2-crm dd { margin: 2px 0 0; font-weight: 600; }
.pgx2-crm dd.pos { color: #1f8a50; }
.pgx2-crm p { margin: 12px 0 0; line-height: 1.5; color: #55555d; }
@media (max-width: 1100px) { .pg-platform-flow { grid-template-columns: 1fr; } .pg-platform-rail { flex-direction: row; overflow-x: auto; } }

/* =====================================================================
   Ten capabilities (light)
   ===================================================================== */
.pg-platform-caps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.pg-platform-cap { position: relative; display: flex; flex-direction: column; padding: 22px 20px 24px; min-height: 250px; border-radius: 22px; background: #fff; border: 1px solid rgba(0,0,0,0.06); transition: transform 0.55s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.4s ease; }
.pg-platform-cap:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,0.08); border-color: rgba(76,79,215,0.3); }
.pg-platform-cap .top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 30px; }
.pg-platform-cap .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(76,79,215,0.07); border: 1px solid rgba(76,79,215,0.16); color: #4c4fd7; transition: background 0.4s ease, color 0.4s ease; }
.pg-platform-cap:hover .ic { background: linear-gradient(140deg, #6a6cff, #3d40c8); color: #fff; border-color: transparent; }
.pg-platform-cap .ic svg { width: 21px; height: 21px; }
.pg-platform-cap em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8a92; }
.pg-platform-cap b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.2; color: #0d0d0d; margin-bottom: 8px; }
.pg-platform-cap > span { font-size: 13.5px; line-height: 1.55; color: #5d5d65; }

/* =====================================================================
   Voice pane: a call with no face, just the line
   ===================================================================== */
.pg-platform-wave { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 14% 22%; background: radial-gradient(ellipse at 50% 40%, rgba(106,108,255,0.35), transparent 60%), linear-gradient(170deg, #17172a, #0a0a10); }
.pg-platform-wave i { flex: 1; max-width: 6px; height: 46%; border-radius: 6px; background: linear-gradient(180deg, #a9abff, #6a6cff); animation: pgWave 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.11s); opacity: 0.9; }
@keyframes pgWave { 0%, 100% { transform: scaleY(0.16); } 50% { transform: scaleY(0.95); } }
.vx-after .tx-btns span svg { width: 14px; height: 14px; vertical-align: -2px; }
.tpl-platform .ap-head img { object-position: 50% 24%; }

/* =====================================================================
   Intelligence + security cards
   ===================================================================== */
.pg-platform-deep { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg-platform-dcard { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 30px; padding: 36px 34px 34px; border-radius: 30px; text-decoration: none; color: #fff; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, rgba(32,32,46,0.62), rgba(10,10,15,0.8)); border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.4s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.pg-platform-dcard::before { content: ''; position: absolute; z-index: -1; right: -20%; bottom: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(106,108,255,0.2), transparent); }
.pg-platform-dcard:hover { border-color: rgba(106,108,255,0.45); transform: translateY(-4px); }
.pg-platform-dcard h3 { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; font-weight: 700; margin: 14px 0 12px; }
.pg-platform-dcard p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: #a3a3ab; max-width: 520px; }
.pg-platform-dcard .go { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pg-platform-dcard .go svg { width: 16px; height: 16px; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.pg-platform-dcard:hover .go svg { transform: translateX(4px); }

.pg-platform-ivis { align-self: end; padding: 20px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 11px; }
.pg-platform-ivis .hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.pg-platform-ivis .hd b { font-size: 14px; }
.pg-platform-ivis .hd span { font-size: 12px; color: #8a8a93; }
.pg-platform-ivis .row { display: grid; grid-template-columns: 42% 1fr; gap: 14px; align-items: center; font-size: 13px; color: #c9c9d2; }
.pg-platform-ivis .row i { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.06); overflow: hidden; }
.pg-platform-ivis .row i b { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #3d40c8, #8f91ff); }
.pg-platform-ivis .flag { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; margin-top: 6px; padding: 11px 12px; border-radius: 14px; background: rgba(106,108,255,0.1); border: 1px solid rgba(106,108,255,0.25); }
.pg-platform-ivis .flag > svg { width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 10px; color: #fff; background: linear-gradient(140deg, #6a6cff, #3d40c8); }
.pg-platform-ivis .flag span { font-size: 12.5px; color: #a9a9b2; line-height: 1.4; }
.pg-platform-ivis .flag b { display: block; font-size: 13.5px; color: #fff; }

.pg-platform-svis { align-self: end; position: relative; display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 20px 20px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.pg-platform-svis .sh { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 54px; margin: 0 calc(100% - 54px) 10px 0; color: #67e8a3; background: rgba(61,220,132,0.1); border: 1px solid rgba(61,220,132,0.28); box-shadow: 0 0 30px rgba(61,220,132,0.12); }
.pg-platform-svis .sh svg { width: 26px; height: 26px; }
.pg-platform-svis .c { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 100px; font-size: 13px; color: #dcdce2; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.pg-platform-svis .c svg { width: 13px; height: 13px; color: #67e8a3; }

/* =====================================================================
   Case studies
   ===================================================================== */
.pg-platform-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.pg-platform-case { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; text-decoration: none; color: #fff; background: linear-gradient(160deg, rgba(30,30,44,0.62), rgba(10,10,15,0.8)); border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.4s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.pg-platform-case:hover { border-color: rgba(106,108,255,0.45); transform: translateY(-4px); }
.pg-platform-case .im { aspect-ratio: 4 / 3.2; overflow: hidden; }
.pg-platform-case .im img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(0.16,1,0.3,1); }
.pg-platform-case:hover .im img { transform: scale(1.05); }
.pg-platform-case .tx { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 24px 26px 26px; }
.pg-platform-case small { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #a9abff; }
.pg-platform-case strong { font-family: var(--font-display); font-size: 34px; line-height: 1; font-weight: 700; margin: 12px 0 10px; }
.pg-platform-case p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #a3a3ab; }
.pg-platform-case .aw-badge { margin: 0 0 18px; padding: 7px 16px 7px 8px; gap: 10px; }
.pg-platform-case .aw-ic { width: 32px; height: 32px; }
.pg-platform-case .aw-ic svg { width: 22px; height: 22px; }
.pg-platform-case .aw-txt small { font-size: 10px; }
.pg-platform-case .aw-txt b { font-size: 14px; }
.pg-platform-case .go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pg-platform-case .go svg { width: 15px; height: 15px; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.pg-platform-case:hover .go svg { transform: translateX(4px); }
.pg-platform-sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.pg-platform-sectors > span { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #8c8c94; margin-right: 8px; }
.pg-platform-sectors a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #dcdce2; text-decoration: none; padding: 9px 15px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.12); transition: border-color 0.3s ease, background 0.3s ease; }
.pg-platform-sectors a svg { width: 13px; height: 13px; }
.pg-platform-sectors a:hover { border-color: #6a6cff; background: rgba(106,108,255,0.1); }

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .pg-platform-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-platform-cap { min-height: 0; }
  .pg-platform-cap .top { padding-bottom: 24px; }
}
/* the rail goes under the scene once the scene would get narrower than ~860px beside it */
@media (max-width: 1340px) {
  .pg-platform-flow { grid-template-columns: 1fr; gap: 26px; max-width: 1040px; margin-inline: auto; }
  .pg-platform-rail { order: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .pg-platform-step { grid-template-columns: 1fr; gap: 10px; padding: 14px 12px 16px; }
  .pg-platform-step .txt > span { font-size: 12.5px; }
  .pg-platform-step b { font-size: 15.5px; }
  .pg-platform-deep { grid-template-columns: 1fr; }
}
/* tablet: keep the tall scene at a calm width */
@media (min-width: 701px) and (max-width: 980px) {
  .pg-platform-screen { width: 100%; max-width: 680px; margin-inline: auto; }
}
@media (max-width: 880px) {
  .pg-platform-split { grid-template-columns: 1fr; gap: 14px; }
  .pg-platform-cases { grid-template-columns: 1fr; }
  .pg-platform-case { display: grid; grid-template-columns: 38% 1fr; }
  .pg-platform-case .im { aspect-ratio: auto; min-height: 100%; }
  .pg-platform-case strong { font-size: 28px; }
}
@media (max-width: 700px) {
  .pg-platform-rail { grid-template-columns: 1fr; gap: 6px; }
  .pg-platform-step { grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 12px 14px; }
  .pg-platform-step .ic { width: 38px; height: 38px; border-radius: 11px; }
  .pg-platform-caps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pg-platform-cap { padding: 18px 16px 20px; border-radius: 18px; }
  .pg-platform-cap b { font-size: 16.5px; }
  .pg-platform-cap > span { font-size: 13px; }
  .pg-platform-cap .top { padding-bottom: 18px; }
  .pg-platform-cap .ic { width: 38px; height: 38px; border-radius: 11px; }
  .pg-platform-dcard { padding: 28px 22px 22px; border-radius: 24px; }
  .pg-platform-case { grid-template-columns: 1fr; }
  .pg-platform-case .im { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .pg-platform-cap em { display: none; }
  .pg-platform-cap .top { padding-bottom: 14px; }
  .pg-platform-cap { padding: 16px 14px 18px; }
  .pg-platform-cap b { font-size: 15.5px; }
  .pg-platform-cap > span { font-size: 12.5px; line-height: 1.5; }
  .tpl-platform .cx-chans { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tpl-platform .cx-chan { padding: 16px 14px; gap: 10px; border-radius: 18px; }
  .tpl-platform .cx-chan .hd { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tpl-platform .cx-chan .ic { width: 38px; height: 38px; border-radius: 11px; }
  .tpl-platform .cx-chan p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-platform-step { opacity: 1; }
  .pg-platform-step .ic { background: linear-gradient(140deg, #6a6cff, #3d40c8); color: #fff; }
  .pgx-tl { opacity: 0 !important; animation: none !important; }
  .pgx2-crm { opacity: 1 !important; }
  .pg-platform-wave i { animation: none; }
}

/* Phones (owner, 18 Oct 2026): the page keeps its main messages; interface demos that a phone cannot show
   well, and sections that repeat another page, are left out. */
@media (max-width: 767px) {
  #conversation, #intelligence-security, #case-studies { display: none; }
}

/* the three ways: each in the real dock, the same size */
.pg-platform-ldwrap { width: min(100%, 400px); height: 540px; margin: 0 auto; }
