:root {
  --scenario-text: #141414;
  --scenario-muted: #6b7280;
  --scenario-purple: #7733f8;
}

.scenarios-list-page {
  min-height: 100vh;
  background: #fff;
  color: var(--scenario-text);
  font-family: Roboto, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.scenario-list-hero {
  position: relative;
  overflow: visible;
  background: linear-gradient(112deg, #7e77fd 23%, #e7b5f0 91%);
}

.scenario-list-hero__inner {
  width: min(896px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 137px;
  text-align: center;
}

.scenario-list-hero h1 {
  margin: 0 0 32px;
  color: #fff;
  font-family: Roboto, Inter, sans-serif;
  font-size: 48px;
  line-height: 1.17;
  font-weight: 700;
  letter-spacing: 0;
}

.scenario-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(640px, 100%);
  height: 64px;
  margin: 0 auto;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(93deg, rgba(113, 74, 255, .6), rgba(187, 143, 255, .6)) border-box;
  box-shadow: 0 8px 20px rgba(91, 64, 220, .12);
}

.scenario-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 12px 64px 12px 24px;
  border: 0;
  outline: 0;
  border-radius: 12px;
  background: transparent;
  color: #141414;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.scenario-search input::placeholder {
  color: #888;
}

.scenario-search button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #888;
  cursor: pointer;
}

.scenario-search-submit {
  right: 16px;
  width: 32px;
  height: 32px;
}

.scenario-search-submit svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scenario-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 32px;
  margin-top: 22px;
}

.scenario-quick-links span,
.scenario-quick-links a {
  flex-shrink: 0;
  color: #fff;
  font-family: Roboto, Inter, sans-serif;
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}

.scenario-quick-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.scenario-category-band {
  position: relative;
  z-index: 10;
  width: min(1152px, calc(100% - 32px));
  margin: -96px auto 0;
}

.scenario-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.scenario-category-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  padding: 0 0 32px;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  text-align: center;
  box-shadow: 4px 4px 20px 0 rgba(75, 89, 155, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.scenario-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 10px 26px 0 rgba(75, 89, 155, .16);
}

.scenario-category-img,
.scenario-category-icon {
  width: 80px;
  height: 80px;
  margin-top: 24px;
}

.scenario-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f4efff;
  color: #7733f8;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .08);
}

.scenario-category-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.scenario-category-img {
  object-fit: contain;
}

.scenario-category-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.scenario-category-title {
  display: -webkit-box;
  margin: 24px 19px 12px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.scenario-category-title:hover {
  color: #7c3aed;
}

.scenario-category-card p {
  max-width: 190px;
  margin: 0 42px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

.scenario-top-articles {
  width: min(1152px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.scenario-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  text-align: center;
}

.scenario-section-heading span {
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
}

.scenario-section-heading h2 {
  margin: 0;
  color: #141414;
  font-family: "Roboto", "Inter", Arial, sans-serif;
  font-size: 40px;
  line-height: 56px;
  font-weight: 700;
  letter-spacing: 0;
}

.scenario-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.scenario-article-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 0;
  padding: 24px 24px 24px 25.5px;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.scenario-article-card:hover,
.scenario-article-card.is-highlighted {
  border-color: #7733f8;
  box-shadow: 0 4px 14px rgba(75, 89, 155, .12);
}

.scenario-article-icon {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border-radius: 8px;
  background: #faf5ff;
  color: #5b5b5b;
}

.scenario-article-icon svg {
  width: 16px;
  height: 14px;
  fill: currentColor;
}

.scenario-article-copy {
  min-width: 0;
}

.scenario-article-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.375;
  font-weight: 600;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.scenario-article-title:hover {
  color: #7c3aed;
}

.scenario-article-copy span {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.625;
  font-weight: 400;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}


.scenario-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(124, 58, 237, .18);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.scenario-contact-btn:hover {
  background: #6d28d9;
  box-shadow: 0 14px 28px rgba(124, 58, 237, .24);
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .scenario-category-grid,
  .scenario-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .scenario-list-hero__inner {
    width: min(100% - 32px, 672px);
    padding: 96px 0 118px;
  }

  .scenario-list-hero h1 {
    margin-bottom: 24px;
    font-size: 26px;
    line-height: 34px;
  }

  .scenario-search {
    height: 56px;
    width: min(100%, 560px);
  }

  .scenario-search input {
    padding: 10px 56px 10px 18px;
    font-size: 15px;
  }

  .scenario-quick-links {
    gap: 8px 22px;
  }

  .scenario-quick-links span,
  .scenario-quick-links a {
    font-size: 14px;
    line-height: 22px;
  }

  .scenario-category-band {
    margin-top: -71px;
  }

  .scenario-category-grid,
  .scenario-article-grid {
    grid-template-columns: 1fr;
  }

  .scenario-category-card {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    padding: 24px 28px 24px 24px;
    text-align: left;
  }

  .scenario-category-img,
  .scenario-category-icon {
    width: 50px;
    height: 50px;
    margin: 0 16px 0 0;
    flex-shrink: 0;
  }

  .scenario-category-icon svg {
    width: 24px;
    height: 24px;
  }

  .scenario-category-copy {
    align-items: flex-start;
  }

  .scenario-category-title {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 22px;
  }

  .scenario-category-card p {
    max-width: none;
    margin: 0;
    font-size: 13px;
    line-height: 18px;
  }

  .scenario-top-articles {
    padding: 48px 0 64px;
  }

  .scenario-section-heading {
    margin-bottom: 24px;
  }

  .scenario-section-heading span {
    font-size: 20px;
  }

  .scenario-section-heading h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .scenario-article-grid {
    gap: 14px;
  }

  .scenario-article-card {
    min-height: auto;
  }

  
}
