.page-resources {
  background: #f5f6fa;
  overflow-x: clip;
}

.page-resources .page-shell {
  min-height: 100vh;
}

.resources-main {
  flex: 1;
  width: 100%;
}

.js .resources-article-view {
  display: none;
}

.js .resources-main.is-article-view .resources-index-view {
  display: none;
}

.js .resources-main.is-article-view .resources-article-view.is-active {
  display: block;
}

.resources-hero {
  padding: 76px 20px 64px;
  background: linear-gradient(180deg, #fff 0%, #f5f6fa 100%);
}

.resources-hero__inner {
  width: min(100%, 920px);
  margin: 0 auto;
}

.resources-index-hero .resources-hero__inner {
  text-align: center;
}

.resources-article-hero .resources-hero__inner {
  width: min(100%, 800px);
}

.resources-eyebrow {
  margin: 0 0 16px;
  color: #5c38ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 20px;
  text-transform: uppercase;
}

.resources-h1 {
  margin: 0;
  color: #040a23;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.resources-article-hero .resources-h1 {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 58px);
}

.resources-deck {
  max-width: 700px;
  margin: 20px auto 0;
  color: #656979;
  font-size: 18px;
  line-height: 1.6;
}

.resources-article-hero .resources-deck {
  margin-left: 0;
  margin-right: 0;
}

.resource-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 36px;
  color: #5c38ff;
  font-size: 14px;
  font-weight: 650;
  line-height: 22px;
  text-decoration: none;
}

.resource-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.resource-back--bottom {
  margin: 40px 0 0;
}

.resources-library {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 48px 20px 104px;
}

.resources-library__head {
  margin-bottom: 16px;
}

.resources-library__head h2 {
  margin: 0;
  color: #040a23;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.resources-grid {
  border-top: 1px solid #e1e5ec;
}

.resource-list-card {
  border-bottom: 1px solid #e1e5ec;
}

.resource-list-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.resource-list-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 32px 4px;
  transition: padding 0.2s ease, background-color 0.2s ease;
}

.resource-list-card__link:hover .resource-list-card__body {
  padding-left: 18px;
  padding-right: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.resource-list-card__copy h2 {
  margin: 0 0 8px;
  color: #040a23;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.resource-list-card__copy p {
  margin: 0;
  color: #656979;
  font-size: 15px;
  line-height: 1.55;
}

.resource-list-card__aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 28px;
}

.resource-list-card__action {
  color: #5c38ff;
  font-size: 22px;
  line-height: 28px;
  transition: transform 0.2s ease;
}

.resource-list-card__link:hover .resource-list-card__action {
  transform: translateX(4px);
}

.resources-wrap {
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 32px 20px 104px;
}

.resources-article {
  padding: 48px 52px;
  border: 1px solid rgba(92, 56, 255, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(4, 10, 35, 0.05);
}

.resource-section {
  scroll-margin-top: 112px;
  margin: 0;
  padding: 0;
}

.resource-section + .resource-section {
  margin-top: 48px;
}

.resource-section h2 {
  margin: 0 0 18px;
  color: #040a23;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.resource-section h3 {
  margin: 28px 0 10px;
  color: #18386b;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.35;
}

.resource-section p {
  margin: 0 0 16px;
  color: #3d4354;
  font-size: 16px;
  line-height: 1.78;
}

.resource-section p:last-child {
  margin-bottom: 0;
}

.resource-section--answer {
  padding: 26px 28px;
  border-left: 4px solid #5c38ff;
  border-radius: 0 16px 16px 0;
  background: #f3f0ff;
}

.resource-section--answer h2 {
  font-size: 22px;
}

.resource-answer {
  color: #040a23 !important;
  font-size: 19px !important;
  font-weight: 500;
  line-height: 1.65 !important;
}

.resource-section--summary {
  padding: 28px;
  border-radius: 18px;
  background: #040a23;
}

.resource-section--summary h2 {
  color: #fff;
  font-size: 22px;
}

.resource-section--summary p {
  color: #e1e5ec;
}

.resource-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.resource-list li {
  padding-left: 4px;
  color: #3d4354;
  font-size: 16px;
  line-height: 1.6;
}

.resource-list li::marker {
  color: #5c38ff;
}

.resource-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.resource-pillar {
  padding: 18px;
  border-radius: 16px;
  background: #f5f6fa;
}

.resource-pillar__label {
  display: block;
  margin: 0 0 6px;
  color: #5c38ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 18px;
  text-transform: uppercase;
}

.resource-pillar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.resource-mistakes,
.resource-use-cases,
.resource-faq {
  border-top: 1px solid #e1e5ec;
}

.resource-card {
  padding: 24px 0;
  border-bottom: 1px solid #e1e5ec;
}

.resource-card h3 {
  margin-top: 0;
}

.resource-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.resource-compare > div {
  padding: 20px;
  border-radius: 16px;
  background: #f5f6fa;
}

.resource-compare > div:last-child {
  background: #eeeaff;
}

.resource-compare dt {
  margin: 0 0 8px;
  color: #040a23;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
}

.resource-compare dd {
  margin: 0;
  color: #3d4354;
  font-size: 16px;
  line-height: 1.55;
}

.resource-note {
  padding: 24px 26px;
  border-left: 4px solid #5c38ff;
  border-radius: 0 16px 16px 0;
  background: #f5f6fa;
}

.resource-cta {
  margin-top: 56px;
  padding: 36px;
  border-radius: 22px;
  background: linear-gradient(135deg, #5c38ff 0%, #7c5cff 100%);
  color: #fff;
  text-align: center;
}

.resource-cta h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

.resource-cta p {
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.65;
}

.resource-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #fff;
  color: #5c38ff;
  font-size: 15px;
  font-weight: 700;
  line-height: 23px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(4, 10, 35, 0.18);
}

.resource-list-card__link:focus-visible,
.resource-back:focus-visible,
.resource-cta__button:focus-visible {
  outline: 3px solid rgba(92, 56, 255, 0.35);
  outline-offset: 3px;
}

@media (max-width: 699px) {
  .resources-hero {
    padding: 48px 20px 44px;
  }

  .resources-h1,
  .resources-article-hero .resources-h1 {
    font-size: 38px;
  }

  .resources-deck {
    font-size: 16px;
  }

  .resource-back {
    margin-bottom: 28px;
  }

  .resources-library {
    padding-top: 32px;
    padding-bottom: 72px;
  }

  .resource-list-card__body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .resource-list-card__link:hover .resource-list-card__body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .resource-list-card__aside {
    display: flex;
    justify-content: space-between;
  }

  .resources-wrap {
    padding-top: 20px;
    padding-bottom: 72px;
  }

  .resources-article {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .resource-section + .resource-section {
    margin-top: 40px;
  }

  .resource-section--answer,
  .resource-section--summary,
  .resource-note {
    padding: 22px 20px;
  }

  .resource-pillars,
  .resource-compare {
    grid-template-columns: 1fr;
  }

  .resource-cta {
    margin-top: 44px;
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-list-card__body,
  .resource-list-card__action,
  .resource-cta__button {
    transition: none;
  }
}
