.demo-experience { position: static; z-index: auto; }
.demo-experience [hidden] { display: none !important; }
.demo-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(3, 18, 31, .54); backdrop-filter: blur(1.5px); }
.demo-backdrop.is-passive { background: transparent; backdrop-filter: none; pointer-events: none; }
.demo-welcome { position: fixed; z-index: 10002; top: 50%; left: 50%; width: min(660px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #82b8e7; border-top: 5px solid #0878e8; border-radius: 12px; background: #fff; padding: 28px 30px 24px; box-shadow: 0 28px 80px rgba(0, 17, 31, .36); transform: translate(-50%, -50%); }
.demo-welcome-brand { display: flex; align-items: center; gap: 14px; color: #075db7; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.demo-welcome-brand img { width: 96px; height: 44px; object-fit: contain; }
.demo-welcome h2 { margin: 20px 0 8px; color: #071b2e; font-size: 28px; line-height: 1.1; }
.demo-welcome > p { margin: 0; color: #405466; font-size: 14px; line-height: 1.6; }
.demo-tour-library { display: grid; grid-template-columns: 1.15fr 1fr; gap: 9px; margin: 20px 0; }
.demo-tour-choice { min-height: 92px; display: flex; flex-direction: column; align-items: stretch; gap: 9px; border: 1px solid #c5d8e8; border-radius: 9px; background: linear-gradient(145deg, #f8fbfd, #eef5fa); padding: 13px 14px; color: #173047; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.demo-tour-choice:hover, .demo-tour-choice:focus-visible { border-color: #5ca7e9; box-shadow: 0 8px 20px rgba(0, 80, 145, .13); transform: translateY(-1px); }
.demo-tour-choice.is-featured { grid-row: span 2; justify-content: center; border-color: #2e96ed; background: linear-gradient(145deg, #075db7, #087fe8); color: #fff; box-shadow: 0 12px 26px rgba(5, 91, 174, .24); }
.demo-tour-choice span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-tour-choice b { font-size: 13px; line-height: 1.2; }
.demo-tour-choice small { flex: 0 0 auto; border-radius: 999px; background: #dcecf8; padding: 4px 7px; color: #075db7; font-size: 9px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.demo-tour-choice.is-featured small { background: rgba(255, 255, 255, .17); color: #fff; }
.demo-tour-choice em { color: #52697c; font-size: 11px; font-style: normal; font-weight: 650; line-height: 1.45; }
.demo-tour-choice.is-featured em { color: #e4f3ff; font-size: 12px; }
.demo-welcome-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }
.demo-welcome-points span { display: grid; gap: 5px; border: 1px solid #c9dbea; border-radius: 7px; background: #f4f9fd; padding: 11px; color: #20384d; font-size: 11px; font-weight: 800; }
.demo-welcome-points b { color: #0878e8; font-size: 16px; }
.demo-welcome-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-welcome-actions .text-button { margin-left: auto; }
.demo-tour-complete { position: fixed; z-index: 10004; top: 50%; left: 50%; width: min(900px, calc(100vw - 40px)); border: 1px solid #82b8e7; border-top: 5px solid #0878e8; border-radius: 13px; background: #fff; padding: 28px 30px; box-shadow: 0 30px 90px rgba(0, 17, 31, .4); transform: translate(-50%, -50%); }
.demo-tour-complete h2 { margin: 19px 0 8px; color: #071b2e; font-size: 29px; line-height: 1.1; }
.demo-tour-complete > p { max-width: 760px; margin: 0; color: #405466; font-size: 14px; line-height: 1.55; }
.demo-complete-chain { display: flex; align-items: stretch; gap: 7px; margin: 24px 0 18px; }
.demo-complete-chain span { flex: 1 1 0; display: grid; place-items: center; min-height: 68px; border: 1px solid #b8d6ed; border-radius: 8px; background: linear-gradient(145deg, #f5faff, #e9f5ff); padding: 9px; color: #123b5f; font-size: 11px; font-weight: 900; line-height: 1.25; text-align: center; text-transform: uppercase; }
.demo-complete-chain i { align-self: center; color: #0878e8; font-size: 18px; font-style: normal; font-weight: 900; }
.demo-tour-complete > strong { display: block; margin: 0 0 22px; color: #075db7; font-size: 16px; }

.demo-tour-card { position: fixed; z-index: 10003; top: 50%; right: 20px; left: auto; width: min(440px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #70ade2; border-top: 5px solid #0878e8; border-radius: 13px; background: #fff; color: #132334; box-shadow: 0 24px 70px rgba(0, 24, 45, .38); transform: translateY(-50%); }
.demo-tour-card-head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; }
.demo-tour-card-head > div { display: grid; gap: 4px; }
.demo-tour-card-head small { color: #697f91; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.demo-tour-card-head span { color: #075db7; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.demo-tour-card-head button { flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid #c9dbea; border-radius: 50%; background: #f6f9fc; color: #18384f; padding: 0; font-size: 21px; line-height: 1; }
.demo-tour-progress-track { flex: 0 0 4px; height: 4px; background: #e3edf5; }
.demo-tour-progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #0878e8, #29a8ff); transition: width .28s ease; }
.demo-tour-caption { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; min-height: 38px; border-bottom: 1px solid #c9dbea; background: linear-gradient(90deg, #eaf6ff, #f7fbff); padding: 8px 20px; color: #0756a4; font-size: 11px; font-weight: 800; line-height: 1.3; }
.demo-tour-caption i { position: relative; flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #0878e8; box-shadow: 0 0 0 0 rgba(8, 120, 232, .35); animation: demoCaptionPulse 1.5s ease-out infinite; }
.demo-tour-scene-track { flex: 0 0 3px; height: 3px; overflow: hidden; background: #dbe8f2; }
.demo-tour-scene-track span { display: block; width: 0; height: 100%; background: #ffb11b; }
.demo-tour-scene-track span.is-running { animation: demoSceneProgress var(--demo-scene-duration, 12000ms) linear forwards; }
.demo-tour-card-copy { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.demo-tour-card h3 { margin: 0 0 9px; color: #071b2e; font-family: Poppins, sans-serif; font-size: 22px; line-height: 1.18; }
.demo-tour-card-copy > p { margin: 0; color: #405466; font-size: 14px; line-height: 1.55; }
.demo-tour-card ul { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.demo-tour-card li { position: relative; margin: 0; padding-left: 27px; color: #173047; font-size: 13px; font-weight: 700; line-height: 1.42; }
.demo-tour-card li::before { content: '✓'; position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #dff1ff; color: #0878e8; font-size: 11px; font-weight: 900; }
.demo-tour-actions { display: flex; gap: 8px; margin: 0 0 16px; }
.demo-tour-actions button { flex: 1 1 0; min-width: 0; font-weight: 850; }
.demo-tour-impact { display: grid; gap: 4px; border: 1px solid #9fcdf3; border-left: 4px solid #0878e8; border-radius: 8px; background: linear-gradient(135deg, #eff8ff, #f8fbfe); padding: 12px 13px; }
.demo-tour-impact small { color: #075db7; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.demo-tour-impact strong { color: #132f46; font-size: 13px; line-height: 1.4; }
.demo-tour-card footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #d7e2ea; background: #f8fbfd; padding: 13px 20px 15px; }
.demo-tour-card footer > strong { color: #607484; font-size: 11px; }
.demo-tour-card footer div { display: flex; gap: 7px; }
.demo-tour-card footer button { min-width: 76px; }
.demo-tour-card[data-tour-position='bottom-left'] { top: auto; right: auto; bottom: 20px; left: 92px; width: min(410px, calc(100vw - 124px)); max-height: min(480px, calc(100dvh - 40px)); transform: none; }
.demo-tour-card[data-tour-mode='director'] { top: auto; right: 20px; bottom: 20px; left: auto; width: min(570px, calc(100vw - 124px)); max-height: min(390px, calc(100dvh - 40px)); transform: none; }
.demo-tour-card[data-tour-mode='director'] .demo-tour-card-head { align-items: center; padding: 11px 15px 9px; }
.demo-tour-card[data-tour-mode='director'] .demo-tour-card-head button { flex-basis: 28px; width: 28px; height: 28px; font-size: 18px; }
.demo-tour-card[data-tour-mode='director'] .demo-tour-caption { min-height: 32px; padding: 7px 15px; }
.demo-tour-card[data-tour-mode='director'] .demo-tour-card-copy { padding: 14px 16px 13px; }
.demo-tour-card[data-tour-mode='director'] h3 { margin-bottom: 5px; font-size: 20px; }
.demo-tour-card[data-tour-mode='director'] .demo-tour-card-copy > p { font-size: 13px; line-height: 1.45; }
.demo-tour-card[data-tour-mode='director'] ul { display: none !important; }
.demo-tour-card[data-tour-mode='director'] .demo-tour-actions { display: flex; margin-top: 10px; }
.demo-tour-card[data-tour-mode='director'] .demo-tour-impact { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; padding: 8px 10px; }
.demo-tour-card[data-tour-mode='director'] .demo-tour-impact small { flex: 0 0 auto; }
.demo-tour-card[data-tour-mode='director'] .demo-tour-impact strong { font-size: 12px; }
.demo-tour-card[data-tour-mode='director'] footer { padding: 9px 15px 11px; }
.demo-tour-card[data-tour-mode='director'] footer button { min-width: 62px; }
.demo-autoplay-control { color: #075db7; font-weight: 900; }

.demo-spotlight-host { position: relative; z-index: 10001 !important; isolation: isolate; }
.demo-spotlight-host::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(3, 18, 31, .54); pointer-events: none; }
.demo-spotlight-host .demo-spotlight { z-index: 2 !important; }
.demo-spotlight { position: relative; z-index: 10001 !important; outline: 4px solid #36a4ff !important; outline-offset: 5px; border-radius: 8px; box-shadow: 0 0 0 10px rgba(54, 164, 255, .2), 0 18px 50px rgba(0, 24, 45, .3) !important; transition: outline-color .2s ease, box-shadow .2s ease; }
.demo-live-cue { position: relative; z-index: 10002 !important; outline: 3px solid #ffb11b !important; outline-offset: 4px; border-radius: 7px; box-shadow: 0 0 0 9px rgba(255, 177, 27, .26), 0 12px 32px rgba(0, 24, 45, .24) !important; animation: demoLiveCue 1s ease both; }
.demo-tour-cursor { position: fixed; z-index: 10005; top: 0; left: 0; width: 22px; height: 27px; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 18, 33, .45)); transform: translate(-4px, -3px) scale(.8); transition: left .5s cubic-bezier(.22, .8, .3, 1), top .5s cubic-bezier(.22, .8, .3, 1), opacity .16s ease, transform .16s ease; }
.demo-tour-cursor::before { content: ''; position: absolute; inset: 0; background: #fff; clip-path: polygon(0 0, 0 88%, 25% 68%, 40% 100%, 56% 92%, 42% 61%, 74% 61%); }
.demo-tour-cursor::after { content: ''; position: absolute; top: 6px; left: 6px; width: 9px; height: 9px; border: 2px solid #ffb11b; border-radius: 50%; opacity: 0; transform: scale(.2); }
.demo-tour-cursor.is-visible { opacity: 1; transform: translate(-4px, -3px) scale(1); }
.demo-tour-cursor.is-clicking::after { opacity: 1; animation: demoCursorClick .42s ease-out both; }
.demo-help-button { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #b8cddd; border-radius: 50%; background: #fff; color: #075db7; padding: 0; font-size: 14px; font-weight: 900; }

@keyframes demoCaptionPulse { to { box-shadow: 0 0 0 8px rgba(8, 120, 232, 0); } }
@keyframes demoLiveCue { 0% { transform: scale(.985); } 45% { transform: scale(1.012); } 100% { transform: scale(1); } }
@keyframes demoCursorClick { from { opacity: .9; transform: scale(.2); } to { opacity: 0; transform: scale(3.2); } }
@keyframes demoSceneProgress { from { width: 0; } to { width: 100%; } }

@media (max-width: 760px) {
  .demo-welcome { padding: 22px 18px 18px; }
  .demo-welcome h2 { font-size: 23px; }
  .demo-welcome-points { grid-template-columns: 1fr; }
  .demo-tour-library { grid-template-columns: 1fr; }
  .demo-tour-choice.is-featured { grid-row: auto; }
  .demo-welcome-actions .text-button { margin-left: 0; }
  .demo-tour-complete { padding: 22px 18px 18px; }
  .demo-tour-complete h2 { font-size: 23px; }
  .demo-complete-chain { display: grid; grid-template-columns: 1fr; }
  .demo-complete-chain i { display: none; }
  .demo-tour-card { top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; max-height: min(70dvh, 590px); border-radius: 13px; transform: none; }
  .demo-tour-card[data-tour-position='bottom-left'] { right: 12px; bottom: 12px; left: 12px; width: auto; max-height: min(70dvh, 590px); }
  .demo-tour-card-head { padding: 14px 16px 11px; }
  .demo-tour-caption { min-height: 34px; padding: 7px 16px; }
  .demo-tour-card-copy { padding: 16px; }
  .demo-tour-card h3 { font-size: 19px; }
  .demo-tour-card-copy > p { font-size: 13px; }
  .demo-tour-card ul { gap: 8px; margin: 14px 0; }
  .demo-tour-card li { font-size: 12px; }
  .demo-tour-card footer { padding: 11px 16px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-tour-progress-track span, .demo-tour-cursor { transition: none; }
  .demo-tour-caption i, .demo-live-cue, .demo-tour-cursor.is-clicking::after, .demo-tour-scene-track span.is-running { animation: none; }
}
