:root {
  --navy: #071B49;
  --orange: #F25327;
  --ink: #F7F8FB;
  --muted: #C9D3E8;
  --bar: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--navy); color: var(--ink); font-family: 'Inter', Arial, sans-serif; overflow: hidden; }

/* One 1920x1080 stage, scaled to fit whatever screen it is on. */
#viewport { position: fixed; inset: 0 0 var(--bar) 0; overflow: hidden; }
#stage { width: 1920px; height: 1080px; position: absolute; left: 50%; top: 50%; transform-origin: center center; transform: translate(-50%, -50%); }
#stage > section { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
#stage > section.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
#stage p, #stage h1, #stage h2, #stage h3 { margin: 0; }
#stage ul, #stage ol { padding-left: 1.2em; }
#stage a { cursor: pointer; }
.conn { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; }

/* Build-ins, in order, each time a slide shows. */
section.on [data-in] { animation: in-rise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--o, 1) * 140ms); }
section.on [data-in="pop"] { animation-name: in-pop; }
section.on [data-in="fade"] { animation-name: in-fade; }
@keyframes in-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes in-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes in-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { section.on [data-in] { animation: none; } #stage > section { transition: none; } }

/* Videos. */
.vid video { background: #000; }
.vid .play, .vid .sound { position: absolute; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; color: var(--navy); background: var(--orange); border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.vid .play { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 128px; height: 128px; font-size: 56px; display: grid; place-items: center; }
.vid .sound { right: 20px; bottom: 20px; padding: 12px 22px; font-size: 24px; display: flex; gap: 10px; align-items: center; }
.vid.playing .play { display: none; }

/* The live demo agent card (inside the stage, so stage pixels). */
.da label { display: flex; flex-direction: column; gap: 12px; font-size: 26px; font-weight: 600; color: var(--muted); }
.da input { font: inherit; font-size: 34px; font-weight: 600; color: var(--navy); background: var(--ink); border: 3px solid transparent; border-radius: 18px; padding: 20px 26px; width: 100%; outline: none; }
.da input:focus { border-color: var(--orange); }
.da input::placeholder { color: #8E9CC0; font-weight: 500; }
.da .go { font: inherit; font-size: 36px; font-weight: 800; color: var(--navy); background: var(--orange); border: 0; border-radius: 999px; padding: 28px; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: center; }
.da .go[disabled] { opacity: .6; cursor: wait; }
.da .go.end { background: var(--ink); }
.da .row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.da .status { flex: 1; font-size: 26px; color: var(--muted); }
.da .time { font-size: 26px; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.da .orb { width: 22px; height: 22px; border-radius: 50%; background: #3A5390; flex: none; }
.da .orb.listening { background: #3DDC97; box-shadow: 0 0 0 8px rgba(61,220,151,.18); }
.da .orb.speaking { background: var(--orange); box-shadow: 0 0 0 10px rgba(242,83,39,.22); animation: pulse 1s ease-in-out infinite; }
.da .orb.thinking { background: #FFC24B; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(242,83,39,.08); } }
.da .tx { display: flex; flex-direction: column; gap: 12px; font-size: 26px; line-height: 1.4; color: var(--ink); height: 260px; overflow: hidden; justify-content: flex-end; }
.da .tx b { color: var(--orange); }
.da .tx .you b { color: #9FB3E6; }
.da .hint { font-size: 22px; color: #8E9CC0; line-height: 1.4; }

/* The bar under the stage. */
#bar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar); display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #05143A; border-top: 1px solid #1C3A7A; }
#bar button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #2A4580; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
#bar button:hover { background: #102A63; }
#bar button[disabled] { opacity: .35; cursor: default; }
#count { font-size: 15px; font-weight: 600; color: var(--muted); min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
#progress { flex: 1; height: 4px; background: #1C3A7A; border-radius: 4px; overflow: hidden; }
#progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s ease; }
#cta { flex: none; font-size: 15px; font-weight: 800; color: var(--navy); background: var(--orange); border-radius: 999px; padding: 11px 20px; text-decoration: none; white-space: nowrap; }
#rotate { display: none; }
@media (max-width: 600px) {
  #count { min-width: 44px; }
  #cta { padding: 10px 14px; font-size: 14px; }
}
@media (orientation: portrait) and (max-width: 900px) {
  #rotate { display: block; position: fixed; left: 16px; right: 16px; top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
}
