/* ==========================================================================
   Marveo — Features Directory Styles (ClickUp-inspired split + Studio Visuals)
   ========================================================================== */

.feat-hero {
  position: relative;
  padding: 68px 0 38px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.feat-hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.feat-hero-waves::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.68) 68%,
    #ffffff 100%
  );
}

.feat-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.feat-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.feat-h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
}

.feat-lead {
  margin: 0 0 28px;
  max-width: 660px;
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

/* Filter & Search Toolbar */
.feat-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tier-filter-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tier-filter-btn {
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-primary);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.tier-filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.tier-filter-btn.active {
  background: var(--surface-ink);
  border-color: var(--surface-ink);
  color: #ffffff;
}

.search-wrap {
  position: relative;
  width: 270px;
  max-width: 100%;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

.feat-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 13.5px;
  color: var(--ink-primary);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.feat-search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(61, 3, 236, 0.1);
}

/* Sticky Quick Category Jump Strip */
.cat-jump-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.cat-jump-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-jump-list::-webkit-scrollbar {
  display: none;
}

.cat-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.cat-jump-link:hover {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.cat-jump-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

/* ==========================================================================
   ClickUp-Style Split Category Directory + Visual Showcases
   ========================================================================== */

.directory-wrap {
  background: #ffffff;
  padding: 12px 0 84px;
}

.category-block {
  padding: 56px 0;
  border-bottom: 1px solid #eeebf6;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  align-items: start;
}

.category-block:last-child {
  border-bottom: 0;
}

/* Left Category Column (with right hairline rule just like reference) */
.cat-sidebar {
  position: sticky;
  top: 96px;
  padding-right: 34px;
  border-right: 1px solid #eae7f3;
}

.cat-squircle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f1ecfe;
  color: #6938ef;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.cat-squircle svg {
  width: 23px;
  height: 23px;
}

.cat-title {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #121029;
}

.cat-count {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: #7d7995;
}

.cat-desc {
  margin: 0 0 20px;
  font-size: 13.8px;
  line-height: 1.56;
  color: #5c5875;
}

/* Left Column Studio Preview Image */
.cat-preview-frame {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #e6e1f4;
  background: var(--surface-subtle);
  box-shadow: 0 10px 26px rgba(15, 10, 50, 0.06);
}

.cat-preview-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-preview-frame:hover img {
  transform: scale(1.04);
}

.cat-preview-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(18, 16, 41, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Right Feature Grid */
.cat-grid {
  padding-left: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

/* Individual Feature Card (Exact reference look + optional visual header) */
.feat-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.feat-card:hover {
  background-color: #f7f5fc;
  border-color: #ebe6f8;
}

/* Visual Spotlight Feature Card (spans 2 columns or shows crisp studio image) */
.feat-card--visual {
  background-color: #faf9fe;
  border-color: #ece7f9;
}

.feat-card--visual:hover {
  background-color: #f4f1fc;
  border-color: #dcd3f6;
  transform: translateY(-2px);
}

.feat-thumb {
  position: relative;
  width: 100%;
  height: 138px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(105, 56, 239, 0.12);
  background: #f1ecfe;
}

.feat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feat-card:hover .feat-thumb img {
  transform: scale(1.05);
}

.feat-thumb-pill {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #3d03ec;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(9, 8, 60, 0.08);
}

/* Soft Lavender Icon Squircle (exact ClickUp style) */
.feat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f1ecfe;
  color: #6938ef;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.feat-card:hover .feat-icon-box {
  background: #e7dffe;
  color: #4f1ee8;
}

.feat-icon-box svg {
  width: 21px;
  height: 21px;
}

.feat-subtag {
  font-size: 12px;
  font-weight: 500;
  color: #7c7894;
  margin: 0 0 4px;
}

.feat-name {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: #121029;
}

.feat-text {
  margin: 0 0 16px;
  font-size: 13.4px;
  line-height: 1.52;
  color: #615d79;
  flex: 1;
}

/* Card Footer: Plan Badge Pill + Hover Arrow */
.feat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #dfdbe9;
  background: #ffffff;
  color: #494563;
  white-space: nowrap;
}

.plan-pill--premium {
  border-color: #d7cbfb;
  background: #f6f3ff;
  color: #5423e0;
}

.plan-pill--enterprise {
  border-color: #c8e9da;
  background: #eefaf4;
  color: #0f8254;
}

.feat-arrow {
  width: 18px;
  height: 18px;
  color: #6938ef;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.feat-card:hover .feat-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Feature Detail Lightbox Modal */
.feat-detail-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.feat-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.feat-detail-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}

.feat-detail-highlights {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.feat-detail-highlights strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.feat-detail-highlights p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-primary);
  font-weight: 500;
}

.empty-search-state {
  padding: 64px 20px;
  text-align: center;
  color: var(--ink-muted);
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .category-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }

  .cat-sidebar {
    position: static;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid #eae7f3;
    padding-bottom: 24px;
  }

  .cat-preview-frame {
    max-width: 460px;
  }

  .cat-grid {
    padding-left: 0;
  }
}

@media (max-width: 580px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    width: 100%;
  }
}
