.project-switcher {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 34px;
  padding: 5px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
}

.project-switcher a {
  min-width: 140px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.project-switcher a:hover,
.project-switcher a:focus-visible {
  color: #0f172a;
  background: #fff;
}

.project-switcher a[aria-current="page"] {
  color: #fff;
  background: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .16);
}

.ux-needs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 34px;
}

.ux-needs article {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.ux-needs h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
}

.ux-needs p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.ux-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 34px;
  padding: 0;
  list-style: none;
}

.ux-flow li {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.ux-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -12px;
  z-index: 1;
  color: #ff234b;
}

.mobile-screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 38px;
}

.mobile-screen-grid figure {
  margin: 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
}

.mobile-screen-grid img {
  display: block;
  border-radius: 12px;
  background: #000;
}

.mobile-screen-grid figcaption {
  padding: 10px 4px 2px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.dashboard-showcase {
  margin: 20px 0 38px;
  padding: 14px;
  border-radius: 16px;
  background: #080808;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.dashboard-showcase img {
  display: block;
  border-radius: 9px;
}

.admin-video {
  margin: 0 0 42px;
}

.admin-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #080808;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.admin-video p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.design-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 36px;
}

.design-principles article {
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
}

.design-principles strong {
  display: block;
  margin-bottom: 7px;
  color: #111827;
}

.design-principles span {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 760px) {
  .project-switcher {
    display: flex;
    width: 100%;
  }

  .project-switcher a {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
  }

  .ux-needs,
  .design-principles {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .mobile-screen-grid {
    grid-template-columns: 1fr;
  }

  .mobile-screen-grid figure {
    max-width: 310px;
    margin-inline: auto;
  }

  .ux-flow {
    display: grid;
  }

  .ux-flow li:not(:last-child)::after {
    content: "↓";
    right: 14px;
  }
}
