/* Interactive layer shared by Mety and ShiftMate. No external dependencies. */
.hero-copy { animation: hero-first-paint 180ms ease-out; }
@keyframes hero-first-paint { from { opacity: .92; } to { opacity: 1; } }
.hero-visual, .product-stage[data-enter-media] { transition-duration: 140ms !important; transition-delay: 0ms !important; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: experience-out 160ms ease both; }
::view-transition-new(root) { animation: experience-in 280ms cubic-bezier(.22,1,.36,1) both; }
@keyframes experience-out { to { opacity: 0; } }
@keyframes experience-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 35;
  height: 76px;
  margin-top: 12px;
  margin-bottom: 8px;
  padding-inline: 20px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 20px;
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-color: var(--line);
  box-shadow: 0 8px 30px #0000000d;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
@supports not (background: color-mix(in srgb, white 90%, transparent)) {
  .site-header.is-scrolled { background: var(--bg); }
}
.site-header a[aria-current="location"] { color: var(--accent); }
.site-header a[aria-current="location"]::after { transform: scaleX(1); }
main section[id], main [id="hero-download"] { scroll-margin-top: 110px; }
main h1[tabindex="-1"], main h2[tabindex="-1"] { outline-offset: 8px; }
.reading-progress { position: fixed; z-index: 100; inset: 0 0 auto; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.product-stage { position: relative; min-width: 0; border-radius: 24px; overflow: hidden; isolation: isolate; background: #17251c; }
.product-stage .hero-product { background: transparent; }
.product-stage .hero-product::before, .product-stage .hero-product::after,
.visual-stage[data-fluid]::before, .visual-stage[data-fluid]::after { display: none; }
.visual-stage[data-fluid] { overflow: hidden; border-radius: 36px; background: radial-gradient(ellipse at 40% 40%, #269cff, #102ab1); border: 1px solid #a0b2ff; }
.fluid-poster, .fluid-canvas { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fluid-canvas { visibility: hidden; }
[data-fluid-ready="true"]>.fluid-canvas { visibility: visible; }
[data-fluid-ready="true"]>.fluid-poster { visibility: hidden; }
.fluid-control { position: absolute; z-index: 5; right: 18px; bottom: 18px; display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border-radius: 50%; border: 1px solid #ffffff66; background: #101321c9; color: #fff; cursor: pointer; transition: background-color 160ms, border-color 160ms; }
.fluid-control:hover { background: #101321; border-color: #fff; }
.fluid-control:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fluid-control svg { display: block; width: 20px; height: 20px; }
.fluid-control[hidden] { display: none !important; }
.product-stage .fluid-control { bottom: 65px; }

.scroll-scene { position: relative; }
.scroll-scene .scene-line { position: absolute; left: -18px; top: 15%; bottom: 15%; width: 2px; background: var(--line); overflow: hidden; border-radius: 2px; pointer-events: none; }
.scroll-scene .scene-line::after { position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--scene-progress, 0)); transform-origin: top; content: ""; }
.project-visual.scroll-scene>img, .theme-gallery.scroll-scene .theme-screen { transform: translateY(var(--scene-shift, 0px)); }
.project-visual.scroll-scene .scene-line { display: none; }
.theme-picker a { transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
.feature-icon { transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.feature-grid article:hover .feature-icon { background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-list summary .icon { transition: transform 280ms cubic-bezier(.22,1,.36,1); }
.faq-body { display: flow-root; }
.faq-body>p { font-size: 15px; color: var(--muted); margin: 0 26px 24px 0; }
.tool-card { transition: border-color 200ms ease, box-shadow 200ms ease; }
.tool-card:hover { border-color: #ffffff66; box-shadow: 0 14px 38px #00000014; }

@media (max-width: 900px) { .site-header { gap: 18px; padding-inline: 14px; } }
@media (max-width: 600px) {
  .site-header { height: 64px; top: 8px; margin-top: 8px; margin-bottom: 4px; padding-inline: 10px; border-radius: 16px; }
  .site-header .brand { font-size: 21px; gap: 7px; }
  .site-header .brand img { width: 29px; height: 29px; }
  .site-header.shell .brand { font-size: 30px; }
  .site-header.shell nav { gap: 16px; }
  main section[id], main [id="hero-download"] { scroll-margin-top: 88px; }
  .visual-stage[data-fluid] { border-radius: 26px; }
  .fluid-control { right: 14px; bottom: 14px; }
  .scroll-scene .scene-line { left: 7px; top: 12%; bottom: 12%; }
  .project-visual.scroll-scene .scene-line { left: 4px; }
  .faq-body>p { margin-right: 0; }
}
@media (max-width: 760px) { .fluid-poster .fluid-detail { display: none; } }
@media (max-width: 360px) { .site-header.shell nav { gap: 12px; } .site-header { gap: 8px; padding-inline: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .site-header, .fluid-control, .feature-icon, .faq-list summary .icon, .tool-card, .theme-picker a { transition: none; }
  .project-visual.scroll-scene>img, .theme-gallery.scroll-scene .theme-screen { transform: none; }
}
