/* Floating Icons: a port of ravikatiyar162's "Floating Icons Hero Section" on 21st.dev. The original's tiles:
   64px (80px from 768px), padding 12px, rounded-3xl, shadow-xl, the card colour at 80% with backdrop-blur-md and a
   10% border; the logo 32px (40px). */
.fx-float { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fx-float__item {
  position: absolute; opacity: 0; scale: .5;
  animation: ff-in .6s cubic-bezier(.22, 1, .36, 1) var(--ff-delay, 0s) forwards;
}
.fx-float__tile {
  display: flex; align-items: center; justify-content: center; inline-size: 4rem; block-size: 4rem; padding: .75rem;
  border-radius: 1.5rem; border: 1px solid color-mix(in oklab, var(--color-border, #e5e5e5) 10%, transparent);
  background: color-mix(in oklab, var(--color-surface, #fff) 80%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  animation: ff-drift var(--ff-drift, 7s) ease-in-out infinite alternate;
}
.fx-float__mark { display: flex; align-items: center; justify-content: center; inline-size: 2rem; block-size: 2rem; color: var(--color-text, #171717); }
.fx-float__mark svg { inline-size: 100%; block-size: 100%; }
.fx-float__mark svg:not([fill]) { fill: currentColor; }
.fx-float__mark.has-tile { border-radius: .55rem; background: var(--ff-tile); padding: .3rem; }
@media (min-width: 48rem) {
  .fx-float__tile { inline-size: 5rem; block-size: 5rem; }
  .fx-float__mark { inline-size: 2.5rem; block-size: 2.5rem; }
}
@media (max-width: 47.99rem) { .fx-float__item:not(.is-phone) { display: none; } .fx-float__tile { inline-size: 3.5rem; block-size: 3.5rem; border-radius: 1.25rem; } .fx-float__mark { inline-size: 1.75rem; block-size: 1.75rem; } }
@keyframes ff-in { to { opacity: 1; scale: 1; } }
@keyframes ff-drift {
  0% { translate: 0 0; rotate: 0deg; }
  25% { translate: 6px -8px; rotate: 5deg; }
  50% { translate: 0 0; rotate: 0deg; }
  75% { translate: -6px 8px; rotate: -5deg; }
  100% { translate: 0 0; rotate: 0deg; }
}
:root[data-theme="dark"] .fx-float__tile { box-shadow: 0 20px 25px -5px rgb(0 0 0 / .45), 0 8px 10px -6px rgb(0 0 0 / .4), inset 0 0 0 1px rgb(255 255 255 / .06); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fx-float__tile { box-shadow: 0 20px 25px -5px rgb(0 0 0 / .45), 0 8px 10px -6px rgb(0 0 0 / .4), inset 0 0 0 1px rgb(255 255 255 / .06); }
}
.fx-float.is-still .fx-float__item { animation: none; opacity: 1; scale: 1; }
.fx-float.is-still .fx-float__tile { animation: none; }
