.anime-tools-page {
  background: #f7f5f9;
}

.anime-tools-page .nav-trigger[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.anime-tools-hero {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  padding: 158px 0 106px;
  overflow: hidden;
  color: #fff;
  background: #28152f url("assets/hero/anime-tools-hero-uploaded.webp") center 38% / cover no-repeat;
}

.anime-tools-hero::before,
.anime-tools-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.anime-tools-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(25, 12, 32, 0.88) 0%, rgba(31, 14, 37, 0.74) 38%, rgba(31, 14, 37, 0.24) 70%, rgba(25, 12, 32, 0.34) 100%),
    linear-gradient(180deg, rgba(18, 10, 25, 0.34) 0%, rgba(18, 10, 25, 0.08) 48%, rgba(18, 10, 25, 0.48) 100%);
}

.anime-tools-hero::after {
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
}

.anime-tools-hero-copy {
  position: relative;
  z-index: 3;
  max-width: none;
  text-align: left;
}

.anime-tools-eyebrow,
.anime-tools-heading > span,
.anime-tool-kind {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.anime-tools-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.05);
}

.anime-tools-eyebrow svg {
  width: 14px;
  height: 14px;
  color: #ff80c3;
}

.anime-tools-hero h1 {
  max-width: 690px;
  margin: 0 0 22px;
  font-size: clamp(3.2rem, 6.2vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.anime-tools-hero p {
  max-width: 620px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.7;
}

.anime-tools-section {
  padding: 104px 0 120px;
}

.anime-tools-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.anime-tools-heading > span {
  display: block;
  margin-bottom: 12px;
  color: var(--pink-dark);
}

.anime-tools-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.4vw, 3.7rem);
  letter-spacing: -0.035em;
}

.anime-tools-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.anime-tools-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.anime-tool-card {
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e2eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(35, 24, 47, 0.06);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.anime-tool-card-featured {
  grid-column: span 3;
}

.anime-tool-card:hover,
.anime-tool-card:focus-within {
  border-color: rgba(215, 42, 135, 0.32);
  box-shadow: 0 22px 50px rgba(35, 24, 47, 0.12);
  transform: translateY(-4px);
}

.anime-tool-card > a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.anime-tool-card > a:focus-visible {
  outline-offset: -4px;
}

.anime-tool-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9e5ed;
}

.anime-tool-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(transparent, rgba(17, 13, 22, 0.14));
  content: "";
  pointer-events: none;
}

.anime-tool-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.anime-tool-card:hover .anime-tool-media img,
.anime-tool-card:focus-within .anime-tool-media img {
  transform: scale(1.035);
}

.anime-tool-copy {
  display: flex;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
  padding: 25px 26px 27px;
}

.anime-tool-kind {
  margin-bottom: 10px;
  color: var(--pink-dark);
}

.anime-tool-copy h3 {
  margin-bottom: 11px;
  font-size: 1.35rem;
}

.anime-tool-copy p {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}

.anime-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--pink-dark);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 750;
}

.anime-tool-link svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.anime-tool-card:hover .anime-tool-link svg,
.anime-tool-card:focus-within .anime-tool-link svg {
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .anime-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anime-tool-card,
  .anime-tool-card-featured {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  .anime-tools-hero {
    min-height: 600px;
    padding: 126px 0 82px;
  }

  .anime-tools-hero::before {
    background:
      linear-gradient(180deg, rgba(22, 11, 29, 0.52) 0%, rgba(22, 11, 29, 0.54) 44%, rgba(22, 11, 29, 0.78) 100%),
      linear-gradient(90deg, rgba(22, 11, 29, 0.62), rgba(22, 11, 29, 0.28));
  }

  .anime-tools-hero-copy {
    width: min(100% - 32px, 920px);
    text-align: center;
  }

  .anime-tools-hero {
    background-position: 62% center;
  }

  .anime-tools-hero h1 {
    margin-inline: auto;
    font-size: clamp(2.75rem, 13vw, 4.15rem);
    line-height: 1;
  }

  .anime-tools-hero p {
    margin-inline: auto;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .anime-tools-section {
    padding: 78px 0 92px;
  }

  .anime-tools-heading {
    margin-bottom: 34px;
  }

  .anime-tools-heading h2 {
    font-size: 2.35rem;
  }

  .anime-tools-heading p {
    font-size: 0.95rem;
  }

  .anime-tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .anime-tool-media {
    aspect-ratio: 16 / 9;
  }

  .anime-tool-copy {
    padding: 22px 21px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anime-tool-card,
  .anime-tool-media img,
  .anime-tool-link svg {
    transition: none;
  }
}
