/* Fleet / hub showcase card (EfastFleetHubShowcase) */

.showcase {
  container-type: inline-size;
}

.showcase__card {
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(12, 23, 18, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 80px -40px rgba(12, 40, 25, 0.35);
  overflow: hidden;
}

.showcase .pill-toggle {
  align-self: flex-start;
  backdrop-filter: blur(6px);
}

.showcase__body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: stretch;
}

/* Dark "studio" stage with the photo */
.showcase__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 12%, #1a2620 0%, #0e1512 60%, #070b09 100%);
}

.showcase__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(420px circle at 50% 38%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%);
  transition: background 200ms ease;
  pointer-events: none;
}

.showcase__floor {
  display: none;
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 9%;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 199, 101, 0.33), rgba(18, 199, 101, 0) 70%);
  filter: blur(26px);
  pointer-events: none;
}

.showcase__tilt {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 500ms var(--ease);
}

.showcase__shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(20px);
  transform: translateZ(-40px);
}

.showcase__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0f0c;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.6);
}

.showcase__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 620ms ease, transform 700ms var(--ease);
  pointer-events: none;
}

.showcase__frame img.is-active {
  opacity: 1;
  transform: scale(1);
}

.showcase__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

.showcase__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 12, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eafff2;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Copy and stats beside the stage */
.showcase__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 6px 4px 6px 8px;
}

.showcase__copy .mini-eyebrow {
  animation: rise 500ms var(--ease) both;
}

.showcase__copy h3 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: rise 560ms var(--ease) both;
}

.showcase__copy p {
  max-width: 440px;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 450;
  color: rgba(12, 23, 18, 0.66);
  animation: rise 620ms var(--ease) both;
}

.mini-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.stat-tile {
  padding: 14px;
  border-radius: 16px;
  background: rgba(12, 23, 18, 0.035);
  border: 1px solid rgba(12, 23, 18, 0.06);
}

.showcase .stat-tile {
  animation: rise 560ms var(--ease) both;
}

.showcase .stat-tile:nth-child(2) { animation-duration: 650ms; }
.showcase .stat-tile:nth-child(3) { animation-duration: 740ms; }

.stat-tile b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-tile span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-soft);
}

/* Narrow card: stack the stage above the copy (same 840px rule as Framer) */
@container (max-width: 839px) {
  .showcase__card { padding: 18px; gap: 18px; }
  .showcase .pill-toggle { align-self: stretch; }
  .showcase .pill-toggle button { min-width: 0; }
  .showcase__body { grid-template-columns: 1fr; gap: 18px; }
  .showcase__stage { min-height: 260px; padding: 18px; }
  .showcase__copy { padding: 4px 2px; }
  .showcase__copy h3 { font-size: 26px; }
}
