/* ============================================
   D4T - SYSTEMS SHOWCASE SECTION
   ============================================ */

.systems-showcase {
  padding: 120px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.systems-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 15% 80%, rgba(0, 180, 216, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 85% 20%, rgba(0, 119, 182, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* ---- Grid: 3 cols with one wide card ---- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* Wide card spans 2 columns centered */
.system-card-wide {
  grid-column: span 3;
  max-width: 680px;
  justify-self: center;
  width: 100%;
}

/* ---- Card ---- */
.system-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.system-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

/* ---- Image Area ---- */
.system-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.system-card-wide .system-card-img {
  height: 260px;
}

.system-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s ease;
}

.system-card:hover .system-card-img img {
  transform: scale(1.1);
}

/* Gradient overlay */
.system-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(10, 22, 40, 0) 0%, 
    rgba(10, 22, 40, 0.02) 40%,
    rgba(10, 22, 40, 0.55) 100%);
  transition: background 0.5s ease;
  pointer-events: none;
}

.system-card:hover .system-card-img-overlay {
  background: linear-gradient(180deg, 
    rgba(0, 180, 216, 0) 0%, 
    rgba(0, 180, 216, 0.05) 40%,
    rgba(10, 22, 40, 0.65) 100%);
}

/* Floating icon badge on image */
.system-card-badge-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}

.system-card:hover .system-card-badge-icon {
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
  transform: scale(1.08) rotate(-5deg);
}

.system-card-badge-icon svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.system-card:hover .system-card-badge-icon svg {
  stroke: #fff;
}

/* ---- Info Area ---- */
.system-card-info {
  padding: 24px 24px 28px;
}

.system-card-info h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.system-card:hover .system-card-info h4 {
  color: var(--accent-secondary);
}

.system-card-info p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .system-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .systems-showcase { padding: 80px 0; }
  .systems-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .system-card-wide {
    grid-column: span 1;
    max-width: 100%;
  }
  .system-card-img { height: 200px; }
  .system-card-wide .system-card-img { height: 200px; }
}
