:root {
  --ink: #090910;
  --muted: #656477;
  --line: #e1e0f2;
  --soft: #f7f5ff;
  --paper: #ffffff;
  --paper-soft: #f6f4ff;
  --accent: #08090f;
  --accent-2: #6c5cff;
  --blue: #4aa8ff;
  --gold: #8f7fff;
  --shadow: 0 24px 70px rgba(51, 43, 115, 0.12);
  --shadow-soft: 0 12px 34px rgba(51, 43, 115, 0.08);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(121, 94, 255, 0.14), transparent 34%),
    radial-gradient(circle at 16% 18%, rgba(95, 124, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfbff 0%, #f8f6ff 48%, #f3f0ff 100%);
  font-family: var(--font-body);
  line-height: 1.48;
}

a {
  color: inherit;
}

img {
  display: block;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 max(28px, calc((100vw - 1460px) / 2));
  background: rgba(251, 251, 255, 0.82);
  border-bottom: 1px solid rgba(222, 219, 232, 0.78);
  backdrop-filter: blur(12px);
}

.brand,
.site-header nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 660;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 7px);
  grid-auto-rows: 7px;
  gap: 3px;
  width: 44px;
  height: 44px;
  align-content: center;
  justify-content: center;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(210, 213, 234, 0.95);
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(80, 79, 140, 0.1);
}

.brand-mark span {
  width: 7px;
  height: 7px;
  background: #101018;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.38) inset;
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(4),
.brand-mark span:nth-child(9),
.brand-mark span:nth-child(12) {
  opacity: 0;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(7),
.brand-mark span:nth-child(10) {
  background: #6d5cff;
}

.brand-mark span:nth-child(3),
.brand-mark span:nth-child(6),
.brand-mark span:nth-child(11) {
  background: #43b7f2;
}

.brand-mark span:nth-child(5) {
  background: #ff6a4c;
}

.brand-mark span:nth-child(8) {
  background: #11121a;
}

.brand-wordmark {
  display: inline-flex;
  font-family: var(--font-display);
  align-items: baseline;
  gap: 1px;
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand-wordmark span {
  display: inline-block;
  text-shadow: 1px 1px 0 rgba(116, 92, 255, 0.14);
}

.brand-wordmark span:nth-child(1),
.brand-wordmark span:nth-child(5) {
  color: #101018;
}

.brand-wordmark span:nth-child(2),
.brand-wordmark span:nth-child(6) {
  color: #6d5cff;
}

.brand-wordmark span:nth-child(3),
.brand-wordmark span:nth-child(7) {
  color: #2c9fe8;
}

.brand-wordmark span:nth-child(4),
.brand-wordmark span:nth-child(8) {
  color: #11121a;
}

.brand-wordmark span:nth-child(9) {
  color: #ff6a4c;
}

.site-header nav {
  align-self: stretch;
}

.site-header nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 4px;
  color: #191820;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 500;
  transition: color 160ms ease;
}

.site-header nav a.is-active {
  color: #4e42ef;
  background: transparent;
  border-color: transparent;
  font-weight: 650;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #705cff, #4aa8ff);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header nav a:hover {
  color: #4e42ef;
  background: transparent;
  border-color: transparent;
}

.site-header nav a:hover::after,
.site-header nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-subscribe-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(211, 209, 235, 0.9);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(80, 79, 140, 0.08);
}

.header-subscribe-form input {
  width: clamp(150px, 14vw, 220px);
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.84rem;
}

.header-subscribe-form input::placeholder {
  color: #8d8a9c;
}

.header-subscribe-form:focus-within {
  border-color: rgba(109, 92, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(109, 92, 255, 0.1), 0 12px 30px rgba(80, 79, 140, 0.08);
}

.header-action,
.header-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.header-action {
  color: var(--paper);
  background: #10100f;
  box-shadow: 0 12px 28px rgba(16, 16, 15, 0.18);
}

.header-subscribe {
  color: #ffffff;
  background: #6d5cff;
  border: 1px solid #6d5cff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(109, 92, 255, 0.18);
}

.footer-links a:hover {
  color: var(--ink);
}

main {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  padding: 46px 0 30px;
}

.hero-copy,
.hero-panel,
.content-panel,
.trust-band,
.filters,
.tool-card,
.answer-grid article,
.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 54px);
  box-shadow: var(--shadow);
}

.hero-copy::after {
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: 120px;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent-2));
  border-radius: 99px;
  opacity: 0.72;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f7f5ff);
}

.eyebrow,
.panel-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  font-family: var(--font-display);
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  font-weight: 430;
  line-height: 1;
  letter-spacing: -0.025em;
}

h2,
h3,
.portal-section-head h2,
.tool-row-title h3,
.portal-tool-card h3 {
  font-family: var(--font-display);
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.search-shell {
  margin-top: 26px;
}

.search-shell input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  outline: none;
}

.search-shell input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 97, 73, 0.12);
}

.hero-stats,
.chips,
.tool-card-top,
.section-heading.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 18px;
  color: var(--muted);
}

.hero-stats span,
.chips span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f0effb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
}

.band,
.directory-layout,
.trust-band,
.listing-page,
.detail-page,
.guide-page {
  margin: 34px 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.row {
  justify-content: space-between;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.usecase-pill,
.category-tile,
.link-list a {
  display: block;
  min-height: 62px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.usecase-pill:hover,
.category-tile:hover,
.tool-card:hover,
.link-list a:hover {
  border-color: rgba(16, 16, 15, 0.28);
  box-shadow: var(--shadow);
}

.directory-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.directory-layout > * {
  min-width: 0;
}

.filters {
  position: sticky;
  top: 92px;
  display: block;
  padding: 20px 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.filter-heading {
  display: block;
  margin-bottom: 22px;
  padding: 0 6px;
}

.filter-heading .eyebrow {
  display: none;
}

.filter-heading h2 {
  margin: 0;
  max-width: 210px;
  color: #21324f;
  font-size: 1.42rem;
  line-height: 1.12;
  white-space: normal;
}

.filter-list {
  display: grid;
  gap: 8px;
  margin: 0;
  max-width: 100%;
  overflow: visible;
  padding: 0;
}

.filter-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  color: #7c8584;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.filter-button strong {
  margin-left: auto;
  color: inherit;
  font-size: 0.84rem;
  opacity: 0.72;
}

.category-icon {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  color: currentColor;
}

.filter-button[aria-pressed="true"] {
  color: #258ee8;
  background: #dff1ff;
  box-shadow: none;
  transform: none;
}

.filter-button[aria-pressed="true"] strong {
  color: #258ee8;
  opacity: 0.9;
}

.list-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  margin: 0 0 32px;
  border-bottom: 1px solid #d9ded8;
}

.list-tab {
  display: inline-flex;
  position: relative;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  color: #7c8584;
  font-size: 1.05rem;
  font-weight: 850;
}

.list-tab .category-icon {
  width: 22px;
  height: 22px;
}

.list-tab.active {
  color: #258ee8;
}

.list-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: #258ee8;
  border-radius: 999px 999px 0 0;
}

.tool-list {
  display: grid;
  gap: 16px;
}

.tool-row {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(225, 230, 224, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(31, 45, 38, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tool-row:hover {
  border-color: rgba(37, 142, 232, 0.26);
  box-shadow: 0 22px 52px rgba(31, 45, 38, 0.1);
  transform: translateY(-2px);
}

.tool-row-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 76px;
  gap: 16px;
  align-items: center;
}

.tool-row-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #f8f7ff;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-decoration: none;
}

.tool-row-logo img {
  width: 42px;
  height: 42px;
}

.tool-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-row-title h3 {
  font-size: 1.28rem;
  font-weight: 560;
}

.tool-row-title h3 a {
  color: #1d2f4f;
  text-decoration: none;
}

.verified-dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: white;
  background: #5f78ff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.tool-row-content p {
  margin: 4px 0 0;
  color: #6d7371;
  font-size: 1rem;
}

.tool-row-score {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: #59c886;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
}

.tool-row-score span {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1;
}

.tool-row-score small {
  color: #7c8584;
  font-size: 0.72rem;
  line-height: 1;
}

.tool-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ebe5d8;
}

.tool-row-meta span {
  color: #837455;
  font-size: 0.95rem;
  font-weight: 780;
}

.tool-row-meta-category {
  gap: 7px;
}

.tool-row-meta-category span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 11px;
  color: #4e42ef;
  background: rgba(238, 236, 255, 0.72);
  border: 1px solid rgba(111, 99, 255, 0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 760;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  min-height: 232px;
  padding: 17px;
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tool-card p {
  color: var(--muted);
}

.tool-card:hover {
  transform: translateY(-2px);
}

.card-meta {
  margin-top: -4px;
  font-size: 0.82rem;
}

.tool-card h3 a {
  text-decoration: none;
}

.tool-card-top {
  align-items: flex-start;
}

.tool-card-top div {
  min-width: 0;
  flex: 1;
}

.tool-card-top p {
  margin: 3px 0 0;
  font-size: 0.9rem;
}

.score {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  color: white;
  background: var(--blue);
  border-radius: 10px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  display: grid;
  gap: 4px;
}

.category-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.category-summary {
  display: grid;
  gap: 16px;
  min-height: 260px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.category-summary h3 a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.category-summary p {
  margin: 8px 0 0;
  color: var(--muted);
}

.mini-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mini-tools a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.mini-tools span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subcat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcat-line span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  color: var(--muted);
  background: #f0effb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
}

.category-tile small,
.muted,
.small-note,
.breadcrumbs {
  color: var(--muted);
}

.small-note {
  font-size: 0.88rem;
}

.trust-band {
  padding: 28px;
  background: var(--paper);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 15px;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: #2a2926;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 28px 32px;
  color: var(--muted);
  background: rgba(241, 238, 255, 0.9);
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 620px;
  margin: 4px 0 0;
}

.back-to-top {
  position: fixed;
  top: 72%;
  right: clamp(16px, 2.4vw, 34px);
  z-index: 30;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #4e42ef;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(111, 99, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(40, 38, 74, 0.16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transform: translate(12px, -50%);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #ffffff;
  background: #5f5cf6;
  border-color: #5f5cf6;
  box-shadow: 0 18px 42px rgba(74, 77, 232, 0.24);
  outline: none;
  transform: translate(-2px, -50%);
}

.back-to-top svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.listing-page,
.detail-page,
.guide-page {
  padding-top: 18px;
}

.listing-page,
.detail-page {
  width: min(1220px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.guide-page {
  width: min(960px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.guide-page .page-intro,
.listing-page .page-intro {
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.guide-page .page-intro {
  padding: clamp(24px, 5vw, 44px);
}

.breadcrumbs {
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--ink);
  text-decoration: none;
}

.page-intro,
.detail-hero {
  margin-bottom: 24px;
}

.guide-visual {
  overflow: hidden;
  margin: 0 0 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.guide-visual img {
  display: block;
  width: 100%;
  height: clamp(150px, 22vw, 230px);
  object-fit: cover;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.tool-title-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.answer-grid article,
.content-panel {
  padding: 22px;
}

.content-panel {
  margin-bottom: 16px;
}

.guide-page .content-panel,
.guide-page .table-wrap {
  box-shadow: var(--shadow-soft);
}

.guide-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.use-cases-page,
.new-page {
  width: min(1460px, calc(100% - 56px));
}

.new-page .tool-list,
.new-page .new-category-list,
.use-case-group {
  position: relative;
  z-index: 2;
}

.use-case-directory-hero {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(360px, 0.62fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  margin: 0;
  min-height: clamp(300px, 35vh, 420px);
  padding: clamp(24px, 3.4vw, 48px) clamp(22px, 3vw, 42px) clamp(18px, 2.4vw, 32px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.use-case-directory-hero::before {
  position: absolute;
  top: -68px;
  right: auto;
  bottom: -12px;
  left: 50%;
  z-index: 0;
  width: 100vw;
  content: "";
  background:
    radial-gradient(ellipse at 78% 42%, rgba(255, 255, 255, 0) 0%, rgba(249, 247, 255, 0.24) 56%, rgba(248, 246, 255, 0.96) 88%),
    linear-gradient(90deg, rgba(251, 251, 255, 0.99) 0%, rgba(250, 249, 255, 0.9) 32%, rgba(244, 241, 255, 0.34) 70%, rgba(244, 241, 255, 0.02) 100%),
    url("/assets/images/homepage-ai-constellation.jpg") right 44% center / auto 124% no-repeat;
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 8%, #000 22%, #000 78%, rgba(0, 0, 0, 0.22) 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 70%, rgba(0, 0, 0, 0.42) 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 8%, #000 22%, #000 78%, rgba(0, 0, 0, 0.22) 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 70%, rgba(0, 0, 0, 0.42) 84%, transparent 100%);
  mask-composite: intersect;
}

.use-case-directory-hero::after {
  position: absolute;
  top: -68px;
  right: auto;
  bottom: -12px;
  left: 50%;
  z-index: 0;
  width: 100vw;
  content: "";
  background:
    linear-gradient(180deg, rgba(251, 251, 255, 0.98) 0%, transparent 18%, transparent 58%, rgba(246, 243, 255, 0.48) 78%, rgba(246, 243, 255, 0) 100%),
    linear-gradient(90deg, rgba(251, 251, 255, 1) 0%, rgba(251, 251, 255, 0.66) 12%, transparent 28%, transparent 72%, rgba(246, 243, 255, 0.66) 88%, rgba(246, 243, 255, 1) 100%);
  pointer-events: none;
  transform: translateX(-50%);
}

.use-case-directory-hero > * {
  position: relative;
  z-index: 1;
}

.use-case-directory-copy {
  max-width: 700px;
}

.use-case-directory-hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2.8rem, 4.85vw, 5rem);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: 0;
}

.use-case-directory-hero h1 span {
  display: inline;
  color: transparent;
  background: linear-gradient(90deg, #705cff 0%, #55bff0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 650;
}

.use-case-directory-hero h1 strong {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 0.72em;
  font-weight: 650;
  line-height: 1.18;
}

.use-case-hero-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.use-case-hero-panel span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(215, 214, 230, 0.86);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(80, 79, 120, 0.05);
}

.use-case-hero-panel strong {
  color: #4e42ef;
  font-size: 1.05rem;
  font-weight: 780;
}

.use-case-hero-panel small {
  color: #68667a;
  font-size: 0.88rem;
  line-height: 1.3;
}

.use-case-directory-hero + .tool-list,
.use-case-directory-hero + .new-category-list,
.use-case-directory-hero + .use-case-group {
  margin-top: 56px;
}

.new-category-list {
  display: grid;
  gap: 16px;
}

.new-category-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.24fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 164px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(244, 242, 255, 0.96), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(221, 218, 243, 0.9);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(61, 53, 113, 0.08);
}

.new-category-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 6px 10px 10px;
  text-align: center;
}

.new-category-label h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 0 5px;
  font-size: clamp(1.9rem, 2.8vw, 2.75rem);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

.new-category-label p {
  overflow: hidden;
  max-width: 100%;
  margin: 0;
  color: #5f5c72;
  font-size: 0.82rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-category-label small {
  margin-top: 11px;
  color: #8a8799;
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.02em;
}

.new-category-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.new-tool-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-content: start;
  min-height: 134px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(222, 220, 242, 0.92);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(61, 53, 113, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.new-tool-card:hover {
  border-color: rgba(111, 94, 255, 0.36);
  box-shadow: 0 22px 62px rgba(61, 53, 113, 0.13);
  transform: translateY(-2px);
}

.new-tool-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #f8f7ff;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.new-tool-logo img {
  width: 36px;
  height: 36px;
}

.new-tool-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.18;
}

.new-tool-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.new-tool-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 40px;
  margin: 6px 0 0;
  color: #69677a;
  font-size: 0.83rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.new-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.new-tool-tags span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  color: #4e42ef;
  background: rgba(238, 236, 255, 0.72);
  border: 1px solid rgba(111, 99, 255, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 760;
}

.use-case-group {
  margin-bottom: 44px;
}

.use-case-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.use-case-group-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 560;
  letter-spacing: 0;
}

.use-case-group-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.use-case-tile {
  display: flex;
  overflow: hidden;
  min-height: 430px;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(222, 220, 242, 0.92);
  border-radius: 24px;
  box-shadow: 0 18px 54px rgba(61, 53, 113, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.use-case-tile:hover {
  border-color: rgba(111, 94, 255, 0.42);
  box-shadow: 0 24px 70px rgba(61, 53, 113, 0.14);
  transform: translateY(-3px);
}

.use-case-tile figure {
  overflow: hidden;
  margin: 0;
  background: #f2f1fb;
}

.use-case-tile figure img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.use-case-tile:hover figure img {
  transform: scale(1.035);
}

.use-case-tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.use-case-kicker {
  margin: 0 0 9px;
  color: #6b63d9;
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.use-case-tile h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.026em;
}

.use-case-tile-body > p:not(.use-case-kicker) {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 10px 0 0;
  color: #69677a;
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.use-case-workflows {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.use-case-workflows span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  background: rgba(246, 245, 255, 0.9);
  border: 1px solid rgba(224, 222, 246, 0.8);
  border-radius: 12px;
}

.use-case-workflows em {
  overflow: hidden;
  color: #5d5a70;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.use-case-workflows strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #17151f;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.use-case-workflows img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.category-subcats {
  margin-top: -8px;
}

.content-panel h2 + p,
.content-panel h3 + p {
  color: var(--muted);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

td a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.table-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.table-tool-link img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 22, 0.08);
}

.faq h3 {
  margin-top: 18px;
}

.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;
}

.portal-page {
  width: min(1460px, calc(100% - 56px));
  margin: 0 auto;
}

.eleven-hero {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
  max-width: none;
  margin: 0 0 24px;
  min-height: clamp(430px, 54vh, 590px);
  padding: clamp(38px, 5.2vw, 72px) clamp(22px, 3vw, 42px) clamp(26px, 3.8vw, 52px);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.eleven-hero::before {
  position: absolute;
  top: -76px;
  right: auto;
  bottom: -260px;
  left: 50%;
  z-index: 0;
  width: 100vw;
  content: "";
  background:
    radial-gradient(ellipse at 74% 44%, rgba(255, 255, 255, 0) 0%, rgba(249, 247, 255, 0.28) 54%, rgba(248, 246, 255, 0.96) 88%),
    linear-gradient(90deg, rgba(251, 251, 255, 0.99) 0%, rgba(250, 249, 255, 0.9) 30%, rgba(244, 241, 255, 0.36) 68%, rgba(244, 241, 255, 0.02) 100%),
    url("/assets/images/homepage-ai-constellation.jpg") right 45% center / auto 126% no-repeat;
  opacity: 0.68;
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 8%, #000 22%, #000 78%, rgba(0, 0, 0, 0.24) 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 15%, #000 66%, rgba(0, 0, 0, 0.4) 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 8%, #000 22%, #000 78%, rgba(0, 0, 0, 0.24) 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 15%, #000 66%, rgba(0, 0, 0, 0.4) 82%, transparent 100%);
  mask-composite: intersect;
}

.eleven-hero::after {
  position: absolute;
  top: -76px;
  right: auto;
  bottom: -260px;
  left: 50%;
  z-index: 0;
  width: 100vw;
  content: "";
  background:
    linear-gradient(180deg, rgba(251, 251, 255, 0.98) 0%, transparent 18%, transparent 58%, rgba(246, 243, 255, 0.55) 78%, rgba(246, 243, 255, 0) 100%),
    linear-gradient(90deg, rgba(251, 251, 255, 1) 0%, rgba(251, 251, 255, 0.66) 12%, transparent 28%, transparent 72%, rgba(246, 243, 255, 0.66) 88%, rgba(246, 243, 255, 1) 100%);
  pointer-events: none;
  transform: translateX(-50%);
}

.eleven-hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 13px;
  color: #3431a4;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(112, 92, 255, 0.38);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 760;
  box-shadow: 0 10px 28px rgba(90, 74, 210, 0.08);
}

.eleven-hero h1 {
  font-family: var(--font-body);
  max-width: 740px;
  font-size: clamp(2.8rem, 4.85vw, 5rem);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: 0;
}

.eleven-hero h1 span {
  display: inline;
  color: transparent;
  background: linear-gradient(90deg, #705cff 0%, #55bff0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 650;
}

.eleven-hero h1 strong {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 0.72em;
  font-weight: 650;
  line-height: 1.18;
}

.hero-kicker {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.22vw, 1.18rem);
  font-weight: 400;
  line-height: 1.68;
}

.eleven-hero-copy {
  display: flex;
  min-height: auto;
  max-width: 640px;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-controls {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding-top: 0;
}

.hero-visual {
  position: relative;
  grid-column: 1 / -1;
  align-self: stretch;
  display: flex;
  justify-content: center;
  width: 100%;
  height: clamp(260px, 32vw, 420px);
  margin: 4px 0 0;
  min-width: 0;
  pointer-events: none;
}

.hero-visual img {
  width: min(100%, 1220px);
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 0;
  filter: saturate(1.08) contrast(1.01);
  mix-blend-mode: multiply;
  opacity: 0.94;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 4%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 4%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.portal-search-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.portal-search-tabs,
.portal-quick-links,
.portal-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.portal-search-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.portal-search-tabs button {
  display: grid;
  min-height: 50px;
  place-items: center;
  gap: 3px;
  padding: 7px 4px;
  color: #272632;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(215, 214, 230, 0.86);
  border-radius: 10px;
  font-size: 0.66rem;
  font-weight: 560;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(80, 79, 120, 0.05);
}

.search-mode-icon {
  display: grid;
  place-items: center;
  min-height: 18px;
  color: #11121a;
  font-size: 1.12rem;
  line-height: 1;
}

.search-mode-icon svg {
  width: 18px;
  height: 18px;
}

.search-mode-icon img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.search-mode-icon .toolbrief-search-icon {
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(80, 79, 140, 0.1);
}

.search-mode-icon strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.portal-search-tabs button[data-search-engine="site"] .search-mode-icon {
  color: #5f55ff;
}

.portal-search-tabs button[data-search-engine="github"] .search-mode-icon,
.portal-search-tabs button[data-search-engine="chatgpt"] .search-mode-icon {
  color: #171821;
}

.portal-search-tabs button[data-search-engine="reddit"] .search-mode-icon {
  color: #ff5a28;
}

.portal-search-tabs button[data-search-engine="gemini"] .search-mode-icon {
  color: #5c4dff;
}

.portal-search-tabs .active {
  color: #463cff;
  background: rgba(255, 255, 255, 0.88);
  border-color: #6f63ff;
  box-shadow: 0 10px 30px rgba(112, 92, 255, 0.14);
}

.portal-search-tabs button:not(.active):hover {
  color: var(--ink);
  background: rgba(236, 232, 244, 0.9);
}

.portal-search-mode-note {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.portal-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  gap: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(215, 214, 230, 0.88);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(70, 60, 140, 0.08);
  min-width: 0;
  max-width: 100%;
}

.portal-search-row input {
  min-width: 0;
  min-height: 42px;
  padding: 0 15px;
  font-size: 0.92rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font: inherit;
  outline: none;
}

.portal-search-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 16, 15, 0.08);
}

.portal-search-row button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--paper);
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
}

@media (min-width: 1400px) {
  .portal-search-panel,
  .hero-stats {
    width: 100%;
    max-width: none;
  }
}

.hero-stats span {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
}

.hero-stats .category-icon {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  padding: 6px;
  color: #7b5cff;
  background: #f0ebff;
  border-radius: 10px;
}

.hero-stats span:nth-child(2) .category-icon {
  color: #3c90ff;
  background: #e8f4ff;
}

.hero-stats span:nth-child(3) .category-icon {
  color: #7b55ff;
  background: #f2edff;
}

.hero-stats span:nth-child(4) .category-icon {
  color: #5d75ff;
  background: #edf2ff;
}

.hero-stats strong,
.hero-stats small {
  min-width: 0;
}

.hero-stats strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.1;
}

.hero-stats small {
  color: #555366;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.portal-quick-links {
  margin-top: 8px;
}

.portal-quick-links a,
.portal-alerts a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  color: var(--muted);
  background: #f0effb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
}

.portal-alerts {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 228, 239, 0.9);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(72, 64, 148, 0.06);
}

.portal-alerts a {
  color: #5d4dff;
  background: transparent;
  border: 0;
  font-weight: 780;
}

.portal-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 34px;
  padding: 16px;
  scroll-margin-top: 96px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(224, 222, 244, 0.96);
  border-radius: 20px;
  box-shadow: 0 24px 72px rgba(72, 64, 148, 0.1);
  backdrop-filter: blur(12px);
}

.portal-shell > *,
.portal-featured > *,
.eleven-hero > *,
.portal-content,
.portal-sidebar,
.portal-sidebar nav {
  min-width: 0;
}

.portal-sidebar {
  position: sticky;
  top: 92px;
  padding: 2px 14px 14px 2px;
}

.portal-sidebar-title {
  margin-bottom: 12px;
  padding: 2px 8px 0;
}

.portal-sidebar-title strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.portal-sidebar-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.portal-sidebar nav {
  display: grid;
  gap: 5px;
  max-height: max(340px, calc(100vh - 230px));
  overflow-y: auto;
  padding: 0 6px 2px 0;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8c6ee transparent;
}

.portal-side-link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  color: #4e4d61;
  border-radius: 10px;
  font-weight: 620;
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.portal-side-link .category-icon {
  width: 18px;
  height: 18px;
  color: #707083;
}

.portal-side-link:hover {
  color: #2520a5;
  transform: translateX(1px);
}

.portal-side-link.is-active {
  color: #4e42ef;
  transform: translateX(1px);
}

.portal-side-link strong {
  color: inherit;
  opacity: 0.86;
  font-size: 0.74rem;
  font-weight: 680;
}

.portal-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.portal-featured {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.portal-featured h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  letter-spacing: -0.015em;
}

.portal-featured p {
  color: var(--muted);
}

.portal-featured-visual {
  overflow: hidden;
  align-self: stretch;
  min-height: 170px;
  margin: 0;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.portal-featured-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.portal-featured-tools,
.portal-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-featured-tools {
  grid-column: 1 / -1;
}

.portal-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 92px;
  padding: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(119, 94, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 249, 255, 0.9) 52%, rgba(241, 247, 255, 0.78) 100%);
  border: 1px solid rgba(220, 222, 240, 0.92);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(72, 64, 148, 0.045);
}

.portal-section > * {
  position: relative;
  z-index: 1;
}

.portal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.portal-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px 6px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 222, 240, 0.95);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(72, 64, 148, 0.06);
  font-size: 1.02rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.portal-section-head .category-icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  color: #6258ff;
  background: linear-gradient(135deg, #f0edff, #eaf5ff);
  border-radius: 9px;
}

.portal-section-head p {
  display: -webkit-box;
  max-width: 560px;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.portal-section-head a {
  flex: 0 0 auto;
  color: #5d4dff;
  font-weight: 680;
  text-decoration: none;
  padding-top: 6px;
  font-size: 0.84rem;
}

.portal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.portal-subnav span {
  padding: 3px 8px;
  color: #56546a;
  background: #f0effb;
  border: 1px solid rgba(226, 228, 239, 0.95);
  border-radius: 999px;
  font-size: 0.74rem;
}

.portal-tool-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-height: 118px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 228, 239, 0.96);
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-tool-card:hover {
  border-color: rgba(107, 92, 255, 0.36);
  box-shadow: 0 18px 42px rgba(72, 64, 148, 0.1);
  transform: translateY(-1px);
}

.portal-tool-card[hidden],
.portal-section[hidden] {
  display: none;
}

.portal-tool-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #f8f8ff;
  border: 1px solid rgba(226, 228, 239, 0.96);
  border-radius: 11px;
}

.portal-tool-card h3 {
  font-size: 0.92rem;
  font-weight: 560;
}

.portal-tool-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.portal-tool-card p {
  display: -webkit-box;
  margin: 3px 0 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.portal-tool-tags span {
  padding: 3px 7px;
  color: #4d4790;
  background: #f0effb;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 620;
}

.portal-search-status {
  padding: 12px 14px;
  color: #4e42ef;
  background: #eeecff;
  border: 1px solid rgba(122, 109, 255, 0.26);
  border-radius: 16px;
  font-weight: 680;
}

@media (max-width: 980px) {
  .hero,
  .directory-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    display: block;
  }

  .hero-panel {
    margin-top: 18px;
  }

  .filters {
    position: static;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }

  .filter-heading {
    margin-bottom: 12px;
  }

  .filter-heading h2 {
    max-width: none;
  }

  .filter-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filter-list::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
    width: auto;
    min-height: 42px;
    border: 1px solid var(--line);
  }

  .usecase-grid,
  .category-grid,
  .category-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-case-directory-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .use-case-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .use-case-hero-panel span {
    grid-template-columns: 1fr;
    gap: 4px;
    align-content: center;
  }

  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-case-workflows span {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .use-case-workflows em,
  .use-case-workflows strong {
    min-width: 0;
    white-space: normal;
  }

  .new-category-section {
    grid-template-columns: minmax(150px, 0.2fr) minmax(0, 1fr);
    min-height: 0;
  }

  .new-category-tools {
    grid-template-columns: 1fr;
  }

  .new-category-label,
  .new-tool-card {
    min-height: 0;
  }

  .tool-grid,
  .tool-grid.compact,
  .answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-shell,
  .portal-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .eleven-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .portal-sidebar {
    position: static;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .portal-sidebar-title strong {
    color: #11121a;
  }

  .portal-sidebar nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: none;
    max-width: 100%;
    overflow: visible;
    padding: 0;
    overscroll-behavior-y: auto;
  }

  .portal-side-link {
    min-width: 0;
    min-height: 48px;
    font-size: 0.92rem;
  }

  .portal-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  .site-footer,
  .detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    flex: 0 0 auto;
  }

  .header-actions {
    display: none;
  }

  .filter-heading {
    width: 100%;
  }

  .filter-list {
    width: 100%;
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  .guide-page {
    width: min(100% - 20px, 960px);
  }

  .listing-page,
  .use-cases-page,
  .new-page {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-right: auto;
    margin-left: auto;
  }

  .use-case-directory-hero {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: auto;
    padding: 10px 0 14px;
    overflow: visible;
    isolation: isolate;
  }

  .use-case-directory-hero::before,
  .use-case-directory-hero::after {
    top: -8px;
    bottom: -74px;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
  }

  .use-case-directory-hero::before {
    background:
      radial-gradient(ellipse at 62% 38%, rgba(255, 255, 255, 0) 0%, rgba(249, 247, 255, 0.22) 56%, rgba(248, 246, 255, 0.98) 90%),
      linear-gradient(90deg, rgba(251, 251, 255, 0.98) 0%, rgba(250, 249, 255, 0.78) 24%, rgba(244, 241, 255, 0.3) 68%, rgba(244, 241, 255, 0.02) 100%),
      url("/assets/images/homepage-ai-constellation.jpg") center center / auto 132% no-repeat;
    opacity: 0.54;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 7%, #000 20%, #000 80%, rgba(0, 0, 0, 0.18) 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, rgba(0, 0, 0, 0.28) 88%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 7%, #000 20%, #000 80%, rgba(0, 0, 0, 0.18) 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, rgba(0, 0, 0, 0.28) 88%, transparent 100%);
  }

  .use-case-directory-hero::after {
    background:
      linear-gradient(180deg, rgba(251, 251, 255, 0.94) 0%, transparent 19%, transparent 62%, rgba(246, 243, 255, 0.5) 82%, rgba(246, 243, 255, 0) 100%),
      linear-gradient(90deg, rgba(251, 251, 255, 0.92) 0%, rgba(251, 251, 255, 0.42) 14%, transparent 30%, transparent 70%, rgba(246, 243, 255, 0.42) 86%, rgba(246, 243, 255, 0.92) 100%);
  }

  .use-case-directory-hero + .tool-list,
  .use-case-directory-hero + .new-category-list,
  .use-case-directory-hero + .use-case-group {
    margin-top: 28px;
  }

  .use-case-directory-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.45rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .use-case-directory-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .use-case-directory-hero h1 span {
    display: block;
    white-space: normal;
  }

  .use-case-directory-hero h1 strong {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    font-size: 0.66em;
    line-height: 1.1;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .use-case-directory-hero .hero-kicker {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .use-case-hero-panel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .use-case-hero-panel span {
    min-height: 52px;
    padding: 10px 12px;
  }

  .use-case-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-category-section {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    overflow: hidden;
    max-width: 100%;
  }

  .new-category-label {
    min-height: 0;
    padding: 8px;
    border-radius: 18px;
  }

  .new-category-label h2 {
    margin: 0 0 5px;
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    white-space: normal;
  }

  .new-category-tools,
  .new-tool-card,
  .new-tool-card > div,
  .new-category-list,
  .use-case-grid,
  .use-case-tile,
  .use-case-tile-body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .new-tool-card {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
    overflow: hidden;
  }

  .new-tool-logo {
    width: 46px;
    height: 46px;
  }

  .new-tool-logo img {
    width: 34px;
    height: 34px;
  }

  .new-tool-card h3 {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .new-tool-card p {
    min-height: auto;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-line-clamp: 2;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy {
    padding: 24px;
  }

  .usecase-grid,
  .category-grid,
  .category-summary-grid,
  .tool-grid,
  .tool-grid.compact,
  .guide-tools,
  .answer-grid,
  .link-list,
  .mini-tools {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: auto;
  }

  .list-tabs {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .list-tab {
    flex: 0 0 auto;
    font-size: 0.96rem;
  }

  .tool-row {
    padding: 16px;
    border-radius: 16px;
  }

  .tool-row-main {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .tool-row-logo {
    width: 50px;
    height: 50px;
  }

  .tool-row-logo img {
    width: 36px;
    height: 36px;
  }

  .tool-row-score {
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    justify-content: center;
    min-height: 38px;
    gap: 6px;
  }

  .tool-row-title h3 {
    font-size: 1.1rem;
  }

  .button {
    width: 100%;
  }

  .portal-page {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .eleven-hero {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr;
    margin: 8px auto 10px;
    min-height: auto;
    padding: 16px 0 12px;
    align-items: start;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    isolation: isolate;
  }

  .eleven-hero::before,
  .eleven-hero::after {
    top: -38px;
    bottom: -42px;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
  }

  .eleven-hero::before {
    background:
      radial-gradient(ellipse at 62% 42%, rgba(255, 255, 255, 0) 0%, rgba(249, 247, 255, 0.24) 56%, rgba(248, 246, 255, 0.98) 90%),
      linear-gradient(90deg, rgba(251, 251, 255, 0.98) 0%, rgba(250, 249, 255, 0.78) 24%, rgba(244, 241, 255, 0.3) 68%, rgba(244, 241, 255, 0.02) 100%),
      url("/assets/images/homepage-ai-constellation.jpg") center center / auto 132% no-repeat;
    opacity: 0.58;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 7%, #000 20%, #000 80%, rgba(0, 0, 0, 0.18) 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 15%, #000 76%, rgba(0, 0, 0, 0.34) 90%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 7%, #000 20%, #000 80%, rgba(0, 0, 0, 0.18) 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 15%, #000 76%, rgba(0, 0, 0, 0.34) 90%, transparent 100%);
  }

  .eleven-hero::after {
    background:
      linear-gradient(180deg, rgba(251, 251, 255, 0.94) 0%, transparent 18%, transparent 64%, rgba(246, 243, 255, 0.52) 84%, rgba(246, 243, 255, 0) 100%),
      linear-gradient(90deg, rgba(251, 251, 255, 0.92) 0%, rgba(251, 251, 255, 0.42) 14%, transparent 30%, transparent 70%, rgba(246, 243, 255, 0.42) 86%, rgba(246, 243, 255, 0.92) 100%);
  }

  .eleven-hero-copy {
    max-width: 100%;
  }

  .eleven-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.45rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .eleven-hero h1 span {
    display: block;
    white-space: normal;
  }

  .eleven-hero h1 strong {
    max-width: 100%;
    margin-top: 8px;
    font-size: 0.66em;
    line-height: 1.1;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .hero-kicker {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .hero-visual {
    display: none;
  }

  .portal-search-tabs,
  .portal-quick-links,
  .portal-alerts {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portal-search-tabs::-webkit-scrollbar,
  .portal-quick-links::-webkit-scrollbar,
  .portal-alerts::-webkit-scrollbar {
    display: none;
  }

  .portal-search-tabs button,
  .portal-quick-links a,
  .portal-alerts a {
    flex: 0 0 auto;
  }

  .portal-search-tabs {
    display: flex;
    gap: 7px;
  }

  .portal-search-tabs button {
    width: auto;
    min-width: 68px;
    min-height: 48px;
  }

  .portal-search-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 6px;
  }

  .portal-search-row button {
    width: 100%;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .portal-search-row input {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-shell {
    position: relative;
    z-index: 2;
    display: block;
    gap: 20px;
    margin-bottom: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .portal-sidebar {
    position: relative;
    z-index: 1;
    top: auto;
    margin-bottom: 26px;
    background: #ffffff;
  }

  .portal-sidebar-title {
    position: relative;
    z-index: 1;
  }

  .portal-sidebar-title strong {
    color: #090910;
    font-weight: 760;
  }

  .portal-content {
    gap: 24px;
  }

  .portal-featured-tools,
  .portal-tool-grid {
    grid-template-columns: 1fr;
  }

  .portal-section,
  .portal-featured {
    overflow: visible;
    padding: 0 0 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .portal-search-panel {
    padding: 0;
    border-radius: 0;
  }

  .portal-section-head {
    display: block;
    margin-bottom: 12px;
  }

  .portal-section-head a {
    display: inline-flex;
    margin-top: 8px;
  }

  .portal-subnav {
    margin-bottom: 12px;
  }

  .portal-tool-card {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(72, 64, 148, 0.045);
  }

  .guide-visual img {
    height: 136px;
  }

  .back-to-top {
    top: auto;
    right: 16px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    transform: translateY(10px);
  }

  .back-to-top.is-visible {
    transform: translateY(0);
  }

  .back-to-top:hover,
  .back-to-top:focus-visible {
    transform: translateY(-2px);
  }
}

@media (max-width: 420px) {
  .eleven-hero {
    padding: 14px 0 10px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
