/* Creative motion layer — buttons, cards, 3D, text, BG marks */

.bg-marks {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-mark {
  position: absolute;
  width: clamp(90px, 12vw, 170px);
  opacity: 0.04;
  filter: saturate(1.1);
  will-change: transform;
}

.bg-mark-1 {
  top: 22%;
  left: 2%;
  transform: rotate(-14deg);
}

.bg-mark-2 {
  top: 52%;
  right: 2%;
  width: clamp(80px, 10vw, 150px);
  opacity: 0.035;
  transform: rotate(16deg);
}

.bg-mark-3 {
  bottom: 8%;
  left: 4%;
  width: clamp(70px, 8vw, 120px);
  opacity: 0.03;
  transform: rotate(-6deg);
}

body > section,
body > footer,
body > svg {
  position: relative;
  z-index: 1;
}

.sec-mark {
  position: absolute;
  width: clamp(110px, 16vw, 210px);
  opacity: 0.08;
  top: 14%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
  animation: markFloat 14s ease-in-out infinite alternate;
}

.sec-mark-light {
  opacity: 0.09;
  mix-blend-mode: multiply;
  animation-duration: 18s;
}

.sec-mark.mark-r {
  right: 3%;
  left: auto;
}

.sec-mark.mark-l {
  left: 3%;
  right: auto;
  top: auto;
  bottom: 20%;
  animation-direction: alternate-reverse;
}

.why .sec-mark,
.testi .sec-mark {
  filter: brightness(2);
  opacity: 0.16;
}

.foot-mark {
  position: absolute;
  right: 44px;
  top: 40px;
  width: clamp(90px, 9vw, 130px);
  opacity: 0.22;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 1;
  animation: markFloat 16s ease-in-out infinite alternate;
}

@media (max-width: 760px) {
  .sec-mark {
    width: 96px;
  }
  .foot-mark {
    right: 18px;
    top: 24px;
    width: 72px;
    opacity: 0.16;
  }
}

@keyframes markFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1);
  }
  to {
    transform: translate3d(-18px, 24px, 0) rotate(6deg) scale(1.06);
  }
}

/* Logo */
.logo-img {
  display: block;
  height: max(40px, calc(var(--u, 1vw) * 4));
  width: auto;
  max-width: min(180px, 30vw);
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover .logo-img {
  transform: scale(1.04) translateY(-1px);
}

.logo-img-footer {
  height: 56px;
  max-width: 230px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.flogo .logo-img {
  height: 56px;
  max-width: 230px;
}

@media (max-width: 900px) {
  .logo-img {
    height: 40px;
  }
  .logo-img-footer,
  .flogo .logo-img {
    height: 48px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 36px;
  }
}

/* Buttons — magnetic shine */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background 0.28s ease !important;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -40%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: translateX(-120%) skewX(-18deg);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.btn:hover::after {
  animation: btnShine 0.85s ease;
}

.btn > * {
  position: relative;
  z-index: 2;
}

.btn.solid:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(8, 74, 158, 0.42) !important;
}

.btn.ghost:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 90, 180, 0.18) !important;
  border-color: #0a68c9 !important;
}

.voices-ico {
  overflow: visible;
  transition: transform 0.25s ease;
}

.btn.ghost:hover .voices-ico {
  transform: translateY(-1px) rotate(-8deg);
}

.btn.white:hover,
.btn.line:hover,
.btn.wa:hover {
  transform: translateY(-3px) scale(1.02);
}

@keyframes btnShine {
  to {
    transform: translateX(320%) skewX(-18deg);
  }
}

/* Cards — 3D tilt stage */
.tilt-wrap {
  perspective: 900px;
  transform-style: preserve-3d;
}

.wc,
.mc,
.st,
.pc,
.tc,
.hot,
.hot2,
.band,
.faq,
.cr {
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.wc:hover,
.mc:hover,
.st:hover,
.pc:hover {
  box-shadow: 0 22px 50px rgba(10, 60, 140, 0.22) !important;
}

.wc.is-tilting,
.mc.is-tilting,
.st.is-tilting,
.pc.is-tilting {
  transition: transform 0.08s ease-out, box-shadow 0.25s ease;
}

.wc .ico,
.mc .ck,
.st .big {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.wc:hover .ico,
.mc:hover .ck {
  transform: translateZ(28px) scale(1.08);
}

.st:hover .big {
  transform: translateX(-50%) scale(1.08);
}

.mc img,
.wc img,
.pc img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.mc:hover img,
.wc:hover img,
.pc:hover img {
  transform: scale(1.05);
}

/* Text animations */
.text-anim,
.hero-title .line {
  display: inline-block;
}

.hero-title {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--navy);
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 1.1em, 0) rotateX(-40deg);
  transform-origin: 50% 100%;
  animation: charUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title .line:not(.accent) {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: var(--navy) !important;
}

.hero-title .accent {
  background: linear-gradient(90deg, #0a8be0, #1673d6) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.hero-title .accent .word,
.hero-title .accent .char {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes charUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.text-anim.is-ready {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(4px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
}

.text-anim.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.sec-h h2.in,
.kick.in {
  animation: titleGlow 1.2s ease;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 0 transparent;
  }
  40% {
    text-shadow: 0 8px 28px rgba(10, 92, 184, 0.18);
  }
  100% {
    text-shadow: none;
  }
}

.kick {
  position: relative;
}

.bar {
  transform-origin: left center;
  animation: barGrow 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes barGrow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Trust icons bounce in */
.trust .ico {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.trust-item:hover .ico {
  transform: translateY(-4px) scale(1.08) rotate(-4deg);
}

/* Scroll progress accent */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, #7ab51d, #0a8be0, #0a5cb8);
  box-shadow: 0 0 12px rgba(10, 139, 224, 0.45);
  pointer-events: none;
}

@media (max-width: 900px) {
  .bg-mark,
  .sec-mark {
    opacity: 0.03;
  }

  .wc.is-tilting,
  .mc.is-tilting,
  .st.is-tilting,
  .pc.is-tilting {
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .why .wc,
  .why .wc img,
  .why .wc .ico {
    transform-style: flat;
    will-change: auto;
  }
  .why .wc:hover .ico,
  .why .wc .ico {
    transform: none !important;
  }
  .why .wc:hover img {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-mark,
  .sec-mark,
  .foot-mark,
  .btn::after,
  .hero-title .char,
  .bar,
  .text-anim {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
