/* Feature — spotlight card for one flagship project */

.feature {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(212, 255, 63, 0.18), transparent 55%),
    linear-gradient(135deg, var(--violet) 0%, var(--brand) 60%, #2a0f45 100%);
}
.feature .eyebrow {
  color: var(--lilac);
}

.feature__title {
  max-width: 14ch;
  text-wrap: balance;
}
.feature__text {
  margin: 1.5rem 0 2rem;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.82);
}

/* A browser frame around a real capture of the product, with its logo pinned to the corner */
.feature__art {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  background: #232227;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  rotate: 1.5deg;
  transition:
    rotate 0.4s ease,
    transform 0.4s ease;
}
.feature:hover .feature__art {
  rotate: 0deg;
  transform: translateY(-4px);
}

.feature__browser {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.9rem;
  background: #2c2b31;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.feature__dots {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow:
    0.9rem 0 0 #febc2e,
    1.8rem 0 0 #28c840;
  margin-right: 1.8rem;
}
.feature__url {
  flex: 1;
  max-width: 14rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.feature__screen {
  width: 100%;
  height: auto;
}

.feature__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 18px;
  background: #1b1a1f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.feature__logo {
  width: 2.75rem;
  height: 2.75rem;
}

.feature__tag {
  position: absolute;
  top: 3.25rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
  rotate: 4deg;
}
.feature__tag--proof {
  top: auto;
  bottom: 1.6rem;
  background: #fff;
  color: var(--brand);
  rotate: -3deg;
}

@media (min-width: 1024px) {
  .feature {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
