/* ZenPips svetainė – PREMIUM animacijos (įkeliama po site.css). Gerbia prefers-reduced-motion. */

/* auksinių dalelių laukas (piešia /js/fx.js) */
#zp-dust { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .9; }

/* antraštė: slenkantis auksinis blizgesys */
.hero h1 .grad, .page-head h1 .grad {
  background: linear-gradient(100deg, #C9971A 0%, #FFE48A 22%, #E8B923 40%, #FFF3C4 50%, #E8B923 60%, #C9971A 100%);
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fxShine 6s linear infinite; }
@keyframes fxShine { to { background-position: -250% center; } }

/* pill „NAUJA“ – švelnus pulsavimas */
.pill-row { position: relative; }
html.fx-in .pill-row { animation: fxFadeUp .7s ease both; }
.pill-row b { animation: fxPulseGold 2.4s ease-in-out infinite; }
@keyframes fxPulseGold { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 185, 35, .45); } 50% { box-shadow: 0 0 0 8px rgba(232, 185, 35, 0); } }
/* įėjimo animacijos – tik kai puslapis matomas (html.fx-in nustato skriptas <head>), kitaip turinys rodomas iškart */
html.fx-in .hero h1 { animation: fxFadeUp .8s .08s ease both; }
html.fx-in .hero p.lead { animation: fxFadeUp .8s .18s ease both; }
html.fx-in .hero .cta { animation: fxFadeUp .8s .28s ease both; }
html.fx-in .hero .trust { animation: fxFadeUp .8s .38s ease both; }
@keyframes fxFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* įrenginiai: plaukioja, švyti; pranešimas iššoka ir pulsuoja */
.devices::before { content: ""; position: absolute; left: 50%; top: 48%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(232, 185, 35, .22), transparent 62%); filter: blur(10px);
  animation: fxOrb 7s ease-in-out infinite; pointer-events: none; }
@keyframes fxOrb { 0%, 100% { transform: translate(-50%, -50%) scale(.92); opacity: .75; } 50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; } }
.devices .win { animation: fxFloatA 7s ease-in-out infinite; }
.devices .phone { animation: fxFloatB 8s ease-in-out infinite; }
.devices .notif { animation: fxFloatC 6s 2s ease-in-out infinite; }
html.fx-in .devices .notif { animation: fxNotifIn .9s 1.1s cubic-bezier(.2, .9, .25, 1.2) both, fxFloatC 6s 2s ease-in-out infinite; }
@keyframes fxFloatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fxFloatB { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(.6deg); } }
@keyframes fxFloatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fxNotifIn { from { opacity: 0; transform: translateY(-22px) scale(.9); } to { opacity: 1; transform: none; } }
.devices .notif { box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(232, 185, 35, .35), 0 0 30px rgba(232, 185, 35, .18); }

/* grafikas: linija pasipiešia, plotas išryškėja, gyvas taškas pulsuoja (fx.js jį stumia) */
.win .chart path[stroke] { filter: drop-shadow(0 0 6px rgba(232, 185, 35, .6)); }
html.fx-in .win .chart path[stroke] { stroke-dasharray: 900; stroke-dashoffset: 900; animation: fxDraw 2.4s .4s ease forwards; }
html.fx-in .win .chart path[fill^="url"] { opacity: 0; animation: fxFade 1.2s 1.6s ease forwards; }
.win .chart .live-dot { fill: #FFE48A; filter: drop-shadow(0 0 6px #E8B923); animation: fxBlink 1.4s ease-in-out infinite; }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }
@keyframes fxFade { to { opacity: 1; } }
@keyframes fxBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.win .start span:first-child { animation: fxRun 2s ease-in-out infinite; }
@keyframes fxRun { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .5); } 50% { box-shadow: 0 0 18px 2px rgba(47, 191, 113, .45); } }
.phone .app-h em { animation: fxRun 2s ease-in-out infinite; }

/* auksiniai mygtukai: gradientas, blizgesio juosta, švytėjimas */
.btn-gold { position: relative; overflow: hidden; border: 0;
  background: linear-gradient(180deg, #FFE48A 0%, #E8B923 55%, #C9971A 100%) !important;
  box-shadow: 0 8px 26px rgba(232, 185, 35, .32), inset 0 1px 0 rgba(255, 255, 255, .55); transition: transform .15s ease, box-shadow .25s ease; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232, 185, 35, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg);
  animation: fxSweep 3.8s ease-in-out infinite; }
@keyframes fxSweep { 0%, 55% { left: -70%; } 100% { left: 140%; } }
.btn-ghost { transition: transform .15s ease, border-color .2s, box-shadow .25s; }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(232, 185, 35, .5), 0 10px 26px rgba(0, 0, 0, .35); }

/* stiklo kortelės: švytėjimas seka pelę (fx.js nustato --mx/--my) */
.glass { position: relative; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.glass:hover { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 185, 35, .12), transparent 60%), var(--glass); }
.bento .glass:hover, .platforms .glass:hover, .timeline .glass:hover { transform: translateY(-4px); border-color: rgba(232, 185, 35, .45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4); }
.glass .ico { transition: transform .3s ease; }
.glass:hover .ico { transform: scale(1.12) rotate(-4deg); }

/* animuotas auksinis rėmelis: kaina ir signalų kortelės */
@property --fxa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.price, .sig-card-demo { isolation: isolate; }
.price::after, .sig-card-demo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--fxa), transparent 0deg, #E8B923 60deg, #FFF3C4 90deg, #E8B923 120deg, transparent 180deg, transparent 360deg);
  -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; }
.sig-card-demo { position: relative; }
@keyframes fxSpin { to { --fxa: 360deg; } }

/* rinkų juosta (marquee) */
.ticker { position: relative; overflow: hidden; border-top: 1px solid rgba(232, 185, 35, .18); border-bottom: 1px solid rgba(232, 185, 35, .18);
  background: linear-gradient(90deg, rgba(232, 185, 35, .06), rgba(59, 91, 219, .06)); padding: 14px 0; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #070B14, transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, #070B14, transparent); }
.ticker .track { display: flex; gap: 44px; width: max-content; animation: fxMarquee 38s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .tk { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; color: #C8D0E0; white-space: nowrap; }
.ticker .tk i { width: 8px; height: 8px; border-radius: 50%; background: #E8B923; box-shadow: 0 0 10px #E8B923; }
.ticker .tk small { color: var(--muted); font-weight: 600; letter-spacing: .02em; }
@keyframes fxMarquee { to { transform: translateX(-50%); } }

/* sekcijų antraštės: eyebrow su švytinčiu brūkšniu */
.sec-head .eyebrow { position: relative; }
.sec-head .eyebrow::after { content: ""; display: block; width: 46px; height: 2px; margin: 8px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #E8B923, transparent); box-shadow: 0 0 10px rgba(232, 185, 35, .8); }

/* viršutinė juosta: šviesesnis stiklas slenkant */
header.top { transition: background .3s ease, box-shadow .3s ease; }
header.top.scrolled { background: rgba(7, 11, 20, .82); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(14px); }

@media (max-width: 900px) { .devices::before { width: 340px; height: 340px; } }
@media (prefers-reduced-motion: reduce) {
  #zp-dust { display: none; }
  .hero h1 .grad, .page-head h1 .grad, .pill-row, .pill-row b, .hero h1, .hero p.lead, .hero .cta, .hero .trust, .devices::before,
  .devices .win, .devices .phone, .devices .notif, .win .start span:first-child, .phone .app-h em, .btn-gold::after,
  .price::after, .sig-card-demo::after, .ticker .track, .win .chart .live-dot { animation: none !important; }
  .win .chart path[stroke] { stroke-dashoffset: 0; animation: none; }
  .win .chart path[fill^="url"] { opacity: 1; animation: none; }
}

/* kalbos perjungiklis EN | LT */
.lang-sw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.lang-sw a { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.lang-sw a:hover { color: var(--text); text-decoration: none; }
.lang-sw a.on { background: linear-gradient(180deg, #FFE48A, #C9971A); color: #1A1405; }
@media (max-width: 900px) { .lang-sw { align-self: flex-start; margin: 6px 0; } }
