/* Fényműhely Autókozmetika: MŰHELYFÉNY mozgásréteg (ELŐNÉZET). Paletta: #09090b, #a3e635.
   Csak transform és opacity mozog. A mozgás html.slfx-on alatt él; csökkentett mozgásnál semmi nem fut. */
:root { --slfx-accent: #a3e635; --slfx-shine: rgba(255, 255, 255, .34); --fm-ease: cubic-bezier(.16, 1, .3, 1); }

/* hero: a szöveg sorban felemelkedik (JS nélkül is, a végállapot a normál oldal) */
@media (prefers-reduced-motion: no-preference) {
  body > section:first-of-type .max-w-3xl > * { animation: fm-rise .95s var(--fm-ease) backwards; }
  body > section:first-of-type .max-w-3xl > :nth-child(1) { animation-delay: .08s; }
  body > section:first-of-type .max-w-3xl > :nth-child(2) { animation-delay: .2s; }
  body > section:first-of-type .max-w-3xl > :nth-child(3) { animation-delay: .34s; }
  body > section:first-of-type .max-w-3xl > :nth-child(4) { animation-delay: .48s; }
  body > section:first-of-type .max-w-3xl > :nth-child(5) { animation-delay: .62s; }
}
@keyframes fm-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

/* a forrás saját végtelen villogása (zöld pötty) is csak látható nyitó résznél és látható lapon fut */
.slfx-on .animate-pulse { animation-play-state: paused; }
.slfx-on .fm-live .animate-pulse { animation-play-state: running; }

/* hero: fényfutás a fényezésen (egy szeles fénycsík lassan átsöpör a fotón), a szöveg alatt */
.fm-beam { position: absolute; top: -10%; bottom: -10%; left: 0; width: 36%; pointer-events: none; opacity: 0; transform: translate3d(-70%, 0, 0) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(163, 230, 53, .05) 28%, rgba(217, 249, 157, .17) 50%, rgba(163, 230, 53, .05) 72%, transparent); }
.slfx-on .fm-live .fm-beam, .slfx-on .fm-live.fm-beam { animation: fm-beam 10s cubic-bezier(.4, .05, .3, 1) 1.2s infinite; }
@keyframes fm-beam { 0% { transform: translate3d(-70%, 0, 0) skewX(-18deg); opacity: 0; } 6% { opacity: 1; } 34% { opacity: 1; } 42%, 100% { transform: translate3d(300%, 0, 0) skewX(-18deg); opacity: 0; } }

/* hero: az egyetlen 3D elem, a műhelypadlón forgó fénykör (CSS 3D, csak erős gépen jön létre) */
.fm-stage { position: absolute; right: -10%; bottom: -26%; width: min(64vw, 900px); aspect-ratio: 1; perspective: 1100px; pointer-events: none; opacity: .72; }
.fm-pool { position: absolute; inset: 0; transform: rotateX(72deg); transform-style: preserve-3d; }
.fm-disc, .fm-ring3, .fm-spin { position: absolute; inset: 0; border-radius: 50%; }
.fm-disc { background: radial-gradient(closest-side, rgba(163, 230, 53, .16), rgba(163, 230, 53, .06) 50%, transparent 76%); }
.fm-ring3 { inset: 5%; background: repeating-radial-gradient(closest-side, transparent 0 11.5%, rgba(190, 242, 100, .2) 11.5% 12%);
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent 100%); mask: radial-gradient(closest-side, #000 55%, transparent 100%); }
.fm-spin { inset: 5%; background: conic-gradient(from 0deg, transparent 0 292deg, rgba(217, 249, 157, .05) 320deg, rgba(236, 252, 203, .28) 359deg, transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent 100%); mask: radial-gradient(closest-side, #000 40%, transparent 100%); }
.slfx-on .fm-live .fm-spin { animation: fm-spin 16s linear infinite; }
@keyframes fm-spin { to { transform: rotate(360deg); } }

/* beúszás a független translate tulajdonsággal (a kártyák hover-átmenete és dőlése megmarad) */
.slfx-on .fm-r { opacity: 0; translate: 0 var(--fm-y, 26px); transition: opacity .8s var(--fm-ease) var(--fm-d, 0ms), translate .8s var(--fm-ease) var(--fm-d, 0ms), transform .4s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.slfx-on .fm-r.fm-in { opacity: 1; translate: 0 0; }
.fm-boot .slfx-r, .fm-boot .fm-r { transition: none !important; }   /* indítás közben nincs átmenet (lásd a JS-ben) */

/* szolgáltatás-kártyák: dőlés + lime kurzorfény */
.slfx-on .fm-tilt.fm-hot { transition: opacity .8s var(--fm-ease) var(--fm-d, 0ms), translate .8s var(--fm-ease) var(--fm-d, 0ms), transform .12s linear, border-color .3s; }
/* a lime fény a tartalom ALATT van (a fotót és a szöveget nem festi át, a kontraszt AA fölött marad) */
.fm-tilt { isolation: isolate; }
.fm-glow { position: absolute; left: 0; top: 0; width: 460px; height: 460px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: -1;
  background: radial-gradient(closest-side, rgba(163, 230, 53, .13), rgba(163, 230, 53, .045) 55%, transparent 100%); }
.fm-hot > .fm-glow { opacity: 1; }

/* folyamat: a vezeték kigyullad, a körök sorban meggyúlnak, utána fénypötty fut a vezetéken */
.fm-wire { position: absolute; left: 0; right: 0; top: -.5px; height: 2px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(163, 230, 53, 0), rgba(163, 230, 53, .8) 8%, rgba(163, 230, 53, .8) 92%, rgba(163, 230, 53, 0));
  transition: transform 1.5s cubic-bezier(.65, 0, .35, 1) .3s; }
.fm-lit .fm-wire { transform: scaleX(1); }
.fm-ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #a3e635; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.fm-lit .fm-ring { opacity: .6; }
.fm-pulse { position: absolute; left: 0; top: -1.5px; width: 12%; height: 4px; border-radius: 4px; pointer-events: none; opacity: 0; transform: translate3d(-100%, 0, 0);
  background: linear-gradient(90deg, transparent, rgba(217, 249, 157, .95), transparent); }
.slfx-on .fm-lit.fm-live .fm-pulse { animation: fm-pulse 7s linear 2.4s infinite; }
@keyframes fm-pulse { 0% { transform: translate3d(-100%, 0, 0); opacity: 0; } 5% { opacity: 1; } 50% { opacity: 1; } 56%, 100% { transform: translate3d(840%, 0, 0); opacity: 0; } }

/* foglaló: a kijelölt gomb körül egyszer lime gyűrű tágul */
.slfx-on .mzb button.o { position: relative; }
.slfx-on .mzb button.o.on::after { content: ""; position: absolute; inset: -1px; border-radius: 999px; border: 2px solid #a3e635; pointer-events: none; animation: fm-ping .65s ease-out 1 both; }
@keyframes fm-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.22, 1.55); opacity: 0; } }

/* mobilmenü: a panel lenyílik, a sorok sorban érkeznek */
.slfx-on #mnav.fm-open { animation: fm-nav .38s var(--fm-ease) both; }
.slfx-on #mnav.fm-open a { animation: fm-rise .5s var(--fm-ease) backwards; }
.slfx-on #mnav.fm-open a:nth-child(1) { animation-delay: .06s; }
.slfx-on #mnav.fm-open a:nth-child(2) { animation-delay: .12s; }
.slfx-on #mnav.fm-open a:nth-child(3) { animation-delay: .18s; }
.slfx-on #mnav.fm-open a:nth-child(4) { animation-delay: .24s; }
@keyframes fm-nav { from { opacity: 0; transform: translate3d(0, -12px, 0); } to { opacity: 1; transform: none; } }

/* üzenet-űrlap: a kártyán átfutó csillanás halványabb (sok szöveg és mező van alatta; a gombé marad a közös erősségű) */
#uzenet > .slfx-shine { --slfx-shine: rgba(255, 255, 255, .2); }

/* csökkentett mozgás: semmi nem fut, a forrás saját végtelen villogása is megáll */
@media (prefers-reduced-motion: reduce) {
  .animate-pulse { animation: none !important; }
  .fm-beam, .fm-stage, .fm-glow, .fm-wire, .fm-pulse, .fm-ring { display: none !important; }
  .fm-r, .fm-tilt, #mnav, #mnav a { animation: none !important; transition: none !important; opacity: 1; transform: none !important; translate: none !important; }
}
