.dlx-seo-shop-intro,
.dlx-seo-hub-intro,
.dlx-seo-related {
  --dlx-seo-ink: #101426;
  --dlx-seo-muted: #5c657d;
  --dlx-seo-line: rgba(25, 31, 58, 0.12);
  --dlx-seo-purple: #6d46f2;
  --dlx-seo-purple-dark: #4e2fbe;
  --dlx-seo-soft: #f5f3ff;
  color: var(--dlx-seo-ink);
}

.dlx-seo-shop-intro,
.dlx-seo-hub-intro {
  position: relative;
  overflow: hidden;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid var(--dlx-seo-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(109, 70, 242, 0.16), transparent 34%),
    linear-gradient(145deg, #fff 0%, #f8f7ff 100%);
  box-shadow: 0 24px 70px rgba(26, 21, 67, 0.08);
}

.dlx-seo-shop-intro::before,
.dlx-seo-hub-intro::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--dlx-seo-purple), #27c4ff, transparent 80%);
}

.dlx-seo-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--dlx-seo-purple-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dlx-seo-shop-intro h2,
.dlx-seo-hub-intro h2,
.dlx-seo-related h2 {
  max-width: 820px;
  margin: 0;
  color: var(--dlx-seo-ink);
  font-size: clamp(1.7rem, 3.3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.dlx-seo-shop-intro > p:not(.dlx-seo-eyebrow),
.dlx-seo-hub-lead {
  max-width: 900px;
  margin: 1rem 0 0;
  color: var(--dlx-seo-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.dlx-seo-hub-count {
  display: inline-flex;
  margin: 1rem 0 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(109, 70, 242, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--dlx-seo-purple-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.dlx-seo-hub-nav {
  margin-top: 1.5rem;
}

.dlx-seo-hub-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dlx-seo-hub-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--dlx-seo-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #252b43;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dlx-seo-hub-nav a:hover,
.dlx-seo-hub-nav a:focus-visible,
.dlx-seo-hub-nav a.is-current,
.dlx-seo-hub-nav a[aria-current="page"] {
  border-color: rgba(109, 70, 242, 0.48);
  color: var(--dlx-seo-purple-dark);
  box-shadow: 0 8px 24px rgba(76, 45, 178, 0.1);
  transform: translateY(-1px);
}

.dlx-seo-hub-nav a:focus-visible,
.dlx-seo-related a:focus-visible {
  outline: 3px solid rgba(39, 196, 255, 0.4);
  outline-offset: 3px;
}

.dlx-seo-considerations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dlx-seo-considerations article {
  padding: 1.15rem;
  border: 1px solid var(--dlx-seo-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.dlx-seo-considerations h3 {
  margin: 0 0 0.45rem;
  color: var(--dlx-seo-ink);
  font-size: 1rem;
  line-height: 1.35;
}

.dlx-seo-considerations p {
  margin: 0;
  color: var(--dlx-seo-muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.dlx-seo-related {
  width: min(1240px, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--dlx-seo-line);
  border-radius: 26px;
  background: linear-gradient(145deg, #fbfaff, #fff);
}

.dlx-seo-related__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.dlx-seo-related__header > div > p:last-child {
  max-width: 740px;
  margin: 0.85rem 0 0;
  color: var(--dlx-seo-muted);
  line-height: 1.65;
}

.dlx-seo-related__header .button {
  flex: 0 0 auto;
  max-width: 330px;
  white-space: normal;
  text-align: center;
}

.dlx-seo-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dlx-seo-related__grid article {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--dlx-seo-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(29, 24, 69, 0.05);
}

.dlx-seo-related__grid article > span {
  display: block;
  color: var(--dlx-seo-purple-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dlx-seo-related__grid h3 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.dlx-seo-related__grid h3 a {
  color: var(--dlx-seo-ink);
  text-decoration: none;
}

.dlx-seo-related__grid p {
  margin: 0.65rem 0 0.9rem;
  color: var(--dlx-seo-muted);
  line-height: 1.6;
}

.dlx-seo-related__grid article > a:last-child {
  color: var(--dlx-seo-purple-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .dlx-seo-considerations {
    grid-template-columns: 1fr;
  }

  .dlx-seo-related__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dlx-seo-related__header .button {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .dlx-seo-shop-intro,
  .dlx-seo-hub-intro,
  .dlx-seo-related {
    border-radius: 20px;
  }

  .dlx-seo-hub-nav ul,
  .dlx-seo-related__grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dlx-seo-hub-nav a {
    width: 100%;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dlx-seo-hub-nav a {
    transition: none;
  }
}
