/* ═══════════════════════════════════════════════════════════════
   FRAMEWORK-HUB.CSS — Decision framework catalog (mobile-first)
   ═══════════════════════════════════════════════════════════════ */

.fw-hub {
  --fw-accent: #10b981;
  --fw-accent-rgb: 16, 185, 129;
  --fw-teal: #2dd4bf;
  --fw-pad: 1rem;
}

.fw-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 16vw, 8.5rem) 0 clamp(2rem, 6vw, 3.5rem);
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, rgba(16, 185, 129, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(45, 212, 191, 0.1), transparent 50%),
    linear-gradient(165deg, #030712 0%, #0a1512 45%, #111827 100%);
}
.fw-hero__mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000, transparent 72%);
  pointer-events: none;
}
.fw-hero__glow {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 50%;
  height: 55%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.fw-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
  padding-inline: max(var(--fw-pad), env(safe-area-inset-left, 0px))
                   max(var(--fw-pad), env(safe-area-inset-right, 0px));
}
.fw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-family: var(--ff-head, 'Sora', sans-serif);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6ee7b7;
}
.fw-hero__eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--fw-accent), var(--fw-teal));
  border-radius: 2px;
}
.fw-hero__title {
  font-family: var(--ff-head, 'Sora', sans-serif);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #f9fafb;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.fw-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #6ee7b7, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fw-hero__desc {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.75;
  color: #9ca3af;
  max-width: 52ch;
  margin: 0;
}

.fw-search { margin-top: 2.5rem; max-width: 560px; }
.fw-search form { position: relative; display: flex; align-items: center; }
.fw-search__icon {
  position: absolute;
  left: 1.1rem;
  color: var(--fw-accent);
  opacity: 0.85;
  pointer-events: none;
}
.fw-search__input {
  width: 100%;
  height: 52px;
  padding: 0 3rem 0 3rem;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #f3f4f6;
  font-size: 0.9375rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.fw-search__input:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.fw-search__clear {
  position: absolute;
  right: 0.75rem;
  color: #9ca3af;
  padding: 0.5rem;
}

.fw-catalog {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--clr-bg, #030712);
}
.fw-catalog__inner {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
}

.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.fw-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  /* lift/transform: hub-card.css */
}
@media (hover: hover) {
  .fw-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.08);
  }
}
.fw-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}
.fw-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fw-card:hover .fw-card__img { transform: scale(1.04); }
.fw-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(3, 7, 18, 0.85) 100%);
}
.fw-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.9);
  color: #022c22;
}
.fw-card__cluster {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.fw-card__body { padding: 1.35rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.fw-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f9fafb;
  margin: 0 0 0.65rem;
}
.fw-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #9ca3af;
  margin: 0 0 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fw-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fw-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fw-teal);
}
.fw-card__cta-icon { transition: transform 0.25s; }
.fw-card:hover .fw-card__cta-icon { transform: translateX(4px); }
.fw-card__meta { font-size: 0.75rem; color: #6b7280; white-space: nowrap; }

.fw-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: #6b7280;
}
.fw-empty__icon { opacity: 0.25; margin-bottom: 1.5rem; }
.fw-empty__title { font-size: 1.125rem; font-weight: 600; color: #d1d5db; margin: 0 0 0.5rem; }
.fw-empty__sub { font-size: 0.875rem; margin: 0; }

.fw-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.fw-pagination__link {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}
.fw-pagination__link.is-active,
.fw-pagination__link:hover {
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.08);
}


@media (max-width: 640px) {
  .fw-card__foot { flex-direction: column; align-items: flex-start; }
}
