:root {
  --ux-ease-fluid: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ux-card-radius: 18px;
  --ux-card-border: rgba(148, 163, 184, 0.22);
  --ux-card-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  --ux-card-shadow-hover: 0 18px 38px rgba(15, 23, 42, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

#root {
  isolation: isolate;
}

section[class*="py-12"],
section[class*="py-16"] {
  padding-top: clamp(2.5rem, 6vw, 4.5rem) !important;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem) !important;
}

.container,
[class*="max-w-7xl"] {
  padding-left: clamp(1rem, 3.2vw, 2rem) !important;
  padding-right: clamp(1rem, 3.2vw, 2rem) !important;
}

.ux-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  filter: blur(3px);
  transition:
    opacity 700ms ease,
    transform 700ms var(--ux-ease-fluid),
    filter 700ms ease;
}

.ux-reveal.ux-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.ux-card {
  border: 1px solid var(--ux-card-border);
  border-radius: var(--ux-card-radius) !important;
  box-shadow: var(--ux-card-shadow);
  transition:
    transform 280ms var(--ux-ease-fluid),
    box-shadow 280ms ease,
    border-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ux-card {
    will-change: transform;
  }

  .ux-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--ux-card-shadow-hover);
    border-color: rgba(148, 163, 184, 0.3);
  }
}

button,
a {
  transition:
    transform 220ms var(--ux-ease-fluid),
    filter 220ms ease,
    box-shadow 220ms ease;
  -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
  transform: translate3d(0, 1px, 0) scale(0.995);
}

.ux-parallax-layer {
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.ux-hero-soft::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(3, 7, 18, 0.06) 0%,
    rgba(3, 7, 18, 0.16) 100%
  );
}

@media (max-width: 991px) {
  html {
    scroll-behavior: auto;
  }

  .ux-reveal,
  .ux-reveal.ux-visible,
  .ux-card,
  button,
  a,
  .ux-parallax-layer {
    transition: none !important;
    animation: none !important;
  }

  .ux-card:hover {
    transform: none;
    box-shadow: var(--ux-card-shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ux-reveal,
  .ux-reveal.ux-visible,
  .ux-card,
  button,
  a,
  .ux-parallax-layer {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}
