/* Keep the sticky showcase relative to the viewport, not an overflow container. */
.cluegent-home .page-shell { overflow: clip; }
.laptop-demo { position: relative; padding: 60px 0 20px; background: radial-gradient(ellipse at 50% 55%, #dce8ff 0, #f5f8ff 45%, #fff 75%); }
.laptop-demo.is-scroll-ready { height: 250svh; padding: 0; }
.laptop-demo-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 760px; padding: 100px 24px 35px; overflow: hidden; }
.is-scroll-ready .laptop-demo-stage { position: sticky; top: 0; height: 100svh; min-height: 620px; }
.laptop-demo-heading { position: relative; z-index: 1; text-align: center; }
.laptop-demo-eyebrow { color: #2563eb; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.laptop-demo-heading h2 { margin: 12px 0 10px; color: #162440; font-size: clamp(30px, 3.5vw, 48px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.laptop-demo-heading h2 em { font-family: var(--font-hero); font-weight: 500; color: #2563eb; }
.laptop-demo-heading p { margin: 0; color: #64748b; font-size: 15px; line-height: 1.5; }
.laptop-demo-device { position: relative; width: min(820px, 80vw, 100svh); margin: 30px 0 0; perspective: 1600px; }
.laptop-demo-lid { position: relative; z-index: 2; width: 88%; margin: 0 auto; padding: 10px 10px 19px; border: 2px solid #9ca6b5; border-radius: 19px 19px 5px 5px; background: #161b25; box-shadow: inset 0 0 0 2px #303745, 0 16px 35px #14233e18; transform-origin: center bottom; backface-visibility: hidden; }
.laptop-demo-camera { position: absolute; top: 6px; left: calc(50% - 3px); z-index: 2; width: 6px; height: 6px; border: 1px solid #46516a; border-radius: 50%; background: #1e3a5f; }
.laptop-demo-display { position: relative; aspect-ratio: 1.65; overflow: hidden; border-radius: 8px 8px 2px 2px; background: linear-gradient(135deg, #c0d5ff, #e4eaff 50%, #9eb9ef); }
.laptop-demo-menubar { display: flex; justify-content: space-between; padding: 6px 12px; color: #2b3d63; font-size: 8px; font-weight: 600; }
.laptop-demo-call { position: absolute; inset: 9% 4% 8%; overflow: hidden; border: 1px solid #4a5363; border-radius: 9px; background: #151b26; box-shadow: 0 8px 24px #0f172a30; }
.laptop-demo-call > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.laptop-demo-call-label { position: absolute; top: 9px; right: 12px; padding: 4px 7px; border-radius: 5px; background: #111827bc; color: #fff; font-size: 8px; }
.laptop-demo-call-controls { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: #101722; color: #cbd5e1; font-size: 8px; }
.laptop-demo-call-controls b { padding: 4px 10px; border-radius: 5px; background: #b93846; color: white; font-size: 8px; font-weight: 500; }
.laptop-demo-base { position: relative; z-index: 1; height: 100px; margin-top: -2px; overflow: hidden; border: 1px solid #8c99ad; border-radius: 3px 3px 25px 25px; background: linear-gradient(180deg, #a8b4c5, #dce3ec 95%, #8b99ac); clip-path: polygon(6% 0, 94% 0, 100% 91%, 99% 97%, 97% 100%, 3% 100%, 1% 97%, 0 91%); }
.laptop-demo-keyboard { position: absolute; top: 9%; left: 15%; width: 70%; height: 40%; border: 4px solid #91a0b4; border-radius: 4px; background: repeating-linear-gradient(0deg, transparent 0 7px, #a4afbe 7px 10px), repeating-linear-gradient(90deg, #283342 0 20px, #a4afbe 20px 24px); transform: perspective(250px) rotateX(20deg); }
.laptop-demo-trackpad { position: absolute; bottom: 9%; left: 35%; width: 30%; height: 35%; border: 1px solid #99a6b8; border-radius: 4px; background: #c4cedb; }
.laptop-demo-shadow { width: 88%; height: 16px; margin: -3px auto 0; border-radius: 50%; background: #233c6c26; filter: blur(12px); }
.laptop-demo-steps { display: flex; gap: 30px; margin: 22px 0 0; padding: 0; list-style: none; color: #8b98ad; font-size: 12px; }
.laptop-demo-steps li { display: flex; align-items: center; gap: 8px; }
.laptop-demo-steps b { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #d6dfed; border-radius: 50%; font-size: 10px; font-weight: 500; }
.laptop-demo-steps .is-active { color: #1d4ed8; }
.laptop-demo-steps .is-active b { border-color: #2563eb; background: #2563eb; color: #fff; }
.laptop-demo-caption { margin: 14px 0 0; color: #64748b; font-size: 11px; text-align: center; }
@media (max-width: 820px) {
  .laptop-demo-device { width: min(94vw, 760px); }
  .laptop-demo-stage { min-height: 590px; padding: 95px 12px 30px; }
  .is-scroll-ready .laptop-demo-stage { min-height: 540px; }
  .laptop-demo-heading p { max-width: 300px; margin-inline: auto; font-size: 13px; }
  .laptop-demo-lid { width: 94%; padding: 7px 5px 10px; border-radius: 12px 12px 3px 3px; }
  .laptop-demo-base { height: 65px; }
  .laptop-demo-menubar { padding: 4px 8px; font-size: 6px; }
  .laptop-demo-call-controls { padding: 5px 8px; font-size: 6px; }
  .laptop-demo-call-controls b { font-size: 6px; }
  .laptop-demo-call-label { font-size: 6px; top: 5px; right: 6px; }
  .laptop-demo-steps { gap: 14px; font-size: 10px; }
}
@media (max-height: 700px) and (min-width: 821px) {
  /* Keep the centered MacBook layout; scroll tall content into view at full size. */
  .laptop-demo-device { width: min(820px, 80vw, calc((100svh - 200px) * 1.875)); }
  .laptop-demo-base { height: 65px; }
  .laptop-demo-steps, .laptop-demo-caption { display: none; }
  .is-scroll-ready .laptop-demo-stage {
    height: auto;
    min-height: 100svh;
    padding-bottom: 16px;
    top: var(--laptop-stage-top, 0px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .laptop-demo.is-scroll-ready { height: auto; }
  .is-scroll-ready .laptop-demo-stage { position: relative; height: auto; }
}
@media print { .laptop-demo.is-scroll-ready { height: auto; } .is-scroll-ready .laptop-demo-stage { position: static; height: auto; } }

/* Scaled replica of the desktop overlay: toolbar and detached response panel. */
.laptop-demo-overlay { position: absolute; z-index: 3; top: 19%; left: 19%; width: 62%; container-type: inline-size; color: #f3f4f6; filter: drop-shadow(0 7px 12px #0003); font-family: -apple-system, BlinkMacSystemFont, "Geist", sans-serif; }
.laptop-demo-overlay svg { display: block; width: 1.55cqw; height: 1.55cqw; flex-shrink: 0; }
.demo-cluegent-toolbar { display: flex; align-items: center; gap: .65cqw; height: 4.8cqw; padding: .55cqw; border: .1cqw solid #ffffff3b; border-radius: 4cqw; background: #727577f2; font-size: 1.28cqw; white-space: nowrap; }
.demo-cluegent-logo { display: grid; place-items: center; width: 3.5cqw; height: 3.5cqw; flex-shrink: 0; border-radius: 50%; background: white; }
.demo-cluegent-logo img { width: 2.8cqw; height: 2.8cqw; }
.demo-cluegent-device { position: relative; display: grid; place-items: center; width: 3.45cqw; height: 3.45cqw; border: .1cqw solid #ffffff26; border-radius: 50%; }
.demo-cluegent-device i { position: absolute; top: -.15cqw; right: -.1cqw; width: 1.2cqw; height: 1.2cqw; border: .2cqw solid #172a27; border-radius: 50%; background: #34c596; }
.demo-cluegent-listening { display: flex; align-items: center; gap: .8cqw; padding: .65cqw 1.3cqw; border: .1cqw solid #51cda36b; border-radius: 3cqw; background: #375c52; color: #73e5bf; font-size: 1.2cqw; font-weight: 600; }
.demo-cluegent-listening i { width: .85cqw; height: .85cqw; border-radius: .1cqw; background: currentColor; }
.demo-cluegent-timer { padding: .9cqw 1cqw; border: .1cqw solid #ffffff29; border-radius: 3cqw; font-family: monospace; color: #e1e1e2; font-size: 1.2cqw; }
.demo-cluegent-divider { width: .1cqw; height: 3.3cqw; background: #ffffff24; }
.demo-cluegent-tool { display: flex; align-items: center; justify-content: center; gap: .65cqw; padding: 1cqw 1.4cqw; border: .1cqw solid #ffffff12; border-radius: 3cqw; background: #282d36; font-weight: 600; }
.demo-cluegent-tool kbd { margin-left: .6cqw; padding: .15cqw .55cqw; border: .1cqw solid #ffffff1a; border-radius: .45cqw; background: #42474e; color: #a9aeb5; font-size: .8cqw; }
.demo-cluegent-tool--answer svg { color: #ffe15e; }
.demo-cluegent-tool--screenshot svg { color: #7ed4f8; }
.demo-cluegent-tool--chat svg { color: #75e1c2; }
.demo-cluegent-tool--hide { color: #c6c8cd; font-weight: 400; }
.demo-cluegent-round { display: grid; place-items: center; width: 3.5cqw; height: 3.5cqw; flex-shrink: 0; border: .1cqw solid #ffffff1a; border-radius: 50%; background: #42474f; color: #d7dbdf; }
.demo-cluegent-panel { width: 81.2%; margin: .85cqw auto 0; padding: .9cqw 1.25cqw 1.2cqw; border: .1cqw solid #ffffff2b; border-radius: 2.6cqw; background: #848587f5; }
.demo-cluegent-transcript { display: flex; align-items: center; gap: 1.8cqw; height: 5cqw; padding: 0 1.25cqw; border-radius: 1.8cqw; background: #0f1012; font-size: 1.4cqw; }
.demo-cluegent-transcript small { margin-left: auto; padding: .6cqw 1.2cqw; border: .1cqw solid #ffffff1c; border-radius: 3cqw; color: #c4c5c7; background: #222526; font-size: 1cqw; letter-spacing: .07em; }
.demo-cluegent-wave { display: flex; align-items: center; gap: .3cqw; height: 2.5cqw; color: #21ca92; }
.demo-cluegent-wave i { width: .3cqw; height: 1.7cqw; border-radius: 1cqw; background: currentColor; }
.demo-cluegent-wave i:nth-child(2) { height: 2.2cqw; }
.demo-cluegent-wave i:nth-child(4) { height: 1.2cqw; }
.demo-cluegent-wave i:nth-child(5) { height: .9cqw; }
.demo-cluegent-response { position: relative; margin-top: .85cqw; padding: 1.1cqw 4cqw 1.1cqw; border: .1cqw solid #ffffff24; border-radius: 2.1cqw; background: #000; }
.demo-cluegent-response-tools { display: flex; justify-content: space-between; align-items: center; margin: 0 -1.6cqw 3.1cqw; color: #858588; font-size: 1cqw; }
.demo-cluegent-response-tools > span:last-child { display: flex; align-items: center; gap: .7cqw; }
.demo-cluegent-response-tools i { position: relative; width: 6cqw; height: .6cqw; border-radius: 2cqw; background: white; }
.demo-cluegent-response-tools i::after { content: ''; position: absolute; right: 0; top: -.5cqw; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: white; }
.demo-cluegent-response-tools b { margin-left: 1cqw; padding: .6cqw 1.2cqw; border: .1cqw solid #ffffff26; border-radius: 3cqw; background: #111; color: #bfc0c2; font-size: 1.05cqw; font-weight: 500; letter-spacing: .06em; }
.demo-cluegent-say { min-height: 27cqw; padding: 1.4cqw; border: .1cqw solid #282c32; border-radius: .8cqw; background: #0d1114; }
.demo-cluegent-say-heading { display: flex; align-items: center; justify-content: space-between; }
.demo-cluegent-say-heading strong { font-size: 1.3cqw; font-weight: 600; }
.laptop-demo-status { color: #a0a7ae; font-size: .9cqw; }
.demo-cluegent-say ul { margin: 3.2cqw 0 0; padding: 0 0 0 2.3cqw; }
.demo-cluegent-say li { min-height: 5.5cqw; margin-bottom: 1.4cqw; font-size: 1.65cqw; font-weight: 500; line-height: 1.65; }
.demo-cluegent-say li:last-child { margin-bottom: 0; }
.demo-cluegent-say li::marker { color: #d8a14d; }
.laptop-demo-cursor { display: none; }
[data-demo-state="generating"] .laptop-demo-cursor { display: inline; }
.demo-cluegent-expand { position: absolute; right: .8cqw; bottom: .8cqw; display: grid; place-items: center; width: 3.5cqw; height: 3.5cqw; border: .1cqw solid #ffffff26; border-radius: 50%; background: #111; color: #bfc0c2; }
.demo-cluegent-actions { display: flex; gap: .6cqw; margin: 1.1cqw .4cqw; }
.demo-cluegent-actions span { padding: .8cqw 1.3cqw; border: .1cqw solid #ffffff20; border-radius: 3cqw; background: #464b53; color: #fff; font-size: 1.15cqw; }
.demo-cluegent-composer { display: flex; align-items: center; gap: 1cqw; margin: 1.3cqw .2cqw 0; color: #bfc2c5; font-size: 1.3cqw; }
.demo-cluegent-composer > span { flex: 1; padding: 1.3cqw; border: .1cqw solid #ffffff29; border-radius: 1.5cqw; background: #3c4349; white-space: nowrap; }
.demo-cluegent-composer kbd { padding: .3cqw .5cqw; border-radius: .2cqw; background: #262e34; font-size: 1cqw; }
.demo-cluegent-composer b { display: grid; place-items: center; width: 3.2cqw; height: 3.2cqw; border: .1cqw solid #ffffff26; border-radius: 50%; background: #484d57; }

/* Scale the desktop UI as a unit, keeping its proportions on narrow screens. */
.laptop-demo-overlay { aspect-ratio: 1.65; }
.demo-cluegent-replica { position: absolute; top: 0; left: 0; width: 1100px; container-type: inline-size; transform: scale(var(--overlay-scale, .55)); transform-origin: top left; }
@media (max-width: 820px) { .demo-cluegent-replica { transform: scale(var(--overlay-scale, .26)); } }
