.hero-stage { position: relative; }
.desktop-device img { aspect-ratio: 1920 / 855; object-fit: contain; }
.site-header.is-scrolled { box-shadow: 0 3px 24px #0a142714; }
@media (min-width: 1121px) and (max-width: 1400px) {
  .home-hero .hero-devices { width: 100%; }
  .hero-device-note { inset-inline-end: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  #main-content .section-heading, #main-content .section-top,
  #main-content .feature-showcase, #main-content .split-section > *,
  #main-content .feature-card, #main-content .sector-card,
  #main-content .benefit-grid > *, #main-content .article-card,
  #main-content .faq-layout > *, #main-content .quote-receipt,
  #main-content .demo-layout > *, #main-content .cta-layout > * {
    transition: opacity .65s ease var(--reveal-delay, 0ms), translate .65s cubic-bezier(.2,.7,.25,1) var(--reveal-delay, 0ms), box-shadow .2s;
  }
  #main-content .reveal-pending { opacity: 0; translate: 0 30px; }
  .tour-dialog[data-tour-playing="true"] .tour-stage .product-shot { animation: tour-focus 4s ease-out both; }
}
@media (min-width: 1121px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .home-hero.scroll-hero { height: 170svh; overflow: clip; }
  .scroll-hero .hero-stage { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); overflow: hidden; }
  .scroll-hero .hero-grid { height: 100%; min-height: 0; }
  .scroll-hero .hero-copy { opacity: calc(1 - var(--hero-progress) * 1.6); translate: 0 calc(var(--hero-progress) * -55px); }
  .scroll-hero .hero-devices { transform: translate3d(calc(var(--hero-shift) * var(--hero-progress)), calc(var(--hero-progress) * -16px), 0) scale(calc(1 + var(--hero-progress) * .18)); will-change: transform; }
  .scroll-hero .desktop-device { transform: perspective(1200px) rotateY(calc(-7deg + var(--hero-progress) * 7deg)) rotateX(calc(2deg - var(--hero-progress) * 2deg)); }
  .scroll-hero .phone-device, .scroll-hero .hero-device-note { opacity: calc(1 - var(--hero-progress) * 1.2); }
  .scroll-hero .hero-backdrop { transform: translateY(calc(var(--hero-progress) * 28px)) scale(1.06); }
}

.tour-dialog { width: min(1000px, calc(100vw - 40px)); }
@media (min-width: 1121px) and (max-height: 800px) {
  .scroll-hero .hero-grid { padding-block: 25px 55px; }
  .scroll-hero .hero-copy h1 { font-size: clamp(48px, 4.3vw, 64px); }
  .scroll-hero .hero-copy .eyebrow { margin-bottom: 16px; }
  .scroll-hero .hero-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 18px; line-height: 1.5; }
  .scroll-hero .hero-copy .button-row { margin-top: 24px; }
  .scroll-hero .hero-proof { margin-top: 18px; }
}
.tour-dialog .dialog-heading h2 { font-size: clamp(25px, 3vw, 40px); }
.tour-dialog .dialog-content > p { margin-bottom: 20px; }
.tour-stage { overflow: hidden; border-radius: 12px; background: var(--primary); }
.tour-stage .product-shot { margin: 0; border: 0; box-shadow: none; border-radius: 0; }
.tour-stage .product-shot img { width: 100%; height: auto; max-height: min(44vh, 420px); object-fit: contain; object-position: center; background: #0a1427; }
.tour-caption { margin-top: 22px; }
.tour-caption h3 { font-size: 22px; margin-bottom: 7px; }
.tour-caption p { font-size: 17px; }
.tour-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tour-controls button { min-height: 44px; }
.tour-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tour-steps button { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 135px; min-width: 44px; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--primary); font: inherit; font-size: 16px; }
.tour-step span:first-child { font-size: 14px; opacity: .7; }
.tour-steps button[aria-current="step"] { background: var(--primary); color: #fff; }
.tour-controls [aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
[data-tour-progress] { text-align: center; margin-top: 10px; font-size: 16px; color: var(--muted); }
@keyframes tour-focus { from { transform: scale(1); } to { transform: scale(1.025); } }
@media (max-width: 520px) {
  .tour-dialog { width: calc(100vw - 20px); }
  .tour-stage .product-shot img { height: auto; max-height: 34vh; }
  .tour-controls { gap: 7px; }
  .tour-controls .button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #main-content .reveal-pending { opacity: 1; translate: none; }
  .tour-stage .product-shot { animation: none; }
}
