:root {
  --ink: #0b1830;
  --muted: #65718a;
  --line: #dbe2ef;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --navy: #0b1f3a;
  --blue: #2363ec;
  --blue-dark: #1749b8;
  --cyan: #74d4f4;
  --green: #3ec995;
  --shadow: 0 26px 80px rgba(16, 35, 72, 0.16);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f6f8fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #080d18; }
button, a { font: inherit; }
button { color: inherit; }

.minimal-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.minimal-page .player-frame { width: min(1200px, 100%); }

.ambient { position: fixed; z-index: -1; width: 32rem; height: 32rem; border-radius: 50%; filter: blur(90px); opacity: .2; pointer-events: none; }
.ambient-one { top: -16rem; left: -8rem; background: #56b7ff; }
.ambient-two { right: -12rem; top: 18rem; background: #6e67ff; }

.site-header { max-width: 1440px; margin: 0 auto; padding: 24px 40px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: -.03em; background: linear-gradient(145deg, #1954d7, #44a3ff); box-shadow: 0 10px 26px rgba(35, 99, 236, .3); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.demo-badge { display: inline-flex; gap: 8px; align-items: center; color: #4f5c73; font-size: 12px; font-weight: 700; }
.demo-badge span, .toolbar-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(62, 201, 149, .13); }

.button { border: 0; border-radius: 10px; min-height: 42px; padding: 0 17px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; font-weight: 750; font-size: 13px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 12px 25px rgba(35, 99, 236, .28); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { background: #edf2fb; color: var(--ink); }

.page-wrap { max-width: 1440px; padding: 42px 40px 72px; margin: 0 auto; }
.intro-copy { max-width: 740px; margin: 0 auto 40px; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.intro-copy h1 { margin: 0; font-size: clamp(38px, 4.3vw, 66px); line-height: 1.03; letter-spacing: -.055em; }
.intro-copy h1 span { color: #6780aa; }
.lede { max-width: 630px; margin: 20px auto 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.demo-shell { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid rgba(205, 215, 232, .9); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.chapter-panel { display: none; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; }
.panel-kicker { margin: 0; font-size: 10px; font-weight: 850; letter-spacing: .14em; color: #71809b; }
.panel-progress { display: flex; gap: 9px; align-items: center; color: #8a96aa; font-size: 10px; font-weight: 700; }
#overall-percent { color: var(--blue); }
.progress-track { height: 3px; margin: 14px 0 22px; border-radius: 5px; background: #dfe6f1; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .35s ease; }
.chapter-list { display: grid; gap: 7px; }
.chapter-button { width: 100%; min-height: 55px; border: 1px solid transparent; border-radius: 12px; background: transparent; padding: 8px 10px; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; text-align: left; cursor: pointer; transition: .18s ease; }
.chapter-button:hover { background: rgba(255,255,255,.75); border-color: #dfe6f1; }
.chapter-button.is-active { background: #fff; border-color: #cdd9ed; box-shadow: 0 8px 24px rgba(39, 63, 106, .09); }
.chapter-button.is-complete .chapter-number { color: #fff; background: var(--green); border-color: var(--green); }
.chapter-number { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d7deea; border-radius: 9px; color: #7b879e; background: #f8faff; font-size: 10px; font-weight: 800; }
.chapter-button.is-active .chapter-number { color: #fff; border-color: var(--blue); background: var(--blue); }
.chapter-copy strong, .chapter-copy small { display: block; }
.chapter-copy strong { font-size: 12px; line-height: 1.2; }
.chapter-copy small { margin-top: 3px; color: #8b96aa; font-size: 9px; }
.chapter-state { color: #9aa5b7; font-size: 13px; }
.chapter-button.is-complete .chapter-state { color: var(--green); }
.tip-card { display: flex; gap: 10px; margin-top: 24px; padding: 13px; border: 1px solid #d9e6fb; border-radius: 12px; background: #edf5ff; }
.tip-icon { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: #fff; }
.tip-card p { margin: 0; color: #5c6d89; font-size: 10px; line-height: 1.45; }
.tip-card strong { color: var(--ink); }

.demo-main { min-width: 0; padding: 26px 28px 18px; display: grid; grid-template-rows: auto 1fr auto; background: #fff; }
.demo-toolbar { min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.toolbar-title { display: flex; align-items: center; gap: 12px; }
.toolbar-index { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.toolbar-title strong, .toolbar-title small { display: block; }
.toolbar-title strong { font-size: 14px; }
.toolbar-title small { margin-top: 3px; color: #8995a8; font-size: 10px; }
.toolbar-status { display: inline-flex; align-items: center; gap: 8px; color: #76849a; font-size: 10px; }

.player-frame { align-self: center; overflow: hidden; border: 1px solid #c9d4e6; border-radius: 15px; background: #182236; box-shadow: 0 18px 50px rgba(17, 36, 70, .18); }
.browser-bar { height: 40px; display: grid; grid-template-columns: 100px 1fr 100px; align-items: center; padding: 0 14px; color: #aab5c8; background: #182236; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 8px; height: 8px; border-radius: 50%; background: #4d5a70; }
.browser-address { justify-self: center; width: min(310px, 70%); height: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 7px; color: #c3ccdb; background: #28354a; font-size: 9px; }
.lock { font-size: 7px; color: #62d8a7; }
.browser-action { justify-self: end; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #28354a; font-size: 12px; }
.video-stage { position: relative; aspect-ratio: 20 / 9; background: #0c1422; overflow: hidden; }
media-controller { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #0c1422; --media-primary-color: #fff; --media-secondary-color: #2363ec; --media-control-background: transparent; }
#product-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #0c1422; }
.media-controls { width: 100%; display: flex; align-items: center; gap: 8px; padding: 30px 10px 8px; background: linear-gradient(transparent, rgba(4, 10, 20, .92)); }
.media-controls > * { flex: 0 0 auto; }
.media-controls media-time-display { white-space: nowrap; }
.segmented-timeline { min-width: 0; flex: 1 1 auto; display: flex; gap: 7px; align-items: center; padding: 0 4px; }
.timeline-segment { position: relative; flex: 0 0 24px; min-width: 0; height: 7px; padding: 0; overflow: visible; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .32); cursor: pointer; transition: flex-basis .22s ease, height .18s ease, opacity .18s ease; touch-action: none; }
.timeline-segment.is-active { flex: 1 1 180px; min-width: 96px; }
.timeline-segment:hover { height: 11px; }
.timeline-segment-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: #2f70ff; transition: width .12s linear; }
.timeline-segment.is-active .timeline-segment-fill::after { content: ""; position: absolute; top: 50%; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .35); transform: translateY(-50%); }
.timeline-segment.is-waiting { animation: segment-wait 1.25s ease-in-out infinite; }
.timeline-ellipsis { flex: 0 0 auto; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
@keyframes segment-wait { 50% { box-shadow: 0 0 0 3px rgba(79, 140, 255, .25); } }

.start-overlay, .complete-overlay { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 30px; }
.start-backdrop { position: absolute; inset: 0; background: rgba(9, 20, 40, .72); backdrop-filter: blur(5px); }
.start-content { position: relative; max-width: 540px; }
.start-number { width: 42px; height: 42px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; color: #bcd5ff; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 850; }
.start-kicker { margin: 0 0 11px; color: #a9c7ff; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.start-overlay h2, .complete-overlay h2 { margin: 0; font-size: clamp(25px, 3vw, 40px); line-height: 1.1; letter-spacing: -.035em; }
.start-overlay p:not(.start-kicker), .complete-overlay p:not(.start-kicker) { max-width: 470px; margin: 14px auto 22px; color: #ccd7e9; font-size: 12px; line-height: 1.6; }
.complete-overlay { background: rgba(8, 18, 36, .92); backdrop-filter: blur(5px); }
.complete-icon { width: 46px; height: 46px; margin-bottom: 18px; display: grid; place-items: center; border: 1px solid rgba(94, 226, 174, .35); border-radius: 50%; color: #75e4b8; background: rgba(62, 201, 149, .12); font-weight: 850; }
.complete-actions { display: flex; gap: 10px; }

.interaction-layer { position: absolute; inset: 0; z-index: 10; background: rgba(8, 19, 39, .16); pointer-events: none; }
.interaction-layer.is-hidden, .complete-overlay.is-hidden, .start-overlay.is-hidden { display: none; }
.hotspot { position: absolute; z-index: 3; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: translate(-50%, -50%); pointer-events: auto; }
.hotspot-ring, .hotspot-dot { position: absolute; inset: 50% auto auto 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.hotspot-ring { width: 34px; height: 34px; border: 2px solid rgba(35, 99, 236, .9); background: rgba(255,255,255,.45); animation: pulse 1.6s ease-out infinite; }
.hotspot-dot { width: 12px; height: 12px; border: 3px solid #fff; background: var(--blue); box-shadow: 0 3px 12px rgba(17, 52, 130, .45); }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(.7); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }
.callout { position: absolute; z-index: 2; width: min(280px, 36%); padding: 18px; display: flex; flex-direction: column; align-items: flex-start; border-radius: 13px; color: #fff; background: linear-gradient(150deg, #2465ee, #174cbc); box-shadow: 0 18px 44px rgba(15, 51, 130, .38); cursor: pointer; pointer-events: auto; }
.callout::before { content: ""; position: absolute; width: 12px; height: 12px; background: #215edf; transform: rotate(45deg); }
.callout.is-right::before { left: -6px; top: 24px; }
.callout.is-left::before { right: -6px; top: 24px; }
.callout-step { display: block; flex: none; color: #c8ddff; font-size: 8px; font-weight: 850; line-height: 1.25; letter-spacing: .14em; }
.callout h3 { display: block; width: 100%; margin: 7px 0 8px; font-size: 15px; line-height: 1.3; letter-spacing: -.02em; }
.callout p { display: block; width: 100%; margin: 0; color: #e3edff; font-size: 10px; line-height: 1.55; }
.callout-action { flex: none; margin-top: 13px; padding: 0; border: 0; color: #fff; background: transparent; font-size: 10px; font-weight: 800; line-height: 1.4; cursor: pointer; }

.demo-controls { display: none; }
.control-group { display: flex; align-items: center; gap: 8px; }
.icon-button, .text-button { min-height: 38px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.icon-button { width: 38px; border-radius: 10px; font-size: 16px; }
.text-button { padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; font-size: 11px; font-weight: 750; }
.text-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.step-summary { min-width: 90px; color: #7b879b; font-size: 10px; font-weight: 800; text-align: center; letter-spacing: .04em; }
.button-next { justify-self: end; color: var(--blue); background: #edf4ff; }

.tour-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 8px 0; color: #64748e; }
.tour-summary p { margin: 0; font-size: 13px; }
.summary-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.summary-tags span { padding: 7px 10px; border: 1px solid #d8e1ef; border-radius: 999px; background: rgba(255,255,255,.68); font-size: 10px; font-weight: 750; }

@media (max-width: 960px) {
  .demo-shell { grid-template-columns: 1fr; }
  .chapter-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .chapter-list { grid-template-columns: repeat(4, 1fr); }
  .chapter-button { grid-template-columns: 28px 1fr; }
  .chapter-state { display: none; }
  .tip-card { display: none; }
}

@media (max-width: 720px) {
  .minimal-page { padding: 0; }
  .minimal-page .player-frame { border-radius: 0; }
  .site-header { padding: 18px 18px; }
  .demo-badge, .button-ghost { display: none; }
  .page-wrap { padding: 28px 14px 50px; }
  .intro-copy { margin-bottom: 26px; }
  .lede { font-size: 14px; }
  .demo-shell { border-radius: 16px; }
  .chapter-panel { padding: 18px 14px; }
  .chapter-list { grid-template-columns: repeat(2, 1fr); }
  .chapter-button { min-height: 48px; padding: 6px; gap: 6px; }
  .chapter-copy small { display: none; }
  .demo-main { padding: 18px 12px 12px; }
  .toolbar-status { display: none; }
  .browser-bar { height: 34px; grid-template-columns: 60px 1fr 60px; }
  .browser-address { width: 90%; }
  .start-overlay { padding: 10px 14px; }
  .start-overlay .start-number { width: 28px; height: 28px; margin-bottom: 6px; border-radius: 9px; font-size: 8px; }
  .start-overlay .start-kicker { margin-bottom: 4px; font-size: 7px; }
  .start-overlay h2 { font-size: 18px; line-height: 1.05; }
  .start-overlay p:not(.start-kicker) { margin: 6px auto 9px; font-size: 9px; line-height: 1.35; }
  .start-overlay .button { min-height: 32px; padding: 0 12px; font-size: 10px; }
  .callout { width: min(190px, 52%); max-height: calc(100% - 16px); padding: 10px; border-radius: 10px; overflow-y: auto; }
  .callout-step { font-size: 7px; }
  .callout h3 { margin: 5px 0 6px; font-size: 11px; }
  .callout p { font-size: 9px; line-height: 1.4; }
  .callout-action { margin-top: 8px; font-size: 9px; }
  .hotspot { width: 44px; height: 44px; }
  .media-controls { gap: 3px; padding-inline: 4px; }
  .segmented-timeline { gap: 4px; padding-inline: 0; }
  .timeline-segment { flex-basis: 14px; }
  .timeline-segment.is-active { flex-basis: 110px; min-width: 72px; }
  .text-button { display: none; }
  .button-next { padding: 0 11px; font-size: 10px; }
  .tour-summary { align-items: flex-start; flex-direction: column; }
  .summary-tags { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .media-controls media-playback-rate-button { display: none; }
  .media-controls media-time-display { font-size: 11px; }
  .timeline-segment.is-active { min-width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
