/* Colore vivo e micro-animazioni del sito, sulla palette dell'orb (tokens.css). */

/* Testo in gradiente che scorre piano */
.grad-text {
  background: var(--grad-text); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 9s ease-in-out infinite alternate;
}
@keyframes grad-shift { to { background-position: 100% 0; } }
.eyebrow { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Barra di avanzamento della lettura, in cima alla pagina */
.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; pointer-events: none;
  background: var(--grad-vivid); transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .scroll-bar { animation: read-progress linear both; animation-timeline: scroll(root); }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

/* Pulsante primario: carbon del design system, bagliore vivo e riflesso al passaggio */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: var(--grad-vivid); transition: opacity 0.35s var(--ease-out);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg); transition: left 0.7s var(--ease-out);
}
.btn-primary:hover { box-shadow: var(--glow-vivid); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { left: 120%; }
.btn-secondary:hover { transform: translateY(-1px); }

/* Nastro delle integrazioni: scorre all'infinito, sfuma ai bordi */
.ticker {
  margin: 56px auto 0; max-width: 1040px; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; gap: 10px; width: max-content; animation: tick 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(calc(-50% - 5px)); } }
.ticker .badge-pill { font-size: 13px; padding: 9px 14px; background: var(--glass-bg-elevated); color: var(--text-main); border: var(--glass-border); }
.ticker .badge-pill::before { background: var(--grad-vivid); width: 7px; height: 7px; }

/* Aloni vivi dietro le schermate */
.shot { position: relative; isolation: isolate; }
.shot::before {
  content: ""; position: absolute; inset: 12% 8%; z-index: -1; border-radius: 40%; filter: blur(60px);
  background: var(--grad-vivid); opacity: 0.35; animation: shot-glow 8s ease-in-out infinite alternate;
}
@keyframes shot-glow { to { opacity: 0.55; transform: scale(1.06) rotate(4deg); } }

/* Icone delle card in gradiente, card con filo di luce al passaggio */
.ico { background: var(--grad-vivid); color: #fff; box-shadow: 0 8px 20px -8px var(--vivid-blue); }
.cards-4 .card-glass { position: relative; }
.cards-4 .card-glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad-vivid); opacity: 0; transition: opacity 0.3s var(--ease-out);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.cards-4 .card-glass:hover::after { opacity: 1; }
.cards-4 .card-glass:hover .ico { animation: ico-pop 0.5s var(--ease-out); }
@keyframes ico-pop { 40% { transform: scale(1.15) rotate(-6deg); } }

/* Spunte e pillole in tinta */
.checks li::before { background: var(--grad-vivid); color: #fff; }
.accounts { position: relative; overflow: hidden; }
.accounts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-vivid); }
.provider { transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.provider:hover { transform: translateY(-3px); box-shadow: var(--glow-vivid); }

@media (prefers-reduced-motion: reduce) {
  .grad-text, .ticker-track, .shot::before, .scroll-bar { animation: none !important; }
  .btn-primary::after { display: none; }
}
