/* Luxe: animații și micro-interacțiuni pentru landing page. Se activează doar cu JavaScript (clasa .fx pe <html>)
   și doar dacă vizitatorul nu a cerut mișcare redusă; fără ele, pagina arată la fel, doar statică. */
@media (prefers-reduced-motion: no-preference) {
  /* Apariția la derulare, în cascadă */
  .fx [data-fx] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--fx-d, 0s); }
  .fx [data-fx].in { opacity: 1; transform: none; }
  .fx [data-fx="fade"] { transform: none; }
  .fx [data-fx="scale"] { transform: scale(.96); }

  /* Titlul principal: cuvintele urcă pe rând */
  .fx .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); animation: fx-word .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
  @keyframes fx-word { to { opacity: 1; transform: none; filter: none; } }
  .fx .hero h1 i { background: linear-gradient(100deg, var(--ink) 30%, var(--accent) 50%, var(--ink) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-word .8s cubic-bezier(.2,.7,.2,1) forwards, fx-shine 5s ease-in-out 1.6s infinite; }
  @keyframes fx-shine { 0%, 60% { background-position: 100% 0; } 100% { background-position: -50% 0; } }

  /* Lumina care urmărește cursorul pe carduri */
  .fx .spot { position: relative; isolation: isolate; }
  .fx .spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 229, 154, .13), transparent 60%); }
  .fx .spot:hover::before { opacity: 1; }
  .fx .plan, .fx .feature, .fx .step, .fx .trust-cols > div { transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s; }
  .fx .plan:hover, .fx .feature:hover, .fx .step:hover { transform: translateY(-4px); border-color: rgba(185, 229, 154, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }

  /* Butoane: reflex de lumină și apăsare elastică */
  .fx .btn { position: relative; overflow: hidden; }
  .fx .btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); pointer-events: none; }
  .fx .btn-primary:hover::after { animation: fx-sweep .8s ease; }
  @keyframes fx-sweep { to { left: 130%; } }
  .fx .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .35); pointer-events: none; animation: fx-ripple .6s ease-out forwards; }
  @keyframes fx-ripple { to { transform: scale(4); opacity: 0; } }
  .fx .chip:hover, .fx .tab:hover { transform: translateY(-1px); }

  /* Bara de progres a lecturii și meniul care se strânge la derulare */
  .fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, rgba(185, 229, 154, .2), var(--accent)); pointer-events: none; }
  .fx .nav { transition: background-color .3s, backdrop-filter .3s, box-shadow .3s; }
  .fx .nav.scrolled { background-color: rgba(10, 14, 12, .82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .9); }
  .fx .nav-links a { position: relative; }

  /* Jurnalul de acțiuni rulează ca în timp real */
  .fx .log ol li { opacity: 0; transform: translateX(-8px); transition: opacity .45s, transform .45s; transition-delay: calc(var(--i) * 260ms); }
  .fx .log.in ol li { opacity: 1; transform: none; }
  .fx .log ol li em { display: inline-block; }
  .fx .log.in ol li em { animation: fx-bump .5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 260ms + 200ms); }

  /* Întrebări frecvente: răspunsul se deschide lin */
  .fx .faq details p { animation: none; }
  .fx .faq details[open] p { animation: fx-open .45s cubic-bezier(.2,.7,.2,1); }
  @keyframes fx-open { from { opacity: 0; transform: translateY(-6px); } }

  /* Taburi: panoul nou intră lin */
  .fx .tabpanel:not([hidden]) { animation: fx-open .45s cubic-bezier(.2,.7,.2,1); }

  /* Cifrele calculatorului „sar” când se schimbă */
  .fx .bump { animation: fx-bump .35s cubic-bezier(.3,1.6,.5,1); }
  @keyframes fx-bump { 40% { transform: scale(1.06); color: var(--accent); } }
  .fx .big-num span { display: inline-block; }

  /* Demo-ul din hero: insigna pulsează, iar chatul plutește ușor */
  .fx .float-badge { animation: fx-float 6s ease-in-out infinite; }
  .fx .stage .chat { animation: fx-float 9s ease-in-out infinite reverse; }
  @keyframes fx-float { 50% { transform: translateY(-8px); } }
  .fx .hero-proof span::before { animation: fx-dot 2.4s ease-in-out infinite; }
  .fx .hero-proof span:nth-child(2)::before { animation-delay: .8s; }
  .fx .hero-proof span:nth-child(3)::before { animation-delay: 1.6s; }
  @keyframes fx-dot { 50% { opacity: .3; } }

  /* Logourile canalelor: lumină la trecere */
  .fx .logos span:not(.label):not(.soon) { transition: color .25s, transform .25s; }
  .fx .logos span:not(.label):not(.soon):hover { color: var(--ink); transform: translateY(-2px); }
}
