body.page-marketplace {
  --text: #111a2d;
  --muted: #6a7587;
  --muted-2: #4f5f74;
  --border: rgba(27, 177, 242, 0.12);
  --border-strong: rgba(255, 7, 108, 0.14);
  --shadow: 0 18px 46px rgba(17, 28, 45, 0.08);
  background:
    radial-gradient(circle at 8% 10%, rgba(27, 177, 242, 0.14), transparent 40%),
    radial-gradient(circle at 92% 12%, rgba(255, 7, 108, 0.11), transparent 42%),
    radial-gradient(circle at 72% 78%, rgba(27, 177, 242, 0.08), transparent 44%),
    linear-gradient(180deg, #f8fafe 0%, #f2f6fc 45%, #eef3fa 100%);
  color: var(--text);
}

body.page-marketplace::before,
body.page-marketplace::after {
  content: "";
  position: fixed;
  top: 50%;
  width: 880px;
  height: 1800px;
  background: url("/assets/img/market.png") no-repeat center / contain;
  opacity: 1;
  filter: saturate(1.05);
  pointer-events: none;
  z-index: -1;
  transform: translateY(-50%);
}

body.page-marketplace::before {
  left: -520px;
}

body.page-marketplace::after {
  right: -520px;
  transform: translateY(-50%) scaleX(-1);
}

.page-marketplace .site-header {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(248, 251, 255, 0.76)),
    radial-gradient(circle at 12% 0%, rgba(27, 177, 242, 0.08), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(255, 7, 108, 0.07), transparent 40%);
  border-bottom: 1px solid rgba(17, 26, 45, 0.05);
  box-shadow:
    0 10px 28px rgba(17, 26, 45, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.68) inset;
}

.page-marketplace .site-header::after {
  background: linear-gradient(
    90deg,
    rgba(27, 177, 242, 0.22),
    rgba(255, 7, 108, 0.18),
    rgba(17, 26, 45, 0)
  );
}

.page-marketplace .brand {
  color: var(--text);
}

.page-marketplace .site-footer {
  background: transparent;
}

.mp-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mp-hero {
  padding: 72px 0 28px;
}

.mp-hero-copy {
  max-width: 620px;
}

.mp-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.mp-hero-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 1.05rem;
}

.mp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.mp-search {
  flex: 1 1 320px;
  max-width: 420px;
}

.mp-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(10, 18, 28, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 14px 18px;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.mp-search input::placeholder {
  color: rgba(26, 34, 64, 0.45);
}

.mp-search input:focus {
  border-color: rgba(27, 177, 242, 0.45);
  box-shadow: 0 0 0 3px rgba(27, 177, 242, 0.15);
}

.mp-count {
  font-size: 0.95rem;
  color: rgba(26, 34, 64, 0.7);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 18, 28, 0.12);
  padding: 10px 16px;
  border-radius: 999px;
}

.mp-grid-section {
  padding: 12px 0 80px;
}

.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.mp-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  min-height: 260px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--mp-primary) 28%, #ffffff 72%),
    color-mix(in srgb, var(--mp-secondary) 20%, #ffffff 80%)
  );
  color: var(--text);
  box-shadow: 0 18px 42px rgba(17, 28, 45, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--mp-banner);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(1.05);
  pointer-events: none;
}

.mp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.9) 100%);
  pointer-events: none;
}

.mp-card > * {
  position: relative;
  z-index: 1;
}

.mp-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 56px rgba(17, 28, 45, 0.2);
}

.mp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mp-team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mp-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  border: 0;
  overflow: hidden;
}

.mp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-team-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-team-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.mp-team-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 34, 64, 0.6);
}

.mp-team-link {
  font-size: 0.8rem;
  color: rgba(26, 34, 64, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 34, 64, 0.25);
  padding-bottom: 2px;
}

.mp-team-link:hover {
  color: #111a2d;
  border-color: #111a2d;
}

.mp-role-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mp-role-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 34, 64, 0.7);
}

.mp-role {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mp-desc {
  margin: 0;
  color: rgba(26, 34, 64, 0.78);
  font-size: 0.95rem;
}

.mp-card-actions {
  margin-top: auto;
}

.mp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 26, 45, 0.92);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(15, 26, 45, 0.2);
  font-size: 0.9rem;
  transition: background 0.2s ease, border 0.2s ease;
}

.mp-cta:hover {
  background: rgba(15, 26, 45, 1);
  border-color: rgba(15, 26, 45, 0.6);
}

.mp-empty {
  text-align: center;
  padding: 48px 24px;
  border-radius: 24px;
  border: 1px solid rgba(10, 18, 28, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(26, 34, 64, 0.7);
}

.mp-empty h3 {
  margin: 0 0 12px;
  color: #1a2240;
}

.mp-empty--filtered {
  margin-top: 28px;
}

@media (max-width: 700px) {
  .mp-hero {
    padding-top: 56px;
  }

  .mp-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .mp-count {
    width: fit-content;
  }
}
