/* Nomad Pro homepage motion — A + B + C combined. Gated on .np-motion (no reduced motion, no Save-Data). */

.np-motion .np-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
}

.np-motion .is-in .np-w,
.np-motion .is-in.np-w {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0ms) + var(--i) * var(--stagger, 45ms));
}

.np-motion .np-up {
  opacity: 0;
  transform: translateY(18px);
}

.np-motion .np-up.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.np-motion .np-card {
  opacity: 0;
  transform: translateY(26px);
}

.np-motion .np-card.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease;
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms;
}

.np-hover {
  transition:
    translate 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease;
}

.np-hover:hover {
  translate: 0 -4px;
  box-shadow: 0 18px 40px rgba(0, 104, 92, 0.1) !important;
}

.np-hover .material-symbols-outlined {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.np-hover:hover .material-symbols-outlined {
  transform: translateY(-2px) scale(1.08);
}

a.np-press {
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease !important;
}

a.np-press:active {
  transform: scale(0.97) !important;
}

.np-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--np-top, 0);
  height: 2px;
  background: #00685c;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  z-index: 60;
  pointer-events: none;
  opacity: 0.85;
}

.np-motion .np-num {
  transform: scale(0.5);
  opacity: 0;
}

.np-motion .is-in .np-num {
  transform: none;
  opacity: 1;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.7, 0.64, 1),
    opacity 0.25s ease;
  transition-delay: var(--d, 0ms);
}

.np-motion .np-hero-phone {
  opacity: 0;
  transform: translateY(28px);
}

.np-motion .is-in .np-hero-phone {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.35s;
}

.hero-section div.relative.group {
  min-height: 420px;
}

.np-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 70;
}

.np-chip-par {
  position: absolute;
  translate: 0 calc(var(--sy, 0) * var(--k) * 1px);
}

.np-chip-par.c1 {
  left: -46px;
  top: 44px;
  rotate: -12deg;
}

.np-chip-par.c2 {
  left: -56px;
  top: 400px;
}

.np-chip-par.c3 {
  right: -26px;
  top: 600px;
}

.np-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  background: #fff;
  border: 1px solid rgba(0, 104, 92, 0.12);
  border-radius: 16px;
  box-shadow:
    0 14px 34px rgba(0, 104, 92, 0.12),
    0 2px 6px rgba(27, 28, 28, 0.05);
  font:
    700 14px/1.2 'Plus Jakarta Sans',
    sans-serif;
  color: #1b1c1c;
  white-space: nowrap;
}

.np-chip .ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e4f1ee;
  color: #00685c;
  font-size: 20px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.np-chip.docked .ic {
  background: #00685c;
  color: #fff;
}

.np-motion .np-dock {
  opacity: 0;
  transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.86);
}

.np-motion .np-dock.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.np-motion .np-dock.in .np-chip {
  animation: np-bob 5.5s ease-in-out var(--bd) infinite alternate;
}

@keyframes np-bob {
  to {
    transform: translateY(-6px);
  }
}

.np-ring {
  animation: np-ring 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes np-ring {
  0% {
    transform: rotate(12deg);
  }
  20% {
    transform: rotate(-2deg) scale(1.08);
  }
  40% {
    transform: rotate(22deg);
  }
  60% {
    transform: rotate(6deg);
  }
  100% {
    transform: rotate(12deg);
  }
}

.np-par-phone {
  translate: 0 calc(var(--sy, 0) * -0.06px);
}

.np-motion .np-pill {
  opacity: 0;
  transform: translateX(28px);
}

.np-motion .is-in .np-pill {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(350ms + var(--i) * 130ms);
}

.np-motion .np-file {
  opacity: 0;
  transform: translateX(-24px);
}

.np-motion .is-in .np-file {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease 0.35s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.np-fan .app-shot-frame {
  will-change: transform;
  transform-origin: 50% 100%;
}

.np-fan .app-shot-title,
.np-fan .app-shot-copy {
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.np-fan:not(.np-open) .app-shot-title,
.np-fan:not(.np-open) .app-shot-copy {
  opacity: 0;
  transform: translateY(10px);
}

.np-field {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.np-field i {
  position: absolute;
  inset: -24px;
  background-image: radial-gradient(circle, rgba(140, 245, 227, 0.95) 1.3px, transparent 1.8px);
  background-size: 24px 24px;
}

.np-field .dim {
  opacity: 0.2;
  animation: np-drift 9s linear infinite;
}

.np-field .lit {
  opacity: 1;
  -webkit-mask-image: radial-gradient(
    circle 210px at var(--mx, -999px) var(--my, -999px),
    #000 0,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 75%
  );
  mask-image: radial-gradient(
    circle 210px at var(--mx, -999px) var(--my, -999px),
    #000 0,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 75%
  );
}

@keyframes np-drift {
  to {
    transform: translate(24px, 24px);
  }
}

.np-field-host > *:not(.np-field) {
  position: relative;
  z-index: 1;
}

.np-burst {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 40;
}

.np-burst i {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 7px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0;
  animation: np-pop var(--t, 900ms) cubic-bezier(0.15, 0.8, 0.3, 1) var(--dl, 0ms) forwards;
}

.np-burst i.r {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

@keyframes np-pop {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(0.6);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1);
  }
}

.np-glow {
  animation: np-glow 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes np-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(191, 83, 61, 0);
  }
  25% {
    box-shadow: 0 0 0 6px rgba(255, 180, 165, 0.55);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 180, 165, 0);
  }
}

.np-flame {
  animation: np-flame 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes np-flame {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.35) rotate(-8deg);
    color: #bf533d;
  }
  60% {
    transform: scale(0.95) rotate(4deg);
    color: #bf533d;
  }
  100% {
    transform: scale(1);
  }
}

.np-motion .np-tick {
  transform: scale(0.4);
  opacity: 0;
}

.np-motion .is-in .np-tick {
  transform: none;
  opacity: 1;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.7, 0.64, 1),
    opacity 0.2s ease;
  transition-delay: var(--d, 0ms);
}

.np-sheen {
  position: relative;
  overflow: hidden;
}

.np-sheen::after {
  content: '';
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  transform: translateX(-60%);
  pointer-events: none;
}

.np-sheen.go::after {
  transform: translateX(60%);
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.np-spring {
  animation: np-spring 0.5s cubic-bezier(0.34, 1.7, 0.64, 1);
}

@keyframes np-spring {
  0% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 1023px) {
  .hero-section div.relative.group {
    min-height: 520px;
  }

  .np-chip-par.c1 {
    left: -8px;
    top: 70px;
  }

  .np-chip-par.c2 {
    left: auto;
    right: -8px;
    top: 300px;
  }

  .np-chip-par.c3 {
    left: -8px;
    top: 530px;
    right: auto;
  }

  .np-chip {
    font-size: 12px;
    padding: 8px 12px 8px 8px;
  }

  .np-chip .ic {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-hover:hover {
    translate: none;
  }

  .np-hover:hover .material-symbols-outlined {
    transform: none !important;
  }

  .np-progress {
    display: none;
  }

  .np-field .dim {
    animation: none;
  }

  .np-field .lit {
    display: none;
  }

  .np-chip {
    animation: none !important;
  }

  .np-burst {
    display: none;
  }
}
