.page-veil {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background: #fff; opacity: 0; transition: opacity .32s ease;
}
body.page-out .page-veil { opacity: 1; pointer-events: auto; }
body.page-in { animation: pageIn .55s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.btn, .links a, .card, .sec div, footer a {
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary:hover { box-shadow: 0 10px 22px rgba(22,119,255,.22); }
.btn.line:hover { border-color: #91caff; color: var(--blue); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,23,42,.08); }
.links a { position: relative; }
.links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--blue); border-radius: 2px; transition: width .25s ease;
}
.links a:hover::after { width: 100%; }
.logo { transition: transform .35s ease; }
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { animation: rise .7s cubic-bezier(.22,.8,.28,1) forwards; }
.reveal.delay-1 { animation-delay: .08s; }
.reveal.delay-2 { animation-delay: .16s; }
.reveal.delay-3 { animation-delay: .24s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

.phone { perspective: 600px; }
.phone img, .hero-phone img {
  transform-origin: center bottom;
  animation: phoneFloat 4.6s ease-in-out infinite;
}
.shot:nth-child(2) .phone img { animation-delay: .4s; animation-duration: 5.1s; }
.shot:nth-child(3) .phone img { animation-delay: .8s; animation-duration: 4.8s; }
.shot:nth-child(4) .phone img { animation-delay: 1.2s; animation-duration: 5.4s; }
.hero-phone img { animation-duration: 5s; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
}

.shot .phone {
  position: relative;
  opacity: 0;
  transform: translateX(-28px) scale(.96);
}
.shot.reverse .phone { transform: translateX(28px) scale(.96); }
.shot.in .phone {
  animation: phoneIn .8s cubic-bezier(.22,.8,.28,1) forwards;
}
.shot:nth-child(2).in .phone { animation-delay: .1s; }
.shot:nth-child(3).in .phone { animation-delay: .18s; }
.shot:nth-child(4).in .phone { animation-delay: .26s; }
@keyframes phoneIn {
  to { opacity: 1; transform: none; }
}

.shot .phone::after {
  content: ""; position: absolute; inset: 8% 12%;
  border-radius: 24px; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%);
  transform: translateX(-140%);
  opacity: 0;
}
.shot.in .phone::after { animation: shine 3.6s ease-in-out 1s infinite; }
@keyframes shine {
  0% { transform: translateX(-140%); opacity: 0; }
  18% { opacity: .8; }
  42%, 100% { transform: translateX(140%); opacity: 0; }
}

.shot .phone:hover img,
.hero-phone:hover img {
  animation-play-state: paused;
  transform: translateY(-8px) rotate(0) scale(1.04);
  box-shadow: 0 22px 48px rgba(13,191,192,.22);
  transition: transform .35s ease, box-shadow .35s ease;
}
.phone img, .hero-phone img { transition: transform .35s ease, box-shadow .35s ease; }

.shot > div:last-child { opacity: 0; transform: translateY(16px); }
.shot.in > div:last-child { animation: rise .7s .12s cubic-bezier(.22,.8,.28,1) forwards; }

.wx { transition: background .25s ease; }
.wx .box { transform: translateY(-8px); opacity: 0; }
.wx.show .box { animation: rise .28s ease forwards; }

@media (max-width: 900px) {
  .shot .phone, .shot.reverse .phone { transform: translateY(18px) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .shot .phone, .shot > div:last-child { opacity: 1; transform: none; }
}
