/* ═══════════════════════════════════════════════════════════════════
   AAGENTO CORE CAPABILITIES - COMPACT & CLEAN SHOWCASE
   ═══════════════════════════════════════════════════════════════════ */

.capabilities-showcase-section {
  position: relative;
  padding: 50px 20px 60px;
  background: #ffffff;
  overflow: hidden;
  z-index: 10;
}

/* .cap-container {
  max-width: 1060px;
  margin: 0 auto;
} */

/* ── Section Header (Compact) ── */
.cap-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 28px auto;
}

.cap-header .sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  background: rgba(50, 95, 244, 0.08);
  border: 1px solid rgba(50, 95, 244, 0.2);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f55d4;
  margin-bottom: 12px;
}

.cap-header .sp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.cap-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.sp-gradient-text {
  background: linear-gradient(110deg, #2f55d4 0%, #38bdf8 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cap-subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 auto;
}

/* ── Compact Unified Showcase Card ── */
.cap-compact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.02);
  overflow: hidden;
  position: relative;
}

/* ── Typology Selector Bar (Top) ── */
.cap-typology-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cap-typology-bar::-webkit-scrollbar {
  display: none;
}

.cap-type-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cap-type-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.cap-type-btn.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #2f55d4 50%, #2563eb 100%);
  border-color: #2f55d4;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 85, 212, 0.25);
}

.cap-type-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.cap-type-btn.active .cap-type-icon {
  filter: brightness(0) invert(1);
}

/* ── Sub-bar (Bridge Status + View Tabs) ── */
.cap-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
  flex-wrap: wrap;
}

.cap-current-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
}

.cap-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  display: inline-block;
}

.cap-meta-bridge {
  font-weight: 700;
  color: #0f172a;
}

.cap-meta-sep {
  color: #94a3b8;
}

.cap-meta-view {
  color: #3b82f6;
  font-weight: 600;
}

.cap-view-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cap-view-tabs::-webkit-scrollbar {
  display: none;
}

.cap-vtab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.cap-vtab:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.cap-vtab.active {
  background: #2f55d4;
  border-color: #2f55d4;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(47, 85, 212, 0.25);
}

/* ── CAD Drawing Viewport Canvas ── */
.cap-viewport-canvas {
  position: relative;
  background: #0b1329;
  background-image:
    linear-gradient(rgba(50, 95, 244, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 95, 244, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 54px;
  overflow: hidden;
}

.cap-image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Viewport Nav Arrows ── */
.cap-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.cap-nav-btn:hover {
  background: #2f55d4;
  border-color: #3b82f6;
  transform: translateY(-50%) scale(1.08);
}

.cap-nav-btn.prev {
  left: 12px;
}

.cap-nav-btn.next {
  right: 12px;
}

/* ── Bottom Strip (Specs & Actions) ── */
.cap-bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  gap: 16px;
  flex-wrap: wrap;
}

.cap-desc-wrap {
  flex: 1;
  min-width: 240px;
}

.cap-desc-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
  margin: 0;
}

.cap-dots-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cap-dot:hover {
  background: #94a3b8;
}

.cap-dot.active {
  width: 20px;
  border-radius: 999px;
  background: #2f55d4;
}

.cap-actions-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cap-format-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}

.cap-btn-compact-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #2f55d4 0%, #22c55e 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(47, 85, 212, 0.25);
  white-space: nowrap;
}

.cap-btn-compact-demo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 85, 212, 0.35);
}

/* ── Mobile Queries ── */
@media (max-width: 768px) {
  .capabilities-showcase-section {
    padding: 36px 14px 44px;
  }

  .cap-header {
    margin-bottom: 20px;
  }

  .cap-typology-bar {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .cap-subbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }

  .cap-view-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .cap-viewport-canvas {
    height: 250px;
    padding: 12px 42px;
  }

  .cap-nav-btn {
    width: 32px;
    height: 32px;
  }

  .cap-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .cap-actions-wrap {
    width: 100%;
    justify-content: space-between;
  }
}