body {
  opacity: 1;
  transition: opacity var(--duration-normal) ease;
}

body.page-ready { opacity: 1; }

.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(.99);
  transition:
    opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard);
  will-change: opacity, transform;
}

.reveal.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-ribbon {
  animation: ribbonFloat 8s var(--ease-standard) infinite alternate;
  transform-origin: 52% 48%;
}

.hero-visual-halo { animation: haloDrift 11s ease-in-out infinite alternate; }
.hero-float-card.one { animation: cardFloatA 5.2s ease-in-out infinite alternate; }
.hero-float-card.two { animation: cardFloatB 5.8s ease-in-out infinite alternate; }

.hero-glow {
  animation: glowPulse 5.5s ease-in-out infinite;
}

.section-kicker::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  margin-left: .55rem;
  vertical-align: middle;
  background: var(--aaji-blue);
  transition: width .5s var(--ease-standard);
}

.section-title-wrap:hover .section-kicker::after,
.section-title-wrap:focus-within .section-kicker::after { width: 2.5rem; }

.aaji-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aaji-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.18) 42%, transparent 64%);
  transform: translateX(-140%);
  transition: transform .7s var(--ease-standard);
  z-index: -1;
}

.aaji-btn:hover::before,
.aaji-btn:focus-visible::before { transform: translateX(140%); }

.aaji-btn-primary {
  box-shadow: 0 12px 28px rgba(0, 116, 255, .18);
}

@media (hover: hover) and (pointer: fine) {
  .aaji-btn:hover { transform: translateY(-2px); }
  .aaji-btn-primary:hover { box-shadow: 0 18px 42px rgba(0, 116, 255, .28); }
  .feature-card,
  .content-card { transition: transform var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard), border-color var(--duration-normal) ease; }
  .feature-card:hover,
  .content-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--aaji-cyan) 24%, var(--border-soft)); }
  .feature-card:hover .feature-icon,
  .content-card:hover .icon-wrap { transform: translateY(-3px) rotate(-3deg); }
}

.feature-icon,
.icon-wrap { transition: transform var(--duration-normal) var(--ease-spring); }

.hero-ribbon { filter: drop-shadow(0 22px 48px rgba(0, 87, 184, .16)); }

input.form-control,
select.form-select,
textarea.form-control {
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, transform var(--duration-normal) var(--ease-standard);
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
  transform: translateY(-1px);
}

.table-component tbody tr {
  transition: background-color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-standard);
}

@media (hover: hover) and (pointer: fine) {
  .table-component tbody tr:hover { transform: translateX(2px); }
}

.logo-marquee {
  animation: marqueeTrack 26s linear infinite;
  will-change: transform;
}

@keyframes ribbonFloat {
  0% { transform: translate3d(-5px, 2px, 0) rotate(-1deg) scale(.99); }
  100% { transform: translate3d(10px, -13px, 0) rotate(2deg) scale(1.015); }
}

@keyframes haloDrift {
  0% { transform: translate3d(-3%, 2%, 0) rotate(-4deg) scale(.96); }
  100% { transform: translate3d(4%, -4%, 0) rotate(5deg) scale(1.06); }
}

@keyframes cardFloatA {
  from { transform: translate3d(0, 0, 0) rotate(-1deg); }
  to { transform: translate3d(5px, -11px, 0) rotate(1deg); }
}

@keyframes cardFloatB {
  from { transform: translate3d(0, 0, 0) rotate(1deg); }
  to { transform: translate3d(-5px, 10px, 0) rotate(-1deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: .55; transform: scale(.98); }
  50% { opacity: .82; transform: scale(1.04); }
}

@keyframes marqueeTrack {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  body { opacity: 1; }
  .reveal, [data-reveal] { opacity: 1; transform: none; }
  .hero-ribbon, .hero-visual-halo, .hero-float-card, .hero-glow, .logo-marquee { animation: none !important; transform: none !important; }
}
