/* ==========================================================================
   SYLENT MENU — FX / POLISH / RESPONSIVE LAYER
   Loaded after custom.css. Pure additive overrides.
   ========================================================================== */

/* Particle canvases */
#sx-bg, #sx-fg { display: block; contain: strict; }
@media (prefers-reduced-motion: reduce) { #sx-fg { display: none; } }

/* Let particles show through the ambient layers */
.page-fx { opacity: .85; }

/* Animated aurora behind everything */
body::before {
  content: "";
  position: fixed; inset: -20%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 25%, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(35% 30% at 80% 70%, rgba(6, 182, 212, .12), transparent 70%);
  animation: sx-aurora 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes sx-aurora {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* Glass header */
.sa-header {
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

/* Interactive lift on cards & buttons */
.sa-product-card, .sa-preview-card, .sa-feedback-card, .sa-stats-item {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, border-color .35s ease;
}
@media (hover: hover) {
  .sa-product-card:hover, .sa-preview-card:hover, .sa-feedback-card:hover { transform: translateY(-6px); }
  .sa-btn:hover { transform: translateY(-2px); }
}
.sa-btn, button, a { -webkit-tap-highlight-color: transparent; }
.sa-btn { transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease; }
.sa-btn:active { transform: scale(.97); }

/* Gradient headline shimmer */
.hl-accent {
  background: linear-gradient(90deg, #8B5CF6, #06B6D4, #A855F7, #8B5CF6);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: inline-block;
  padding-right: 0.16em;
  padding-bottom: 0.1em;
  line-height: 1.15;
  overflow: visible;
  animation: sx-shine 7s linear infinite;
}
@keyframes sx-shine { to { background-position: 250% 0; } }
@media (prefers-reduced-motion: reduce) { .hl-accent { animation: none; } }

/* Keyboard focus */
:focus-visible { outline: 2px solid rgba(168, 85, 247, .8); outline-offset: 2px; }

/* ---------- Responsive hardening ---------- */
html, body { overflow-x: hidden; }
img, video, svg, iframe { max-width: 100%; }
table { display: block; overflow-x: auto; max-width: 100%; }
pre, code { overflow-x: auto; max-width: 100%; }

@media (max-width: 767px) {
  body::before { animation: none; }               /* save battery */
  .sa-hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .sa-hero-actions > * { width: 100%; justify-content: center; }
  .sa-hero-title { word-break: break-word; }
  .sa-footer-grid, .sa-preview-grid, .sa-tab-content-grid { grid-template-columns: 1fr !important; }
  .sa-filter-tabs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sa-filter-tabs-wrap::-webkit-scrollbar { display: none; }
  /* comfortable tap targets */
  .sa-btn, .sa-filter-btn, .sa-module-tab, .sa-navbar-link { min-height: 44px; }
  /* keep content clear of the floating bar */
  body { padding-bottom: env(safe-area-inset-bottom); }
}

@supports (padding: max(0px)) {
  .sa-mobile-floating-bar { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
}
