
/* Professional refinement for the lower two cards in the productivity bento section. */
.productivity-bento,
.productivity-grid,
.sk-productivity-grid {
  align-items: stretch;
}

.productivity-card,
.productivity-bento-card,
.sk-productivity-card {
  min-width: 0;
}

/* Target lower workflow/team cards by common semantic classes and grid position. */
.productivity-card--automation,
.productivity-card--team,
.productivity-bento-card:nth-last-child(-n+2),
.sk-productivity-card:nth-last-child(-n+2) {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
}

.productivity-card--automation .productivity-visual,
.productivity-card--team .productivity-visual,
.productivity-bento-card:nth-last-child(-n+2) .productivity-visual,
.sk-productivity-card:nth-last-child(-n+2) .productivity-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.productivity-card--automation .productivity-copy,
.productivity-card--team .productivity-copy,
.productivity-bento-card:nth-last-child(-n+2) .productivity-copy,
.sk-productivity-card:nth-last-child(-n+2) .productivity-copy {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding: 28px 32px 32px;
  background:
    linear-gradient(180deg, rgba(15, 12, 36, 0) 0%, rgba(15, 12, 36, .9) 28%, #0f0c24 68%);
}

.productivity-card--automation h3,
.productivity-card--team h3,
.productivity-bento-card:nth-last-child(-n+2) h3,
.sk-productivity-card:nth-last-child(-n+2) h3 {
  margin: 0 0 10px;
  max-width: 100%;
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.productivity-card--automation p,
.productivity-card--team p,
.productivity-bento-card:nth-last-child(-n+2) p,
.sk-productivity-card:nth-last-child(-n+2) p {
  margin: 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
}

/* Workflow visual */
.productivity-card--automation .workflow-scene,
.productivity-bento-card:nth-last-child(2) .workflow-scene,
.sk-productivity-card:nth-last-child(2) .workflow-scene {
  width: min(92%, 760px);
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 34px 28px 18px;
}

.productivity-card--automation .workflow-panel,
.productivity-bento-card:nth-last-child(2) .workflow-panel,
.sk-productivity-card:nth-last-child(2) .workflow-panel {
  min-height: 212px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    rgba(24, 25, 54, .88);
  box-shadow: 0 24px 60px rgba(2, 2, 18, .32);
  backdrop-filter: blur(14px);
}

.productivity-card--automation .workflow-node,
.productivity-bento-card:nth-last-child(2) .workflow-node,
.sk-productivity-card:nth-last-child(2) .workflow-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #ff9c56, #a139ff 65%, #5c6cff);
  box-shadow: 0 0 0 10px rgba(163,57,255,.08), 0 18px 48px rgba(163,57,255,.38);
}

/* Team visual */
.productivity-card--team .team-scene,
.productivity-bento-card:last-child .team-scene,
.sk-productivity-card:last-child .team-scene {
  position: relative;
  width: min(92%, 690px);
  min-height: 300px;
  margin: 10px auto 0;
}

.productivity-card--team .team-center,
.productivity-bento-card:last-child .team-center,
.sk-productivity-card:last-child .team-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 4;
  background: radial-gradient(circle at 35% 25%, #ff9d66, #b43cff 56%, #4d43ff);
  box-shadow: 0 0 0 12px rgba(174,61,255,.08), 0 0 70px rgba(174,61,255,.42);
}

.productivity-card--team .team-member,
.productivity-bento-card:last-child .team-member,
.sk-productivity-card:last-child .team-member {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255,151,72,.88);
  background: linear-gradient(145deg, #41396f, #242348);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}

/* Smooth, subtle motion only. */
.productivity-card--automation .workflow-panel,
.productivity-card--team .team-member,
.productivity-card--team .team-center,
.productivity-bento-card:nth-last-child(-n+2) .workflow-panel,
.productivity-bento-card:nth-last-child(-n+2) .team-member,
.productivity-bento-card:nth-last-child(-n+2) .team-center {
  will-change: transform;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
}

.productivity-card--automation:hover .workflow-panel:first-child,
.productivity-bento-card:nth-last-child(2):hover .workflow-panel:first-child {
  transform: translate3d(0,-5px,0);
}

.productivity-card--automation:hover .workflow-panel:last-child,
.productivity-bento-card:nth-last-child(2):hover .workflow-panel:last-child {
  transform: translate3d(0,5px,0);
}

.productivity-card--team:hover .team-center,
.productivity-bento-card:last-child:hover .team-center {
  transform: translate(-50%, -50%) scale(1.035);
}

@media (max-width: 991px) {
  .productivity-card--automation,
  .productivity-card--team,
  .productivity-bento-card:nth-last-child(-n+2),
  .sk-productivity-card:nth-last-child(-n+2) {
    min-height: 460px;
  }

  .productivity-card--automation .workflow-scene,
  .productivity-bento-card:nth-last-child(2) .workflow-scene,
  .sk-productivity-card:nth-last-child(2) .workflow-scene {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .productivity-card--automation .workflow-node,
  .productivity-bento-card:nth-last-child(2) .workflow-node,
  .sk-productivity-card:nth-last-child(2) .workflow-node {
    margin: -8px auto;
    z-index: 3;
  }
}

@media (max-width: 767px) {
  .productivity-card--automation,
  .productivity-card--team,
  .productivity-bento-card:nth-last-child(-n+2),
  .sk-productivity-card:nth-last-child(-n+2) {
    min-height: auto;
  }

  .productivity-card--automation .productivity-visual,
  .productivity-card--team .productivity-visual,
  .productivity-bento-card:nth-last-child(-n+2) .productivity-visual,
  .sk-productivity-card:nth-last-child(-n+2) .productivity-visual {
    min-height: 260px;
  }

  .productivity-card--automation .productivity-copy,
  .productivity-card--team .productivity-copy,
  .productivity-bento-card:nth-last-child(-n+2) .productivity-copy,
  .sk-productivity-card:nth-last-child(-n+2) .productivity-copy {
    padding: 22px 22px 26px;
  }

  .productivity-card--automation h3,
  .productivity-card--team h3,
  .productivity-bento-card:nth-last-child(-n+2) h3,
  .sk-productivity-card:nth-last-child(-n+2) h3 {
    font-size: 26px;
  }

  .productivity-card--automation p,
  .productivity-card--team p,
  .productivity-bento-card:nth-last-child(-n+2) p,
  .sk-productivity-card:nth-last-child(-n+2) p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .productivity-card--automation *,
  .productivity-card--team *,
  .productivity-bento-card:nth-last-child(-n+2) * {
    animation: none !important;
    transition-duration: .001ms !important;
  }
}
