html {
  scroll-behavior: smooth;
  background: #ffffff;
}

body {
  background: #ffffff;
  color: #262626;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(220, 38, 38, 0.22);
  color: #111827;
}

body::before {
  background:
    linear-gradient(90deg, rgba(220, 38, 38, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(220, 38, 38, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

header.sticky {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(217, 217, 217, 0.72) !important;
  box-shadow: 0 12px 36px -30px rgba(15, 23, 42, 0.65);
  transition: box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

body.is-scrolled header.sticky {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(254, 202, 202, 0.9) !important;
  box-shadow: 0 18px 44px -34px rgba(15, 23, 42, 0.75);
}

header.sticky nav a {
  position: relative;
}

header.sticky nav a::after {
  background: #dc2626;
  border-radius: 999px;
  bottom: -0.4rem;
  content: "";
  height: 2px;
  left: 0;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.45);
  transform-origin: left;
  transition: opacity 0.22s ease, transform 0.22s ease;
  width: 100%;
}

header.sticky nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

header img[alt="partneraff"] {
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.08));
}

header a[href="https://app.partneraff.com/publisher/sign-up"],
header a[href="https://app.partneraff.com/publisher/sign-in"],
a[href="/get-started"],
a[href="/contact"],
a[href="https://app.partneraff.com/publisher/sign-up"] {
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

header a[href="https://app.partneraff.com/publisher/sign-up"]:hover,
a[href="/get-started"]:hover,
a[href="/contact"]:hover,
a[href="https://app.partneraff.com/publisher/sign-up"]:hover,
header a[href="https://app.partneraff.com/publisher/sign-in"]:hover {
  transform: translateY(-1px);
}

a[href="/get-started"],
a[href="https://app.partneraff.com/publisher/sign-up"] {
  box-shadow: 0 16px 36px -26px rgba(15, 23, 42, 0.58);
}

a[href="/get-started"]:hover,
a[href="https://app.partneraff.com/publisher/sign-up"]:hover {
  box-shadow: 0 20px 46px -28px rgba(15, 23, 42, 0.68);
}

main > section:first-of-type,
body > div section:first-of-type {
  isolation: isolate;
}

section[class*="bg-gradient-to-br"] {
  background:
    radial-gradient(900px 420px at 84% 12%, rgba(220, 38, 38, 0.16), transparent 58%),
    radial-gradient(680px 360px at 8% 88%, rgba(254, 226, 226, 0.35), transparent 52%),
    linear-gradient(135deg, #fff8f8 0%, #ffffff 46%, #fef2f2 100%) !important;
}

section[class*="bg-neutral-50"],
section[class*="bg-[#f5f5f6]"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(254, 242, 242, 0.75)),
    #fafafa !important;
}

section {
  position: relative;
}

section > div[class*="mx-auto"] {
  position: relative;
  z-index: 1;
}

section:has(button[type="button"]) button[type="button"] {
  box-shadow: 0 8px 24px -18px rgba(220, 38, 38, 0.35);
}

section:has(button[type="button"]) button[type="button"]:hover {
  transform: translateY(-1px);
}

article {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

article:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 65px -45px rgba(15, 23, 42, 0.58);
}

article img {
  background: #fef2f2;
}

article h2,
article h3 {
  letter-spacing: 0 !important;
}

article,
div[class*="rounded-2xl"][class*="border"],
div[class*="rounded-xl"][class*="border"] {
  border-color: rgba(226, 232, 240, 0.92) !important;
}

article[class*="bg-white"],
div[class*="bg-white"][class*="shadow-sm"],
div[class*="bg-neutral-50"][class*="shadow-sm"] {
  box-shadow: 0 18px 55px -45px rgba(15, 23, 42, 0.55) !important;
}

div[class*="ring-black"] {
  --tw-ring-color: rgba(15, 23, 42, 0.08) !important;
}

video,
img {
  backface-visibility: hidden;
}

video {
  background: #fef2f2;
}

.creator-case-tile {
  box-shadow: 0 18px 55px -34px rgba(15, 23, 42, 0.56);
}

.creator-case-tile video {
  transform: scale(1.01);
}

.creator-case-tile::after {
  background: linear-gradient(180deg, transparent 62%, rgba(15, 23, 42, 0.28));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.trusted-marquee-track,
.influencer-marquee-track {
  filter: saturate(1.04);
}

img[src*="logo-"] {
  filter: saturate(0.92) contrast(1.04);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button[type="button"] {
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

a[class*="rounded-full"],
a[class*="rounded-xl"],
button[class*="rounded-full"],
button[class*="rounded-xl"] {
  min-width: max-content;
}

input,
textarea,
select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14) !important;
}

[data-pa-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

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

img.pa-img-fallback {
  object-fit: contain !important;
  padding: 1.25rem;
}

footer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-email-link {
  letter-spacing: 0;
}

footer a {
  transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
  transform: translateY(-1px);
}

.pa-scroll-top {
  align-items: center;
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  bottom: 1.25rem;
  box-shadow: 0 20px 42px -24px rgba(15, 23, 42, 0.8);
  color: #ffffff;
  display: flex;
  height: 2.75rem;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1.25rem;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  width: 2.75rem;
  z-index: 80;
}

.pa-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pa-scroll-top:hover {
  transform: translateY(-2px);
}

@media (min-width: 1024px) {
  section {
    scroll-margin-top: 96px;
  }

  header.sticky {
    top: 0;
  }
}

@media (max-width: 767px) {
  header.sticky {
    box-shadow: 0 12px 28px -26px rgba(15, 23, 42, 0.7);
  }

  h1,
  h2 {
    overflow-wrap: anywhere;
  }

  article:hover {
    transform: none;
  }

  a[class*="px-10"],
  a[class*="px-9"],
  a[class*="px-8"] {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .pa-scroll-top {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-pa-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
