/* Fixcom animations & visual effects. Everything here switches off for people who ask for reduced motion. */

/* ---------- scroll progress bar ---------- */
.fx-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green-2), var(--green), #d4ff9a); box-shadow: 0 0 12px var(--green); pointer-events: none; }

/* ---------- header ---------- */
.topbar { transition: background .3s, box-shadow .3s, height .3s; }
.topbar.scrolled { background: rgba(8, 10, 12, .96); box-shadow: 0 6px 30px rgba(0,0,0,.5), 0 1px 0 rgba(123,226,45,.18); }
.topbar-in { transition: height .3s; }
.topbar.scrolled .topbar-in { height: 62px; }
.brand img { transition: transform .3s, filter .3s; }
.brand:hover img { transform: scale(1.04); filter: drop-shadow(0 0 10px rgba(123,226,45,.55)); }
@media (min-width: 961px) {
  .nav a { position: relative; }
  .nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--green); box-shadow: var(--glow);
    transform: scaleX(0); transform-origin: 50% 50%; transition: transform .25s; }
  .nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
  .nav a.on { background: transparent; }
}

/* ---------- page transition ---------- */
.fx-enter { animation: fxPage .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fxPage { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- reveal on scroll ---------- */
.fx-reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.fx-reveal.fx-left { transform: translateX(-34px); }
.fx-reveal.fx-right { transform: translateX(34px); }
.fx-reveal.fx-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { isolation: isolate; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.slide-content { z-index: 3; }
.dots, .arrow { z-index: 4; }
.fx-beam { position: absolute; z-index: 1; pointer-events: none; width: 3px; height: 160%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(123,226,45,.0) 20%, rgba(170,255,100,.95) 50%, rgba(123,226,45,0) 80%, transparent);
  filter: drop-shadow(0 0 8px var(--green)) drop-shadow(0 0 22px rgba(123,226,45,.6)); transform: rotate(45deg); opacity: .85; }
.fx-beam.b1 { left: 12%; animation: fxBeam 7s ease-in-out infinite; }
.fx-beam.b2 { left: 82%; animation: fxBeam 9s ease-in-out -3s infinite; }
.fx-beam.b3 { left: 55%; width: 2px; opacity: .45; animation: fxBeam 11s ease-in-out -6s infinite; }
@keyframes fxBeam {
  0% { transform: translate(-40vw, 0) rotate(45deg); opacity: 0; }
  15% { opacity: .9; }
  60% { opacity: .9; }
  100% { transform: translate(40vw, 0) rotate(45deg); opacity: 0; }
}
.slide.on .slide-content > * { animation: fxRise .9s cubic-bezier(.2,.7,.2,1) both; }
.slide.on .slide-content > *:nth-child(2) { animation-delay: .15s; }
.slide.on .slide-content > *:nth-child(3) { animation-delay: .3s; }
@keyframes fxRise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.slide.on .slide-bg[style] { animation: fxKenBurns 12s ease-out both; }
@keyframes fxKenBurns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* logo: neon flicker on, then a slow glow pulse and a light sweep */
.hero-logo-wrap { position: relative; display: inline-block; margin-bottom: 18px; }
.hero-logo-wrap .hero-logo { margin: 0; animation: fxFlicker 1.6s linear both, fxGlow 4s ease-in-out 1.6s infinite; }
.hero-logo-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: overlay;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  animation: fxSweep 5s ease-in-out 2s infinite; }
@keyframes fxSweep { 0%, 55% { background-position: 150% 0; } 100% { background-position: -60% 0; } }
@keyframes fxFlicker {
  0% { opacity: 0; } 8% { opacity: .9; } 10% { opacity: .1; } 16% { opacity: 1; } 18% { opacity: .3; }
  26% { opacity: 1; } 28% { opacity: .6; } 34%, 100% { opacity: 1; }
}
@keyframes fxGlow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(123,226,45,.18)); }
  50% { filter: drop-shadow(0 0 34px rgba(123,226,45,.5)); }
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg)); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; transform: translateZ(0); }
.btn:active { transform: scale(.97); }
.btn-primary::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); transition: none; }
.btn-primary:hover::before { left: 130%; transition: left .7s ease; }
.hero .btn-primary, .band .btn-primary, #bk-send { animation: fxPulse 2.8s ease-in-out infinite; }
@keyframes fxPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(123,226,45,.45); } 50% { box-shadow: 0 0 0 10px rgba(123,226,45,0), 0 0 28px rgba(123,226,45,.35); } }
.fx-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); pointer-events: none; animation: fxRipple .6s ease-out forwards; }
.btn-outline .fx-ripple, .chip .fx-ripple, .type .fx-ripple { background: rgba(123,226,45,.35); }
@keyframes fxRipple { to { transform: scale(4); opacity: 0; } }
.chip, .type { position: relative; overflow: hidden; }

/* ---------- cards: 3D tilt + cursor spotlight ---------- */
.card, .svc, .pl-group, .panel, .band { position: relative; }
.fx-tilt { transform-style: preserve-3d; }
.fx-tilt.fx-in { transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.fx-spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(123,226,45,.16), transparent 60%); }
.fx-spot:hover::before { opacity: 1; }
.fx-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(123,226,45,.95), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.fx-spot:hover::after { opacity: 1; }
.card:hover, .svc:hover { box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 30px rgba(123,226,45,.12); }
.p-img img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .p-img img { transform: scale(1.07) translateY(-3px); }
.svc-ic { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.svc:hover .svc-ic { transform: rotate(-8deg) scale(1.1); box-shadow: var(--glow); }
.svc:hover .svc-ic svg { animation: fxWiggle .6s ease; }
@keyframes fxWiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-18deg); } 60% { transform: rotate(12deg); } }
.feat-ic { transition: transform .4s, box-shadow .4s; }
.feat:hover .feat-ic { transform: translateY(-4px); box-shadow: var(--glow); }
.badge.sale { animation: fxBadge 2.2s ease-in-out infinite; }
@keyframes fxBadge { 0%, 100% { box-shadow: 0 0 0 rgba(123,226,45,0); } 50% { box-shadow: 0 0 14px rgba(123,226,45,.8); } }

/* price rows */
.pl-table tr { transition: background .2s; }
.pl-table tr:hover { background: rgba(123,226,45,.06); }
.pl-table tr:hover td.p { text-shadow: 0 0 12px rgba(123,226,45,.7); }
.pl-head h3 small { transition: letter-spacing .3s; }
.pl-group:hover .pl-head h3 small { letter-spacing: .14em; }

/* eyebrow line grows in */
.fx-in .eyebrow::before, .page-head .eyebrow::before { animation: fxLine .8s cubic-bezier(.2,.7,.2,1) both .2s; transform-origin: 0 50%; }
@keyframes fxLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* animated gradient border around the CTA band */
.band { border: 0; background: var(--card); }
.band::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--fx-a, 0deg), transparent 0 60%, var(--green) 75%, #d4ff9a 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fxSpin 5s linear infinite; }
@property --fx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes fxSpin { to { --fx-a: 360deg; } }

/* page header streak */
.page-head::after { content: ""; position: absolute; top: -40%; left: -20%; width: 2px; height: 180%; background: linear-gradient(180deg, transparent, rgba(170,255,100,.9), transparent);
  filter: drop-shadow(0 0 10px var(--green)); transform: rotate(45deg); animation: fxBeamHead 6s ease-in-out infinite; pointer-events: none; }
@keyframes fxBeamHead { 0% { left: -20%; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: 120%; opacity: 0; } }

/* inputs */
.input { transition: border-color .2s, box-shadow .2s, background .2s; }
.input:focus { background: #0c1114; box-shadow: 0 0 0 3px var(--green-soft), 0 0 18px rgba(123,226,45,.18); }
.type { transition: transform .2s, border-color .2s, background .2s, box-shadow .2s, color .2s; }
.type:hover { transform: translateY(-3px); }
.type.on > span:first-child { animation: fxPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes fxPop { from { transform: scale(.4); } to { transform: scale(1); } }
[data-show] { animation: fxFade .35s ease both; }
@keyframes fxFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* success state */
.done .tick { animation: fxTick .7s cubic-bezier(.3,1.6,.5,1) both; position: relative; }
.done .tick::before, .done .tick::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--green); animation: fxRing 1.4s ease-out .2s both; }
.done .tick::after { animation-delay: .5s; }
@keyframes fxTick { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
@keyframes fxRing { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.done .no { animation: fxRise .8s cubic-bezier(.2,.7,.2,1) .3s both; }
.fx-spark { position: fixed; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 300; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* WhatsApp button pulse */
.wa-float { animation: fxFloat 3s ease-in-out infinite; }
.wa-float::before, .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1faa59; animation: fxRing 2.4s ease-out infinite; }
.wa-float::after { animation-delay: 1.2s; }
.wa-float:hover { transform: scale(1.1); }
@keyframes fxFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* modal */
.modal:not([hidden]) .modal-bg { animation: fxFadeOnly .3s ease both; }
.modal:not([hidden]) .modal-box { animation: fxZoom .4s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes fxFadeOnly { from { opacity: 0; } }
@keyframes fxZoom { from { opacity: 0; transform: scale(.92) translateY(20px); } }

/* cursor glow (desktop only) */
.fx-cursor { position: fixed; left: 0; top: 0; width: 480px; height: 480px; margin: -240px 0 0 -240px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(123,226,45,.07), transparent 65%); transition: opacity .4s; opacity: 0; }
body.fx-mouse .fx-cursor { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

/* footer logo glow */
.footer img { transition: filter .4s; }
.footer img:hover { filter: drop-shadow(0 0 14px rgba(123,226,45,.6)); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx-reveal { opacity: 1; transform: none; }
  .fx-canvas, .fx-beam, .fx-cursor { display: none; }
}
